Dot product

From knowledgebase
Revision as of 19:51, 27 August 2020 by Dirkjan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The dot product of two vectors a = [a1, a2, ... , an] and b = [b1, b2, ... , bn] is defined as:

where Σ denotes summation notation and n is the dimension of the vector space.

In dimension 2, the dot product of vectors [a,b] and [c,d] is ac + bd. Similarly, in a dimension 3, the dot product of vectors [a,b,c] and [d,e,f] is ad + be + cf. For example, the dot product of two three-dimensional vectors [1, 3, −5] and [4, −2, −1] is

.

The dot product can also be obtained via transposition and matrix multiplication as follows:

,

where both vectors are interpreted as column vectors, and aT denotes the transpose of a, in other words the corresponding row vector.