Tutorials › AP Calculus › Taylor’s Theorem and the Lagrange Remainder

Taylor Series and Error Bounds · Tutorial 886 of 999

Taylor's Theorem and the Lagrange Remainder

Use Taylor’s theorem to turn a bound on the next derivative into a guaranteed bound on a polynomial approximation’s error.

Advanced 9 min read

What You'll Learn

  • State Taylor’s theorem with the Lagrange remainder and its hypotheses.
  • Distinguish the actual remainder from an upper bound for its absolute value.
  • Find a maximum bound for the next derivative on the interval between the center and target.
  • Apply the error bound to exponential, sine, and logarithmic approximations.
  • Recognize why the derivative order and interval matter.

Why a Taylor Polynomial Needs an Error Bound

A Taylor polynomial gives a local polynomial approximation to a function. Knowing the polynomial alone, however, does not tell us how accurate it is at a particular input. Taylor’s theorem supplies a precise answer: under suitable smoothness conditions, the error is controlled by the function’s next derivative somewhere between the center and the input.

This result is useful whenever an approximation must come with a guarantee. Rather than relying only on how close a few computed values appear, we can bound the maximum possible error using a derivative bound over the relevant interval.

The Taylor Polynomial and Its Remainder

Let \(f\) have derivatives through order \(n\) at a center \(a\). Its degree-\(n\) Taylor polynomial centered at \(a\) is

$$ T_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k. $$

The remainder is the difference between the function and this polynomial:

$$ R_n(x)=f(x)-T_n(x). $$

Thus \(f(x)=T_n(x)+R_n(x)\). The polynomial is the approximation; the remainder is its actual signed error. The absolute error is \(|R_n(x)|\).

Theorem (Taylor’s Theorem with the Lagrange Remainder): Suppose \(f\) has continuous derivatives through order \(n+1\) on an open interval containing the segment between \(a\) and \(x\). If \(x\ne a\), there is a number \(c\) strictly between \(a\) and \(x\) such that $$ f(x)=T_n(x)+\frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}. $$ Consequently, $$ R_n(x)=\frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}. $$ When \(x=a\), the remainder is zero.

The point \(c\) is generally not known. The theorem’s practical value is that we do not need to find it: a bound on the absolute value of the next derivative throughout the segment gives a bound on the remainder.

Remainder Bound: If \(|f^{(n+1)}(t)|\le M\) for every \(t\) between \(a\) and \(x\), then $$ |R_n(x)|\le \frac{M|x-a|^{n+1}}{(n+1)!}. $$

Why the Error Bound Follows

The reasoning from Taylor’s theorem to the bound is short and important. The theorem expresses the remainder as a product involving the next derivative at an intermediate point. Taking absolute values and using the assumed bound on that derivative gives the result.

1
Start with the remainder formula.
For some \(c\) between \(a\) and \(x\), \(R_n(x)=f^{(n+1)}(c)(x-a)^{n+1}/(n+1)!\).
2
Take absolute values.
\(|R_n(x)|=|f^{(n+1)}(c)||x-a|^{n+1}/(n+1)!\).
3
Apply the derivative bound.
Since \(c\) is between \(a\) and \(x\), \(|f^{(n+1)}(c)|\le M\). Therefore \(|R_n(x)|\le M|x-a|^{n+1}/(n+1)!\).

This proves the error bound from the theorem. The factor \(|x-a|^{n+1}\) shows why the distance from the center matters, while the factorial and the derivative maximum also affect the size of the guarantee. This is an upper bound, not usually the exact error.

Applying the Bound

A reliable application follows the same sequence each time: identify the degree and center, differentiate one order beyond the polynomial, bound that derivative on the full segment, and substitute into the formula. The interval is the segment connecting the center to the target, not necessarily a larger interval suggested by the function’s domain.

Worked Example: Approximating \(e^{1/2}\) with a Quadratic

Use the degree-2 Taylor polynomial for \(f(x)=e^x\) centered at \(a=0\) to approximate \(e^{1/2}\), and bound the error.

First, \(f(0)=1\), \(f'(x)=e^x\), and \(f''(x)=e^x\), so \(f'(0)=f''(0)=1\). Therefore

$$ T_2(x)=1+x+\frac{x^2}{2}. $$

At \(x=1/2\), the approximation is

$$ T_2\left(\frac12\right) =1+\frac12+\frac{(1/2)^2}{2} =1+\frac12+\frac18 =\frac{13}{8} =1.625. $$

The next derivative is \(f^{(3)}(t)=e^t\). On the interval \([0,1/2]\), \(e^t\) is increasing, so its maximum is \(M=e^{1/2}\). The theorem gives

$$ \left|e^{1/2}-\frac{13}{8}\right| \le \frac{e^{1/2}(1/2)^3}{3!} = \frac{e^{1/2}}{48} \approx 0.03435. $$

As a numerical check, \(e^{1/2}\approx1.64872\), so the actual absolute error is approximately \(1.64872-1.625=0.02372\), which is less than \(0.03435\). The derivative bound guarantees the inequality; the decimal comparison is a check of this particular approximation.

Worked Example: Bounding a Quadratic Approximation to \(\sin 1\)

Find the degree-2 Taylor approximation to \(f(x)=\sin x\) centered at \(0\), evaluate it at \(x=1\), and bound its error.

The needed values are \(f(0)=0\), \(f'(x)=\cos x\), and \(f''(x)=-\sin x\). Thus \(f'(0)=1\) and \(f''(0)=0\), giving

$$ T_2(x)=0+x+\frac{0}{2}x^2=x. $$

At \(x=1\), \(T_2(1)=1\). The next derivative is \(f^{(3)}(t)=-\cos t\), and \(|\cos t|\le1\) throughout \([0,1]\), so \(M=1\) is valid. Therefore

$$ |\sin 1-1| \le \frac{1\cdot|1-0|^3}{3!} = \frac16 \approx0.16667. $$

Numerically, \(\sin 1\approx0.84147\), so the actual absolute error is approximately \(|0.84147-1|=0.15853\), which is below \(0.16667\). The approximation and the bound are both checked.

Worked Example: Approximating \(\ln(1.2)\) at the Center \(1\)

Use the degree-2 Taylor polynomial for \(f(x)=\ln x\) centered at \(a=1\), then bound the error at \(x=6/5\).

The derivatives are \(f(1)=0\), \(f'(x)=1/x\), and \(f''(x)=-1/x^2\), so \(f'(1)=1\) and \(f''(1)=-1\). Hence

$$ T_2(x)=(x-1)-\frac{(x-1)^2}{2}. $$

Since \(6/5-1=1/5\), the approximation is

$$ T_2\left(\frac65\right) =\frac15-\frac{(1/5)^2}{2} =\frac15-\frac1{50} =\frac9{50} =0.18. $$

The next derivative is \(f^{(3)}(t)=2/t^3\). For \(1\le t\le6/5\), this is positive and decreasing, so its maximum absolute value is \(M=2\), attained at \(t=1\). The remainder bound is

$$ \left|\ln\left(\frac65\right)-\frac9{50}\right| \le \frac{2(1/5)^3}{3!} = \frac{2}{750} = \frac1{375} \approx0.002667. $$

As a numerical check, \(\ln(1.2)\approx0.182322\), so the actual error is approximately \(0.182322-0.18=0.002322\), which is less than \(0.002667\).

A Common Mistake: Using the Wrong Derivative

The error after a degree-\(n\) Taylor polynomial depends on the derivative of order \(n+1\), not the derivative of order \(n\). Using the wrong order can produce a bound that is too small to be true.

For the quadratic approximation \(T_2(x)=x\) to \(\sin x\) at \(x=1\), an incorrect calculation might use \(f''(t)=-\sin t\). On \([0,1]\), \(|f''(t)|\le\sin 1\), so this mistake would give the alleged bound

$$ \frac{\sin 1}{3!}\approx\frac{0.84147}{6}\approx0.14025. $$

But the actual error is approximately \(0.15853\), larger than \(0.14025\). The calculation cannot be a valid error bound. The correction is to use the next derivative, \(f^{(3)}(t)=-\cos t\), and the valid bound \(|f^{(3)}(t)|\le1\). This gives the correct guarantee \(1/6\approx0.16667\).

Choosing \(M\) Carefully

The number \(M\) must bound the absolute value of the next derivative at every point between the center and the target. A derivative value at the center alone is not enough. When the derivative is continuous, its absolute value has a maximum on a closed, bounded segment, so a maximum exists; sometimes it is simpler to use any convenient upper bound instead.

Also keep the role of the result precise: Taylor’s theorem guarantees that the error is no greater than the calculated bound. It does not say the error equals that bound, and it does not generally determine the sign of the error. A larger valid \(M\) still gives a true estimate, but it may be less informative.

Takeaway: For a degree-\(n\) Taylor polynomial, control the \((n+1)\)st derivative on the segment from the center to the target. Then multiply that maximum bound by the distance to the center raised to \(n+1\), and divide by \((n+1)!\).

Check Your Understanding

For each question, identify the derivative order and interval before applying a remainder bound.

  1. For a degree-3 Taylor approximation centered at \(a\), which derivative determines the Lagrange remainder?
  2. What interval must be considered when bounding the error at a target \(x\) using a Taylor polynomial centered at \(a\)?
  3. If \(|f^{(4)}(t)|\le 5\) between \(a=2\) and \(x=3\), what upper bound does Taylor’s theorem give for the error of a degree-3 polynomial?
  4. Why is the value of the next derivative at the center alone insufficient to establish a remainder bound?
  5. Does the Lagrange remainder bound generally give the exact error or only an upper bound for its absolute value?

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon