11.1  Inner Products and Norms

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 3, 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 Rn that already computes lengths and angles: the dot product.

11.1.1. The field for this chapter

Throughout Chapter 11 the field F is R or C. 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 ⟨v,v⟩ should be the square of a length, so it must be a number we can compare with 0. Over Fp there is no ordering compatible with the arithmetic at all: in F5, adding 1 to itself five times returns to 0, so no non-zero element can be called “positive” in any useful sense. Over Q there is an ordering, but lengths would not exist, since 2∉Q. Over R every sum of squares is ≥0 and every non-negative number has a square root, and that is exactly what we need.

The second is conjugation. Over C the naive sum of squares fails immediately: 12+i2=0, so “z12+z22” is not a length for (1,i)≠0. The repair is to use zz―=|z|2 instead of z2 (Theorem 0.6.2 (c)), and this needs the complex conjugate. We write a― for the conjugate of a∈F, with the convention that a―=a when F=R; every formula below then reads correctly over both fields at once.

11.1.2. From the dot product to the axioms

In Rn the dot product is x⋅y=x1y1+⋯+xnyn. It computes lengths, because x⋅x=x12+⋯+xn2 is the square of the Euclidean length by Pythagoras. It computes angles too. For non-zero x,y∈R2 at an angle θ, the law of cosines applied to the triangle with sides x, y and x−y says ‖x−y‖2=‖x‖2+‖y‖2−2‖x‖‖y‖cos⁡θ, while expanding the left side entry by entry gives ‖x‖2+‖y‖2−2(x⋅y). Comparing the two, x⋅y=‖x‖‖y‖cos⁡θ. So one bilinear expression carries both length and angle, and perpendicularity is the single equation x⋅y=0.

Which properties of the dot product did that argument use? Only three: it is linear in each slot separately, it is symmetric, and x⋅x>0 for x≠0. Those three we can demand of an abstract space. Over C, 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 F be R or C, and let V be a vector space over F. An inner product on V is a map ⟨⋅,⋅⟩:V×V→F such that for all u,v,w∈V and all a,b∈F:

  • (IP1) ⟨au+bv,w⟩=a⟨u,w⟩+b⟨v,w⟩ (linear in the first slot);
  • (IP2) ⟨v,u⟩=⟨u,v⟩― (conjugate symmetry);
  • (IP3) ⟨v,v⟩>0 for every non-zero v∈V (positive definiteness).

A vector space equipped with an inner product is an inner product space. When F=R it is a real inner product space, when F=C 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 V: 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 R it is plain symmetry, ⟨v,u⟩=⟨u,v⟩. (IP3) says that a non-zero vector pairs with itself to give a strictly positive number. For the inequality in (IP3) to mean anything, ⟨v,v⟩ 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 ⟨u,v⟩ for u≠v, 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 V be an inner product space over F. For all u,v,w∈V and a,b∈F:

  • (a) ⟨v,v⟩ is a real number, and ⟨v,v⟩≥0 with equality if and only if v=0;
  • (b) ⟨u,av+bw⟩=a―⟨u,v⟩+b―⟨u,w⟩ (conjugate-linear in the second slot);
  • (c) ⟨0,v⟩=⟨v,0⟩=0;
  • (d) if ⟨u,w⟩=⟨v,w⟩ for every w∈V, then u=v.

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 u=v, ⟨v,v⟩=⟨v,v⟩―, and a complex number equal to its own conjugate has zero imaginary part, so ⟨v,v⟩∈R. If v≠0, then ⟨v,v⟩>0 by (IP3). If v=0, then ⟨0,0⟩=⟨0⋅0,0⟩=0⟨0,0⟩=0 by (IP1). Hence ⟨v,v⟩≥0 always, with equality exactly when v=0.

  • (b) Using (IP2), then (IP1), then (IP2) again, ⟨u,av+bw⟩=⟨av+bw,u⟩―=a⟨v,u⟩+b⟨w,u⟩―=a―⟨v,u⟩―+b―⟨w,u⟩―=a―⟨u,v⟩+b―⟨u,w⟩, where the third equality uses Theorem 0.6.2 (a) and (b).

  • (c) ⟨0,v⟩=⟨0⋅0,v⟩=0⟨0,v⟩=0 by (IP1), and ⟨v,0⟩=⟨0,v⟩―=0 by (IP2).

  • (d) Put z=u−v. For every w, (IP1) gives ⟨z,w⟩=⟨u,w⟩−⟨v,w⟩=0. Take w=z: then ⟨z,z⟩=0, so z=0 by (a), that is, u=v.

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 ⟨z,z⟩=0 is a proof that z=0.

Part (b) is where the conjugate becomes visible in practice. An inner product over C 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”.

11.1.3. Examples

The dot product on Rn. Define ⟨x,y⟩=x1y1+⋯+xnyn. (IP1) holds because each term is linear in xi; (IP2) is the commutativity of multiplication in R, and conjugation is the identity; (IP3) holds because ⟨x,x⟩=x12+⋯+xn2 is a sum of squares of real numbers, which is 0 only when every xi=0. This is the standard inner product on Rn, and it is the model for everything else.

The standard inner product on Cn. Define ⟨x,y⟩=x1y1―+⋯+xnyn―. (IP1) is clear. For (IP2), ⟨x,y⟩―=∑xi―yi=⟨y,x⟩ by Theorem 0.6.2 (a), (b). For (IP3), ⟨x,x⟩=∑xixi―=∑|xi|2 by Theorem 0.6.2 (c), a sum of non-negative real numbers, zero only when every xi=0. The conjugates are doing exactly one job: making the diagonal values real and non-negative.

Weighted inner products. Fix real numbers w1,…,wn>0 and put ⟨x,y⟩=∑iwixiyi― on Fn. The same three checks go through, with ⟨x,x⟩=∑wi|xi|2; the weights must be strictly positive, or (IP3) fails for a standard basis vector. In the degenerate case n=1 and w1=1, this is ⟨x,y⟩=xy― on F 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 V=C[0,1] be the space of continuous functions f:[0,1]→F, and set ⟨f,g⟩=∫01f(t)g(t)―dt. (IP1) is linearity of the integral, and (IP2) follows because conjugation commutes with integration. For (IP3), ⟨f,f⟩=∫01|f(t)|2dt≥0, and we must rule out equality for f≠0. Here is the one fact from analysis we assume: if f is continuous and f(c)≠0 for some c, then |f|≥|f(c)|/2 on some interval of positive length δ around c, so ∫01|f|2≥δ|f(c)|2/4>0. 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 A∈Mm×n(F), the conjugate transpose A∗∈Mn×m(F) is the matrix with entries (A∗)ij=aji―. A square matrix with A∗=A is Hermitian.

Over R, A∗=A⊤ and Hermitian means symmetric (Definition 0.9.11). Now on V=Mm×n(F) define ⟨A,B⟩=tr(B∗A). Writing out the trace, tr(B∗A)=∑j∑ibij―aij, so this is the standard inner product of Fmn after listing the entries in a column. In particular (IP1)–(IP3) hold, with ⟨A,A⟩=∑i,j|aij|2. This is the Frobenius inner product; for n=1 it is the standard inner product on Fm.

Polynomials sampled at nodes. Fix n+1 distinct scalars c0,…,cn∈F and define, on V=F[x]≤n, ⟨p,q⟩=∑i=0np(ci)q(ci)―. (IP1) and (IP2) hold because evaluation at ci is linear (Theorem 0.8.5) and the standard inner product on Fn+1 has them; indeed ⟨p,q⟩ is the standard inner product of the sample vectors (p(c0),…,p(cn)) and (q(c0),…,q(cn)). Positivity is the interesting clause. If ⟨p,p⟩=∑|p(ci)|2=0, then p vanishes at all n+1 distinct nodes. A non-zero polynomial of degree at most n has at most n distinct roots (Corollary 6.1.4), so p=0. The number of nodes is what makes this work, and the non-example below removes one.

11.1.4. Non-examples, by minimal change

Change a sign: the hyperbolic form on R2. Let β(x,y)=x1y1−x2y2. Bilinearity survives, since each term is still linear in each slot, and so does symmetry. What fails is (IP3), and the witness is e2: β(e2,e2)=−1<0. The vector (1,1) is worse still: it is non-zero, yet β((1,1),(1,1))=0, so it would be a non-zero vector of length 0. Forms like β are useful (they are the subject of the chapter on bilinear forms), but they are not inner products.

Drop the conjugate on C2. Let ⟨u,v⟩=u⊤v=u1v1+u2v2 on C2. This map is linear in both slots and symmetric, so it satisfies (IP1) and looks tidier than the standard product. Take u=(1,i). Then ⟨u,u⟩=12+i2=1−1=0, with u≠0. Clause (IP3) fails. This one example is the whole reason for the conjugate: over C, sums of squares vanish on non-zero vectors, sums of squared moduli do not.

Enlarge the space: drop continuity. Keep the formula ⟨f,g⟩=∫01fg, but let V be all Riemann-integrable functions [0,1]→R. Linearity and symmetry are untouched. Let f be 1 at t=12 and 0 elsewhere. It is integrable, non-zero as a function, and ∫01f2=0. 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 R[x]≤2, put ⟨p,q⟩=p(0)q(0)+p(1)q(1): the node example with one node too few. Bilinearity and symmetry hold. But p=x2−x is a non-zero polynomial of degree 2 with p(0)=p(1)=0, so ⟨p,p⟩=0. 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 v with ⟨v,v⟩=0, and the proof of Theorem 11.1.1 (d) breaks down, because pairing a vector with itself no longer detects zero. (The form x1y1−x2y2 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 ⟨v,v⟩=0⇒v=0.) Without (IP2) the diagonal values need not be real, and “⟨v,v⟩>0” 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 F=R.

Warning. The conjugate goes in the second slot here, and books differ. With our convention, ⟨au,v⟩=a⟨u,v⟩ and ⟨u,av⟩=a―⟨u,v⟩. Many books, especially in physics, put the conjugate in the first slot, so that their ⟨u,v⟩ is our ⟨v,u⟩. 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 ⟨x,y⟩=x1y1+x2y2+x1y2 an inner product on R2? If not, name the clause that fails and give a witness.

Solution. No. It is bilinear, and ⟨x,x⟩=x12+x22+x1x2=(x1+12x2)2+34x22>0 for x≠0, so (IP1) and (IP3) both hold. The clause that fails is (IP2): with u=e1 and v=e2 we get ⟨u,v⟩=1 but ⟨v,u⟩=0. Symmetrizing the cross term, to x1y1+x2y2+12(x1y2+x2y1), repairs it.

11.1.5. Norms

By Theorem 11.1.1 (a), the number ⟨v,v⟩ is real and ≥0, 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 V be an inner product space. The norm of v∈V is ‖v‖:=⟨v,v⟩, the non-negative real square root. A vector with ‖v‖=1 is a unit vector, and replacing a non-zero v by v/‖v‖ is called normalizing it.

On Rn with the dot product this is the Euclidean length x12+⋯+xn2, and on Cn it is ∑|xi|2. On C[0,1] it is (∫01|f|2)1/2, and on matrices it is the Frobenius norm (∑|aij|2)1/2. By definition ‖v‖2=⟨v,v⟩ 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 V be an inner product space over F, u,v∈V and c∈F. Then:

  • (a) ‖v‖≥0, with ‖v‖=0 if and only if v=0;
  • (b) ‖cv‖=|c|‖v‖;
  • (c) ‖u+v‖2=‖u‖2+2Re⟨u,v⟩+‖v‖2.

Proof.

  • (a) Immediate from Theorem 11.1.1 (a) and the fact that a non-negative real number has square root 0 only when it is 0.

  • (b) By (IP1) and Theorem 11.1.1 (b), ⟨cv,cv⟩=cc―⟨v,v⟩=|c|2‖v‖2 using Theorem 0.6.2 (c). Taking non-negative square roots gives ‖cv‖=|c|‖v‖, since |c|≥0.

  • (c) Expand one slot at a time, by (IP1) and then Theorem 11.1.1 (b): ‖u+v‖2=⟨u+v,u+v⟩=⟨u,u⟩+⟨u,v⟩+⟨v,u⟩+⟨v,v⟩. By (IP2), ⟨v,u⟩=⟨u,v⟩―, and z+z―=2Rez by Theorem 0.6.2 (c). This gives the stated identity.

Part (c) is the workhorse. Over R the middle term is just 2⟨u,v⟩, and the identity is the familiar (a+b)2=a2+2ab+b2 for vectors. Replacing v by −v gives ‖u−v‖2=‖u‖2−2Re⟨u,v⟩+‖v‖2, and adding the two versions gives the parallelogram law (∗)‖u+v‖2+‖u−v‖2=2‖u‖2+2‖v‖2. 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 ‖v‖2=2i, or a negative number, something has gone wrong — most often a missing conjugate. For v=(1,i)∈C2, the correct value is ‖v‖2=|1|2+|i|2=2, while the conjugate-free expression v⊤v gives 0. Use the answer as a check on the work.

11.1.6. Orthogonality and Pythagoras

With a norm in hand, the special relation ⟨u,v⟩=0 deserves its name.

Definition 11.1.4 (Orthogonal Vectors)

Let V be an inner product space. Vectors u,v∈V are orthogonal, written u⊥v, if ⟨u,v⟩=0. A list (v1,…,vk) is orthogonal if vi⊥vj whenever i≠j.

The relation is symmetric: ⟨u,v⟩=0 if and only if ⟨v,u⟩=⟨u,v⟩―=0, so “u⊥v” 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 Rn this is perpendicularity in the usual sense, by the law of cosines computation above: cos⁡θ=0 exactly when x⋅y=0. In C2, the vectors (1,i) and (1,−i) are orthogonal, since 1⋅1―+i⋅(−i)―=1+i⋅i=0.

Theorem 11.1.3 (Pythagorean Theorem)

Let (v1,…,vk) be an orthogonal list in an inner product space. Then ‖v1+⋯+vk‖2=‖v1‖2+⋯+‖vk‖2.

Proof. Expand the left side by (IP1) and Theorem 11.1.1 (b): ⟨∑ivi, ∑jvj⟩=∑i∑j⟨vi,vj⟩. Every term with i≠j is 0, because the list is orthogonal. What survives is ∑i⟨vi,vi⟩=∑i‖vi‖2, 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 C, the converse of Pythagoras fails. By Theorem 11.1.2 (c), ‖u+v‖2=‖u‖2+‖v‖2 says only that Re⟨u,v⟩=0, not that ⟨u,v⟩=0. In C with ⟨z,w⟩=zw―, take u=1 and v=i: then ⟨u,v⟩=i―=−i≠0, yet ‖1+i‖2=2=‖1‖2+‖i‖2. Over R the converse does hold, since there Re does nothing.

Theorem 11.1.4 (Orthogonal Non-zero Vectors Are Independent)

Let (v1,…,vk) 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 vj. Orthogonality kills every term except the j-th, and what is left is aj‖vj‖2=0 with ‖vj‖≠0.

Proof. Let a1v1+⋯+akvk=0 with a1,…,ak∈F. Fix j and take the inner product of both sides with vj. By (IP1) and Theorem 11.1.1 (c), 0=⟨∑iaivi, vj⟩=∑iai⟨vi,vj⟩=aj‖vj‖2, where the last equality holds because ⟨vi,vj⟩=0 for i≠j. Since vj≠0, Theorem 11.1.1 (a) gives ‖vj‖2>0, so aj=0. As j 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 (e1,0) is orthogonal and dependent. With it, the result is a free supply of independent lists, and this is what makes the next section possible.

11.1.7. The Cauchy–Schwarz inequality

Angles came from the formula cos⁡θ=(x⋅y)/(‖x‖‖y‖). To define an angle by that formula in an abstract space, we must know that the right-hand side lies in [−1,1]. That is exactly the following inequality, the most used inequality in the subject.

Theorem 11.1.5 (Cauchy–Schwarz Inequality)

Let V be an inner product space and u,v∈V. Then |⟨u,v⟩|≤‖u‖‖v‖, with equality if and only if the list (u,v) is linearly dependent.

Idea. Picture u and v in R2. Drop a perpendicular from the tip of u onto the line through v. The foot of the perpendicular is a multiple cv, and the two legs cv and u−cv of the resulting right triangle have squared lengths adding to ‖u‖2. Since one leg has squared length |⟨u,v⟩|2/‖v‖2, the inequality is just “a leg is no longer than the hypotenuse”, and equality means the other leg is 0. The picture proves nothing in an abstract space, so we check algebraically that u−cv⊥v for the right c, and then let Pythagoras do the work.

Proof. If v=0, both sides are 0 by Theorem 11.1.1 (c), and (u,0) is dependent, so the statement holds. Suppose v≠0, so ‖v‖>0, and put c=⟨u,v⟩‖v‖2,z=u−cv. Then z⊥v, since by (IP1) ⟨z,v⟩=⟨u,v⟩−c⟨v,v⟩=⟨u,v⟩−⟨u,v⟩=0, and hence also z⊥cv. Now u=z+cv is a sum of two orthogonal vectors, so Theorem 11.1.3 and Theorem 11.1.2 (b) give (†)‖u‖2=‖z‖2+|c|2‖v‖2=‖z‖2+|⟨u,v⟩|2‖v‖2. Since ‖z‖2≥0, dropping it gives ‖u‖2‖v‖2≥|⟨u,v⟩|2, and taking non-negative square roots proves the inequality.

Equality holds in (†) exactly when ‖z‖=0, that is (Theorem 11.1.2 (a)) exactly when u=cv. If u=cv, the list (u,v) is dependent. Conversely, suppose (u,v) is dependent, say au+bv=0 with a,b not both 0. Here a≠0, since a=0 would give bv=0 with b≠0 and hence v=0, which we have excluded. So u=dv with d=−b/a, and then c=d⟨v,v⟩/‖v‖2=d, so z=0. This proves the equality case.

The proof is worth rereading for its shape: the vector z 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 V be an inner product space and u,v∈V. Then ‖u+v‖≤‖u‖+‖v‖.

Proof. For any complex number z we have Rez≤|z|, as in the proof of Theorem 0.6.4. Hence, by Theorem 11.1.2 (c) and then Theorem 11.1.5, ‖u+v‖2=‖u‖2+2Re⟨u,v⟩+‖v‖2≤‖u‖2+2|⟨u,v⟩|+‖v‖2≤‖u‖2+2‖u‖‖v‖+‖v‖2=(‖u‖+‖v‖)2. Both ‖u+v‖ and ‖u‖+‖v‖ are ≥0, 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 V be a real inner product space and let u,v∈V be non-zero. The angle between u and v is the unique θ∈[0,π] with cos⁡θ=⟨u,v⟩‖u‖‖v‖.

The definition needs Theorem 11.1.5 twice over. Cauchy–Schwarz says the quotient has absolute value at most 1, so it lies in [−1,1]; and cos is a strictly decreasing bijection from [0,π] onto [−1,1], so exactly one θ qualifies. Without the inequality the formula could ask for the angle whose cosine is 7. Note also that θ=π/2 if and only if ⟨u,v⟩=0, so the definition is consistent with Definition 11.1.4.

Over C there is no angle, because ⟨u,v⟩ is not real. The quantity |⟨u,v⟩|/(‖u‖‖v‖)∈[0,1] still makes sense, and it still measures how far the two vectors are from being orthogonal.

Example (Three Angles)

Compute the angle between u=(1,1,0) and v=(1,0,1) in R3 with the dot product; between p=1 and q=x in R[x]≤1 with ⟨p,q⟩=∫01pq; and between A=(1111) and B=(1−11−1) in M2(R) with the Frobenius inner product.

Solution. In R3: ⟨u,v⟩=1, ‖u‖=‖v‖=2, so cos⁡θ=1/2 and θ=π/3.

In R[x]≤1: ⟨1,x⟩=∫01tdt=12, ‖1‖2=∫011=1 and ‖x‖2=∫01t2dt=13. Hence cos⁡θ=1/21⋅1/3=32, so θ=π/6. The constant 1 and the function x are far from orthogonal on [0,1], which is believable: both are positive there.

In M2(R): ⟨A,B⟩=1−1+1−1=0, so θ=π/2. The two matrices are orthogonal, with ‖A‖=‖B‖=2. As a check on Pythagoras, A+B=(2020) has ‖A+B‖2=8=4+4.

Quick check. In C2 with the standard inner product, compute ⟨(1,i),(1,1)⟩ and ⟨(1,1),(1,i)⟩. Check the answers against (IP2), and against Cauchy–Schwarz.

Solution. ⟨(1,i),(1,1)⟩=1⋅1―+i⋅1―=1+i, and ⟨(1,1),(1,i)⟩=1⋅1―+1⋅i―=1−i. They are conjugates, as (IP2) requires. For Cauchy–Schwarz, |1+i|=2, while ‖(1,i)‖=2 and ‖(1,1)‖=2, so the inequality reads 2≤2. It is strict, which is right: (1,i) and (1,1) 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 ⟨v,v⟩ 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 ‖x‖∞=max(|x1|,|x2|) on R2 with u=e1, v=e2. Then ‖u+v‖∞=‖u−v‖∞=1, so the left side of (∗) is 2, while the right side is 4. Remarkably, the law is not only necessary but sufficient; Exercise (C1: The parallelogram law characterizes inner-product norms) proves the substance of that in R2, and Chapter 16 takes up general norms.

11.1.8. Exercises

A. Check your understanding

Exercise (A1)
  • (a) State the three axioms of an inner product on a vector space over F=R or C, and say in which slot the map is linear.
  • (b) Why must the field be R or C? Name the two features used.
  • (c) Explain why ⟨v,v⟩ 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 ‖u+v‖2=‖u‖2+‖v‖2 in a complex inner product space, then u⊥v. Justify your answer.

Solution.

  • (a) (IP1) ⟨au+bv,w⟩=a⟨u,w⟩+b⟨v,w⟩; (IP2) ⟨v,u⟩=⟨u,v⟩―; (IP3) ⟨v,v⟩>0 for v≠0 (Definition 11.1.1). It is linear in the first slot.

  • (b) Positivity, so that ⟨v,v⟩>0 has meaning and square roots exist, and conjugation, so that ⟨v,v⟩ is real and non-negative over C.

  • (c) By (IP2) with u=v, the number equals its own conjugate, so its imaginary part is 0 (Theorem 11.1.1 (a)).

  • (d) False. It is conjugate-linear in the second slot: ⟨u,av⟩=a―⟨u,v⟩ (Theorem 11.1.1 (b)). For example, in C with ⟨z,w⟩=zw―, ⟨1,i⟩=−i while i⟨1,1⟩=i.

  • (e) |⟨u,v⟩|≤‖u‖‖v‖, with equality if and only if (u,v) is dependent (Theorem 11.1.5). The inequality is what makes Definition 11.1.5 well posed: it puts the quotient ⟨u,v⟩/(‖u‖‖v‖) inside [−1,1], where arccos is defined. The equality case then says which vectors sit at the ends of that interval: cos⁡θ=±1 exactly for dependent pairs, that is, θ=0 or θ=π.

  • (f) False. It says only Re⟨u,v⟩=0. In C with ⟨z,w⟩=zw―, take u=1, v=i: then ⟨u,v⟩=−i≠0 but ‖1+i‖2=2=1+1.

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 R2: ⟨x,y⟩=x1y1+3x2y2.
  • (b) On R2: ⟨x,y⟩=x1y1+x1y2+x2y1+2x2y2.
  • (c) On C2: ⟨x,y⟩=x1y1―+x2y2.
  • (d) On M2(R): ⟨A,B⟩=tr(AB).
  • (e) On R[x]≤2: ⟨p,q⟩=p(0)q(0)+p(1)q(1)+p(2)q(2).

Solution.

  • (a) An inner product: it is the weighted product with weights 1,3>0. Bilinearity and symmetry are clear, and ⟨x,x⟩=x12+3x22=0 forces x1=x2=0.

  • (b) An inner product. It is bilinear term by term, and symmetric because the two cross terms are interchanged by swapping x and y. For positivity, complete the square: ⟨x,x⟩=x12+2x1x2+2x22=(x1+x2)2+x22, which is 0 only if x2=0 and x1+x2=0, that is x=0.

  • (c) Not an inner product. (IP2) fails: with x=(0,1) and y=(0,i) we get ⟨x,y⟩=i and ⟨y,x⟩=i, while (IP2) would require ⟨y,x⟩=i―=−i. Positivity fails too, at x=(0,i): ⟨x,x⟩=i2=−1.

  • (d) Not an inner product. It is bilinear, and symmetric by Theorem 0.9.6 (3). But (IP3) fails for N=(0100)≠0, since N2=0 and so ⟨N,N⟩=tr(N2)=0. Replacing tr(AB) by tr(B⊤A) repairs it: that is the Frobenius inner product.

  • (e) An inner product: the node example with the three distinct nodes 0,1,2 on R[x]≤2. Bilinearity and symmetry come from linearity of evaluation. If ⟨p,p⟩=p(0)2+p(1)2+p(2)2=0, then p has three distinct roots and degree at most 2, so p=0 by Corollary 6.1.4.

Exercise (B2: Norms and angles)
  • (a) In R3 with the dot product, find ‖u‖, ‖v‖ and the cosine of the angle between u=(1,2,2) and v=(2,−1,2).
  • (b) In R[x]≤2 with ⟨p,q⟩=∫−11pq, compute ‖1‖, ‖x‖ and ⟨1,x⟩. What is the angle between 1 and x?
  • (c) In M2(C) with the Frobenius inner product, compute ‖A‖ for A=(1i01+i).

Solution.

  • (a) ‖u‖=1+4+4=3 and ‖v‖=4+1+4=3. Also ⟨u,v⟩=2−2+4=4, so cos⁡θ=4/9. Cauchy–Schwarz reads 4≤9, and it is strict, as it must be for an independent pair.

  • (b) ‖1‖2=∫−111dt=2, so ‖1‖=2; ‖x‖2=∫−11t2dt=23, so ‖x‖=2/3; and ⟨1,x⟩=∫−11tdt=0. The angle is π/2: on a symmetric interval, the constants are orthogonal to the odd functions. Compare this with Example (Three Angles), where the interval [0,1] gave the angle π/6 instead. The geometry depends on the inner product, not only on the vectors.

  • (c) ‖A‖2=|1|2+|i|2+0+|1+i|2=1+1+2=4, so ‖A‖=2.

Exercise (B3: Cauchy–Schwarz, concretely)
  • (a) Verify Theorem 11.1.5 for a=(1,2,3) and b=(3,2,1) in R3 with the dot product, and say whether the inequality is strict.
  • (b) Deduce from Theorem 11.1.5 the classical inequality (∑i=1naibi)2≤(∑i=1nai2)(∑i=1nbi2) for all real ai,bi.
  • (c) Hence show that (a1+⋯+an)2≤n(a12+⋯+an2) for all real ai.

Solution.

  • (a) ⟨a,b⟩=3+4+3=10, so |⟨a,b⟩|2=100, while ‖a‖2‖b‖2=14⋅14=196. So 10≤14, strictly. It must be strict, since a and b are not multiples of each other.

  • (b) Apply Theorem 11.1.5 on Rn with the dot product to a=(a1,…,an) and b=(b1,…,bn). Then ⟨a,b⟩=∑aibi, ‖a‖2=∑ai2 and ‖b‖2=∑bi2, and squaring the inequality |⟨a,b⟩|≤‖a‖‖b‖ gives the claim.

  • (c) Take bi=1 for all i in (b). Then ∑aibi=∑ai and ∑bi2=n, so (∑ai)2≤n∑ai2. Equality holds exactly when a is a multiple of (1,…,1), that is, when all the ai are equal.

Exercise (B4: A lower bound for a difference of norms)

Let V be an inner product space and u,v∈V. Prove that |‖u‖−‖v‖|≤‖u−v‖.

Solution. Write u=(u−v)+v. By Corollary 11.1.6, ‖u‖≤‖u−v‖+‖v‖, so ‖u‖−‖v‖≤‖u−v‖. Swapping the roles of u and v gives ‖v‖−‖u‖≤‖v−u‖, and ‖v−u‖=|−1|‖u−v‖=‖u−v‖ by Theorem 11.1.2 (b). The quantity |‖u‖−‖v‖| is one of the two numbers just bounded, so it is at most ‖u−v‖. This proves the inequality.

C. Going deeper

Exercise (C1: The parallelogram law characterizes inner-product norms)

Let ‖⋅‖ be a norm on R2, that is, a function R2→R satisfying the three properties of Theorem 11.1.2 (a), (b) and Corollary 11.1.6. Suppose it satisfies the parallelogram law ‖u+v‖2+‖u−v‖2=2‖u‖2+2‖v‖2 for all u,v, and define β(u,v)=14(‖u+v‖2−‖u−v‖2).

  • (a) Show that β(u,u)=‖u‖2, that β(u,v)=β(v,u), and that β(u,0)=0.
  • (b) Prove that β(u,v)+β(u,w)=2β(u,12(v+w)) for all u,v,w.
  • (c) Deduce that β(u,v)+β(u,w)=β(u,v+w).
  • (d) Granting that β(u,tv)=tβ(u,v) for all t∈R, conclude that β is an inner product on R2 whose induced norm is ‖⋅‖.

Hint: for (b), apply the parallelogram law to the pair u+12(v+w), 12(v−w), and then to the pair u−12(v+w), 12(w−v).

Solution.

  • (a) β(u,u)=14(‖2u‖2−‖0‖2)=14⋅4‖u‖2=‖u‖2, using homogeneity. Symmetry holds because ‖v−u‖=‖u−v‖, again by homogeneity with c=−1. Finally β(u,0)=14(‖u‖2−‖u‖2)=0.

  • (b) Put m=12(v+w) and d=12(v−w), so that v=m+d and w=m−d. Apply the parallelogram law to u+m and d: since (u+m)+d=u+v and (u+m)−d=u+w, ‖u+v‖2+‖u+w‖2=2‖u+m‖2+2‖d‖2. Apply it to u−m and d: since (u−m)−d=u−v and (u−m)+d=u−w, ‖u−v‖2+‖u−w‖2=2‖u−m‖2+2‖d‖2. Subtracting the second from the first, the terms 2‖d‖2 cancel, and dividing by 4 gives β(u,v)+β(u,w)=2β(u,m), which is the claim.

  • (c) Take w=0 in (b). By (a), β(u,0)=0, so β(u,v)=2β(u,12v) for all v. Applying this with v+w in place of v, we get 2β(u,12(v+w))=β(u,v+w), and the left side is β(u,v)+β(u,w) 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 R). For (IP3), β(u,u)=‖u‖2>0 for u≠0, since a norm vanishes only at 0. So β is an inner product, and its induced norm is β(u,u)=‖u‖.

Remark. The granted step in (d) is where analysis enters: additivity from (c) gives β(u,tv)=tβ(u,v) for every rational t by induction, and the extension to real t uses that t↦β(u,tv) 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 V be an inner product space over F.

  • (a) For F=R, prove the polarization identity ⟨u,v⟩=14(‖u+v‖2−‖u−v‖2).
  • (b) For F=C, prove that ⟨u,v⟩=14∑k=03ik‖u+ikv‖2.
  • (c) Deduce that two inner products on V with the same induced norm are equal.

Solution.

  • (a) By Theorem 11.1.2 (c) and its version with −v, and since Re is the identity on R, ‖u+v‖2−‖u−v‖2=4⟨u,v⟩. Dividing by 4 gives the identity.

  • (b) Write z=⟨u,v⟩. By Theorem 11.1.2 (c) and Theorem 11.1.1 (b), ‖u+ikv‖2=‖u‖2+‖v‖2+2Re(ik―z), where we used ‖ikv‖=|ik|‖v‖=‖v‖. Now ∑k=03ik=1+i−1−i=0, so the terms ‖u‖2+‖v‖2 contribute nothing. Writing z=a+bi with a,b∈R, the four remaining terms 2ikRe(ik―z) are, for k=0,1,2,3, 2a,2ib,2a,2ib, since Re(z)=a, Re(−iz)=b, Re(−z)=−a and Re(iz)=−b. Their sum is 4a+4bi=4z, and dividing by 4 gives the identity.

  • (c) Both (a) and (b) express ⟨u,v⟩ using only the norm. So if two inner products induce the same norm, the right-hand sides agree for all u,v, hence so do the left-hand sides.

Exercise (C3: The equality cases)

Let V be an inner product space.

  • (a) Prove that ‖u+v‖=‖u‖+‖v‖ if and only if one of u,v 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 ai,bi, equality holds if and only if one of the vectors (a1,…,an), (b1,…,bn) is a multiple of the other.
  • (c) Give real numbers ai,bi, not all zero, with ∑aibi<0 and equality in the classical inequality, and explain why this does not contradict (a).

Solution.

  • (a) (⇐) If v=0 both sides are ‖u‖. If u=tv with t≥0, then ‖u+v‖=(t+1)‖v‖=t‖v‖+‖v‖=‖u‖+‖v‖ by Theorem 11.1.2 (b).

    (⇒) Suppose ‖u+v‖=‖u‖+‖v‖. Squaring and using Theorem 11.1.2 (c), 2Re⟨u,v⟩=2‖u‖‖v‖. The chain in the proof of Corollary 11.1.6 is therefore an equality throughout, so Re⟨u,v⟩=|⟨u,v⟩|=‖u‖‖v‖. The second equality and Theorem 11.1.5 make (u,v) dependent. Assume v≠0 (otherwise v=0u and we are done) and write u=cv. Then ⟨u,v⟩=c‖v‖2, and the first equality says Re(c)‖v‖2=|c|‖v‖2, so Rec=|c|, which forces c to be real and ≥0.

  • (b) Apply Theorem 11.1.5 on Rn as in Exercise (B3: Cauchy–Schwarz, concretely) (b). Squaring removes the sign, so equality in the squared inequality is equality in |⟨a,b⟩|=‖a‖‖b‖, which by Theorem 11.1.5 holds exactly when (a,b) is dependent, that is, when one of the two vectors is a multiple of the other.

  • (c) Take n=1, a1=1, b1=−1: then ∑aibi=−1 and both sides of the classical inequality equal 1. 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 ‖a+b‖=0≠2=‖a‖+‖b‖.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.