Professional Documents
Culture Documents
Application of Inner Product Space
Application of Inner Product Space
Application of Inner Product Space
A convenient way to remember the formula for the cross product u 3 v is to use
| |
the following determinant form.
i j k
u 3 v 5 u1 u2 u3 Components of u
v1 v2 v3 Components of v
Technically this is not a determinant because it represents a vector and not a real
number. Nevertheless, it is useful because it can help you remember the cross product
formula. Using cofactor expansion in the first row produces
u3v5
| | | | | |
u2
v2
u3
v3
i2 1
u
v1
u3
v3
j1 1
u
v1
u2
v2
k
M 5 AB 3 F
\
TECHNOLOGY
Finding the Cross Product of Two Vectors
Many graphing utilities and
software programs can find a
cross product. For instance, if
Let u 5 i 2 2j 1 k and v 5 3i 1 j 2 2k. Find each cross product.
you use a graphing utility to a. u 3 v b. v 3 u c. v 3 v
verify the result of Example 1(b),
|| | | |
then you may see something SOLUTION
similar to the following. i j k
a. u 3 v 5 1 22 1
3 1 22
5
22
1
1
22
i2
1
3
1
22
j1
1
3 | | | 22
1
k
| |
5 3i 1 5j 1 7k
i j k
b. v 3 u 5 3 1 22
1 22 1
5
22|
1 22
1
i2
3
1
5 23i 2 5j 2 7k
| | | | | 22
1
j1
3
1
1
22
k
|| | ||
Note that this result is the negative of that in part (a).
Simulation
Explore this concept further with i j k
an electronic simulation, and for c. v 3 v 5 3 1 22
syntax regarding specific programs
3 1 22
| | |
involving Example 1, please visit
www.cengagebrain.com. Similar 1 22 3 22 3 1
exercises and projects are also 5 i2 j1 k
1 22 3 22 3 1
available on the website.
5 0i 1 0j 1 0k 5 0
PROOF
The proof of the first property is given here. The proofs of the other properties are left
to you. (See Exercises 53–57.) Let u and v be
u 5 u1i 1 u2 j 1 u3k
and
v 5 v1i 1 v2 j 1 v3k.
5.5 Applications of Inner Product Spaces 273
| |
Then u 3 v is
i j k
u 3 v 5 u1 u2 u3
v1 v2 v3
5 su 2v3 2 u 3v2di 2 su 1v3 2 u 3v1dj 1 su 1v2 2 u 2v1dk
| |
and v 3 u is
i j k
v 3 u 5 v1 v2 v3
u1 u2 u3
5 sv2u 3 2 v3u 2di 2 sv1u 3 2 v3u 1dj 1 sv1u 2 2 v2u 1dk
5 2 su 2v3 2 u 3v2di 1 su 1v3 2 u 3v1dj 2 su 1v2 2 u 2v1dk
5 2 sv 3 ud.
Property 1 of Theorem 5.17 tells you that the vectors u 3 v and v 3 u have equal
lengths but opposite directions. The geometric implication of this will be discussed
after establishing some geometric properties of the cross product of two vectors.
PROOF
The proof of Property 4 follows. The proofs of the other properties are left to you. (See
v Exercises 58–60.) Let u and v represent adjacent sides of a parallelogram, as shown in
v sin θ Figure 5.28. By Property 2, the area of the parallelogram is
θ Base Height
u
Area 5 i ui iv i sin u 5 i u 3 v i.
Figure 5.28
Property 1 states that the vector u 3 v is orthogonal to both u and v. This implies that
u 3 v sand v 3 ud is orthogonal to the plane determined by u and v. One way to
remember the orientation of the vectors u, v, and u 3 v is to compare them with the unit
vectors i, j, and k, as shown in Figure 5.29. The three vectors u, v, and u 3 v form a
right-handed system, whereas the three vectors u, v, and v 3 u form a left-handed system.
uxv
k=ixj
v
i j
u This is the plane
determined by
xy-plane u and v.
Right-Handed
Systems
Figure 5.29
274 Chapter 5 Inner Product Spaces
| |
From Property 1 of Theorem 5.18, you know that the cross product
12
(− 3, 2, 11)
i j k
10 u3v5 1 24 1
uxv 2 3 0
8
5 23i 1 2j 1 11k
6
is orthogonal to both u and v, as shown in Figure 5.30. Then, by dividing by the length
(1, − 4, 1) of u 3 v,
u
i u 3 vi 5 !s23d2 1 22 1 112
v 5 !134
12 !134
3
,
!134 !134 2
2
,
11
? s1, 24, 1d 5 0
and
12 !134
3
,
!134 !134 2
2
,
11
? s2, 3, 0d 5 0.
| |
1 1
x 2 u = − 3i + 4j + k i j k
3
4
5 u 3 v 5 23 4 1 5 26i 1 18j 1 6k
6
7 y 0 22 6
The area of the parallelogram is
u x v = 1036. the area of the parallelogram is
Figure 5.31 i u 3 vi 5 !262 1 182 1 62 5 !1036 < 32.19 square units.
5.5 Applications of Inner Product Spaces 275
E|
b
Area 5
a
|
f sxd 2 gsxd dx
b x
a
f
Figure 5.32
Because integrands involving absolute value are often difficult to evaluate, however, it
is more common to square the integrand to obtain
E
b
f f sxd 2 gsxdg2 dx.
a
With this criterion, the function g is called the least squares approximation of f with
respect to the inner product space W.
E
b
I5 f f sxd 2 gsxdg2 dx
a
Note that if the subspace W in this definition is the entire space C fa, bg, then
gsxd 5 f sxd, which implies that I 5 0.
276 Chapter 5 Inner Product Spaces
E
1
I5 f f sxd 2 gsxdg 2 dx
0
E
1
5 se x 2 a0 2 a1 xd2 dx.
0
E
1
I5 se x 2 a0 2 a1xd2 dx
0
E
1
5 se2x 2 2a0e x 2 2a1xe x 1 a20 1 2a0a1x 1 a21x2d dx
0
3 4
1 2x x3 1
5 e 2 2a0e x 2 2a1e xsx 2 1d 1 a20x 1 a0 a1x2 1 a21
2 3 0
1 2 1
5 se 2 1d 2 2a0se 2 1d 2 2a1 1 a20 1 a 0 a1 1 a21.
2 3
Now, considering I to be a function of the variables a0 and a1, use calculus to determine
the values of a0 and a1 that minimize I. Specifically, by setting the partial derivatives
I
5 2a0 2 2e 1 2 1 a1
a0
I 2
y f (x) = e x 5 a0 1 a1 2 2
a1 3
4 equal to zero, you obtain the following two linear equations in a0 and a1.
3 2a0 1 a1 5 2se 2 1d
3a0 1 2a1 5 6
2
The solution of this system is
a0 5 4e 2 10 < 0.873 and a1 5 18 2 6e < 1.690.
x
1 (Verify this.) So, the best linear approximation of f(xd 5 ex on the interval f0, 1g is
g(x) = 0.873 + 1.690x gsxd 5 4e 2 10 1 s18 2 6edx < 0.873 1 1.690x.
Figure 5.33 Figure 5.33 shows the graphs of f and g on f0, 1g.
E
1
I5 f f sxd 2 gsxdg2 dx
E
0
1
5 se x 2 a0 2 a1 x 2 a2 x 2d2 dx
0
1
5 se2 2 1d 1 2a0s1 2 ed 1 2a2s2 2 ed
2
2 1 1 1
1 a 20 1 a0a1 1 a0a2 1 a1a2 1 a21 1 a22 2 2a1.
3 2 3 5
g(x) ≈ 1.013 + 0.851x + 0.839x 2
Setting the partial derivatives of I swith respect to a0, a1, and a2 d equal to zero produces
y
the following system of linear equations.
4 6a0 1 3a1 1 2a2 5 6se 2 1d
6a0 1 4a1 1 3a2 5 12
3
20a0 1 15a1 1 12a2 5 60se 2 2d
2
The solution of this system is
a0 5 2105 1 39e < 1.013
x a1 5 588 2 216e < 0.851
1
a2 5 2570 1 210e < 0.839.
f(x) = e x
(Verify this.) So, the approximating function g is gsxd < 1.013 1 0.851x 1 0.839x2.
Figure 5.34 Figure 5.34 shows the graphs of f and g.
The integral I (given in the definition of the least squares approximation) can be
expressed in vector form. To do this, use the inner product defined in Example 5 in
Section 5.2:
E
b
k f , gl 5 f sxdgsxd dx.
a
E
b
I5 f f sxd 2 gsx)g 2 dx 5 k f 2 g, f 2 gl 5 i f 2 gi 2.
a
This means that the least squares approximating function g is the function that
minimizes i f 2 gi2 or, equivalently, minimizes i f 2 gi. In other words, the least
squares approximation of a function f is the function g (in the subspace W) closest to f
in terms of the inner product k f, gl. The next theorem gives you a way of determining
the function g.
PROOF
To show that g is the least squares approximating function of f, prove that the inequality
i f 2 gi # i f 2 w i is true for any vector w in W. By writing f 2 g as
f 2 g 5 f 2 k f, w1 lw1 2 k f, w2 lw2 2 . . . 2 k f, wn lwn
you can see that f 2 g is orthogonal to each wi , which in turn implies that it is orthogonal
to each vector in W. In particular, f 2 g is orthogonal to g 2 w. This allows you to apply
the Pythagorean Theorem to the vector sum f 2 w 5 s f 2 gd 1 sg 2 wd to conclude that
i f 2 wi2 5 i f 2 g i2 1 i g 2 w i2. So, it follows that i f 2 g i2 # i f 2 wi 2, which then
implies that i f 2 gi # i f 2 wi.
Now observe how Theorem 5.19 can be used to produce the least squares
approximation obtained in Example 4. First apply the Gram-Schmidt orthonormalization
process to the standard basis H1, xJ to obtain the orthonormal basis B 5 H 1, !3s2x 2 1dJ.
(Verify this.) Then, by Theorem 5.19, the least squares approximation of e x in the subspace
of all linear functions is
gsxd 5 ke x, 1ls1d 1 k e x,!3s2x 2 1dl!3s2x 2 1d
E E
1 1
5 e x dx 1 !3s2x 2 1d !3 e xs2x 2 1d dx
0 0
E E
1 1
5 e x dx 1 3s2x 2 1d e xs2x 2 1d dx
0 0
5 4e 2 10 1 s18 2 6edx
which agrees with the result obtained in Example 4.
Find the least squares approximation of f sxd 5 sin x, 0 # x # p, with respect to the
subspace W of polynomial functions of degree 2 or less.
SOLUTION
To use Theorem 5.19, apply the Gram-Schmidt orthonormalization process to the
standard basis for W, H1, x, x2J, to obtain the orthonormal basis
5 1p, p 6
!3 !5
B 5 Hw1, w2, w3J 5 s2x 2 pd, s6x 2 2 6px 1 p 2d .
! !p p 2!p
(Verify this.) The least squares approximating function g is
gsxd 5 k f , w1 lw1 1 k f, w2 lw2 1 k f, w3 lw3
and you have
E
p
y 1 2
k f, w1 l 5 sin x dx 5
!p !p
E
0
p
1 !3
k f , w2 l 5 sin xs2x 2 pd dx 5 0
p!p
E
0
p
!5 2!5
x k f, w3 l 5 sin xs6x2 2 6px 1 p 2d dx 5 sp 2 2 12d.
π π p 2!p 0 p 2!p
2
f So, g is
−1 2 10sp 2 2 12d
g gsxd 5 1 s6x 2 2 6px 1 p 2d < 20.4177x 2 1 1.3122x 2 0.0505.
p p5
Figure 5.35 Figure 5.35 shows the graphs of f and g.
5.5 Applications of Inner Product Spaces 279
E
2p
k f , gl 5 f sxdgsxd dx 5 0, f Þ g
0
5 5 1
!2p !p
,
1
cos x, . . . ,
1
!p
cos nx,
1
!p
sin x, . . . ,
1
!p 6
sin nx .
With this orthonormal basis, you can apply Theorem 5.19 to write
gsxd 5 k f , w0lw0 1 k f , w1 lw1 1 . . . 1 k f , w2n lw2n.
The coefficients
a0, a1, . . . , an, b1, . . . , bn
for gsxd in the equation
a0
gsxd 5 1 a1 cos x 1 . . . 1 an cos nx 1 b1 sin x 1 . . . 1 bn sin nx
2
are given by the following integrals.
E E
2p 2p
2 2 1 1
a0 5 k f, w0 l 5 f sxd dx 5 f sxd dx
!2p !2p 0 !2p p 0
E E
2p 2p
1 1 1 1
a1 5 k f, w1 l 5 f sxd cos x dx 5 f sxd cos x dx
!p !p 0 !p p 0
.
.
.
E E
2p 2p
1 1 1 1
an 5 k f, wn l 5 f sxd cos nx dx 5 f sxd cos nx dx
!p !p 0 !p p 0
E E
2p 2p
1 1 1 1
b1 5 k f, wn11 l 5 f sxd sin x dx 5 f sxd sin x dx
!p !p 0 !p p 0
.
.
.
E E
2p 2p
1 1 1 1
bn 5 k f, w2n l 5 f sxd sin nx dx 5 f sxd sin nx dx
!p !p 0 !p p 0
E
2p
1
a0 5 f sxd dx
p 0
E
2p
1
aj 5 f sxd cos jx dx, j 5 1, 2, . . . , n
p 0
E
2p
1
bj 5 f sxd sin jx dx, j 5 1, 2, . . . , n.
p 0
E
2p
1 1
a0 5 x dx 5 2p 2 5 2p
p 0 p
E
2p
3p j 4
1 1 x 2p
aj 5 x cos jx dx 5 2
cos jx 1 sin jx 50
p 0 pj 0
E
2p
3 pj 4
1 1 x 2p 2
bj 5 x sin jx dx 5 2
sin jx 2 cos jx 52 .
p 0 pj 0 j
x
π 2π
1 2
1 1 1
gsxd 5 p 2 2 sin x 1 sin 2x 1 sin 3x 1 . . . 1 sin nx .
2 3 n
As n increases, the Fourier approximation improves. For instance, Figure 5.37 shows
the fourth- and fifth-order Fourier approximations of f sxd 5 x, 0 # x # 2p.
y y
f (x) = x f(x) = x
2π 2π
π π
g g
x x
π 2π π 2π
|
Find the fourth-order Fourier approximation of f sxd 5 x 2 p , 0 # x # 2p. |
SOLUTION
Using Theorem 5.20, find the Fourier coefficients as follows.
E|
2p
1
a0 5
p 0
|
x 2 p dx 5 p
E|
2p
1
aj 5
p 0
|
x 2 p cos jx dx
E
y p
2
5 sp 2 xd cos jx dx
p 0
2π
f(x) = x − π 2
5 s1 2 cos jpd
pj 2
E|
π 2p
1
bj 5
p 0
|
x 2 p sin jx dx 5 0