Inner Product
The inner product is a fundamental operation that pairs two vectors and returns a scalar, capturing how much the two vectors “align” with each other. It is defined abstractly on any vector space — but throughout this material we work in with the standard inner product, which has its own well-known name.
Inner Product vs Dot Product
The two terms are often used interchangeably, but they are not quite the same:
- Inner product is the general concept: any operation on a vector space that is symmetric, linear in each argument, and positive-definite.
- Dot product is the specific inner product on defined by component-wise multiply-then-sum.
So every dot product is an inner product, but not every inner product is a dot product. In — the only setting we encounter in this material — the standard inner product is the dot product, so the two names refer to the exact same operation. The notation differs by convention:
- — angle brackets, the general inner-product notation
- — center dot, the specific dot-product notation
Both appear in this material, sometimes within the same expression. They mean the same thing in .
Algebraic Definition
The inner product of and in is:
In , this specific inner product is also called the dot product or scalar product.
This is simply a component-wise multiply-then-sum.
In :
Geometric Interpretation
The same operation has a clean geometric meaning:
For , the inner product equals:
where is the angle between the two vectors and denotes the Euclidean norm.
This form makes three key facts immediately visible:
- Orthogonality: if and only if — the vectors are perpendicular.
- Sign: the inner product is positive when (vectors point in roughly the same direction), zero at , and negative when (vectors point away from each other).
- Self-pairing: , so the norm of a vector is .
Projection
The geometric form makes the inner product the natural tool for projecting one vector onto another — extracting how much of points along .
The scalar projection of onto a non-zero — the signed length of the shadow casts on the direction of — is
It is positive when the angle is acute, zero when the vectors are perpendicular, and negative when the angle is obtuse.
Read as “the component of along ” — and note this is a single (signed) number, not a vector. It is a signed length in the range — hitting when is parallel to , when antiparallel, and zero when perpendicular.
The vector projection of onto a non-zero — the actual displacement along that shadows onto — is the scalar projection scaled by the unit vector :
Read as “the projection of onto ” — and note this is a vector, parallel to (or anti-parallel, if the angle is obtuse), with length . It is the literal arrow you’d draw by dropping a perpendicular from the tip of down to the line through .
Reading the inner product as a weighted projection. The inner product splits as
— the scalar projection of onto , scaled by the length of . So whenever we take an inner product, we are measuring “how much aligns with ” weighted by the magnitude of — useful whenever has its own physical meaning, e.g. a surface normal whose length encodes an area element.
A common confusion: is not the scalar projection. Both contain a factor and both feel like a measure of “alignment”, but they differ by a length:
The two coincide exactly when — dotting against a unit vector (a basis vector , a unit normal ) makes the dot product equal to the scalar projection. Most early dot-product practice happens against unit basis vectors, where is both the -th coordinate and the scalar projection onto — easy to over-generalize from. For any non-unit , the inner product carries the extra factor.
Two sanity checks that the two operations are different:
- is symmetric, but in general — the projection picks out one vector as the “direction onto which we project”.
- The scalar projection is a length; the inner product is length-times-length (when carry length units). The units don’t match.
Key Properties
For all and :
- Commutativity:
- Linearity:
- Positive-definiteness: , with equality only when