Dot product
Vector spaces
Linear span
Linear transformation
Linear independence
Linear combination
Basis
Column space
Row space
Dual space
Orthogonality
Eigenvector
Eigenvalue
Least squares regressions
Outer product
Cross product
Dot product
Transpose
Matrix decomposition
In mathematics, the dot product is a function · : V × V → F, where V is a vector space and F its underlying field.
In other words, it maps a pair of vectors to a scalar. It is also known as the scalar product and the inner product. When the latter term is used, the inner product of a and b is usually denoted <a, b>.
It is defined as
- a · b = |a| |b| cos θ,
- a · b = ab cos θ,
Work is the dot product of force and displacement.
Properties
The definition has the following consequences. The dot product is commutative
- a · b = b · a.
- a · (rb + c) = r(a · b) + (a · c).
- a · b = a1b1 + a2b2 + a3b3,
- a · b = abT
The dot product satisfies all the axioms of an inner product. In an abstract vector space, the notion of angle between the elements of the space can be defined in terms of the inner product.
Note: This proof is shown for 3-dimensional vectors, but is readily extendable to n-dimensional vectors given mutually perpendicular unit vectors.
Consider a vector
Proof that the two forms of definition are equivalent
We have already shown that the theorem
follows from the definition
To prove that these are two equivalent ways of defining the dot product, we shall now instead use the former to derive the latter.
Repeated application of the Pythagorean theorem yields
- v2 = v12 + v22 + v32.
- v · v = v12 + v22 + v32,
Now consider two vectors a and b extending from the origin, separated by an angle θ. A third vector c may be defined as
- c ≡ a − b,
- c2 = a2 + b2 − 2ab cos θ.
- (1)c · c = a · a + b · b − 2ab cos θ.
- c · c = (a − b) · (a − b),
- \(2)c · c = a · a + b · b − 2(a · b).
- a · a + b · b − 2(a · b) = a · a + b · b − 2ab cos θ.
- a · b = ab cos θ,
See also: Cross product