MathI Project2
MathI Project2
Objective:
Figure 1
Page 1


fi
ffi
fi
We can see in Figure 1 that, near x = 4 , we have T1(x) ≈ f (x) ; that is the tangent line
approximates f well. One shortcoming of this approximation is that the tangent line only
matches the slope of f ; it does not, for instance, match the concavity of f.
1
T2(x) = f (a) + f′(a)(x − a) + f′′(a)(x − a)2 .
2
This extends to nth-degree polynomial that is used for approximating a function f that
near x = a, or it is called nth-degree Taylor polynomial of f at center x = a as follow:
1 1 (n)
Tn(x) = f (a) + f′(a)(x − a) + f′′(a)(x − a)2 + . . . + f (a)(x − a)n
2! n!
n
1 (k)
f (a)(x − a)k .
∑ k!
Or Tn(x) =
k=0
We can see that T4(x) is better to approximate the function f (x) than T1(x).
1 1 1 5
2 ≈ T4(2) = 2 + (2 − 4) − (2 − 4)2 + (2 − 4)3 − (2 − 4)4 = 1.41699
4 64 512 16384
a. Find the nth-degree Taylor polynomial centered at x = 0 for the function f (x) = e x,
c. Plot T1(x), T3(x), T5(x) and f (x) = e x together in the viewing rectangle x ∈ [−2,2] by
y ∈ [0,10] and comment how well they approximate f .
a. Find the nth-degree Taylor polynomial centered at x = 0 for the function f (x) = e −x,
c. Plot T1(x), T3(x), T5(x) and f (x) = e −x together in the viewing rectangle x ∈ [−2,2] by
y ∈ [0,10] and comment how well they approximate f .
Page 3
fi
Problem 3- ( For Group 3 ):
a. Find the nth-degree Taylor polynomial centered at x = 1 for the function f (x) = ln x,
c. Plot T1(x), T3(x), T5(x) and f (x) = ln x together in the viewing rectangle x ∈ [0.25,2]
by y ∈ [−2,2] and comment how well they approximate f .
c. Plot T1(x), T3(x), T5(x) and f (x) = ln(−x) together in the viewing rectangle
x ∈ [−2, − 0.25] by y ∈ [−2,2] and comment how well they approximate f .
a. Find the nth-degree Taylor polynomial centered at x = 0 for the function f (x) = cos x.
c. Plot T2(x), T4(x), T8(x) and f (x) = cos x together in the viewing rectangle x ∈ [−5,5]
by y ∈ [−2,2] and comment how well they approximate f .
a. Find the nth-degree Taylor polynomial centered at x = 0 for the function f (x) = sin x.
c. Plot T2(x), T4(x), T8(x) and f (x) = sin x together in the viewing rectangle x ∈ [−4,4]
by y ∈ [−2,2] and comment how well they approximate f .
Page 4