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 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
2Building one
Degree-3 polynomial for \(e^x\) about 0; estimate \(e^{0.5}\)
- 1Every derivative of \(e^x\) is \(e^x\), and \(e^0 = 1\).
- 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\(P_3(0.5) = 1 + 0.5 + 0.125 + 0.0208 \approx 1.6458\).
“\(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\).”
Degree 3 for \(\ln x\) about \(x = 1\); estimate \(\ln 1.2\)
- 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\(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\(P_3(1.2) = 0.2 - 0.02 + 0.002667 \approx 0.18267\).
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.
About \(x = 1\), the powers are \((x - 1)^k\). Writing \(x^k\) builds a polynomial about 0 with the wrong coefficients.
3Terms that vanish
Degree-4 and degree-5 polynomials for \(\cos x\) about 0
- 1Derivatives at 0 cycle: \(1, 0, -1, 0, 1, 0, \dots\)
- 2\(P_4(x) = 1 - \dfrac{x^2}{2} + \dfrac{x^4}{24}\). The \(x^5\) coefficient is 0, so \(P_5 = P_4\).
“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
\(f(2) = 1\), \(f'(2) = -3\), \(f''(2) = 4\), \(f'''(2) = 12\)
- 1Divide each derivative by its factorial: \(\frac{4}{2!} = 2\), \(\frac{12}{3!} = 2\).
\(P(x) = 3 - 2(x - 1) + 5(x - 1)^2\) is the degree-2 Taylor polynomial of \(f\) about 1. Find \(f''(1)\).
- 1The coefficient of \((x - 1)^2\) is \(\dfrac{f''(1)}{2!}\). So \(\dfrac{f''(1)}{2} = 5\).
The coefficients use derivatives evaluated at the center \(a\). Only the factors \((x - a)^k\) contain \(x\).
Quick reference
| Term k | Coefficient | Times |
|---|---|---|
| 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\) |