A tangent line matches a function’s value and slope at one point, and it’s a decent approximation nearby. A Taylor polynomial goes further: it also matches the second derivative, the third, and so on. The more derivatives it matches, the longer it hugs the curve. Taylor polynomials are how you turn hard functions like e x e^x e x , sin x \sin x sin x and ln x \ln x ln x into simple polynomials you can evaluate by hand, and they lead straight to Taylor series.
The n n n th-degree Taylor polynomial for f f f about x = a x = a x = a (also called “centred at a a a ”) is
P n ( x ) = f ( a ) + f ′ ( a ) ( x − a ) + f ′ ′ ( a ) 2 ! ( x − a ) 2 + f ′ ′ ′ ( a ) 3 ! ( x − a ) 3 + ⋯ + f ( n ) ( a ) n ! ( x − a ) n P_n(x) = f(a) + f'(a)(x - a) + \frac{f''(a)}{2!}(x - a)^2 + \frac{f'''(a)}{3!}(x - a)^3 + \cdots + \frac{f^{(n)}(a)}{n!}(x - a)^n P n ( x ) = f ( a ) + f ′ ( a ) ( x − a ) + 2 ! f ′′ ( a ) ( x − a ) 2 + 3 ! f ′′′ ( a ) ( x − a ) 3 + ⋯ + n ! f ( n ) ( a ) ( x − a ) n
or, in sigma notation,
P n ( x ) = ∑ k = 0 n f ( k ) ( a ) k ! ( x − a ) k P_n(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x - a)^k P n ( x ) = k = 0 ∑ n k ! f ( k ) ( a ) ( x − a ) k
Here f ( k ) f^{(k)} f ( k ) means the k k k th derivative, with f ( 0 ) = f f^{(0)} = f f ( 0 ) = f , and 0 ! = 1 0! = 1 0 ! = 1 . When a = 0 a = 0 a = 0 , it’s called a Maclaurin polynomial : P n ( x ) = f ( 0 ) + f ′ ( 0 ) x + f ′ ′ ( 0 ) 2 ! x 2 + ⋯ P_n(x) = f(0) + f'(0)x + \dfrac{f''(0)}{2!}x^2 + \cdots P n ( x ) = f ( 0 ) + f ′ ( 0 ) x + 2 ! f ′′ ( 0 ) x 2 + ⋯
P n P_n P n is built so that P n ( a ) = f ( a ) P_n(a) = f(a) P n ( a ) = f ( a ) , P n ′ ( a ) = f ′ ( a ) P_n'(a) = f'(a) P n ′ ( a ) = f ′ ( a ) , and so on up to the n n n th derivative. Differentiating ( x − a ) k (x - a)^k ( x − a ) k a total of k k k times gives k ! k! k ! , so dividing by k ! k! k ! cancels it, leaving exactly f ( k ) ( a ) f^{(k)}(a) f ( k ) ( a ) .
P 1 ( x ) = f ( a ) + f ′ ( a ) ( x − a ) P_1(x) = f(a) + f'(a)(x - a) P 1 ( x ) = f ( a ) + f ′ ( a ) ( x − a ) is the tangent line (the linearization).
P 2 ( x ) P_2(x) P 2 ( x ) adds f ′ ′ ( a ) 2 ( x − a ) 2 \dfrac{f''(a)}{2}(x - a)^2 2 f ′′ ( a ) ( x − a ) 2 , which bends the approximation to match the concavity.
The coefficient of ( x − a ) k (x - a)^k ( x − a ) k is f ( k ) ( a ) k ! \dfrac{f^{(k)}(a)}{k!} k ! f ( k ) ( a ) . Working backwards:
f ( k ) ( a ) = k ! × ( coefficient of ( x − a ) k ) f^{(k)}(a) = k! \times \left(\text{coefficient of } (x - a)^k\right) f ( k ) ( a ) = k ! × ( coefficient of ( x − a ) k )
AP questions use this a lot: “The third-degree Taylor polynomial for f f f about x = 2 x = 2 x = 2 is … Find f ′ ′ ( 2 ) f''(2) f ′′ ( 2 ) .”
To approximate f ( b ) f(b) f ( b ) for b b b near a a a , evaluate P n ( b ) P_n(b) P n ( b ) . Higher degree and b b b closer to a a a both usually give a better approximation. The figure shows this for sin x \sin x sin x about x = 0 x = 0 x = 0 (radians, as always in calculus):
Three graphs of y = sin x for x from -5 to 5, each with a Maclaurin polynomial. Degree 1, the line y = x, matches sin x only very close to 0. Degree 3 matches from about -1.5 to 1.5. Degree 5 matches from about -2.5 to 2.5 before pulling away.
−4
−2
2
4
−2
2
P1(x) = x
−4
−2
2
4
−2
2
P3(x) = x - x³/6
−4
−2
2
4
−2
2
P5(x) = x - x³/6 + x⁵/120
y = sin x
Taylor polynomial about x = 0
Maclaurin polynomials for sin x \sin x sin x of degree 1, 3 and 5. Each extra matched derivative keeps the polynomial close to the curve over a wider interval.
To find how accurate an approximation is, see the alternating series error bound and the Lagrange error bound .
Find the third-degree Maclaurin polynomial for f ( x ) = e x f(x) = e^x f ( x ) = e x , and use it to approximate e 0.2 e^{0.2} e 0.2 .
Solution. Every derivative of e x e^x e x is e x e^x e x , so f ( 0 ) = f ′ ( 0 ) = f ′ ′ ( 0 ) = f ′ ′ ′ ( 0 ) = 1 f(0) = f'(0) = f''(0) = f'''(0) = 1 f ( 0 ) = f ′ ( 0 ) = f ′′ ( 0 ) = f ′′′ ( 0 ) = 1 .
P 3 ( x ) = 1 + x + x 2 2 ! + x 3 3 ! = 1 + x + x 2 2 + x 3 6 P_3(x) = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} P 3 ( x ) = 1 + x + 2 ! x 2 + 3 ! x 3 = 1 + x + 2 x 2 + 6 x 3
e 0.2 ≈ P 3 ( 0.2 ) = 1 + 0.2 + 0.02 + 0.0013333 ≈ 1.221 e^{0.2} \approx P_3(0.2) = 1 + 0.2 + 0.02 + 0.0013333 \approx 1.221 e 0.2 ≈ P 3 ( 0.2 ) = 1 + 0.2 + 0.02 + 0.0013333 ≈ 1.221
(Check: e 0.2 ≈ 1.221403 e^{0.2} \approx 1.221403 e 0.2 ≈ 1.221403 .)
Find the second-degree Taylor polynomial for f ( x ) = x f(x) = \sqrt{x} f ( x ) = x about x = 4 x = 4 x = 4 , and use it to approximate 4.2 \sqrt{4.2} 4.2 .
Solution. Find the derivatives and evaluate at 4 4 4 :
f ( x ) = x 1 / 2 f ( 4 ) = 2 f ′ ( x ) = 1 2 x − 1 / 2 f ′ ( 4 ) = 1 4 f ′ ′ ( x ) = − 1 4 x − 3 / 2 f ′ ′ ( 4 ) = − 1 4 ⋅ 1 8 = − 1 32 \begin{aligned}
f(x) &= x^{1/2} && f(4) = 2 \\
f'(x) &= \tfrac{1}{2}x^{-1/2} && f'(4) = \tfrac{1}{4} \\
f''(x) &= -\tfrac{1}{4}x^{-3/2} && f''(4) = -\tfrac{1}{4} \cdot \tfrac{1}{8} = -\tfrac{1}{32}
\end{aligned} f ( x ) f ′ ( x ) f ′′ ( x ) = x 1/2 = 2 1 x − 1/2 = − 4 1 x − 3/2 f ( 4 ) = 2 f ′ ( 4 ) = 4 1 f ′′ ( 4 ) = − 4 1 ⋅ 8 1 = − 32 1
P 2 ( x ) = 2 + 1 4 ( x − 4 ) − 1 / 32 2 ! ( x − 4 ) 2 = 2 + 1 4 ( x − 4 ) − 1 64 ( x − 4 ) 2 P_2(x) = 2 + \frac{1}{4}(x - 4) - \frac{1/32}{2!}(x - 4)^2 = 2 + \frac{1}{4}(x - 4) - \frac{1}{64}(x - 4)^2 P 2 ( x ) = 2 + 4 1 ( x − 4 ) − 2 ! 1/32 ( x − 4 ) 2 = 2 + 4 1 ( x − 4 ) − 64 1 ( x − 4 ) 2
With x − 4 = 0.2 x - 4 = 0.2 x − 4 = 0.2 :
4.2 ≈ 2 + 0.05 − 0.04 64 = 2.049375 ≈ 2.049 \sqrt{4.2} \approx 2 + 0.05 - \frac{0.04}{64} = 2.049375 \approx 2.049 4.2 ≈ 2 + 0.05 − 64 0.04 = 2.049375 ≈ 2.049
(Check: 4.2 ≈ 2.049390 \sqrt{4.2} \approx 2.049390 4.2 ≈ 2.049390 .)
A function f f f has derivatives of all orders. Some values are shown.
x x x f ( x ) f(x) f ( x ) f ′ ( x ) f'(x) f ′ ( x ) f ′ ′ ( x ) f''(x) f ′′ ( x ) f ′ ′ ′ ( x ) f'''(x) f ′′′ ( x ) 2 2 2 3 3 3 − 1 -1 − 1 4 4 4 − 12 -12 − 12
Write the third-degree Taylor polynomial for f f f about x = 2 x = 2 x = 2 , and use it to approximate f ( 2.1 ) f(2.1) f ( 2.1 ) .
Solution.
P 3 ( x ) = 3 + ( − 1 ) ( x − 2 ) + 4 2 ! ( x − 2 ) 2 + − 12 3 ! ( x − 2 ) 3 = 3 − ( x − 2 ) + 2 ( x − 2 ) 2 − 2 ( x − 2 ) 3 \begin{aligned}
P_3(x) &= 3 + (-1)(x - 2) + \frac{4}{2!}(x - 2)^2 + \frac{-12}{3!}(x - 2)^3 \\
&= 3 - (x - 2) + 2(x - 2)^2 - 2(x - 2)^3
\end{aligned} P 3 ( x ) = 3 + ( − 1 ) ( x − 2 ) + 2 ! 4 ( x − 2 ) 2 + 3 ! − 12 ( x − 2 ) 3 = 3 − ( x − 2 ) + 2 ( x − 2 ) 2 − 2 ( x − 2 ) 3
With x − 2 = 0.1 x - 2 = 0.1 x − 2 = 0.1 :
f ( 2.1 ) ≈ 3 − 0.1 + 2 ( 0.01 ) − 2 ( 0.001 ) = 2.918 f(2.1) \approx 3 - 0.1 + 2(0.01) - 2(0.001) = 2.918 f ( 2.1 ) ≈ 3 − 0.1 + 2 ( 0.01 ) − 2 ( 0.001 ) = 2.918
The third-degree Taylor polynomial for g g g about x = 1 x = 1 x = 1 is
P 3 ( x ) = 5 − 2 ( x − 1 ) + 3 ( x − 1 ) 2 + 1 2 ( x − 1 ) 3 P_3(x) = 5 - 2(x - 1) + 3(x - 1)^2 + \frac{1}{2}(x - 1)^3 P 3 ( x ) = 5 − 2 ( x − 1 ) + 3 ( x − 1 ) 2 + 2 1 ( x − 1 ) 3
Find g ′ ( 1 ) g'(1) g ′ ( 1 ) , g ′ ′ ( 1 ) g''(1) g ′′ ( 1 ) and g ′ ′ ′ ( 1 ) g'''(1) g ′′′ ( 1 ) . Is the graph of g g g concave up or concave down at x = 1 x = 1 x = 1 ?
Solution. Multiply each coefficient by k ! k! k ! :
g ′ ( 1 ) = 1 ! ⋅ ( − 2 ) = − 2 , g ′ ′ ( 1 ) = 2 ! ⋅ 3 = 6 , g ′ ′ ′ ( 1 ) = 3 ! ⋅ 1 2 = 3 g'(1) = 1! \cdot (-2) = -2, \qquad g''(1) = 2! \cdot 3 = 6, \qquad g'''(1) = 3! \cdot \frac{1}{2} = 3 g ′ ( 1 ) = 1 ! ⋅ ( − 2 ) = − 2 , g ′′ ( 1 ) = 2 ! ⋅ 3 = 6 , g ′′′ ( 1 ) = 3 ! ⋅ 2 1 = 3
Since g ′ ′ ( 1 ) = 6 > 0 g''(1) = 6 \gt 0 g ′′ ( 1 ) = 6 > 0 , the graph of g g g is concave up at x = 1 x = 1 x = 1 .
Forgetting the factorials. The coefficient of ( x − a ) k (x - a)^k ( x − a ) k is f ( k ) ( a ) k ! \dfrac{f^{(k)}(a)}{k!} k ! f ( k ) ( a ) , not f ( k ) ( a ) f^{(k)}(a) f ( k ) ( a ) . In Example 3, the ( x − 2 ) 2 (x - 2)^2 ( x − 2 ) 2 coefficient is 4 2 = 2 \dfrac{4}{2} = 2 2 4 = 2 , not 4 4 4 .
Writing powers of x instead of powers of (x − a). For a polynomial about x = 4 x = 4 x = 4 , every term uses ( x − 4 ) k (x - 4)^k ( x − 4 ) k . Writing x k x^k x k gives a polynomial about 0 0 0 , which is a different (and wrong) answer. When you evaluate, plug in x − a x - a x − a , like 0.2 0.2 0.2 in Example 2, not x x x itself.
Confusing a derivative value with a coefficient. If a question gives the polynomial and asks for f ′ ′ ′ ( a ) f'''(a) f ′′′ ( a ) , multiply the coefficient by 3 ! = 6 3! = 6 3 ! = 6 . If it gives f ′ ′ ′ ( a ) f'''(a) f ′′′ ( a ) and asks for the coefficient, divide by 6 6 6 .
Mixing up degree and number of terms. The degree is the highest power. For sin x \sin x sin x , the third-degree and fourth-degree Maclaurin polynomials are the same, x − x 3 6 x - \dfrac{x^3}{6} x − 6 x 3 , because the x 4 x^4 x 4 coefficient is 0 0 0 .
Sign errors in the derivatives. Derivatives like those of 1 x \dfrac{1}{x} x 1 or cos x \cos x cos x alternate in sign. Write each derivative on its own line, as in Example 2, before evaluating.
1. (Warm-up) Find the second-degree Maclaurin polynomial for cos x \cos x cos x .
Solution f ( 0 ) = cos 0 = 1 f(0) = \cos 0 = 1 f ( 0 ) = cos 0 = 1 , f ′ ( 0 ) = − sin 0 = 0 f'(0) = -\sin 0 = 0 f ′ ( 0 ) = − sin 0 = 0 , f ′ ′ ( 0 ) = − cos 0 = − 1 f''(0) = -\cos 0 = -1 f ′′ ( 0 ) = − cos 0 = − 1 .
P 2 ( x ) = 1 + 0 ⋅ x + − 1 2 ! x 2 = 1 − x 2 2 P_2(x) = 1 + 0 \cdot x + \frac{-1}{2!}x^2 = 1 - \frac{x^2}{2} P 2 ( x ) = 1 + 0 ⋅ x + 2 ! − 1 x 2 = 1 − 2 x 2
2. (Warm-up) A function has f ( 0 ) = 2 f(0) = 2 f ( 0 ) = 2 , f ′ ( 0 ) = − 3 f'(0) = -3 f ′ ( 0 ) = − 3 and f ′ ′ ( 0 ) = 8 f''(0) = 8 f ′′ ( 0 ) = 8 . Write its second-degree Maclaurin polynomial.
Solution P 2 ( x ) = 2 − 3 x + 8 2 ! x 2 = 2 − 3 x + 4 x 2 P_2(x) = 2 - 3x + \frac{8}{2!}x^2 = 2 - 3x + 4x^2 P 2 ( x ) = 2 − 3 x + 2 ! 8 x 2 = 2 − 3 x + 4 x 2
3. (Warm-up) Find the third-degree Maclaurin polynomial for ln ( 1 + x ) \ln(1 + x) ln ( 1 + x ) .
Solution f ( x ) = ln ( 1 + x ) f ( 0 ) = 0 f ′ ( x ) = ( 1 + x ) − 1 f ′ ( 0 ) = 1 f ′ ′ ( x ) = − ( 1 + x ) − 2 f ′ ′ ( 0 ) = − 1 f ′ ′ ′ ( x ) = 2 ( 1 + x ) − 3 f ′ ′ ′ ( 0 ) = 2 \begin{aligned}
f(x) &= \ln(1 + x) && f(0) = 0 \\
f'(x) &= (1 + x)^{-1} && f'(0) = 1 \\
f''(x) &= -(1 + x)^{-2} && f''(0) = -1 \\
f'''(x) &= 2(1 + x)^{-3} && f'''(0) = 2
\end{aligned} f ( x ) f ′ ( x ) f ′′ ( x ) f ′′′ ( x ) = ln ( 1 + x ) = ( 1 + x ) − 1 = − ( 1 + x ) − 2 = 2 ( 1 + x ) − 3 f ( 0 ) = 0 f ′ ( 0 ) = 1 f ′′ ( 0 ) = − 1 f ′′′ ( 0 ) = 2 P 3 ( x ) = x − x 2 2 + 2 3 ! x 3 = x − x 2 2 + x 3 3 P_3(x) = x - \frac{x^2}{2} + \frac{2}{3!}x^3 = x - \frac{x^2}{2} + \frac{x^3}{3} P 3 ( x ) = x − 2 x 2 + 3 ! 2 x 3 = x − 2 x 2 + 3 x 3
4. (Core) Find the third-degree Taylor polynomial for f ( x ) = 1 x f(x) = \dfrac{1}{x} f ( x ) = x 1 about x = 1 x = 1 x = 1 , and use it to approximate 1 1.1 \dfrac{1}{1.1} 1.1 1 .
Solution f ( x ) = x − 1 f(x) = x^{-1} f ( x ) = x − 1 , f ′ ( x ) = − x − 2 f'(x) = -x^{-2} f ′ ( x ) = − x − 2 , f ′ ′ ( x ) = 2 x − 3 f''(x) = 2x^{-3} f ′′ ( x ) = 2 x − 3 , f ′ ′ ′ ( x ) = − 6 x − 4 f'''(x) = -6x^{-4} f ′′′ ( x ) = − 6 x − 4 , so at x = 1 x = 1 x = 1 the values are 1 , − 1 , 2 , − 6 1, -1, 2, -6 1 , − 1 , 2 , − 6 .
P 3 ( x ) = 1 − ( x − 1 ) + 2 2 ! ( x − 1 ) 2 − 6 3 ! ( x − 1 ) 3 = 1 − ( x − 1 ) + ( x − 1 ) 2 − ( x − 1 ) 3 P_3(x) = 1 - (x - 1) + \frac{2}{2!}(x - 1)^2 - \frac{6}{3!}(x - 1)^3 = 1 - (x - 1) + (x - 1)^2 - (x - 1)^3 P 3 ( x ) = 1 − ( x − 1 ) + 2 ! 2 ( x − 1 ) 2 − 3 ! 6 ( x − 1 ) 3 = 1 − ( x − 1 ) + ( x − 1 ) 2 − ( x − 1 ) 3 With x − 1 = 0.1 x - 1 = 0.1 x − 1 = 0.1 :
1 1.1 ≈ 1 − 0.1 + 0.01 − 0.001 = 0.909 \frac{1}{1.1} \approx 1 - 0.1 + 0.01 - 0.001 = 0.909 1.1 1 ≈ 1 − 0.1 + 0.01 − 0.001 = 0.909 (Check: 1 1.1 ≈ 0.90909 \dfrac{1}{1.1} \approx 0.90909 1.1 1 ≈ 0.90909 .)
5. (Core) Find the third-degree Taylor polynomial for f ( x ) = sin x f(x) = \sin x f ( x ) = sin x about x = π 6 x = \dfrac{\pi}{6} x = 6 π (radians).
Solution f ( π 6 ) = sin π 6 = 1 2 f ′ ( π 6 ) = cos π 6 = 3 2 f ′ ′ ( π 6 ) = − sin π 6 = − 1 2 f ′ ′ ′ ( π 6 ) = − cos π 6 = − 3 2 \begin{aligned}
f\left(\tfrac{\pi}{6}\right) &= \sin\tfrac{\pi}{6} = \tfrac{1}{2} &
f'\left(\tfrac{\pi}{6}\right) &= \cos\tfrac{\pi}{6} = \tfrac{\sqrt{3}}{2} \\
f''\left(\tfrac{\pi}{6}\right) &= -\sin\tfrac{\pi}{6} = -\tfrac{1}{2} &
f'''\left(\tfrac{\pi}{6}\right) &= -\cos\tfrac{\pi}{6} = -\tfrac{\sqrt{3}}{2}
\end{aligned} f ( 6 π ) f ′′ ( 6 π ) = sin 6 π = 2 1 = − sin 6 π = − 2 1 f ′ ( 6 π ) f ′′′ ( 6 π ) = cos 6 π = 2 3 = − cos 6 π = − 2 3 P 3 ( x ) = 1 2 + 3 2 ( x − π 6 ) − 1 4 ( x − π 6 ) 2 − 3 12 ( x − π 6 ) 3 P_3(x) = \frac{1}{2} + \frac{\sqrt{3}}{2}\left(x - \frac{\pi}{6}\right) - \frac{1}{4}\left(x - \frac{\pi}{6}\right)^2 - \frac{\sqrt{3}}{12}\left(x - \frac{\pi}{6}\right)^3 P 3 ( x ) = 2 1 + 2 3 ( x − 6 π ) − 4 1 ( x − 6 π ) 2 − 12 3 ( x − 6 π ) 3 (The last two coefficients are − 1 / 2 2 ! = − 1 4 -\dfrac{1/2}{2!} = -\dfrac{1}{4} − 2 ! 1/2 = − 4 1 and − 3 / 2 3 ! = − 3 12 -\dfrac{\sqrt{3}/2}{3!} = -\dfrac{\sqrt{3}}{12} − 3 ! 3 /2 = − 12 3 .)
6. (Core) A function f f f has f ( − 1 ) = 4 f(-1) = 4 f ( − 1 ) = 4 , f ′ ( − 1 ) = 0 f'(-1) = 0 f ′ ( − 1 ) = 0 , f ′ ′ ( − 1 ) = − 6 f''(-1) = -6 f ′′ ( − 1 ) = − 6 and f ′ ′ ′ ( − 1 ) = 12 f'''(-1) = 12 f ′′′ ( − 1 ) = 12 .
(a) Write the third-degree Taylor polynomial for f f f about x = − 1 x = -1 x = − 1 .
(b) Use it to approximate f ( − 0.8 ) f(-0.8) f ( − 0.8 ) .
(c) Does f f f have a relative maximum, a relative minimum, or neither at x = − 1 x = -1 x = − 1 ? Justify.
Solution (a)
P 3 ( x ) = 4 + 0 ( x + 1 ) + − 6 2 ! ( x + 1 ) 2 + 12 3 ! ( x + 1 ) 3 = 4 − 3 ( x + 1 ) 2 + 2 ( x + 1 ) 3 P_3(x) = 4 + 0(x + 1) + \frac{-6}{2!}(x + 1)^2 + \frac{12}{3!}(x + 1)^3 = 4 - 3(x + 1)^2 + 2(x + 1)^3 P 3 ( x ) = 4 + 0 ( x + 1 ) + 2 ! − 6 ( x + 1 ) 2 + 3 ! 12 ( x + 1 ) 3 = 4 − 3 ( x + 1 ) 2 + 2 ( x + 1 ) 3 (b) With x + 1 = 0.2 x + 1 = 0.2 x + 1 = 0.2 :
f ( − 0.8 ) ≈ 4 − 3 ( 0.04 ) + 2 ( 0.008 ) = 3.896 f(-0.8) \approx 4 - 3(0.04) + 2(0.008) = 3.896 f ( − 0.8 ) ≈ 4 − 3 ( 0.04 ) + 2 ( 0.008 ) = 3.896 (c) f ′ ( − 1 ) = 0 f'(-1) = 0 f ′ ( − 1 ) = 0 and f ′ ′ ( − 1 ) = − 6 < 0 f''(-1) = -6 \lt 0 f ′′ ( − 1 ) = − 6 < 0 , so by the second derivative test, f f f has a relative maximum at x = − 1 x = -1 x = − 1 .
7. (Core) The third-degree Taylor polynomial for g g g about x = 2 x = 2 x = 2 is P 3 ( x ) = 7 + 4 ( x − 2 ) − 5 ( x − 2 ) 2 + 2 3 ( x − 2 ) 3 P_3(x) = 7 + 4(x - 2) - 5(x - 2)^2 + \dfrac{2}{3}(x - 2)^3 P 3 ( x ) = 7 + 4 ( x − 2 ) − 5 ( x − 2 ) 2 + 3 2 ( x − 2 ) 3 . Find g ( 2 ) g(2) g ( 2 ) , g ′ ( 2 ) g'(2) g ′ ( 2 ) , g ′ ′ ( 2 ) g''(2) g ′′ ( 2 ) and g ′ ′ ′ ( 2 ) g'''(2) g ′′′ ( 2 ) .
Solution g ( 2 ) = 7 , g ′ ( 2 ) = 1 ! ⋅ 4 = 4 , g ′ ′ ( 2 ) = 2 ! ⋅ ( − 5 ) = − 10 , g ′ ′ ′ ( 2 ) = 3 ! ⋅ 2 3 = 4 g(2) = 7, \qquad g'(2) = 1! \cdot 4 = 4, \qquad g''(2) = 2! \cdot (-5) = -10, \qquad g'''(2) = 3! \cdot \frac{2}{3} = 4 g ( 2 ) = 7 , g ′ ( 2 ) = 1 ! ⋅ 4 = 4 , g ′′ ( 2 ) = 2 ! ⋅ ( − 5 ) = − 10 , g ′′′ ( 2 ) = 3 ! ⋅ 3 2 = 4
8. (Challenge) Find the third-degree Maclaurin polynomial for tan x \tan x tan x , and use it to approximate tan 0.1 \tan 0.1 tan 0.1 (radians).
Solution f ( x ) = tan x f ( 0 ) = 0 f ′ ( x ) = sec 2 x f ′ ( 0 ) = 1 f ′ ′ ( x ) = 2 sec 2 x tan x f ′ ′ ( 0 ) = 0 f ′ ′ ′ ( x ) = 4 sec 2 x tan 2 x + 2 sec 4 x f ′ ′ ′ ( 0 ) = 2 \begin{aligned}
f(x) &= \tan x && f(0) = 0 \\
f'(x) &= \sec^2 x && f'(0) = 1 \\
f''(x) &= 2\sec^2 x \tan x && f''(0) = 0 \\
f'''(x) &= 4\sec^2 x \tan^2 x + 2\sec^4 x && f'''(0) = 2
\end{aligned} f ( x ) f ′ ( x ) f ′′ ( x ) f ′′′ ( x ) = tan x = sec 2 x = 2 sec 2 x tan x = 4 sec 2 x tan 2 x + 2 sec 4 x f ( 0 ) = 0 f ′ ( 0 ) = 1 f ′′ ( 0 ) = 0 f ′′′ ( 0 ) = 2 (For f ′ ′ ′ f''' f ′′′ , use the product rule on 2 sec 2 x ⋅ tan x 2\sec^2 x \cdot \tan x 2 sec 2 x ⋅ tan x : the derivative of sec 2 x \sec^2 x sec 2 x is 2 sec 2 x tan x 2\sec^2 x \tan x 2 sec 2 x tan x .)
P 3 ( x ) = x + 2 3 ! x 3 = x + x 3 3 P_3(x) = x + \frac{2}{3!}x^3 = x + \frac{x^3}{3} P 3 ( x ) = x + 3 ! 2 x 3 = x + 3 x 3 tan 0.1 ≈ 0.1 + 0.001 3 ≈ 0.100333 \tan 0.1 \approx 0.1 + \frac{0.001}{3} \approx 0.100333 tan 0.1 ≈ 0.1 + 3 0.001 ≈ 0.100333 (Check: tan 0.1 ≈ 0.100335 \tan 0.1 \approx 0.100335 tan 0.1 ≈ 0.100335 .)
9. (Challenge) Let y = f ( x ) y = f(x) y = f ( x ) be the solution of the differential equation d y d x = x + y \dfrac{dy}{dx} = x + y d x d y = x + y with f ( 0 ) = 1 f(0) = 1 f ( 0 ) = 1 . Find the third-degree Maclaurin polynomial for f f f , and use it to approximate f ( 0.1 ) f(0.1) f ( 0.1 ) .
Solution You don’t need to solve the differential equation. Find each derivative at x = 0 x = 0 x = 0 from the equation itself:
y ′ = x + y y ′ ( 0 ) = 0 + 1 = 1 y ′ ′ = 1 + y ′ y ′ ′ ( 0 ) = 1 + 1 = 2 y ′ ′ ′ = y ′ ′ y ′ ′ ′ ( 0 ) = 2 \begin{aligned}
y' &= x + y && y'(0) = 0 + 1 = 1 \\
y'' &= 1 + y' && y''(0) = 1 + 1 = 2 \\
y''' &= y'' && y'''(0) = 2
\end{aligned} y ′ y ′′ y ′′′ = x + y = 1 + y ′ = y ′′ y ′ ( 0 ) = 0 + 1 = 1 y ′′ ( 0 ) = 1 + 1 = 2 y ′′′ ( 0 ) = 2 P 3 ( x ) = 1 + x + 2 2 ! x 2 + 2 3 ! x 3 = 1 + x + x 2 + x 3 3 P_3(x) = 1 + x + \frac{2}{2!}x^2 + \frac{2}{3!}x^3 = 1 + x + x^2 + \frac{x^3}{3} P 3 ( x ) = 1 + x + 2 ! 2 x 2 + 3 ! 2 x 3 = 1 + x + x 2 + 3 x 3 f ( 0.1 ) ≈ 1 + 0.1 + 0.01 + 0.000333 ≈ 1.110 f(0.1) \approx 1 + 0.1 + 0.01 + 0.000333 \approx 1.110 f ( 0.1 ) ≈ 1 + 0.1 + 0.01 + 0.000333 ≈ 1.110 (Check: the exact solution is y = 2 e x − x − 1 y = 2e^x - x - 1 y = 2 e x − x − 1 , and f ( 0.1 ) ≈ 1.110342 f(0.1) \approx 1.110342 f ( 0.1 ) ≈ 1.110342 .)