Professional Documents
Culture Documents
because L(x) and f(x) have the same rate of change (derivative) at a. For a better approximation than a linear one, lets try a second-degree (quadratic) approximation P(x). In otherwords, we approximate a curve by a parabola instead of by a straight line. To make sure that the approximation is a good one, we stipulate the following: P a = f a ( and should have the same value at a.) i. ii. iii. P ' a= f ' a ( and should have the same rate of change at a.) P ' ' a = f ' ' a (The slopes of P and f should change at the same rate.) P x =ABxCx
2
to the function
that satisfies conditions (i), (ii), and (iii) with a = 0. Graph P, f, and the linear approximation L(x) on a common screen. Comment on how well the functions P and L approximate f. P x =ABxCx2 i. P a = f a A B0C 02=cos 0 A=1 ii. P ' a= f ' a B2C0=sin 0
B=0
f x =cos x
iii.
1 2 Therefore: P x =1 x 2
2. Determine the values of for which the quadratic approximation f x =P x in Problem 1 is accurate to within 0.1. [Hint:Graph y=P x , y=cos x0.1 f x =cos x , and y=cos x0.1 on a common screen.] f x =cos x0.1
y 1
Graph of Quadratic Approximation in Problem 1, along with graphs for f x =cos x0.1 , and
x 1 1
3. To approximate a function f by a quadratic function P near a number , it is best to write P in the form P x =AB x a C xa2 : Show that the quadratic function that satisfies conditions (i), (ii), and (iii) is P x = f a f ' a x a 1 f ' ' a xa2 2
By differentiating repeatedly: i. P a = f a P a =A BaaC aa 2= f a A= f a ii. P ' a= f ' a P ' a= B2Caa = f ' a B= f ' a iii. P ' ' a = f ' ' a P ' ' a =2C= f ' ' a C= 1 f ' ' a 2 1 f ' ' a xa2 is the formula for 2
the quadratic approximation, and the linear approximation from Example 3 in Section 3.11 on a common screen. What do you conclude? Linear Approximation: P x = f a f ' a x a = 13 Quadratic Approximation: P x = f a f ' a x a P x = 13 1 f ' ' a xa2 2 1 1 x1=2 x1 4 2 13
1 1 1 1 x1 x12=2 x1 x12 3 4 32 2 13 4 13
3 y
x 2 1 1 2
The Quadratic Approximation (in green) is accurate over a larger interval than that of the Linear Approximation.
5. Instead of being satisfied with a linear or quadratic approximation to f(x) near x=a, lets try to find better approximations with higher-degree polynomials. We look for an nth-degree polynomial
its first n derivatives. By differentiating repeatedly and setting x = a, show that these conditions are
satisfied if where
c 0= f a , c 1= f ' a , c 2=
k !=1234....k
T n x= f a f ' a xa
By differentiating repeatedly: i.
T k x =c 0c 1 aac2 aa c 3 aa . . .cn aa = f a c 0= f a T ' k x=c12 c 2 aa3c 3 aa 2. . .k c n aak 1= f ' a c 1= f ' a T ' ' k x =2 c 26c3 aa. . .k k 1c n aa n2= f ' a 2c 2= f ' ' a c 2= 1 f ' ' a 2
k
ii.
iii.
And thus:
T x =k k 1 k2 ...1 c k = f a k ! c k = f a
k
ck =
f k a k!
2 3 n
T n x=c0 c 1 xac 2 xa c 3 xa . . .c n xa
we get
T n x= f a f ' a xa
looking for.
6. Find the 8th-degree Taylor polynomial centered at a = 0 for the function f x =cos x . Graph f together with the Taylor polynomials in the viewing rectangle [5, 5] by [1.4, 1.4] and T 2, T 4, T 6, and T 8
comment on how well they approximate f . f ' ' a f n a 2 T n x= f a f ' a xa x a ... xa n 2! n! Solving for i. T 2, T 4, T 6, and T 8 where f x =cos x and a = 0:
f ' ' a xa 2 2!
T 2= f a f ' a xa
cos 0 x a2 2
f ' ' a f iii a f iv a 2 3 T 4 = f a f ' a xa xa xa xa4 2 3! 4! T 4 =cos 0sin 0 xa 1 x4 T 4 =1 x 2 2 24 cos 0 sin 0 cos 0 xa 2 xa 3 xa4 2 3! 4!
iii.
T 6= f a f ' a xa
T 6=cos0 sin 0 xa
T 8=cos 0sin 0 xa
...
f x =cos x
x 4 3 2 1 1 2 3 4 5