Scalar products are useful not only in , but also in a wide variety of contexts. To generalize this concept to other vector spaces, we introduce the following definition.
A vector space V with an inner product is called an inner product space.
The standard inner product for is the scalar product
Given a vector w with positive entries, we could also define an inner product on by
The entries are referred to as weights.
Given A and B in , we can define an inner product by
We leave it to the reader to verify that (2) does indeed define an inner product on .
We may define an inner product on C[a, b] by
Note that
If for some in [a, b], then, since is continuous, there exists a subinterval I of [a, b] containing such that for all x in I. If we let p represent the length of I, then it follows that
So if , then f (x) must be identically zero on [a, b]. We leave it to the reader to verify that (3) satisfies the other two conditions specified in the definition of an inner product.
If w(x) is a positive continuous function on [a, b], then
also defines an inner product on C[a, b]. The function w(x) is called a weight function. Thus, it is possible to define many different inner products on C[a, b].
Let be distinct real numbers. For each pair of polynomials in , define
It is easily seen that (5) satisfies conditions (ii) and (iii) of the definition of an inner product. To show that (i) holds, note that
If , then must be roots of . Since p(x) is of degree less than n, it must be the zero polynomial.
If w(x) is a positive function, then
also defines an inner product on .
The results presented in Section 5.1 for scalar products in all generalize to inner product spaces. In particular, if v is a vector in an inner product space V, the length, or norm of v is given by
Two vectors u and v are said to be orthogonal if . As in , a pair of orthogonal vectors will satisfy the Pythagorean law.
If u and v are orthogonal vectors in an inner product space V, then
Proof
Interpreted in , this is just the familiar Pythagorean theorem as shown in Figure 5.4.1.
Consider the vector space with an inner product defined by (3). The vectors 1 and x are orthogonal, since
To determine the lengths of these vectors, we compute
It follows that
Since 1 and x are orthogonal, they satisfy the Pythagorean law:
The reader may verify that
For the vector space , if we use a constant weight function to define an inner product
then
Thus, cos x and sin x are orthogonal unit vectors with respect to this inner product. It follows from the Pythagorean law that
The inner product (6) plays a key role in Fourier analysis applications involving a trigonometric approximation of functions. We will look at some of these applications in Section 5.5.
For the vector space , the norm derived from the inner product (2) is called the Frobenius norm and is denoted by . Thus, if , then
If
then
Hence, A is not orthogonal to B. The norms of these matrices are given by
In , define an inner product by (5) with for . The length of the function is given by
If and p is the vector projection of u onto v, then
and p are orthogonal.
if and only if u is a scalar multiple of v.
Proof of Observation I
Since
and
it follows that
Therefore, and p are orthogonal.
∎
Proof of Observation II
If , then the vector projection of u onto v is given by
Conversely, if , it follows from (7) that
∎
Observations I and II are useful for establishing the following theorem.
If u and v are any two vectors in an inner product space V, then
Equality holds if and only if u and v are linearly dependent.
Proof
If , then
If , then let p be the vector projection of u onto v. Since p is orthogonal to , it follows from the Pythagorean law that
Thus,
and hence
Therefore,
Equality holds in (9) if and only if . It follows from observation II that equality will hold in (8) if and only if or u is a multiple of v. More simply stated, equality will hold if and only if u and v are linearly dependent.
One consequence of the Cauchy–Schwarz inequality is that if u and v are nonzero vectors, then
and hence there is a unique angle in [0, π] such that
Thus, equation (10) can be used to define the angle between two nonzero vectors u and v.
The word norm in mathematics has its own meaning that is independent of an inner product and its use here should be justified.
The third condition is called the triangle inequality (see Figure 5.4.2).
If V is an inner product space, then the equation
defines a norm on V.
Proof
It is easily seen that conditions I and II of the definition are satisfied. We leave this for the reader to verify and proceed to show that condition III is satisfied.
Thus,
∎
It is possible to define many different norms on a given vector space. For example, in we could define
for every . It is easily verified that defines a norm on . Another important norm on is the uniform norm or infinity norm, which is defined by
More generally, we could define a norm on by
for any real number . In particular, if , then
The norm is the norm on derived from the inner product. If does not correspond to any inner product. In the case of a norm that is not derived from an inner product, the Pythagorean law will not hold. For example,
are orthogonal; however,
while
If, however, is used, then
Let x be the vector in . Compute , and .
It is also possible to define different matrix norms for . In Chapter 7, we will study other types of matrix norms that are useful in determining the sensitivity of linear systems.
In general, a norm provides a way of measuring the distance between vectors.
Many applications involve finding a unique closest vector in a subspace S to a given vector v in a vector space V. If the norm used for V is derived from an inner product, then the closest vector can be computed as a vector projection of v onto the subspace S. This type of approximation problem is discussed further in the next section.
18.191.239.123