Professional Documents
Culture Documents
Inner Product
Inner Product
0 and (u,u) = Oif and only ifu=0 A vector space with an inner product is called an inner product space.EXAMPLE 4 Fix any two positive numbers—say, 4 and 5—and for vectors u = (it), 22) and v = (v;, v2) in R?, set (u,v) = 4uyvy + Suzv2 qd) Show that equation (1) defines an inner product. SOLUTION Certainly Axiom 1 is satisfied, because (u,v) = 4uiv1 + 5u2v2 = 4ujuy + Sou = (vu). If w= (w), w>), then (u + v,w) = 4(uy + vy)wy + S(u2 + v2)w2 = 4ujw) + Suzw, + 40, w, + Svzw2 = (u,w) + (v.w) This verifies Axiom 2. For Axiom 3, compute (eu, v) = 4(cu)v, + S(cu2)v2 = e(4urv1 + Si2v2) = c(u,¥) For Axiom 4, note that (u,u) = 4u7 + 5u3 = 0,and 4ut + 5u3 = Oonlyifuy = uw, = 0, that is, if u = 0. Also, (0,0) = 0. So (1) defines an inner product on R?. .EXAMPLE 2 Let‘... , be distinct real numbers. For p and q in P, , define (P.4) = plto)g(to) + plng(t) + +++ + plugin) @ Inner product Axioms 1-3 are readily checked. For Axiom 4, note that (p. P) = [plo + LPP +--+ + [md P > 0 Also, (0,0) = 0. (The boldface zero here denotes the zero polynomial, the zero vector in P,.) If (p, p) = 0, then p must vanish at n +1 points: fo,...,. This is possible only if p is the zero polynomial, because the degree of p is less than n + 1. Thus (2) defines an inner product on Py. 7 EXAMPLE 3 Let V be Pp, with the inner product from Example 2, where fo = 0, 1) = 3 and 4 = 1. Let p(t) = 121 and q(t) = 21 — 1. Compute (p,q) and (4.4) SOLUTION (p.4) = pO)4O) + p(3)4(G) + Pa) = OM-1 + BO) + 2) = 12 (q.4) = WOF + fa (3)P + ar = (-1) + 0 + (1)? =2 /Lengths, Distances, and Orthogonality Let V be an inner product space, with the inner product denoted by (u,v). Just as in B", we define the length, or norm, of a vector ¥ to be the scalar liv = viv.y) Equivalently, [lv]? = (v,v). (This definition makes sense because (v, v) > 0, but the definition does not say that (v, v) is a “sum of squares,” because v need not be an element of RB") A unit vector is one whose length is 1. The distance between u and v is |ju— v||. ‘Vectors u and v are orthogonal if (u,v) = 0. EXAMPLE 4 Let P, have the inner product (2) of Example 3. Compute the lengths of the vectors p(t) = 12/7 and q(t) = 2¢ - 1. SOLUTION PIP = (pp) = POF +[p HJ} + POP =0+ BP + [12P = 153 ipl = V153 From Example 3, (q,q) = 2. Hence |\q\| = V2. 1:EXAMPLE 5 Let V be P; with the inner product in Example 2. involving evaluation of polynomials at 2, —1, 0, 1, and 2, and view P, as a subspace of V. Produce an orthogonal basis for P by applying the Gram-Schmidt process to the polynomials 1, ¢, and ?. SOLUTION The inner product depends only on the values of a polynomial at—2, ...,2, so we list the values of each polynomial as a vector in RS, underneath the name of the polynomial: Polynomial: Vector of values: | on asThe inner product of two polynomials in V equals the (standard) inner product of their corresponding vectors in R°, Observe that ¢ is orthogonal to the constant function 1. So take po(t) = 1 and p;(t) =r. For po, use the vectors in R* to compute the projection of /? onto Span { po, pi} (2, po) = (P11) =441404144=10 (Po; Po) = 5 (?. pi) = (Pt) =-8 + CD +0414+8=0 The orthogonal projection of 7? onto Span {1,1} is py + Op). Thus prlt) = © —2polt) =P —2 An orthogonal basis for the subspace P, of V is: Polynomial: Po Pi Pr 1 2 2 a 1 -1 -1 8) Vector of values: | 1 of}, |-2 1 1 -1 1 2 2Best Approximation in Inner Product Spaces A common problem in applied mathematics involves a vector space V whose elements are functions. The problem is to approximate a function f in V by a function g froma specified subspace W of V. The “closeness” of the approximation of f depends on the way || f — gll is defined. We will consider only the case in which the distance between f and g is determined by an inner product. In this case, the best approximation to f by functions in W is the orthogonal projection of f onto the subspace W. EXAMPLE 6 Let V be P, with the inner product in Example 5, and let po, pi. and pp be the orthogonal basis found in Example 5 for the subspace P}. Find the best approximation to p(t) = 5 — 4r" by polynomials in P>.SOLUTION The values of po, pi. and pp at the numbers —2,—1,0, 1, and 2 are listed in RS vectors in (3) above. The corresponding values for p are —3, 9/2, 5, 9/2, and —3. Compute (P.Pi)=0, — (p. P2) = —31 (pa. pr) = 14 (P. Po) = (Po. Po) = ‘Then the best approximation in V to p by polynomials in P, is (Pp, Po) Do (p, Pi) Ds (p, P2) (po. po) a) (p2, 2) = Spo + Sp = 8-H -2). B = projp, p= Po This polynomial is the closest to p of all polynomials in Pz, when the distance between polynomials is measured only at 2,-1.0, 1, and 2. See Figure 1. . PAL) m0)Two Inequalities Given a vector v in an inner product space V and given a finite-dimensional subspace _W, we may apply the Pythagorean Theorem to the orthogonal decomposition of v with respect to W and obtain Iv? = I ptojyy vl? + Iv — proj VI See Figure 2. In particular, this show’ that the norm of the projection of v onto W does not exceed the norm of v itself. This simple observation leads to the following important inequality. Ist lv — projy vil FIGURE 2 The hypotenuse is the longest side.The Cauchy-Schwarz Inequality For all u, vin V, Iu. ¥)| < [full lvl @ PROOF Ifu = 0, then both sides of (4) are zero, and hence the inequality is true in this case. (See Practice Problem 1.) If u 0, let W be the subspace spanned by u. Recall that ||cul] = |c| ||ul] for any scalar c. Thus Keron wl = | ea) = Fe ay = ay = " (u,u) \(u,u)| {\m||? ell io.9)] . Since | projy vl] $ IW]. Wwe have TE < [lvl which gives (4).0 iui u FIGURE 3 ‘The lengths of the sides of a triangle. The Triangle Inequality For all u, yin V, {a + vil < |jal| + [lvl PROOF jut vif uu -+ Vv, + ¥) = (u,u) + 2(u, v) + (v.¥) S lu? + 21(a,¥)| + lvl? S |ul? + 2a vl] + vIP— Canchy—Schwarz = (hall + [Ivl))? The triangle inequality follows immediately by taking square roots of both sides.