Difference between revisions of "Dot product"
Jump to navigation
Jump to search
(Created page with "The dot product of two vectors a = [a1, a2, ... , an] and b = [b1, b2, ... , bn] is defined as: <math> \mathbf{a}\cdot \mathbf{b} = \sum_{i=1}^n a_ib_i = a_1b_1 + a_2b_2 +...") |
|
| (One intermediate revision by the same user not shown) | |
(No difference)
| |
Latest revision as of 19:51, 27 August 2020
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.