Chapter 8. Inner products and norms
An inner product gives a vector space additional structure. It allows us to measure lengths and angles and to speak of orthogonal vectors. The ordinary dot product is the prototype, but the same properties apply to spaces of polynomials, trigonometric polynomials, and matrices.
This chapter concerns real vector spaces and real inner products.
8.1 Real inner products
The dot product
For columns , the dot product sums the products of corresponding coordinates. Transposing a column gives a row, so
The dot product is positive definite, symmetric, and linear in each input. These are the properties used to define an inner product on an abstract real vector space.
The abstract definition
Definition 8.1.1. An inner product on a real vector space is a function
with the following properties.
-
It is positive definite, so
-
It is symmetric, so .
-
It is bilinear. For and ,
We also write for . In this notation, parentheses denote an inner product when their value is a real scalar. The context distinguishes them from an ordered pair. In the multilinear terminology of § 5.3, an inner product is a tensor with two inputs. Both inner products and determinant functions are examples of multilinear functions.
Why the real field matters
For a nonzero vector, complex bilinearity conflicts with positive definiteness. If a complex bilinear function satisfied for a nonzero , then
Thus the real definition cannot be carried over unchanged to a nonzero complex vector space.
Testing the defining properties
Exercise 8.1.2
Which of the following is an inner product? Explain.
-
1.1. (5 points) For any ,
-
1.2. (5 points) For any ,
Exercise 8.1.3
Let be a 2-dimensional real vector space and be a basis. Which of the following 2-tensors is an inner product? Explain.
-
2.1. (5 points) Let be the 2-tensor given by
-
2.2. (5 points) Let be given by
8.2 Examples of inner products
The dot product pairs coordinate columns by multiplying corresponding entries and adding the results. The following pairings use the same bilinear structure for functions and matrices.
Polynomials
Example 8.2.1. Let be the real polynomials of degree at most , including the zero polynomial. An inner product on this space is
In particular,
Trigonometric polynomials
Example 8.2.2. Let be the real trigonometric polynomials
On this space, use the inner product
Polynomial and trigonometric families are useful for approximating more general functions, with applications to partial differential equations. Inner products also play a role in analysis on infinite-dimensional function spaces.
Matrices
Definition 8.2.3. The trace of a matrix is the sum of its diagonal entries,
Example 8.2.4. On the vector space , an inner product is
Thus matrices are paired by summing the products of their corresponding entries.
8.3 Nondegeneracy
An inner product allows us to recognize a vector by its pairings with all other vectors.
Proposition 8.3.1 (Nondegeneracy of an inner product). For ,
Proof. If every pairing is zero, take . Then , so positive definiteness gives . Conversely, bilinearity gives for every . ◻
Proposition 8.3.2 (A vector is determined by its pairings). If satisfy
then .
Proof. Bilinearity gives for every . By Proposition 8.3.1, , hence . ◻
Corollary 8.3.3 (Maps determined by their pairings). Let be a real inner-product space, and let be maps. If
then .
Proof. Fix an arbitrary . The hypothesis says that the two vectors have equal inner products with every . By Proposition 8.3.2, they are equal. This holds for every input , so the maps agree everywhere and . ◻
Such comparisons are useful in the calculus of variations, where an identity can be tested by pairing with arbitrary vectors or functions.
8.4 Norms and angles
Definition 8.4.1. The norm induced by a real inner product is the nonnegative number
For the ordinary dot product on , this is the Euclidean magnitude. It is often convenient to work with its square,
Theorem 8.4.2 (Cauchy–Schwarz inequality). For any in a real inner-product space,
Equality holds if and only if the pair is linearly dependent, including the cases in which either vector is zero.
Proof. The minimization argument in Exercise 8.4.3, proved in its solution on the linked page, uses only the inner-product axioms and establishes
for all . It also proves that equality holds exactly when or for some real scalar .
By the definition of the induced norm,
Both and are nonnegative. Taking nonnegative square roots therefore gives the stated inequality and preserves equality.
To identify the equality condition, suppose the pair is dependent. Choose real , not both zero, with . If , then . If , then and . Conversely, gives the nontrivial relation , and gives . Thus the scalar-multiple alternatives are equivalent to linear dependence, including the zero-vector cases. This proves the full equality characterization. ◻
A minimization problem
Minimizing a squared norm leads to the Cauchy–Schwarz inequality in Exercise 8.4.3. In this exercise, single bars denote the induced norm.
Exercise 8.4.3
(30 points) Let be a real inner product space and let be nonzero vectors. Consider the function given by
-
4.1. (10 points) Prove that has a unique minimum.
-
4.2. (10 points) Find the minimum value of and the value of for which equals the minimum value.
-
4.3. (10 points) Use your solution to the previous parts of this problem to prove that for any ,
and equality holds if and only if there exists a scalar such that
Angles
For nonzero , the angle is described by
The Cauchy–Schwarz inequality puts the displayed quotient in , so it determines an angle in . This relation gives a notion of angle using the inner product, including when the vectors are functions or matrices. In the ordinary real plane, it has the geometric meaning shown in Figure 8.1.
8.5 Orthogonality and coordinate inner products
Definition 8.5.1. Vectors are orthogonal if . A family is mutually orthogonal if
It is orthonormal if it is mutually orthogonal and for every .
The Pythagorean identity can be expressed using only the properties of an inner product.
Exercise 8.5.2
Let be orthogonal vectors in a real inner-product space. Using only the properties of the inner product, prove the Pythagorean identity
An inner product chosen from a basis
A vector space does not come with a specified inner product. Fix an ordered basis . If and , define
This makes an orthonormal basis for the chosen inner product,
Here is the Kronecker delta, defined by
The diagonal values say that the basis vectors have unit norm, while the off-diagonal values say that distinct basis vectors are orthogonal. Thus the single formula records both parts of orthonormality. The matrix of these pairings is the identity matrix , with the same – pattern denoted by in § 7.2.
Bilinearity makes the role of the delta explicit. For and ,
Only terms with equal indices survive. All cross terms vanish. Pairing with a single basis vector therefore reads off a coordinate,
Conversely, prescribing determines the inner product by bilinearity. Choosing a basis therefore provides a way to equip the vector space with an inner product.