Tutorials › AP Calculus › Bounding Exponential Approximation Errors

Taylor Series and Error Bounds · Tutorial 890 of 999

Bounding Exponential Approximation Errors

Use the Lagrange remainder for the exponential function to find pointwise and interval-wide error bounds, with the derivative maximum chosen on the correct interval.

Advanced 8 min read

What You'll Learn

  • State the Lagrange remainder for a Taylor polynomial of the exponential function
  • Choose a maximum value of the relevant derivative that applies across the entire interval
  • Find uniform error bounds when approximating the exponential function over a specified interval
  • Distinguish pointwise error bounds from bounds that hold throughout an interval
  • Recognize why using the derivative value only at the input can give an invalid bound

Why Exponential Error Bounds Are Convenient

When a Taylor polynomial approximates \(e^x\), the approximation is useful only if we also understand how far it could be from the true value. Taylor’s theorem provides a bound on that error. For the exponential function, the calculation is especially direct: every derivative of \(e^x\) is \(e^x\).

The important choice is not just the degree of the polynomial. We must also bound the relevant derivative over the whole interval where the theorem says its value could occur. Choosing a derivative value only at the input, without checking that it controls the entire interval, can produce a bound that is too small.

The Taylor Polynomial and Its Remainder

For a function \(f\) with sufficiently many derivatives, the degree-\(n\) Taylor polynomial centered at \(a\) is

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

Taylor’s theorem with the Lagrange remainder says that, if \(f\) has \(n+1\) continuous derivatives on the interval between \(a\) and \(x\), then for some number \(c\) between \(a\) and \(x\),

$$ f(x)=P_n(x)+R_n(x), \qquad R_n(x)=\frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}. $$

For \(f(x)=e^x\), every derivative is \(e^x\), so the remainder takes the form

$$ R_n(x)=\frac{e^c}{(n+1)!}(x-a)^{n+1}, $$

where \(c\) lies between \(a\) and \(x\). Since \(e^c\) is positive, taking absolute values gives

$$ |e^x-P_n(x)|=\frac{e^c|x-a|^{n+1}}{(n+1)!}. $$
Theorem: If \(M\) is an upper bound for \(e^t\) at every point \(t\) between the Taylor center \(a\) and the input \(x\), then $$ |e^x-P_n(x)|\leq \frac{M|x-a|^{n+1}}{(n+1)!}. $$

Why the Derivative Maximum Must Cover the Interval

The remainder formula does not say that the unknown \(c\) equals \(x\), or that it equals \(a\). It says only that \(c\) lies between them. Therefore, a valid choice of \(M\) must satisfy \(e^t\leq M\) throughout that interval. Because \(e^t\) is increasing, its maximum on an interval occurs at the right endpoint.

For a particular input \(x\), the interval runs from \(a\) to \(x\). Thus the pointwise choice \(M=e^{\max(a,x)}\) is valid. If we need one bound that works for every \(x\) in a specified interval \([L,U]\), and the center \(a\) is also in that interval, then every relevant \(c\) is in \([L,U]\). The single choice \(M=e^U\) works for all those inputs.

Key takeaway: Bound \(e^c\) over the entire interval where the Lagrange theorem places \(c\). For an interval \([L,U]\) containing the center and inputs, \(e^U\) is a valid uniform maximum.

Deriving the Error Bound

The error estimate follows directly from the remainder formula and the maximum just described. This short derivation makes clear both the source of each factor and the condition needed for the estimate.

1
Start with the exact remainder.
For some \(c\) between \(a\) and \(x\), Taylor’s theorem gives \(R_n(x)=e^c(x-a)^{n+1}/(n+1)!\).
2
Take absolute values.
Since \(e^c>0\), this gives \(|R_n(x)|=e^c|x-a|^{n+1}/(n+1)!\).
3
Use a maximum valid on the whole interval.
If \(e^t\leq M\) for every \(t\) between \(a\) and \(x\), then \(e^c\leq M\).
4
Conclude the bound.
Substituting \(e^c\leq M\) yields \(|R_n(x)|\leq M|x-a|^{n+1}/(n+1)!\).

This argument also explains the two parts of the estimate: \(M\) controls the derivative, while \(|x-a|^{n+1}/(n+1)!\) records the distance from the center and the degree of the polynomial.

Worked Examples

Worked Example: A Uniform Bound on the Interval from 0 to 1

Use the degree-4 Taylor polynomial for \(e^x\) centered at \(0\) to bound the approximation error for every \(x\in[0,1]\).

At \(a=0\), the degree-4 polynomial is

$$ P_4(x)=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\frac{x^4}{4!}. $$

The fifth derivative is \(e^x\). For every \(x\in[0,1]\), the intermediate value \(c\) is also in \([0,1]\), where \(e^c\leq e\). Also, \(|x|\leq1\). Therefore,

$$ |e^x-P_4(x)| \leq \frac{e|x|^5}{5!} \leq \frac{e}{120} \approx 0.02265. $$

For example, at \(x=1\), the polynomial gives

$$ P_4(1)=1+1+\frac12+\frac16+\frac1{24} =\frac{24+24+12+4+1}{24} =\frac{65}{24} \approx2.70833. $$

The actual error there is \(e-\frac{65}{24}\approx0.00995\), which is less than \(e/120\approx0.02265\). The bound is valid throughout \([0,1]\), not only at \(x=1\).

Worked Example: A Pointwise Bound at \(x=0.5\)

Approximate \(e^{0.5}\) with the degree-3 Taylor polynomial centered at \(0\), and find a valid error bound for this input.

The polynomial is

$$ P_3(x)=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}. $$

Substituting \(x=0.5=\frac12\) gives

$$ P_3(0.5)=1+\frac12+\frac{(1/2)^2}{2}+\frac{(1/2)^3}{6} =1+\frac12+\frac18+\frac1{48} =\frac{48+24+6+1}{48} =\frac{79}{48} \approx1.64583. $$

The intermediate value \(c\) lies between \(0\) and \(0.5\). Since \(e^t\) is increasing, \(e^c\leq e^{0.5}\). The degree is \(3\), so the remainder involves the fourth power of the distance:

$$ |e^{0.5}-P_3(0.5)| \leq \frac{e^{0.5}(0.5)^4}{4!} =\frac{e^{0.5}}{384} \approx0.00430. $$

Using \(e^{0.5}\approx1.64872\), this bound is \(1.64872/384\approx0.00429\). The actual error is approximately \(e^{0.5}-79/48\approx0.00289\), which is below the bound. This checks both the polynomial value and the error estimate.

Worked Example: A Negative Input and the Correct Derivative Maximum

Use the degree-2 Taylor polynomial centered at \(0\) to approximate \(e^{-1}\). Find an error bound, taking account of the fact that the intermediate value lies on the negative side of the center.

The polynomial and its value at \(-1\) are

$$ P_2(x)=1+x+\frac{x^2}{2}, \qquad P_2(-1)=1-1+\frac12=\frac12. $$

Here \(c\) lies between \(-1\) and \(0\). On that interval, \(e^c\leq e^0=1\); the maximum derivative value is \(1\), not \(e\). Since \(|-1-0|=1\),

$$ |e^{-1}-P_2(-1)| \leq \frac{1\cdot 1^3}{3!} =\frac16 \approx0.16667. $$

Numerically, \(e^{-1}\approx0.36788\), so the actual error is \(\left|0.36788-0.5\right|\approx0.13212\), less than \(1/6\). The bound uses the maximum of \(e^c\) over the full interval \([-1,0]\), as required.

A Common Mistake: Using the Derivative at the Input

In the negative-input example, it would be incorrect to set \(M=e^{-1}\) merely because the input is \(-1\). That choice produces the unsupported estimate

$$ |e^{-1}-P_2(-1)| \leq \frac{e^{-1}}{6} \approx0.06131. $$

But the actual error is about \(0.13212\), so this claimed bound is false. The mistake is treating the derivative value at the input as if it were an upper bound for \(e^c\). The theorem does not guarantee \(c=-1\); it allows any \(c\) between \(-1\) and \(0\), and \(e^c\) can be as large as \(1\) there.

Check before using a bound: Identify the interval containing every possible \(c\), then find a maximum of the derivative’s absolute value on that entire interval. Do not substitute a derivative value at one endpoint unless it is actually the maximum.

Pointwise and Uniform Bounds

A pointwise bound is calculated for one specified input \(x\). Its interval for \(c\) runs only between the center \(a\) and that input, so it can use a relatively small maximum. A uniform bound must hold for every input in a stated interval. It must use a derivative maximum valid across all the corresponding intervals for \(c\).

For instance, when the center is \(0\) and the inputs lie in \([-1,1]\), the intermediate values can lie anywhere in \([-1,1]\). Thus a uniform derivative maximum is \(e\), giving

$$ |e^x-P_n(x)|\leq \frac{e|x|^{n+1}}{(n+1)!} \leq \frac{e}{(n+1)!} \qquad (-1\leq x\leq1). $$

For a single negative input, the pointwise maximum may instead be \(1\), as in the example at \(x=-1\). The uniform estimate is broader because it must cover positive inputs too. Both estimates are valid when their derivative maxima cover the required intervals; they simply answer different questions.

Check Your Understanding

For each question, identify the interval where the intermediate value can lie before choosing a derivative maximum.

  1. For the degree-2 Taylor polynomial of \(e^x\) centered at \(0\), what uniform error bound applies on \([0,1]\)?
  2. For a pointwise estimate at \(x=-0.4\) with center \(0\), what is a valid maximum for \(e^c\)?
  3. Why does a uniform estimate on \([-1,1]\) require a larger derivative maximum than the pointwise estimate at \(x=-1\)?
  4. What is the power of \(|x-a|\) in the Lagrange remainder for a degree-5 Taylor polynomial?
  5. Explain why using \(e^x\) as the derivative maximum for a negative input \(x\) may fail.

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