Proof
(Prerequisite proofs and exact reading routes)
Real inner products, their norms and the needed inequalities
The complete proof is in 6.1. These are real positive-definite inner products; no complex bilinear convention is assumed.
Finite basis existence and extension, without a counting assumption
The complete proof is in 3.5. The proof applies to finite-dimensional real vector spaces, including the zero space and empty bases.
Orthonormal bases and extension while retaining prescribed vectors
Let be a finite-dimensional real vector space with a positive-definite inner product. On an independent list , define successively
Inductively the previous are orthonormal. For , taking the inner product with gives . If , then lies in the previous span, a contradiction. Division by its positive norm is therefore legal. The displayed formula and its rearrangement show that the first old and new vectors span the same space, completing the induction. Apply this to a basis to obtain an orthonormal basis, also for a subspace. To extend a prescribed orthonormal list, first extend it to an ordinary basis by the proved theorem and then apply this construction in that order. On the prescribed first vectors no component is subtracted and the norm is one, so every prescribed vector is retained exactly. Empty lists and the zero subspace require no division. This proves the orthonormal extension.
Proof X-ray
Where independence and the order of the list are used
In the proof above of orthonormal bases and their extension, the induction carries two facts together: the new vectors are orthonormal, and after steps they span the same space as . Orthogonality is a direct computation, because each subtracted term cancels exactly the component along one earlier . Independence is used only once, to guarantee ; positive definiteness then makes the norm positive, so the division is legal. Extension rests on one further observation: a vector that already has norm one and is orthogonal to its predecessors passes through the construction unchanged. That is why the prescribed vectors are placed first.
Once an inner product is available, we can single out vector families whose geometry is especially simple. Orthogonality is useful because it separates coordinate directions: a measurement against one vector ignores every orthogonal direction. In an orthogonal basis, coordinates can therefore be read from inner products instead of recovered by solving a new linear system each time.
The nonzero condition in the definition of an orthogonal set is essential. The equation is true, but it does not make the zero vector a usable direction. The zero vector has norm zero, so cannot be used as the nonzero denominator required by the coefficient formula, and it cannot belong to a linearly independent family.
Orthogonality
Definition 6.2.1
(Orthogonal vectors)
Two vectors are orthogonal if
We write
This definition is algebraic, so it works in any dimension. In or , it agrees with the familiar picture of perpendicular nonzero vectors. In a higher-dimensional space there may be no useful picture, but the inner product still tests the same relation.
Worked example 6.2.2
(Check orthogonality by inner product)
Let
Then
Both vectors are nonzero, so they are orthogonal. Their squared norms are and ; the zero inner product is a statement about their directions, not about either vector having zero length.
Orthogonal sets
Definition 6.2.3
(Orthogonal set)
A finite set in is orthogonal if:
- every vector in the set is nonzero;
- whenever .
These two clauses do different jobs. Pairwise zero inner products separate the directions, while the nonzero clause prevents a zero vector from creating a spurious “direction.” If zero were allowed, a set such as would satisfy all pairwise zero-product equations but would be linearly dependent. Adding zero to an already orthogonal family preserves those equations, which is exactly why the nonzero clause must be stated separately. Also, an arbitrary family containing no zero need not be orthogonal: for example, .
Theorem 6.2.4
(Orthogonal nonzero sets are automatically linearly independent)
If is an orthogonal subset of , then is linearly independent. In particular, .
Proof
(Why an orthogonal set is independent)
Suppose a linear relation is given:
Fix one index and take the inner product of both sides with . By linearity,
For every , the inner product is zero. The only term left is
Because , positive definiteness gives , so . The index was arbitrary; repeating the same fixed-index test for every index makes every coefficient zero. Thus the relation is trivial and the set is linearly independent. A linearly independent subset of has at most members.
The proof is worth remembering as a method. To isolate a coefficient, take the inner product with the vector carrying that coefficient. Orthogonality removes the cross terms, and nonzero norm allows division.
Coordinates in an orthogonal set
The coefficient formula applies only when the target vector is in the span of the orthogonal set. That membership condition is what makes the proposed linear combination an actual representation of the target.
Theorem 6.2.5
(Coefficient formula in an orthogonal set)
Suppose is an orthogonal set and
Then, for each ,
Consequently,
Indeed, take the inner product of the representation with . The cross terms vanish, leaving ; division is valid because is nonzero. The formula is a direct coordinate readout, not a different definition of span.
Theorem 6.2.6
(Weighted inner products and the Pythagorean formula)
If is orthogonal and
then
In particular,
Proof
(Why only matching directions remain)
Expand both linear combinations using linearity in each slot:
When , orthogonality makes the term zero. When , the term is . Summing the surviving diagonal terms gives the formula. Taking and gives the squared-norm identity. It is a weighted Pythagorean theorem: each coordinate contributes according to the squared length of its basis vector.
The mechanism is always the same: pairwise orthogonality removes cross terms, so each coordinate can be read by a separate inner-product calculation. This also explains why normalizing an orthogonal basis makes the weights and denominators equal to .
Worked example 6.2.7
(Recover coordinates and verify the norm)
Let
First check the geometry:
and
Thus this is an orthogonal set. Because the three vectors are nonzero and pairwise orthogonal, they are linearly independent. Three independent vectors in form a basis of , so . This verifies the membership hypothesis before we apply the coefficient formula:
Substitution checks the reconstruction:
The weighted norm formula gives an independent check:
Orthogonal and orthonormal bases
Definition 6.2.8
(Orthogonal basis)
Let be a subspace of . A subset of is an orthogonal basis for if is both a basis of and an orthogonal set.
Since an orthogonal set is already linearly independent, checking that an orthogonal set is an orthogonal basis requires only one additional fact: it must span the subspace under discussion.
Theorem 6.2.9
(Orthogonal basis criterion)
Let be a subspace of . If is an orthogonal subset of , then is an orthogonal basis for if and only if spans .
The forward direction is part of the definition of a basis. For the reverse direction, spanning supplies the missing condition and the independence theorem supplies the other one. This criterion prevents a common scope error: an orthogonal family may be independent without spanning the whole ambient space.
Definition 6.2.10
(Orthonormal basis)
A set is orthonormal if it is orthogonal and every vector has norm . Equivalently,
An orthonormal set that is also a basis is an orthonormal basis. The empty set is the orthonormal basis of the zero subspace ; every nonempty basis still consists of nonzero vectors.
Theorem 6.2.11
(Coordinate formula in an orthonormal basis)
If is an orthonormal set and
then
Moreover, if , then
The denominators disappear because every norm is , and the weighted norm formula becomes the ordinary sum of squared coordinates.
Membership is part of the formula
Counterexample mode
The coefficient formula does not create missing components
Take the orthogonal set in and the ambient vector . Here , but the coefficient expression would give
So the formula reconstructs only after the membership condition has been established. For an arbitrary ambient vector, the same expression gives its orthogonal projection onto ; the residual
is orthogonal to every . That residual is the component handled by the next orthogonalization note.
Normalization
Theorem 6.2.12
(Normalize an orthogonal basis)
If is an orthogonal set, then
is orthonormal, and . If is an orthogonal basis of , then is an orthonormal basis of .
Each divisor is positive because the corresponding vector is nonzero. Scaling vectors by nonzero numbers preserves all linear combinations and hence the span. It also preserves orthogonality, since when , while each new norm is . Normalization does not repair a nonorthogonal family: the vectors and have normalized inner product , still nonzero.
Worked example 6.2.13
(Normalize the three-dimensional orthogonal basis)
Use the orthogonal basis from the coordinate example. Define
The span is unchanged, and the normalized vectors satisfy . For the same target , its orthonormal coordinates are now direct inner products:
Thus
and the norm check is
Nonzero vectors, spanning, and projection
An orthogonal set is linearly independent, but need not span the intended space: is an orthogonal set and still does not span .
The distinction between a vector being orthogonal to another vector and a set being an orthogonal set is easy to lose. The equation allows either vector to be zero. A set, however, is required to contain only nonzero vectors. This is exactly the condition used in the independence proof: after taking the inner product with , we must divide by , which is positive only when . The proof does not divide by a coefficient, so it remains valid even when some coefficients are zero.
There is a second boundary in the coordinate formula. The expression
is always a vector in the span of the orthogonal set, but it equals the given only when is in that span. For a general vector it is the orthogonal projection, and the leftover vector is perpendicular to every basis direction. Thus the membership hypothesis is not a technical decoration: it is what turns a projection identity into a reconstruction identity.
The weighted formula also explains why the ordinary orthonormal formula is so convenient. In an orthogonal basis, a coordinate with a long basis vector contributes more to the norm by the factor ; in an orthonormal basis every such factor is . The coefficient changes at the same time: becomes simply . Normalization changes the numerical coordinates, but not the vector or the subspace being spanned.
Common mistake
(Skipping the span or norm check)
Do not apply the orthonormal coefficient formula to a family that is merely orthogonal, and do not apply the orthogonal formula before verifying that the denominators are nonzero. For an orthogonal but non-unit family, the denominator is essential. For a family that does not span the target vector, the resulting sum is only its projection. A good final check is to substitute the coefficients back into the proposed linear combination and, when useful, compare the norm obtained from the weighted formula with the norm computed directly from the coordinates.
Empty sets and dimension
The finite-set hypothesis keeps the coefficient argument concrete, but the logic also identifies the boundary cases. The empty set is an orthogonal set by vacuous pairwise conditions, and its span is the zero subspace; it is therefore the orthonormal basis of . A nonempty orthogonal set in has at most members, and if it has exactly members then it is a basis of the whole space. This conclusion uses both parts of the argument: independence comes from the inner products, while equality of the dimension supplies spanning. Once the family is a basis, uniqueness of coordinates follows from independence, so the coefficient formulas do not merely produce one convenient expansion; they identify the only expansion possible.
Quick check
Quick check
(Can an orthogonal set contain the zero vector?)
Use the definition, not only the equation .
Solution · Answer
No. By definition, an orthogonal set requires every vector in the set to be nonzero.
Quick check
(Why are the standard basis vectors orthogonal?)
Compute their pairwise inner products.
Solution · Answer
If , then because the entries occur in different coordinates. Each is nonzero, so the standard basis is an orthogonal set.
Quick check
(If an orthonormal basis is used, what is the coefficient of in the expansion of ?)
Use the orthonormal coordinate formula.
Solution · Answer
It is , provided belongs to the span of the basis.
Exercises
Quick check
(Show that is an orthogonal basis of . In particular, verify the spanning claim.)
Check orthogonality first, then use independence and dimension.
Solution · Guided solution
The inner product is
Both vectors are nonzero, so the orthogonal-set theorem makes them linearly independent. Two independent vectors in form a basis and hence span .
Quick check
(Let , , and . Find the coefficients of in this orthogonal basis.)
Compute both inner products and both squared norms before reconstructing .
Solution · Guided solution
The pair is orthogonal because
For ,
Therefore the coefficients are and , and indeed
Quick check
(Normalize the orthogonal basis .)
Divide each vector by its norm.
Solution · Guided solution
Each vector has norm , so an orthonormal basis is
Related notes
Read 6.1 Inner products, norms, and angles first if the inner-product formulas themselves are not yet automatic.
Continue with 6.3 Gram-Schmidt orthogonalization to see how an arbitrary basis is converted into an orthogonal one. The residual in the membership counterexample is the first projection step in that process.
The basis language here also depends on 3.5 Basis and dimension.