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 10.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 10.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 10.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 10.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 10.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 10.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 10.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 10.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 10.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 10.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 10.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 10.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 10.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 Inner products, norms, and angles first if the inner-product formulas themselves are not yet automatic.
Continue with 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 Basis and dimension.