AP Calculus BC · Study guide

Finding Taylor Polynomial Approximations of Functions

AP® Calculus BC · Unit 10 · Infinite Sequences and Series

Taylor Polynomials

A Taylor polynomial copies a function’s value and derivatives at one point, and in return approximates the function near that point. This guide builds them step by step and reads information back out of them.

The idea in one paragraph

The degree-\(n\) Taylor polynomial of \(f\) about \(x = a\) is \(P_n(x) = \displaystyle\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x - a)^k\). It has the same value and the same first \(n\) derivatives as \(f\) at \(a\), so it stays close to \(f\) near \(a\). With \(a = 0\) it is called a Maclaurin polynomial. Each coefficient is a derivative at \(a\) divided by a factorial, so derivatives can also be read back from the coefficients.

1The formula

\[ P_n(x) = f(a) + f'(a)(x - a) + \frac{f''(a)}{2!}(x - a)^2 + \cdots + \frac{f^{(n)}(a)}{n!}(x - a)^n \]
Figure 1. P₁ matches the value and slope at 0, P₂ also matches the bending, P₃ matches one more derivative. Each added term keeps the polynomial close to eˣ over a wider interval.

2Building one

Worked Example 1 A Maclaurin polynomial

Degree-3 polynomial for \(e^x\) about 0; estimate \(e^{0.5}\)

  1. 1
    Every derivative of \(e^x\) is \(e^x\), and \(e^0 = 1\).
  2. 2
    \(P_3(x) = 1 + x + \dfrac{x^2}{2!} + \dfrac{x^3}{3!} = 1 + x + \dfrac{x^2}{2} + \dfrac{x^3}{6}\).
  3. 3
    \(P_3(0.5) = 1 + 0.5 + 0.125 + 0.0208 \approx 1.6458\).
Answer: \(e^{0.5} \approx 1.6458\) (true value ≈ 1.6487).
Write it like this

“\(P_3(x) = 1 + x + \frac{x^2}{2} + \frac{x^3}{6}\), so \(e^{0.5} \approx P_3(0.5) \approx 1.6458\).”

Worked Example 2 A center away from 0

Degree 3 for \(\ln x\) about \(x = 1\); estimate \(\ln 1.2\)

  1. 1
    \(f(1) = 0\); \(f'(x) = \frac1x\), \(f'(1) = 1\); \(f''(x) = -\frac{1}{x^2}\), \(f''(1) = -1\); \(f'''(x) = \frac{2}{x^3}\), \(f'''(1) = 2\).
  2. 2
    \(P_3(x) = 0 + 1(x - 1) - \dfrac{1}{2!}(x - 1)^2 + \dfrac{2}{3!}(x - 1)^3 = (x - 1) - \dfrac{(x - 1)^2}{2} + \dfrac{(x - 1)^3}{3}\).
  3. 3
    \(P_3(1.2) = 0.2 - 0.02 + 0.002667 \approx 0.18267\).
Answer: \(\ln 1.2 \approx 0.18267\) (true value ≈ 0.18232).
Common Mistake 1 · Mismatching the factorial

The \(k\)th term divides by \(k!\) and multiplies by \((x - a)^k\): the same \(k\) in both places. \(\frac{f'''(a)}{2!}(x - a)^3\) is wrong.

Common Mistake 2 · Writing xᵏ when the center is not 0

About \(x = 1\), the powers are \((x - 1)^k\). Writing \(x^k\) builds a polynomial about 0 with the wrong coefficients.

3Terms that vanish

Worked Example 3 Terms that are 0

Degree-4 and degree-5 polynomials for \(\cos x\) about 0

  1. 1
    Derivatives at 0 cycle: \(1, 0, -1, 0, 1, 0, \dots\)
  2. 2
    \(P_4(x) = 1 - \dfrac{x^2}{2} + \dfrac{x^4}{24}\). The \(x^5\) coefficient is 0, so \(P_5 = P_4\).
Answer: \(P_4(x) = P_5(x) = 1 - \frac{x^2}{2} + \frac{x^4}{24}\)
Common Mistake 3 · Expecting a degree-n polynomial to have an xⁿ term

“Degree \(n\)” means terms up to \((x - a)^n\). If \(f^{(n)}(a) = 0\), that term is missing, and the polynomial is still the degree-\(n\) Taylor polynomial.

4Reading derivatives back

Worked Example 4 From derivative values

\(f(2) = 1\), \(f'(2) = -3\), \(f''(2) = 4\), \(f'''(2) = 12\)

  1. 1
    Divide each derivative by its factorial: \(\frac{4}{2!} = 2\), \(\frac{12}{3!} = 2\).
Answer: \(P_3(x) = 1 - 3(x - 2) + 2(x - 2)^2 + 2(x - 2)^3\)
Worked Example 5 Working backwards

\(P(x) = 3 - 2(x - 1) + 5(x - 1)^2\) is the degree-2 Taylor polynomial of \(f\) about 1. Find \(f''(1)\).

  1. 1
    The coefficient of \((x - 1)^2\) is \(\dfrac{f''(1)}{2!}\). So \(\dfrac{f''(1)}{2} = 5\).
Answer: \(f''(1) = 10\) (and \(f(1) = 3\), \(f'(1) = -2\)).
Common Mistake 4 · Plugging x into the derivatives

The coefficients use derivatives evaluated at the center \(a\). Only the factors \((x - a)^k\) contain \(x\).

Quick reference

Term kCoefficientTimes
0\(f(a)\)1
1\(f'(a)\)\((x - a)\)
2\(\frac{f''(a)}{2}\)\((x - a)^2\)
3\(\frac{f'''(a)}{6}\)\((x - a)^3\)
k\(\frac{f^{(k)}(a)}{k!}\)\((x - a)^k\)