Nine chapters, and we have not measured anything. We
can say that a list is independent, that a subspace has
dimension four, that an operator is diagonalizable. We
cannot yet say that a vector has length , or that two vectors
meet at a right angle. Geometry has appeared only in
pictures, never in the theory. This section puts it into
the theory, by abstracting the one operation in that already
computes lengths and angles: the dot product.
The field
for this chapter
Throughout Chapter 11 the field is or . This is not
laziness; two features of these fields are used on every
page, and no other field has both.
The first is positivity. The point
of the whole construction is that should be
the square of a length, so it must be a number we can
compare with .
Over there is
no ordering compatible with the arithmetic at all: in
, adding to itself five times
returns to , so no
non-zero element can be called “positive” in any useful
sense. Over
there is an ordering, but lengths would not exist, since
. Over every sum of squares
is and every
non-negative number has a square root, and that is
exactly what we need.
The second is conjugation. Over
the naive sum
of squares fails immediately: , so “” is not a
length for . The repair is to use instead of (Theorem 0.6.2 (c)),
and this needs the complex conjugate. We write for the
conjugate of , with the convention that when ; every formula
below then reads correctly over both fields at once.
From the
dot product to the axioms
In the dot
product is It computes lengths, because is the square of the Euclidean length by
Pythagoras. It computes angles too. For non-zero at an
angle , the
law of cosines applied to the triangle with sides , and says while expanding the left side entry by entry
gives . Comparing
the two, .
So one bilinear expression carries both length and
angle, and perpendicularity is the single equation .
Which properties of the dot product did that argument
use? Only three: it is linear in each slot separately,
it is symmetric, and for . Those three we
can demand of an abstract space. Over , as we saw, symmetry
has to be weakened to conjugate symmetry, and the price
is small: a conjugate bar in the second slot.
An inner product is a way of multiplying two
vectors into a scalar so that a vector paired with
itself has positive “length squared”.
Definition
11.1.1 (Inner Product)
Let be or , and let be a vector space
over . An
inner product on is a map such that for all and all
:
- (IP1)
(linear in the first slot);
- (IP2) (conjugate
symmetry);
- (IP3) for
every non-zero
(positive definiteness).
A vector space equipped with an inner product is an
inner product space. When it is a
real inner product space, when a
complex one.
In words, clause by clause. (IP1) says that if we
freeze the second slot, what is left is a linear
functional on :
the inner product distributes over sums and lets scalars
out of the first argument untouched.
(IP2) says that swapping the two arguments conjugates
the answer; over it is plain symmetry,
. (IP3) says that a non-zero
vector pairs with itself to give a
strictly positive number. For the
inequality in (IP3) to mean anything, must be a
real number; it is, and the reason is
(IP2), as the next result shows. Note also what (IP3)
does not say: it says nothing about
for
, which
may be negative, or not even real.
The first consequences are small, and we will use all
of them constantly.
Theorem
11.1.1 (First Properties of an Inner
Product)
Let be an
inner product space over . For all and
:
- (a) is a
real number, and with
equality if and only if ;
- (b)
(conjugate-linear in the second
slot);
- (c) ;
- (d) if for every , then .
Idea. Each part is one application
of an axiom. For (a), a number equal to its own
conjugate is real. For (b), swap slots with (IP2), use
(IP1), and swap back. For (d), the only vector
orthogonal to everything is the zero vector, and we find
that out by pairing the difference with
itself: that is the move to remember.
Proof.
(a) By (IP2) with
, , and a complex number
equal to its own conjugate has zero imaginary part, so
. If , then by
(IP3). If ,
then by
(IP1). Hence always, with equality exactly when .
(b) Using (IP2),
then (IP1), then (IP2) again, where the third equality uses Theorem 0.6.2 (a) and
(b).
(c) by (IP1), and
by (IP2).
(d) Put . For every
, (IP1) gives
. Take : then , so
by (a),
that is, .
Part (d) is the first appearance of the move that
runs through the whole chapter: to show a vector
is zero, pair it with itself. There is exactly
one vector of length zero, so an identity of the form
is a proof that .
Part (b) is where the conjugate becomes visible in
practice. An inner product over is
not bilinear: scalars leave the second
slot wearing a bar. A map with properties (IP1) and (b)
is called sesquilinear, from the Latin
for “one and a half times linear”.
Examples
The dot product on . Define
. (IP1) holds because each term
is linear in ;
(IP2) is the commutativity of multiplication in , and conjugation is
the identity; (IP3) holds because is a sum of squares of real numbers,
which is only
when every .
This is the standard inner product on
, and it is
the model for everything else.
The standard inner product on . Define
(IP1) is clear. For (IP2), by Theorem 0.6.2 (a),
(b). For (IP3), by Theorem 0.6.2 (c), a
sum of non-negative real numbers, zero
only when every . The conjugates are doing exactly one job:
making the diagonal values real and non-negative.
Weighted inner products. Fix real
numbers and put on . The same three
checks go through, with ; the weights must be
strictly positive, or (IP3) fails for a
standard basis vector. In the degenerate case and , this is
on itself, the
smallest non-zero inner product space there is. It
matters because it is where the axioms are just the
arithmetic of .
Continuous functions. Let be the space
of continuous functions , and set (IP1) is linearity of the integral, and (IP2)
follows because conjugation commutes with integration.
For (IP3), ,
and we must rule out equality for . Here is the one
fact from analysis we assume: if is continuous and for some , then on some interval of positive length
around , so .
Continuity is not decoration; the non-example below
shows what happens without it.
Matrices: the Frobenius inner
product. First a piece of notation we will need
all chapter.
Definition
11.1.2 (Conjugate Transpose)
For , the conjugate transpose
is the matrix with entries . A square matrix with is
Hermitian.
Over , and
Hermitian means symmetric (Definition 0.9.11).
Now on define Writing out the trace, , so this is the standard
inner product of after listing the
entries in a column. In particular (IP1)–(IP3) hold,
with . This is the
Frobenius inner product; for it is the standard
inner product on .
Polynomials sampled at nodes. Fix
distinct scalars and
define, on , (IP1) and (IP2) hold because evaluation at
is linear (Theorem 0.8.5) and the
standard inner product on has them; indeed
is the
standard inner product of the sample vectors
and . Positivity is the interesting clause.
If , then vanishes at all distinct nodes. A
non-zero polynomial of degree at most has at most distinct roots (Corollary 6.1.4), so
. The
number of nodes is what makes this
work, and the non-example below removes one.
Non-examples, by minimal change
Change a sign: the hyperbolic form on . Let . Bilinearity survives, since each term
is still linear in each slot, and so does symmetry. What
fails is (IP3), and the witness is : . The vector is worse still: it is non-zero, yet ,
so it would be a non-zero vector of length . Forms like are useful (they
are the subject of the chapter on bilinear forms), but
they are not inner products.
Drop the conjugate on . Let on . This map is linear
in both slots and symmetric, so it
satisfies (IP1) and looks tidier than the standard
product. Take . Then with . Clause (IP3) fails. This one example is the
whole reason for the conjugate: over , sums of squares
vanish on non-zero vectors, sums of squared
moduli do not.
Enlarge the space: drop continuity.
Keep the formula , but let be all
Riemann-integrable functions . Linearity
and symmetry are untouched. Let be at and elsewhere. It is
integrable, non-zero as a function, and .
Positivity fails, so is
only positive semidefinite here. There
are two standard repairs: restrict to continuous
functions, as above, or regard two functions as equal
when they differ on a negligible set. We take the first,
and every function space in this chapter will be a space
of continuous functions.
Remove a node. On , put : the node example with one node too
few. Bilinearity and symmetry hold. But is a non-zero
polynomial of degree with , so . The
clause that fails is (IP3), and it fails because two
nodes cannot pin down a quadratic.
Why this definition. Each clause
earns its place. Without (IP3) there can be non-zero
vectors with
,
and the proof of Theorem 11.1.1 (d)
breaks down, because pairing a vector with itself no
longer detects zero. (The form below
shows that the conclusion of (d) may survive anyway;
what is lost is the argument for it, and with it every
later proof that runs through .) Without (IP2) the diagonal values need
not be real, and “” is
meaningless. Linearity in the first slot rather than the
second is a convention, but once chosen it must be kept:
with (IP2) in place, linearity in one slot forces
conjugate-linearity in the other, so a map cannot be
linear in both unless .
Warning. The conjugate goes
in the second slot here, and books differ. With
our convention, and . Many books, especially
in physics, put the conjugate in the first slot, so that
their is our
.
Every formula involving a lone conjugate then flips.
When you read a formula elsewhere, check the convention
first; when you write one, say which you use.
Quick check. Is an inner product on ? If not, name the
clause that fails and give a witness.
Solution. No. It is bilinear, and
for , so (IP1) and (IP3) both hold. The clause
that fails is (IP2): with and we get but
.
Symmetrizing the cross term, to , repairs it.
Norms
By Theorem 11.1.1 (a),
the number is real
and , so it
has a unique non-negative real square root. That square
root is the length we were after.
Definition
11.1.3 (Induced Norm)
Let be an
inner product space. The norm of is the non-negative real square
root. A vector with is a
unit vector, and replacing a non-zero
by is called
normalizing it.
On with
the dot product this is the Euclidean length , and on it is . On it is , and on matrices it is the
Frobenius norm . By definition always, and this identity, read
from right to left, is the most-used step in the
chapter: work with the norm squared, then
expand.
Theorem
11.1.2 (Properties of the Induced Norm)
Let be an
inner product space over , and . Then:
- (a) , with
if
and only if ;
- (b) ;
- (c) .
Proof.
(a) Immediate
from Theorem 11.1.1 (a)
and the fact that a non-negative real number has square
root only when it
is .
(b) By (IP1) and
Theorem 11.1.1 (b),
using Theorem 0.6.2 (c).
Taking non-negative square roots gives , since .
(c) Expand one
slot at a time, by (IP1) and then Theorem 11.1.1 (b):
By (IP2), , and by Theorem 0.6.2 (c).
This gives the stated identity.
Part (c) is the workhorse. Over the middle term is
just , and the
identity is the familiar for vectors. Replacing
by gives ,
and adding the two versions gives the
parallelogram law We return to in the last
warning of this section.
Warning. A squared norm is
real and non-negative, never complex. If a
computation in a complex space produces , or a
negative number, something has gone wrong — most often a
missing conjugate. For , the correct value is , while the conjugate-free
expression
gives . Use the
answer as a check on the work.
Orthogonality and Pythagoras
With a norm in hand, the special relation
deserves its name.
Definition
11.1.4 (Orthogonal Vectors)
Let be an
inner product space. Vectors are
orthogonal, written , if . A
list is orthogonal if whenever
.
The relation is symmetric: if and
only if , so “” needs no
order. The zero vector is orthogonal to everything (Theorem 11.1.1
(c)), and by part (a) of the same result it is the
only vector orthogonal to itself. In
this is
perpendicularity in the usual sense, by the law of
cosines computation above: exactly
when . In , the vectors and are orthogonal,
since .
Theorem
11.1.3 (Pythagorean Theorem)
Let be an orthogonal list in an inner product
space. Then
Proof. Expand the left side by
(IP1) and Theorem 11.1.1 (b):
Every term with is , because the list is
orthogonal. What survives is , as claimed.
So orthogonality is exactly the condition under which
squared lengths add. This is why the relation is worth
naming, and why the rest of the chapter works so hard to
produce orthogonal vectors.
Warning. Over , the converse of
Pythagoras fails. By Theorem 11.1.2 (c),
says only that , not that . In
with ,
take and
: then , yet . Over the converse does
hold, since there does
nothing.
Theorem
11.1.4 (Orthogonal Non-zero Vectors Are
Independent)
Let be an orthogonal list of
non-zero vectors in an inner product
space. Then the list is linearly independent.
Idea. Start a dependence relation
in the standard way, and then do the one thing an inner
product allows: pair the relation with a single . Orthogonality kills
every term except the -th, and what is left is
with .
Proof. Let with . Fix and take the inner
product of both sides with . By (IP1) and Theorem 11.1.1 (c),
where the last equality holds because
for . Since
, Theorem 11.1.1 (a)
gives , so . As
was arbitrary, all the coefficients vanish, and the list
is linearly independent by Definition 1.4.1.
The hypothesis “non-zero” cannot be dropped: the list
is
orthogonal and dependent. With it, the result is a free
supply of independent lists, and this is what makes the
next section possible.
The
Cauchy–Schwarz inequality
Angles came from the formula . To define an angle by
that formula in an abstract space, we must know that the
right-hand side lies in . That is exactly the following inequality,
the most used inequality in the subject.
Theorem
11.1.5 (Cauchy–Schwarz Inequality)
Let be an
inner product space and . Then with equality if and only if the list is linearly
dependent.
Idea. Picture and in . Drop a
perpendicular from the tip of onto the line through
. The foot of the
perpendicular is a multiple , and the two legs
and of the resulting
right triangle have squared lengths adding to . Since one
leg has squared length , the inequality is just “a leg is
no longer than the hypotenuse”, and equality means the
other leg is .
The picture proves nothing in an abstract space, so we
check algebraically that for the right , and then let
Pythagoras do the work.
Proof. If , both sides are
by Theorem 11.1.1 (c),
and is
dependent, so the statement holds. Suppose , so , and put
Then , since by (IP1) and hence also . Now is a sum of two orthogonal vectors, so
Theorem 11.1.3 and
Theorem 11.1.2 (b)
give Since , dropping it gives , and taking
non-negative square roots proves the inequality.
Equality holds in exactly when
, that
is (Theorem 11.1.2 (a))
exactly when . If , the list is dependent. Conversely, suppose is dependent,
say
with not both
. Here , since would give with and hence , which we have
excluded. So with , and then , so . This proves the
equality case.
The proof is worth rereading for its shape: the
vector was
found from a picture and then
checked from the axioms. That is the
standard way to work in an abstract inner product
space.
Corollary
11.1.6 (Triangle Inequality)
Let be an
inner product space and . Then
Proof. For any complex number we have , as in the proof of Theorem 0.6.4. Hence,
by Theorem 11.1.2 (c)
and then Theorem 11.1.5,
Both and are , so taking square roots preserves the
inequality.
Together, Theorem 11.1.2 (a),
(b) and Corollary 11.1.6
say that is a
norm in the general sense studied in
Chapter 16. Chapter 16 also shows that not every norm
arises from an inner product; the last warning of this
section explains how to tell.
Definition
11.1.5 (Angle Between Vectors)
Let be a
real inner product space and let be
non-zero. The angle
between and
is the unique
with
The definition needs Theorem 11.1.5
twice over. Cauchy–Schwarz says the quotient has
absolute value at most , so it lies in ; and is a strictly
decreasing bijection from onto , so exactly one
qualifies.
Without the inequality the formula could ask for the
angle whose cosine is . Note also that if and
only if , so the definition is consistent with Definition 11.1.4.
Over there
is no angle, because is not
real. The quantity still makes
sense, and it still measures how far the two vectors are
from being orthogonal.
Example
(Three Angles)
Compute the angle between and in with the dot
product; between and in with ; and between and in with the
Frobenius inner product.
Solution. In : , , so and
.
In : , and . Hence so . The constant and the function are far from orthogonal
on , which is
believable: both are positive there.
In :
, so . The two matrices are orthogonal, with
. As a check on Pythagoras, has .
Quick check. In with the standard
inner product, compute
and . Check the answers against (IP2), and
against Cauchy–Schwarz.
Solution. , and . They are
conjugates, as (IP2) requires. For Cauchy–Schwarz, , while and
, so the inequality reads . It is
strict, which is right: and are independent.
Warning. Not every norm
comes from an inner product. A function can satisfy
positivity, homogeneity and the inequality of Corollary 11.1.6
without being for
any inner product. The test is the parallelogram law
: every
induced norm satisfies it, as we derived from Theorem 11.1.2 (c),
so a norm that violates it is induced by nothing. Take
on
with , . Then , so the left side of is , while the right side
is . Remarkably,
the law is not only necessary but sufficient; Exercise (C1: The parallelogram law characterizes inner-product norms)
proves the substance of that in , and Chapter 16
takes up general norms.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) State the three
axioms of an inner product on a vector space over or , and say in which
slot the map is linear.
- (b) Why must the
field be or
? Name the two
features used.
- (c) Explain why
is
always a real number.
- (d) True or false:
an inner product on a complex space is linear in the
second slot. Justify your answer.
- (e) State the
Cauchy–Schwarz inequality, its equality case, and one
place where the equality case is used.
- (f) True or false:
if in a complex inner
product space, then . Justify your answer.
Solution.
(a) (IP1) ; (IP2) ; (IP3) for
(Definition 11.1.1).
It is linear in the first
slot.
(b) Positivity,
so that has meaning and square roots exist, and
conjugation, so that is real
and non-negative over .
(c) By (IP2) with
, the number
equals its own conjugate, so its imaginary part is (Theorem 11.1.1
(a)).
(d) False. It is
conjugate-linear in the second slot:
(Theorem 11.1.1
(b)). For example, in with ,
while .
(e) , with equality if and only
if is
dependent (Theorem 11.1.5).
The inequality is what makes Definition 11.1.5
well posed: it puts the quotient
inside ,
where is
defined. The equality case then says which vectors sit
at the ends of that interval:
exactly for dependent pairs, that is, or .
(f) False. It
says only . In
with , take , : then
but .
B. Practice
Exercise
(B1: Determine which are inner products)
Determine which of the following are inner products
on the stated space. For those that are, verify the
axioms; for those that are not, name the clause that
fails and give an explicit witness.
- (a) On : .
- (b) On : .
- (c) On : .
- (d) On : .
- (e) On : .
Solution.
(a) An inner
product: it is the weighted product with weights . Bilinearity
and symmetry are clear, and forces .
(b) An inner
product. It is bilinear term by term, and symmetric
because the two cross terms are interchanged by swapping
and . For positivity,
complete the square: which is only if and , that is
.
(c) Not an inner
product. (IP2) fails: with and we get and
,
while (IP2) would require . Positivity fails too, at : .
(d) Not an inner
product. It is bilinear, and symmetric by Theorem 0.9.6 (3). But
(IP3) fails for , since and so . Replacing by repairs it:
that is the Frobenius inner product.
(e) An inner
product: the node example with the three distinct nodes
on .
Bilinearity and symmetry come from linearity of
evaluation. If , then has three distinct
roots and degree at most , so by Corollary 6.1.4.
Exercise
(B2: Norms and angles)
- (a) In with the dot
product, find , and the cosine
of the angle between and .
- (b) In with , compute , and . What is the
angle between and
?
- (c) In with the
Frobenius inner product, compute for .
Solution.
(a) and . Also , so . Cauchy–Schwarz reads , and it is
strict, as it must be for an independent pair.
(b) , so ; , so ;
and . The angle is : on a symmetric
interval, the constants are orthogonal to the odd
functions. Compare this with Example (Three Angles),
where the interval gave the angle instead.
The geometry depends on the inner product, not
only on the vectors.
(c) , so .
Exercise
(B3: Cauchy–Schwarz, concretely)
- (a) Verify Theorem 11.1.5 for
and
in
with the dot
product, and say whether the inequality is strict.
- (b) Deduce from Theorem 11.1.5 the
classical inequality for all real .
- (c) Hence show that
for all real .
Solution.
(a) , so , while . So , strictly. It must be strict, since and are not multiples of
each other.
(b) Apply Theorem 11.1.5 on
with the dot
product to and . Then , and ,
and squaring the inequality gives the claim.
(c) Take for all in (b). Then
and ,
so . Equality holds exactly when is a multiple of , that is,
when all the
are equal.
Exercise
(B4: A lower bound for a difference of norms)
Let be an
inner product space and . Prove that
Solution. Write . By
Corollary 11.1.6,
so . Swapping the
roles of and
gives , and by Theorem 11.1.2 (b).
The quantity is one of the two
numbers just bounded, so it is at most . This
proves the inequality.
C. Going deeper
Exercise
(C1: The parallelogram law characterizes inner-product
norms)
Let
be a norm on ,
that is, a function satisfying the three properties of Theorem 11.1.2 (a),
(b) and Corollary 11.1.6.
Suppose it satisfies the parallelogram law for all , and define .
- (a) Show that , that , and that .
- (b) Prove that for all
.
- (c) Deduce that
.
- (d) Granting that
for all , conclude that is an inner product
on whose
induced norm is .
Hint: for (b), apply the parallelogram law to the
pair , , and then to the pair ,
.
Solution.
(a) , using homogeneity.
Symmetry holds because , again by homogeneity with . Finally .
(b) Put
and , so that and . Apply the parallelogram law to and : since
and , Apply it to and :
since and , Subtracting the second from the first, the
terms
cancel, and dividing by gives , which is the claim.
(c) Take in (b). By (a),
,
so for all . Applying this with
in place of
, we get , and the left side is by (b).
(d) By (c) and
the granted homogeneity, is linear in its
second slot, and by the symmetry in (a) it is then
linear in the first as well, so (IP1) and (IP2) hold
(conjugation is trivial over ). For (IP3), for , since a norm vanishes only at . So is an inner
product, and its induced norm is .
Remark. The granted step in (d) is where
analysis enters: additivity from (c) gives for every rational by induction, and the
extension to real
uses that is continuous, which follows
from continuity of the norm. Nothing else in the
argument needs anything beyond the three norm
properties.
Exercise
(C2: Recovering the inner product from the norm)
Let be an
inner product space over .
- (a) For , prove the
polarization identity .
- (b) For , prove that
- (c) Deduce that two
inner products on
with the same induced norm are equal.
Solution.
(a) By Theorem 11.1.2 (c)
and its version with , and since is the
identity on ,
Dividing by gives the
identity.
(b) Write . By Theorem 11.1.2 (c)
and Theorem 11.1.1 (b),
where we used . Now , so the terms
contribute nothing. Writing with , the four
remaining terms are, for , since ,
, and . Their sum is , and dividing by gives the
identity.
(c) Both (a) and
(b) express using only
the norm. So if two inner products induce the same norm,
the right-hand sides agree for all , hence so do the
left-hand sides.
Exercise
(C3: The equality cases)
Let be an
inner product space.
- (a) Prove that if and only if one of is a
non-negative real multiple of the
other.
- (b) Deduce the
equality condition in the classical inequality of Exercise (B3: Cauchy–Schwarz, concretely)
(b): for real , equality holds if and only if one of the
vectors , is a multiple of the other.
- (c) Give real
numbers ,
not all zero, with and equality in the classical
inequality, and explain why this does
not contradict (a).
Solution.
- (a) If both sides are
. If with , then by Theorem 11.1.2 (b).
Suppose . Squaring and using Theorem 11.1.2 (c),
The chain in the proof of Corollary 11.1.6 is
therefore an equality throughout, so . The second equality and Theorem 11.1.5 make
dependent.
Assume
(otherwise
and we are done) and write . Then , and the first equality says , so , which forces to be real and .
(b) Apply Theorem 11.1.5 on
as in Exercise (B3: Cauchy–Schwarz, concretely)
(b). Squaring removes the sign, so equality in the
squared inequality is equality in , which by Theorem 11.1.5
holds exactly when is dependent, that is, when one of the two
vectors is a multiple of the other.
(c) Take , , : then and both
sides of the classical inequality equal . There is no
contradiction with (a), because (a) is about equality in
Corollary 11.1.6,
which needs a non-negative multiple, while the classical
inequality is the squared
Cauchy–Schwarz inequality, which is blind to the sign.
Here .