Unit 10 · Topic 10.11

Taylor Polynomials

The n th-degree Taylor polynomial for f about x = a is ∑ for k = 0 to n of (f^((k))(a))/(k!) (x − a)^k .

Practice 1: Implementing Mathematical ProcessesPractice 2: Connecting Representations

Part 1 · Hook

Why this matters

Your calculator does not store a table of cos⁡x\cos x. It computes cos⁡x\cos x from a polynomial, because polynomials need only adding and multiplying. A Taylor polynomial is the polynomial that copies a function's value, slope, concavity and more at one point, and so stays close to the function nearby.

Part 2 · Before you start

What this builds on

Part 3 · Prerequisite check

Quick check before you start

1. The tangent line to ff at x=ax = a is

  1. y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a)
  2. y=f(a)+f′(x)(x−a)y = f(a) + f'(x)(x - a)
  3. y=f′(a)(x−a)y = f'(a)(x - a)
  4. y=f(a)(x−a)+f′(a)y = f(a)(x - a) + f'(a)
Show the answer

It passes through (a,f(a))(a, f(a)) with slope f′(a)f'(a).

  • Correct: y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a):
  • y=f(a)+f′(x)(x−a)y = f(a) + f'(x)(x - a):
  • y=f′(a)(x−a)y = f'(a)(x - a):
  • y=f(a)(x−a)+f′(a)y = f(a)(x - a) + f'(a):

2. If f(x)=sin⁡xf(x) = \sin x, what is f‴(x)f'''(x)?

  1. −cos⁡x-\cos x
  2. cos⁡x\cos x
  3. −sin⁡x-\sin x
  4. sin⁡x\sin x
Show the answer

f′=cos⁡xf' = \cos x, f″=−sin⁡xf'' = -\sin x, f‴=−cos⁡xf''' = -\cos x.

  • Correct: −cos⁡x-\cos x:
  • cos⁡x\cos x:
  • −sin⁡x-\sin x:
  • sin⁡x\sin x:

3. What is 4!4!?

  1. 2424
  2. 1616
  3. 1010
  4. 44
Show the answer

4!=4⋅3⋅2⋅1=244! = 4 \cdot 3 \cdot 2 \cdot 1 = 24.

  • Correct: 2424:
  • 1616:
  • 1010:
  • 44:

Part 4 · See it

See it first

The graph of y = cos x from x = -6.5 to 6.5 with three Taylor polynomials about x = 0: P sub 2 = 1 minus x squared over 2, a downward parabola that follows cos x for about |x| < 1; P sub 4, which adds x to the fourth over 24 and follows it to about |x| = 2; and P sub 6, which follows it to about |x| = 3. All three agree with cos x at x = 0 and peel away farther out.
P2P_2, P4P_4 and P6P_6 for cos⁡x\cos x about x=0x = 0: each added term makes the polynomial follow cos⁡x\cos x farther from the center. LevlPrep original diagram.

Part 5 · Step by step

How it works, step by step

  1. The tangent line matches f(a)f(a) and f′(a)f'(a)it fits ff well very near aa but misses the bending
  2. Add a term f″(a)2!(x−a)2\frac{f''(a)}{2!}(x - a)^2the polynomial's second derivative at aa is f″(a)f''(a), so it bends the same way ff does
  3. Keep adding terms f(n)(a)n!(x−a)n\frac{f^{(n)}(a)}{n!}(x - a)^nthe polynomial matches more derivatives at aa and usually stays close to ff over a wider stretch

Part 6 · Key ideas

Key ideas

  • Pn(x)P_n(x)=f(a)= f(a)+f′(a)(x−a)+ f'(a)(x - a)+f″(a)2!(x−a)2+ \frac{f''(a)}{2!}(x - a)^2+⋯+ \cdots+f(n)(a)n!(x−a)n+ \frac{f^{(n)}(a)}{n!}(x - a)^n.
  • The center is where the derivatives are taken: powers of (x−a)(x - a), derivatives at aa.
  • P1P_1 is the tangent line; each higher term matches one more derivative at the center.
  • A Taylor polynomial ends at its last term: write it out with no "+⋯+ \cdots".

Part 7 · Misconception

A common mistake

The wrong idea: The second-degree Taylor polynomial for ff about x=2x = 2 is f(2)+f′(2)x+f″(2)x2f(2) + f'(2)x + f''(2)x^2.

What actually happens: Use powers of (x−2)(x - 2) and divide by the factorials: f(2)f(2)+f′(2)(x−2)+ f'(2)(x - 2)+f″(2)2!(x−2)2+ \frac{f''(2)}{2!}(x - 2)^2.

Part 8 · Check yourself

Check yourself

Exam-style questions. Anything you miss goes into your review queue.

Table

A function and its derivatives at x=1x = 1

Values of ff and its first four derivatives at x=1x = 1
f(1)f(1)f′(1)f'(1)f″(1)f''(1)f‴(1)f'''(1)f(4)(1)f^{(4)}(1)
22−3-3551212−48-48

1. Write the second-degree Taylor polynomial P2(x)P_2(x) for ff about x=1x = 1.

Type an expression for P2(x)=P_2(x) =.

Show the answer

P2(x)P_2(x)=f(1)= f(1)+f′(1)(x−1)+ f'(1)(x - 1)+f″(1)2!(x−1)2+ \frac{f''(1)}{2!}(x - 1)^2=2−3(x−1)= 2 - 3(x - 1)+52(x−1)2+ \frac{5}{2}(x - 1)^2.

  • Answer: P2(x)=P_2(x) = 2−3(x−1)+52(x−1)22 - 3(x - 1) + \frac{5}{2}(x - 1)^2

2. Find the coefficient of (x−1)3(x - 1)^3 in the third-degree Taylor polynomial for ff about x=1x = 1.

No calculator. Type the exact value (a fraction, π, e or a root is fine).

Show the answer

The coefficient of (x−1)3(x - 1)^3 is f‴(1)3!=126=2\frac{f'''(1)}{3!} = \frac{12}{6} = 2.

  • Answer: 2

3. Use the third-degree Taylor polynomial for ff about x=1x = 1 to estimate f(1.2)f(1.2).

No calculator. Type the exact value (a fraction, π, e or a root is fine).

Show the answer

P3(x)P_3(x)=2−3(x−1)= 2 - 3(x - 1)+52(x−1)2+ \frac{5}{2}(x - 1)^2+2(x−1)3+ 2(x - 1)^3, so P3(1.2)P_3(1.2)=2−0.6= 2 - 0.6+0.1+ 0.1+0.016+ 0.016=1.516= 1.516.

  • Answer: 1.516

4. The third-degree Taylor polynomial for ff about x=−1x = -1 is P3(x)P_3(x)=4−2(x+1)= 4 - 2(x + 1)+3(x+1)2−5(x+1)3+ 3(x + 1)^2 - 5(x + 1)^3. Find f″(−1)f''(-1).

No calculator. Type the exact value (a fraction, π, e or a root is fine).

Show the answer

The coefficient of (x+1)2(x + 1)^2 is f″(−1)2!=3\frac{f''(-1)}{2!} = 3, so f″(−1)=2⋅3=6f''(-1) = 2 \cdot 3 = 6.

  • Answer: 6

5. The second-degree Taylor polynomial for ff about x=3x = 3 is P2(x)=5−2(x−3)2P_2(x) = 5 - 2(x - 3)^2. What does this show about ff at x=3x = 3?

  1. ff has a relative minimum at x=3x = 3
  2. ff has a point of inflection at x=3x = 3
  3. ff is decreasing at x=3x = 3
  4. ff has a relative maximum at x=3x = 3
Show the answer

The missing (x−3)(x - 3) term means f′(3)=0f'(3) = 0, and f″(3)2!=−2\frac{f''(3)}{2!} = -2 gives f″(3)=−4<0f''(3) = -4 < 0. By the second derivative test, ff has a relative maximum at x=3x = 3.

  • ff has a relative minimum at x=3x = 3: The coefficient of (x−3)2(x - 3)^2 is negative, so f″(3)<0f''(3) < 0: concave down, a maximum.
  • ff has a point of inflection at x=3x = 3: f″(3)=−4≠0f''(3) = -4 \ne 0, so the concavity is down at 3, not changing.
  • ff is decreasing at x=3x = 3: There is no (x−3)(x - 3) term, so f′(3)=0f'(3) = 0.
  • Correct: ff has a relative maximum at x=3x = 3: Right: f′(3)=0f'(3) = 0 and f″(3)=−4<0f''(3) = -4 < 0.

6. Which is written correctly as the third-degree Taylor polynomial for exe^x about x=0x = 0?

  1. 1+x+x22+x36+⋯1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots
  2. x+x22+x36+x424x + \frac{x^2}{2} + \frac{x^3}{6} + \frac{x^4}{24}
  3. 1+x+x22+x361 + x + \frac{x^2}{2} + \frac{x^3}{6}
  4. 1+x+x2+x31 + x + x^2 + x^3
Show the answer

Every derivative of exe^x is exe^x, which is 1 at x=0x = 0, so P3(x)P_3(x)=1+x+x22!+x33!= 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!}, written with no "+⋯+ \cdots" since a polynomial has a last term.

  • 1+x+x22+x36+⋯1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots: A polynomial stops: the "+⋯+ \cdots" turns it into an endless sum.
  • x+x22+x36+x424x + \frac{x^2}{2} + \frac{x^3}{6} + \frac{x^4}{24}: This drops f(0)=1f(0) = 1 and adds a fourth-degree term.
  • Correct: 1+x+x22+x361 + x + \frac{x^2}{2} + \frac{x^3}{6}: Right: four terms, through x3x^3, and it stops there.
  • 1+x+x2+x31 + x + x^2 + x^3: The coefficients need the factorials: 12!\frac{1}{2!} and 13!\frac{1}{3!}.

Part 9 · Summary

Summary

The nnth-degree Taylor polynomial for ff about x=ax = a is ∑k=0nf(k)(a)k!(x−a)k\sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x - a)^k. It matches ff and its first nn derivatives at aa, so it approximates ff near aa. About a=0a = 0 it is called a Maclaurin polynomial.

Part 10 · Up next

What comes next

Part 11 · Connections

Connections