A vector space specifies which objects can be added and scaled. It does not yet say how to compare lengths and directions. Questions about nearest vectors, error magnitude, or perpendicular directions require additional geometric structure.
An inner product turns two vectors into a scalar
The standard inner product on is
It is symmetric, linear in each input, and positive definite: , with equality only for . Any real vector-space operation with these properties is an inner product. Choosing a different inner product changes how the space measures length and angle.
For positive weights , for example,
makes errors in some coordinates more important. A negative weight can make negative, so the resulting rule is not an inner product.
Norm, distance, and angle
An inner product induces a norm and a distance:
For nonzero vectors, define by
Here is the familiar trigonometric function. The existing Cauchy–Schwarz theorem guarantees that the ratio lies in . The zero vector has no direction, so its angle with another vector is undefined.
A positive inner product gives an acute angle, zero gives a right angle, and a negative value gives an obtuse angle. Cosine similarity retains directional agreement while discarding overall scale. It is therefore useful for comparing representations, but it is different from Euclidean distance.
Why Cauchy–Schwarz holds
For , a squared length is nonnegative:
Expanding gives
Equality holds exactly when the vectors are linearly dependent. Applying this estimate to the expansion of yields the triangle inequality
The inequalities chapter proves the same result from sums of products. The present derivation shows how it creates geometry on a vector space.
If , both sides of Cauchy–Schwarz vanish and the pair is dependent. For nonzero , equality in the displayed squared norm means exactly that is the specified scalar multiple of , proving both directions of the equality condition.
Norm axioms
Triangle inequality and equality
Cauchy–Schwarz gives
Both sides are nonnegative, so taking square roots preserves the inequality. For nonzero vectors, equality requires dependence and a nonnegative inner product, hence the same direction. A zero vector also gives equality. Positive definiteness supplies positivity, and bilinearity gives , establishing all norm axioms.
Orthogonality and Pythagorean decomposition
Vectors are orthogonal when , written . Orthogonal vectors satisfy
For a subspace , define
The set is a subspace. In a finite-dimensional inner-product space, every vector has a unique decomposition into one component in and another in . The next chapter turns this existence statement into a projection algorithm.
Orthonormal bases expose coordinates directly
A basis is orthonormal when its vectors have unit length and are pairwise orthogonal. Then
Coordinates in a general basis require solving a system. In an orthonormal basis, each coordinate is one inner product. If the columns of form such a basis, then and .
The matrix identity here uses standard Euclidean coordinates and the standard inner product. If the coordinate inner product is , the corresponding identity is . For a square basis matrix it gives . For a rectangular orthonormal family, gives a left inverse, not a two-sided inverse.
Closure of the complement and the coordinate formula
For and every , bilinearity gives . Zero also satisfies the condition, so the complement is a subspace.
If , take the inner product with . Every other term vanishes, yielding . Squared length is consequently , so orthogonal coordinate changes preserve length.
Gram–Schmidt constructs an orthonormal basis
Starting from linearly independent vectors , successively remove components in directions already constructed:
Each step subtracts only a combination of preceding directions, so the span is unchanged. The remainder is orthogonal to every preceding direction. A zero remainder reveals that the original inputs were dependent and cannot be normalized into a basis.
For and , first take . Removing the component from leaves , whose normalized version is .
Induction for Gram–Schmidt
Assume the preceding nonzero are orthogonal. Take the inner product of the defining formula for with . Only the summand survives and exactly cancels . A zero remainder would place in the preceding span, contradicting independence. Old and new vectors express each other using preceding vectors, so every prefix span is preserved. This proves orthogonality, nonzero remainders, and completeness together.
Why the orthogonal complement fills the remaining space
Apply Gram–Schmidt to a basis of , obtaining . For any , set
Then for every , so . This proves existence. Two decompositions would have a difference in both and . Such a vector is orthogonal to itself and must vanish, proving uniqueness. Hence
Finite dimension matters here. Infinite-dimensional spaces require an additional discussion of closed subspaces.
Geometry is not built into a coordinate column
The same column can have different lengths under different inner products. For , the standard norm is , while the norm induced by is . Coordinates therefore need a specified measurement rule.
The polar form of complex numbers writes a unit-circle point as . Its standard inner product with is . An angle defined by a different inner product need not equal the Euclidean angle drawn on paper. The angle formula must use norms induced by that same inner product.
Exercises
Find the angle between and . Explain why the same formula cannot be used with the zero vector.
Solution
The inner product is , and both norms are . Thus and . A zero vector makes the denominator zero and has no direction.
Determine whether is an inner product on .
Solution
It is symmetric and bilinear, while with equality only when both coordinates vanish. It is therefore an inner product.
Apply Gram–Schmidt to and .
Solution
Take . The second remainder is , which normalizes to .
Comments