Taylor Polynomials and Remainders

Approximate a smooth function near a center and justify accuracy using an explicit remainder bound.

Builds on Differentiating and Integrating Power Series

The bigger question: How can a polynomial stand in for a complicated function?

On this page

Match derivatives at a center

The degree-nn Taylor polynomial of ff about aa is

Pn(x)=∑k=0nf(k)(a)k!(x−a)k.P_n(x)=\sum_{k=0}^n\frac{f^{(k)}(a)}{k!}(x-a)^k.

It matches the function and its first nn derivatives at the center. Centering at zero gives a Maclaurin polynomial. Matching derivatives is a local construction; to control the error away from the center, a remainder theorem is needed.

If ff has the required continuous derivatives between aa and xx, and ∣f(n+1)(t)∣≤M|f^{(n+1)}(t)|\le M there, Taylor's theorem gives

∣f(x)−Pn(x)∣≤M∣x−a∣n+1(n+1)!.|f(x)-P_n(x)|\le\frac{M|x-a|^{n+1}}{(n+1)!}.

Worked example: exponential approximation

Every derivative of exe^x at zero is 11, so P3(x)=1+x+x2/2+x3/6P_3(x)=1+x+x^2/2+x^3/6. At x=0.2x=0.2, this gives 1.221333…1.221333\ldots. On [0,0.2][0,0.2], the fourth derivative is at most e0.2e^{0.2}; the error is at most e0.2(0.2)4/24<0.000082e^{0.2}(0.2)^4/24<0.000082.

The exact error is smaller than this bound. A bound is a guarantee, not an estimate that must equal the observed discrepancy. Moving farther from the center usually needs more terms for comparable accuracy.

Explore

Taylor approximation of the exponential

Try this. Start at degree 1 and x = 2, then increase the degree. Move the probe to 0: every polynomial agrees there. Compare the error at −2 and 2.

Taylor approximation of the exponential02468x-2-1012Blue: eˣ · Green: Taylor polynomial
Centered at 0; degree 3. At x = 1: eˣ = 2.71828, polynomial = 2.66667, signed error = -0.05162. The orange segment shows the difference at the probe. Fixed plot: −2 ≤ x ≤ 2. Values rounded to five decimals.

Compare the polynomial with exe^x on [−2,2][-2,2]. Change both the degree and the probe point. The readout measures actual error at the probe; it is not the Taylor-theorem upper bound.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

What is the quadratic Taylor polynomial for eˣ centered at 0?

Hint 1 · Find a starting point

Each coefficient is a derivative at zero divided by a factorial.

Hint 2 · Take the next step

All derivatives of eˣ at zero equal 1, and 2!=2.

Show the reasoning

Answer: 1+x+x²/2

The degree-two approximation is 1+x+x²/2; an error estimate requires the remainder.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Worked example: sine and a warning

For sine, P3(x)=x−x3/6P_3(x)=x-x^3/6. Since the fourth derivative has magnitude at most 11, the degree-three remainder is bounded by ∣x∣4/24|x|^4/24. Using the degree-four Taylor polynomial, whose fourth-degree coefficient is zero, improves the bound to ∣x∣5/120|x|^5/120.

An infinitely differentiable function need not equal its Taylor series. The function f(x)=e−1/x2f(x)=e^{-1/x^2} for x≠0x\ne0, with f(0)=0f(0)=0, has all derivatives zero at zero but is positive elsewhere. Equality with an infinite Taylor series requires the remainder to tend to zero.

Practice

  1. Find P2P_2 for exe^x centered at zero.
  2. Find the linear Taylor polynomial of ln⁡x\ln x centered at 11.
  3. Bound the error of 1−x2/21-x^2/2 for cos⁡x\cos x at x=0.1x=0.1 using the degree-three polynomial.
Show worked solutions
  1. P2=1+x+x2/2P_2=1+x+x^2/2.
  2. P1=x−1P_1=x-1, since ln⁡1=0\ln1=0 and (ln⁡x)′∣x=1=1(\ln x)'|_{x=1}=1.
  3. The cubic coefficient is zero and the fourth derivative is bounded by 11, so error is at most 0.14/24≈0.000004170.1^4/24\approx0.00000417.
MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →