Tutorials › AP Calculus › Taylor Polynomials and Remainder Estimates (BC)

Analytical and BC Free Responses · Tutorial 973 of 999

Taylor Polynomials and Remainder Estimates (BC)

Build a Taylor polynomial from derivatives at its center, use it for a local approximation, and bound the error by controlling the next derivative on the interval.

Advanced 10 min read

What You'll Learn

  • Construct a Taylor polynomial of a specified degree from derivatives at its center.
  • Identify a Maclaurin polynomial as a Taylor polynomial centered at zero.
  • Use a polynomial to approximate a function value near the center.
  • Apply Taylor’s theorem with a maximum-derivative bound on the interval.
  • Explain why evaluating a derivative only at the center may not give a valid error bound.

Local Approximation from Derivatives

A function’s value and derivatives at one point describe its local behavior. A Taylor polynomial uses that information to build a polynomial that agrees with the function and several of its derivatives at a chosen center. Near that center, the polynomial can provide a useful approximation to the function.

An approximation is not complete without a way to assess its accuracy. Taylor’s theorem supplies a remainder formula, and bounding the relevant derivative throughout the interval between the center and the target gives a guaranteed error bound.

Definition: Let \(f\) have derivatives through order \(n\) at \(x=a\). The degree-\(n\) Taylor polynomial of \(f\) centered at \(a\) is $$ P_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k. $$ Here \(f^{(0)}=f\), and \(0!=1\). When \(a=0\), the polynomial is called the degree-\(n\) Maclaurin polynomial.

The polynomial’s coefficients come from derivative values at the center, not at the target value. For instance, the constant term is \(f(a)\), the coefficient of \(x-a\) is \(f'(a)\), and the coefficient of \((x-a)^2\) is \(f''(a)/2!\). The factorials ensure that the polynomial’s derivatives have the intended values at the center.

Why the Coefficients Have This Form

Suppose a polynomial centered at \(a\) is written as \(Q_n(x)=c_0+c_1(x-a)+\cdots+c_n(x-a)^n\). At \(x=a\), every positive power of \(x-a\) vanishes, so \(Q_n(a)=c_0\). Differentiating once and evaluating at \(a\) gives \(Q_n'(a)=c_1\). Differentiating twice gives \(Q_n''(a)=2!c_2\), and, in general, differentiating \(k\) times gives \(Q_n^{(k)}(a)=k!c_k\). Therefore, to make \(Q_n^{(k)}(a)=f^{(k)}(a)\), its coefficient must be \(c_k=f^{(k)}(a)/k!\). This establishes the stated formula and explains why the factorials appear.

Taylor’s Theorem and the Error Bound

The difference between \(f(x)\) and its degree-\(n\) Taylor polynomial is the remainder \(R_n(x)=f(x)-P_n(x)\). Taylor’s theorem describes that difference exactly using a derivative of order \(n+1\) at an intermediate point. The intermediate point is generally not known, but a bound on that derivative over the whole interval gives a usable estimate.

Theorem: Suppose \(f\) has continuous derivatives through order \(n+1\) on an interval containing \(a\) and \(x\). Then, for some \(\xi\) between \(a\) and \(x\), $$ f(x)=P_n(x)+R_n(x), \qquad R_n(x)=\frac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1}. $$ In particular, if \(\left|f^{(n+1)}(t)\right|\le M\) for every \(t\) between \(a\) and \(x\), then $$ |R_n(x)|\le \frac{M|x-a|^{n+1}}{(n+1)!}. $$

The hypothesis on the derivative matters: \(M\) must bound the absolute value of the derivative throughout the interval between the center and the target. It is not enough to evaluate the derivative at \(a\) alone unless that value is known to bound the derivative everywhere on the interval.

Why Taylor’s Remainder Formula Works

Here is a proof of the theorem’s remainder formula. Fix \(x\ne a\), and write \(K=R_n(x)/(x-a)^{n+1}\). Define \(\phi(t)=f(t)-P_n(t)-K(t-a)^{n+1}\) on the interval with endpoints \(a\) and \(x\). By the definition of \(K\), \(\phi(x)=0\). Also, \(\phi(a)=0\), and its derivatives of orders \(1\) through \(n\) vanish at \(a\): the polynomial \(P_n\) matches the derivatives of \(f\) there, while the added power \((t-a)^{n+1}\) and its first \(n\) derivatives vanish there.

Applying Rolle’s theorem repeatedly to these zeros gives a point \(\xi\) between \(a\) and \(x\) where \(\phi^{(n+1)}(\xi)=0\). Since \(P_n\) has degree \(n\), its derivative of order \(n+1\) is zero. The derivative of order \(n+1\) of \(K(t-a)^{n+1}\) is \(K(n+1)!\). Thus $$ 0=\phi^{(n+1)}(\xi)=f^{(n+1)}(\xi)-K(n+1)!. $$ It follows that \(K=f^{(n+1)}(\xi)/(n+1)!\). Substituting the definition of \(K\) gives the remainder formula. Taking absolute values and using \(\left|f^{(n+1)}(\xi)\right|\le M\) gives the error bound. If \(x=a\), the remainder is zero directly.

A Reliable Calculation Process

In an approximation problem, identify the center, degree, and target before calculating. Then find the needed derivatives and evaluate them at the center. After constructing the polynomial, use the target value in it and separately establish the derivative bound required by Taylor’s theorem.

1
Set the center and degree.
Record \(a\), \(n\), and the requested target \(x\).
2
Build the polynomial.
Evaluate \(f^{(k)}(a)\) for \(k=0,\ldots,n\), then use the Taylor formula.
3
Approximate at the target.
Substitute the requested \(x\) into \(P_n(x)\) and simplify.
4
Bound the error.
Find an upper bound \(M\) for \(\left|f^{(n+1)}\right|\) on the full interval and apply the remainder inequality.

Worked Examples

Worked Example: Approximate \(e^{0.2}\) with a Maclaurin Polynomial

Use a degree-three Maclaurin polynomial for \(f(x)=e^x\), then bound the error at \(x=0.2\). Every derivative of \(e^x\) is \(e^x\), so \(f^{(k)}(0)=1\) for \(k=0,1,2,3\). Therefore $$ P_3(x)=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}. $$ At the target, $$ P_3(0.2)=1+0.2+\frac{0.2^2}{2}+\frac{0.2^3}{6} =1+0.2+0.02+0.001333\ldots =1.221333\ldots . $$ For the error bound, the fourth derivative is \(e^t\). On \(0\le t\le0.2\), \(e^t\le e^{0.2}<1.23\), so \(M=1.23\) is a valid bound. Taylor’s theorem gives $$ |R_3(0.2)|\le\frac{1.23(0.2)^4}{4!} =\frac{1.23(0.0016)}{24} =0.000082. $$ Thus \(1.221333\ldots\) approximates \(e^{0.2}\) with error at most \(0.000082\). As a check on the polynomial, \(P_3(0)=1\), \(P_3'(0)=1\), \(P_3''(0)=1\), and \(P_3'''(0)=1\), agreeing with the corresponding derivatives of \(e^x\) at zero.

Worked Example: Approximate \(\ln(1.1)\) from Center \(a=1\)

Use a degree-three Taylor polynomial for \(f(x)=\ln x\), centered at \(a=1\), and bound the error at \(x=1.1\). The function and derivatives at the center are $$ f(1)=0,\qquad f'(x)=\frac1x,\qquad f'(1)=1, $$ $$ f''(x)=-\frac1{x^2},\qquad f''(1)=-1, \qquad f'''(x)=\frac2{x^3},\qquad f'''(1)=2. $$ Hence $$ P_3(x)=(x-1)-\frac{(x-1)^2}{2}+\frac{2(x-1)^3}{6} =(x-1)-\frac{(x-1)^2}{2}+\frac{(x-1)^3}{3}. $$ At \(x=1.1\), \(x-1=0.1\), so $$ P_3(1.1)=0.1-\frac{0.01}{2}+\frac{0.001}{3} =0.1-0.005+0.000333\ldots =0.095333\ldots . $$ The fourth derivative is \(f^{(4)}(t)=-6/t^4\). On \([1,1.1]\), its absolute value is at most \(6\), so \(M=6\). Therefore $$ |R_3(1.1)|\le\frac{6(0.1)^4}{4!} =\frac{6(0.0001)}{24} =0.000025. $$ The approximation error is at most \(0.000025\). To check the polynomial’s coefficients, its value at \(1\) is \(0\); its first, second, and third derivatives at \(1\) are \(1,-1,2\), respectively, matching the values calculated for \(\ln x\).

Worked Example: Approximate \(\sin(0.5)\) and Bound the Error

Use the degree-three Maclaurin polynomial for \(f(x)=\sin x\). At zero, \(f(0)=0\), \(f'(0)=1\), \(f''(0)=0\), and \(f'''(0)=-1\). Thus $$ P_3(x)=x-\frac{x^3}{6}. $$ At \(x=0.5\), $$ P_3(0.5)=0.5-\frac{0.5^3}{6} =0.5-\frac{0.125}{6} =0.479166\ldots . $$ The fourth derivative is \(f^{(4)}(t)=\sin t\). On \([0,0.5]\), \(0\le\sin t\le t\le0.5\), so \(M=0.5\) is valid. The remainder bound is $$ |R_3(0.5)|\le\frac{0.5(0.5)^4}{4!} =\frac{0.5(0.0625)}{24} =0.001302\ldots . $$ Therefore, the error is at most about \(0.001303\). As a check, \(P_3(0)=0\), \(P_3'(0)=1\), \(P_3''(0)=0\), and \(P_3'''(0)=-1\), which are the first four derivative values of \(\sin x\) at zero.

Common Pitfall: Using the Derivative at the Center as the Bound

A Taylor remainder bound requires a bound for the next derivative across the interval, not simply its value at the center. For example, in the approximation of \(e^{0.2}\), the fourth derivative at zero is \(1\). Substituting that value directly for \(M\) would give $$ |R_3(0.2)|\le\frac{1(0.2)^4}{24}=0.0000666\ldots . $$ That estimate is not justified: the fourth derivative is \(e^t\), which increases above \(1\) for \(t>0\). A valid choice is \(M=1.23\), since \(e^t<1.23\) throughout \([0,0.2]\). The resulting justified bound is \(0.000082\).

A second useful check is to keep the center visible in every term: powers are \((x-a)^k\), not generally \(x^k\). This is especially important when the Taylor polynomial is not centered at zero. The derivatives must also be evaluated at that same center.

Using the Result Effectively

The polynomial gives the requested approximation; the remainder estimate explains what the approximation guarantees. A small value of \(|x-a|\) helps because the error bound contains \(|x-a|^{n+1}\), but the derivative bound \(M\) and the factorial \((n+1)!\) also affect the result. Increasing the degree does not by itself justify a particular error bound: the next derivative still needs to be bounded on the relevant interval.

When stating a conclusion, distinguish the approximation from its accuracy statement. For example, report both \(P_n(x)\) and the inequality \(|f(x)-P_n(x)|\le\text{bound}\). In an AP free-response solution, showing the derivative bound and the interval on which it holds makes clear why the stated accuracy is guaranteed.

Check Your Understanding

Use the Taylor polynomial and remainder ideas to answer the following.

  1. What is the degree-two Taylor polynomial for \(f(x)=\cos x\) centered at \(a=0\)?
  2. Which derivative determines a Lagrange remainder bound for a degree-four Taylor polynomial?
  3. For a target \(x\), what interval must a bound \(M\) for the next derivative cover?
  4. Why is \(f^{(n+1)}(a)\) alone not generally enough to establish the remainder bound?
  5. If the center is \(a=2\), what powers appear in the Taylor polynomial’s terms?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

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