Chapter 1 proved that every subspace of a
finite-dimensional space has a complement, and then
warned that it has many: the -axis in is complemented by
every other line through the origin. An inner product
breaks the tie. Among all the complements of there is now one built
from alone, the
set of vectors perpendicular to everything in , and the projection
onto along it
turns out to solve an approximation problem: it finds
the vector of
closest to a given . This section
constructs that complement, that projection, and that
answer.
Throughout, is
an inner product space over or , with inner
product (Definition 11.1.1)
and induced norm (Definition 11.1.3).
We do not assume is finite-dimensional;
what we assume, each time, is that the subspace we
project onto is.
Orthogonal
complements
In , a
plane through the
origin has a distinguished line attached to it: the
normal line, the set of vectors perpendicular to the
whole plane. Nothing about the plane had to be chosen to
produce it. That construction is available in any inner
product space, and it is available for any subset, not
only for subspaces.
The orthogonal complement of collects every vector
that is perpendicular to all of at once.
Definition
11.3.1 (Orthogonal complement)
Let be an
inner product space over and let be
any subset. The orthogonal
complement of is read “
perp”.
In words: belongs to when is orthogonal
(Definition 11.1.4)
to every single element of , not merely to some of
them. The quantifier is what makes the definition
useful, and it is also what makes a subspace even
when is not. Note
that the condition could equally be written for every , since
and a complex
number vanishes exactly when its conjugate does. We will
use whichever slot is convenient.
Proposition
11.3.1 (Perp is always a subspace)
For every subset of an inner product
space , the set
is a
subspace of .
Moreover .
Proof. We apply the Subspace Test
(Theorem 1.2.1).
First, for every , because
is linear in the first slot and a linear map sends to (Theorem 2.1.1); so
. Next, let and . For every , both by linearity in the first slot. Hence
and .
For the second claim, gives . Conversely let
and let with
.
Then since each . So
, and
.
The second half is what makes computation possible:
to test membership in it is enough to
test against a spanning list of , not against all of
.
Examples.
- The extremes. ,
since always. And :
if , then in particular , and positive definiteness forces . This
is the “pair it with itself” move, and it is the shape
in which positivity almost always enters; it is the only
place where positivity is used; we will use it again and
again.
- A plane in . Let with the dot product. The condition says
exactly , so .
The Orthogonal Decomposition Theorem below will give the
converse, .
- A subset that is not a subspace. In
, take , two vectors and nothing else. Then , a subspace, as
Proposition 11.3.1
promises. It equals , the
perp of the -plane.
- Polynomials. On with , let be the
constants. Then means : the polynomials of average value zero. For
instance and
lie
in , and
they span it, since the Orthogonal Decomposition Theorem
below gives .
Nonexample by minimal change. Weaken
“for every ” to “for some ”. With
in , the weakened set
is , the union
of the two axes. Closure under scalars still holds, and
still
belongs; what fails is closure under addition, since
lies on neither axis. This is the union of
Example (The Union of the Two Axes)
again, in new clothing. The universal quantifier is
doing real work.
Why this definition. One could try
to define “the” complement of by choosing a basis of
, extending it,
and spanning the new vectors, which is what Theorem 1.7.6 does.
That answer depends on every choice made along the way.
The definition above depends only on and on the inner
product, and the next theorem shows that it really is a
complement.
The
orthogonal decomposition
Here is the theorem that makes more than a
definition. Note the hypothesis: must be
finite-dimensional, but need not be. The reason
is that the proof needs an orthonormal basis of , and Gram–Schmidt
supplies one only for a finite list.
Theorem
11.3.2 (Orthogonal Decomposition
Theorem)
Let be an
inner product space over and let be a
finite-dimensional subspace of . Then:
- (a) ;
- (b) ;
- (c) if in addition
is
finite-dimensional, then .
Idea. For (a) we must produce, from
an arbitrary , a piece inside
and a piece
perpendicular to .
Fix an orthonormal basis of . Theorem 11.2.1 says
that a vector of is the sum of
its coordinates against that basis; so for a that is not in
, the same sum is
the natural guess for the -piece. Then we subtract
and check. That is the move of Gram–Schmidt — project,
then subtract — used once instead of repeatedly.
Uniqueness of the splitting is the “pair with itself”
move. For (b), one inclusion is free and the other is
(a) applied twice.
Proof.
- (a) Since is finite-dimensional,
it has an orthonormal basis by Theorem 11.2.2. Let
and
put For each , where the middle step uses . So is orthogonal to
each ,
hence to by Proposition 11.3.1.
Therefore .
The sum is direct: if , then because and , so by
positive definiteness. By Theorem 1.7.4, .
- (b) Let . For every
we have , hence . So .
Let
. By (a), write with and .
By the inclusion just proved, , so as well. Thus lies in both
and ,
giving and . Hence .
- (c) By (a), is a complement
of in , so by Theorem 1.7.6.
Part (b) is worth pausing on. For a general subspace
of a general vector space there is no operation “” to apply twice,
and even for the annihilator of Chapter 5 the analogous
statement needed the double dual. Here it is a two-line
consequence of (a). Part (c) says that exchanges dimension
with dimension
, just as the
annihilator does (Theorem 5.2.2); Section 5
explains why the two facts are the same fact.
Quick check. Positive definiteness
was used twice in the proof of Theorem 11.3.2, in
the same way each time. Where? To see that it cannot be
dropped, take
with the indefinite form , let , and write for the set of
with for all . Compute .
Solution. It was used to show in (a), and again for in
(b); both times through “ forces ”.
With , the
vector satisfies , so is “orthogonal
to itself” and . Hence , and the
sum
is not direct. Indeed here, so is not
all of . Both
conclusions of the theorem fail.
Orthogonal
projection
Once , Chapter 2 hands us an operator: the
projection onto
along (Theorem 4.5.1).
It deserves its own name and symbol, because the
complement is no longer a choice.
Definition
11.3.2 (Orthogonal projection)
Let be a
finite-dimensional subspace of an inner product space
. By Theorem 11.3.2 (a),
every has a unique splitting with and .
The orthogonal projection onto is the
operator defined by
The definition makes sense because the splitting
exists and is unique, and is linear by Theorem 4.5.1
(b), which also gives , , and . Nothing so far tells us how to
compute . The proof of
Theorem 11.3.2
does, and that is the next theorem.
Idea. Part (a) is not a new
computation: the vector built in the
proof of Theorem 11.3.2 (a)
was exactly this sum, and by uniqueness of the splitting
it must be . For (b),
split both and , and watch the
cross terms die. For (c), split and use
Pythagoras.
Proof.
(a) Put and
. The proof of Theorem 11.3.2 (a)
showed and . Since the splitting of in is
unique (Definition 1.7.2),
.
(b) Write and with and . Then because
and , and for the same reason with the roles swapped.
Hence
(c) With as above, and are
orthogonal, so by Theorem 11.1.3.
Since , this gives .
Equality holds if and only if ,
that is , that is .
Two comments. First, the right-hand side of (a)
visibly depends on the orthonormal basis chosen, while
the left-hand side does not; so the sum is the
same for every orthonormal basis of . That is a genuine
piece of information, obtained for free. Second,
property (b) says that can be moved from one
slot of the inner product to the other at no cost.
Section 6 will call such an operator
self-adjoint and write the property as
; we
proved the property here so that nothing later depends
on the order of the sections.
Orthonormal bases are convenient but not obligatory,
and by hand it is usually faster to skip the square
roots.
Corollary
11.3.4 (Projecting with an orthogonal
basis)
Let be a
finite-dimensional subspace of an inner product space
, and let be an orthogonal
basis of , so that
for and every .
Then
Proof. Each is nonzero, so
and is defined. Each
is a
nonzero multiple of , so is again a basis of , and it is orthonormal:
. By Theorem 11.3.3 (a),
where the two factors come
out unchanged, the one in the second slot because is
real. Finally by Definition 11.1.3.
Each summand
is the projection of onto the line
:
the case of
the corollary.
Best
approximation and distance
Now the payoff. Of all the vectors of , which is nearest to a
given ? In
, dropping a
perpendicular from a point to a plane is the familiar
recipe, and the recipe is correct in every inner product
space.
Theorem
11.3.5 (Best Approximation Theorem)
Let be a
finite-dimensional subspace of an inner product space
, and let . Then
and equality holds only for
.
Idea. Insert into the
difference: . The first bracket is perpendicular
to and the second
lies in , so the
two are orthogonal, and Pythagoras turns the comparison
into “a sum of two squares is at least one of them”. The
picture is a right triangle with hypotenuse .
Proof. Let and write
The first bracket lies in , since is
the -part
of in Theorem 11.3.2 (a).
The second lies in , since and
.
Hence the two brackets are orthogonal, and Theorem 11.1.3
gives Taking square roots proves the inequality,
since the norm is nonnegative. Equality forces , hence by positive definiteness, that is
. This proves the theorem.
So the minimum is attained, and attained at exactly
one point. That lets us define a distance.
Definition
11.3.3 (Distance to a subspace)
Let be a
finite-dimensional subspace of an inner product space
and let . The
distance from to is
The word minimum is justified, not
sloppy: Theorem 11.3.5 says
the values really do have a smallest one. Note
also that if and only if , and that,
when is
finite-dimensional, , since is
the -component of
. (The
hypothesis is needed for to be
defined at all: Definition 11.3.2
asks the subspace projected onto to be
finite-dimensional, and is not, in the
infinite-dimensional setting this section is careful to
allow.) When is the smaller
of the two, computing that component is the faster
route.
Example
(Distance from a point to a plane)
In with
the dot product, let and .
Find
and ,
twice: once through , and once
through an orthonormal basis of .
Solution. Through . Put .
Every satisfies , so .
Since is the
solution set of one nontrivial equation, , so by Theorem 11.3.2 (c),
and therefore . By Corollary 11.3.4
with the one-element basis , so and .
Through an orthonormal basis of . The vectors and lie in and are orthogonal to
each other, so is an orthonormal basis of . Then and , so Theorem 11.3.3 (a)
gives the same answer. Check: , so
;
and is a multiple of , so it lies in
. The two
conditions together identify the splitting, by
uniqueness.
The next example is the same theorem in a space of
functions, where “closest” is no longer something one
can see.
Example
(The best quadratic approximation to a cubic)
On with , let . Find
the polynomial of
closest to , and
the distance.
Solution. The list is
a basis of , being
three independent polynomials of degrees (Theorem 1.4.4) in a
space of dimension . It is
orthogonal: and
because the integrands are odd, and Now apply Corollary 11.3.4 to
. Two
of the three coefficients vanish because is odd: and
. The remaining one is Hence . The error is , with
so .
Check. The error should be orthogonal to
. Against and this holds
because is odd; against it reads . Notice that the answer is
not the Taylor polynomial of at , which is : Taylor approximates
near one point, while spreads the error
over the whole interval.
Three
traps
Warning. is not the
annihilator . Both
objects consist of things that “kill” , but they live in
different places: is made of vectors
(Definition 11.3.1),
while is made of functionals
(Definition 5.2.1). The
annihilator exists over every field and needs no extra
structure; the orthogonal complement needs an inner
product, so it needs or . They do have the same dimension, (Theorem 5.2.2, Theorem 11.3.2
(c)), and that is not a coincidence: Section 5 produces
an explicit bijection .
Until then, keep them apart.
Warning. “Orthogonal
projection” is a special case of Chapter 2’s
projections, not a synonym. An operator with
is a
projection onto along (Definition 4.5.1,
Theorem 4.5.1),
and Chapter 4, §05 stressed that the direction matters:
on , both
and are projections onto the
-axis. Only the
first is orthogonal, because only for the first
is the kernel the perpendicular line; the second
projects along and is
called oblique. So carries more
information than “ and ”: it also says which complement is used. Theorem 11.3.3 (b)
is the extra property, and Exercise C3 below shows that
it singles out the orthogonal projections among all
projections.
Warning. depends on the
inner product, not only on . In let . With
the dot product, . With the weighted inner product
, a vector is orthogonal to
when , so . Same subspace, different perpendicular.
The symbol
always hides a choice of , and
when two inner products are in play the notation must
say which.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define the
orthogonal complement of a subset
of an inner
product space.
- (b) True or false:
is a
subspace only when is a subspace. Justify
your answer.
- (c) State the
Orthogonal Decomposition Theorem, including every
hypothesis.
- (d) Let be a -dimensional subspace of
. What is
, and
what is ?
- (e) What quantity
does
minimize, and over what set?
- (f) Name two
differences between and the
annihilator .
Solution.
(a) (Definition 11.3.1).
(b) False. is a subspace
for every subset , by Proposition 11.3.1,
and it equals . For
instance in .
(c) If is an inner product
space over or
and is a
finite-dimensional subspace, then
and ; if is
also finite-dimensional, then (Theorem 11.3.2).
itself need not
be finite-dimensional.
(d) and , by Theorem 11.3.2 (c)
and (b).
(e) It minimizes
over , and it is
the only minimizer (Theorem 11.3.5).
(f) consists of
vectors of , of functionals in
; and needs an inner
product (so
or ), while
is defined
over any field. A third difference: is a complement
of inside , whereas is not a subspace
of at
all.
B. Practice
Exercise
(B1: A complement and a projection in )
In with
the dot product, let .
- (a) Find a basis of
and
verify the dimension count.
- (b) Compute and for .
- (c) Verify directly
that .
Solution.
(a) By Proposition 11.3.1
it is enough to be orthogonal to the two spanning
vectors, so means and . Hence these two being independent (look at the first
and third entries). So , as Theorem 11.3.2 (c)
requires.
(b) The spanning
list of is
orthogonal, so Corollary 11.3.4
applies with , ,
both of squared norm : Then and .
(c) The vector
satisfies and , so it lies in
by
(a).
Exercise
(B2: Distance from a point to a plane)
In with
the dot product, let and .
Compute and , and check
that
lies in . Hence
write down the general formula for the distance from
to the
plane , .
Solution. The plane is for
, and with (Theorem 11.3.2
(c)), so . Here and , so Check: , so . The
distance is .
In general ,
which for and gives
.
Solution. Use the orthogonal basis
of from Example (The best quadratic approximation to a cubic),
with and The coefficients against are , (odd
integrand) and By Corollary 11.3.4,
For the distance, Theorem 11.1.3
applied to gives . Here and, the basis being
orthogonal, Hence and .
C. Going deeper
Exercise
(C1: Perp turns sums into intersections)
Let and be subspaces of an
inner product space .
- (a) Prove that . (No finiteness is needed.)
- (b) Assume now that
is
finite-dimensional. Deduce that .
Solution.
- (a) Let . Since (Theorem 1.7.1),
is
orthogonal to every element of , so ;
likewise .
Let
and let with , . Then , using
additivity in the second slot. Hence .
- (b) Apply (a) to the
subspaces
and :
where the second equality is Theorem 11.3.2 (b),
available because
is finite-dimensional, so all subspaces are (Theorem 1.6.7). Now
take of both
ends and use Theorem 11.3.2 (b)
once more, this time on the subspace :
This proves the second identity.
Exercise
(C2: A subspace with no orthogonal complement)
Let ,
with the coefficient inner product
a finite sum, since a polynomial has only
finitely many nonzero coefficients. Let .
- (a) Verify that
is
an inner product on and that is a subspace with
.
- (b) Prove that .
Conclude that , so Theorem 11.3.2
fails without the hypothesis that is
finite-dimensional.
- (c) Explain what
goes wrong geometrically by exhibiting, for each , an element with .
Solution.
(a) The form is
symmetric and bilinear over because each term
is, and
whenever some , that is
whenever .
So it is an inner product. The map is linear (Theorem 0.8.5), so
is a subspace (Theorem 2.2.1). It is
proper, since the constant polynomial has .
(b) Note first
that for all , since . Let . Pairing with gives , so all the
coefficients of
are equal, say to . But only finitely many
of them are nonzero, and there are infinitely many
indices, so
and . Hence
and .
(c) Take . Then , so , while So the polynomial has elements
of arbitrarily
close to it:
leaves no room outside itself for a perpendicular
direction, and the best approximation to from does not exist (the
distances get arbitrarily close to without reaching it).
The obstruction is not the dimension of as such but the fact
that is not
closed: filling in the missing limits is
exactly what the theory of Hilbert spaces does, and
there Theorem 11.3.2 is
recovered for closed subspaces. That is analysis, not
linear algebra, and we do not pursue it.
Exercise
(C3: Which projections are orthogonal)
Let be a
finite-dimensional inner product space and let satisfy
. Prove that
the following are equivalent:
- (a) for some subspace
;
- (b) for all ;
- (c) .
Hint: for (b) (c), pair a
vector of
with .
Solution.
(a) (b) is Theorem 11.3.3
(b).
(b) (c). Let and
let be arbitrary. Then using (b) in the second equality. So . Let . Then the first equality by (b), the second by , and the third
because while . Positive definiteness
gives , so .
(c) (a). Put
. By Theorem 4.5.1
(a), , and is the identity on
and zero on . By
the uniqueness clause of Theorem 4.5.1
(b), is the
projection onto
along ,
which is by Definition 11.3.2.