AP-CALCBC-10.11-10.12

U10.11 Taylor Polynomials and Lagrange Error Bound

Master AP Calculus BC Taylor polynomials: build Tₙ(x) about x=c from derivatives and bound the error with the Lagrange remainder formula.

What you'll do in this lesson

A voice-first session with the Crimsora tutor on U10.11 Taylor Polynomials and Lagrange Error Bound, then targeted practice and FRQs — with the tutor adapting to where you get stuck.

What this lesson covers

When a function is too messy to evaluate by hand, we replace it near a point with a polynomial that matches its value and derivatives — a Taylor polynomial. The more derivatives we match, the tighter the fit near the center. But an approximation is only trustworthy if we can say how wrong it might be. That is where the Lagrange error bound comes in.

In this lesson you will learn to construct Tn(x)T_n(x) about x=cx=c, recognize the Maclaurin case (c=0c=0), and rigorously bound the remainder Rn(x)=f(x)Tn(x)R_n(x)=f(x)-T_n(x). These skills appear on both multiple-choice and free-response, often as a two-part problem: build the polynomial, then estimate or bound the error.

Building the Taylor Polynomial

A Taylor polynomial of degree nn centered at x=cx=c is the unique polynomial whose value and first nn derivatives at cc match those of ff. Its formula isTn(x)=k=0nf(k)(c)k!(xc)k=f(c)+f(c)(xc)+f(c)2!(xc)2++f(n)(c)n!(xc)n.T_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(c)}{k!}(x-c)^k = f(c)+f'(c)(x-c)+\frac{f''(c)}{2!}(x-c)^2+\cdots+\frac{f^{(n)}(c)}{n!}(x-c)^n.Each term corrects the previous approximation using one more derivative. The degree-0 term f(c)f(c) is just a horizontal line; adding f(c)(xc)f'(c)(x-c) gives the tangent line T1T_1; adding the quadratic term captures concavity, and so on.

When c=0c=0 the polynomial is called a Maclaurin polynomial, and (xc)k(x-c)^k simplifies to xkx^k. The exam frequently gives you a table of derivative values at cc rather than a formula, so you must be comfortable plugging numbers directly into the definition.

A common misconception is forgetting the factorial in each denominator, or confusing f(k)(c)f^{(k)}(c) (a constant) with f(k)(x)f^{(k)}(x) (a function). Remember: every coefficient is a number evaluated at the center, so Tn(x)T_n(x) is a genuine polynomial in (xc)(x-c).

The Remainder and Lagrange Error Bound

The error in using TnT_n is the remainder Rn(x)=f(x)Tn(x)R_n(x)=f(x)-T_n(x). Taylor's theorem states that for some zz between cc and xx,Rn(x)=f(n+1)(z)(n+1)!(xc)n+1.R_n(x)=\frac{f^{(n+1)}(z)}{(n+1)!}(x-c)^{n+1}.We cannot find zz exactly, but we can bound it. If MM is any number with f(n+1)(t)M|f^{(n+1)}(t)|\le M for all tt between cc and xx, then the Lagrange error bound isRn(x)Mxcn+1(n+1)!.|R_n(x)|\le \frac{M\,|x-c|^{n+1}}{(n+1)!}.Notice the structure: it looks exactly like the next term of the Taylor series, except f(n+1)(c)f^{(n+1)}(c) is replaced by its maximum MM. This is the single most tested idea in the topic. To apply it you must (1) identify nn, (2) find or estimate MM as a bound on the (n+1)(n+1)th derivative, and (3) plug in xc|x-c|.

Choosing MM trips students up. You want a safe upper bound on f(n+1)|f^{(n+1)}| over the interval, not its exact value. For example, if f(n+1)(t)=cos(t)f^{(n+1)}(t)=\cos(t), then M=1M=1 works because cost1|\cos t|\le 1 everywhere.

When to Use Lagrange vs. Alternating Series Bound

AP problems offer two error tools, and picking the right one matters. The alternating series bound (from U10.7) applies only when the series alternates and its terms decrease in magnitude; then the error is at most the first omitted term. The Lagrange bound works for any function with the required derivatives, regardless of sign pattern.
FeatureLagrange error boundAlternating series bound
Requires alternating termsNoYes
Needs a bound MM on next derivativeYesNo
Error estimateMxcn+1(n+1)!\frac{M\,|x-c|^{n+1}}{(n+1)!}first omitted term
Typical prompt"show error is less than...""approximate with error < ..."
If a free-response question hands you a bound like "f(n+1)(x)5|f^{(n+1)}(x)|\le 5 on the interval," it is signaling Lagrange. If it explicitly says the series is alternating and asks for the next-term estimate, use the alternating bound. Both can appear on the same exam, so read carefully. A frequent error is applying the alternating bound to a series that is not actually alternating, or forgetting to verify the terms decrease.

How the Exam Tests This

Expect a scaffolded free-response: part (a) asks for T2T_2 or T3T_3 from a derivative table; part (b) uses the polynomial to approximate ff at a nearby point; part (c) asks you to bound the error with Lagrange, sometimes giving you the maximum of the next derivative.

The key phrase to watch for is "f(n+1)(x)M|f^{(n+1)}(x)|\le M for all xx in the interval." That MM goes straight into the formula. Graders want to see the substituted expression Mxcn+1(n+1)!\frac{M|x-c|^{n+1}}{(n+1)!} and a final numerical bound, not just the general formula.

Multiple-choice items often ask which term or coefficient appears in TnT_n, or which expression correctly represents the error bound. Watch the off-by-one issue: a degree-nn polynomial has error controlled by the (n+1)(n+1)th derivative, and the exponent and factorial are both n+1n+1. Also be careful that xc|x-c| is raised to the power, not xx alone. Practicing the mechanical substitution until it is automatic frees you to focus on choosing MM correctly under time pressure.

Key terms

Taylor polynomial Tn(x)T_n(x).
The degree-nn polynomial centered at cc whose first nn derivatives match ff: k=0nf(k)(c)k!(xc)k\sum_{k=0}^n \frac{f^{(k)}(c)}{k!}(x-c)^k.
Maclaurin polynomial.
A Taylor polynomial centered at c=0c=0, so each term uses xkx^k instead of (xc)k(x-c)^k.
Center cc.
The point about which the polynomial is built; the approximation is most accurate near cc.
Remainder Rn(x)R_n(x).
The exact error f(x)Tn(x)f(x)-T_n(x) when approximating ff by its degree-nn Taylor polynomial.
Lagrange error bound.
The inequality Rn(x)Mxcn+1(n+1)!|R_n(x)|\le \frac{M|x-c|^{n+1}}{(n+1)!} where MM bounds f(n+1)|f^{(n+1)}| on the interval.
MM (bound on the derivative).
An upper bound for f(n+1)(t)|f^{(n+1)}(t)| for all tt between cc and xx; used to make the error estimate rigorous.
Taylor's theorem with remainder.
States Rn(x)=f(n+1)(z)(n+1)!(xc)n+1R_n(x)=\frac{f^{(n+1)}(z)}{(n+1)!}(x-c)^{n+1} for some zz between cc and xx.

Worked example

Let f(x)=cosxf(x)=\cos x. (a) Find the degree-3 Maclaurin polynomial T3(x)T_3(x). (b) Use it to approximate cos(0.5)\cos(0.5). (c) Bound the error using the Lagrange error bound.
For part (a), compute derivatives at c=0c=0. We have f(0)=cos0=1f(0)=\cos 0=1, f(x)=sinxf'(x)=-\sin x so f(0)=0f'(0)=0, f(x)=cosxf''(x)=-\cos x so f(0)=1f''(0)=-1, and f(x)=sinxf'''(x)=\sin x so f(0)=0f'''(0)=0.

Plug into the definition:T3(x)=1+0x+12!x2+03!x3=1x22.T_3(x)=1+0\cdot x+\frac{-1}{2!}x^2+\frac{0}{3!}x^3 = 1-\frac{x^2}{2}.For part (b), substitute x=0.5x=0.5:T3(0.5)=1(0.5)22=10.252=10.125=0.875.T_3(0.5)=1-\frac{(0.5)^2}{2}=1-\frac{0.25}{2}=1-0.125=0.875.For part (c), the error for a degree-3 polynomial is controlled by the 4th derivative. Here f(4)(x)=cosxf^{(4)}(x)=\cos x, and cost1|\cos t|\le 1 for all tt, so we take M=1M=1. With n=3n=3, c=0c=0, and xc=0.5|x-c|=0.5:R3(0.5)Mxc44!=1(0.5)424=0.0625240.0026.|R_3(0.5)|\le \frac{M\,|x-c|^{4}}{4!}=\frac{1\cdot(0.5)^4}{24}=\frac{0.0625}{24}\approx 0.0026.So cos(0.5)0.875\cos(0.5)\approx 0.875 with error at most about 0.00260.0026. The true value is 0.87760.8776, and indeed 0.87760.875=0.0026|0.8776-0.875|=0.0026, consistent with the bound.

Practice questions

A function ff has f(2)=3f(2)=3, f(2)=1f'(2)=-1, f(2)=4f''(2)=4, and f(2)=6f'''(2)=6. What is the coefficient of (x2)2(x-2)^2 in the degree-3 Taylor polynomial of ff about x=2x=2?
  1. 44
  2. 22
  3. 1-1
  4. 11

Answer: 22

The coefficient of (x2)2(x-2)^2 is f(2)2!=42=2\frac{f''(2)}{2!}=\frac{4}{2}=2. A common mistake is to use f(2)=4f''(2)=4 directly without dividing by the factorial 2!2!. Note f(2)f'''(2) is irrelevant to this particular coefficient.
Suppose T4(x)T_4(x) is the degree-4 Taylor polynomial of ff about x=1x=1, and it is known that f(5)(x)10|f^{(5)}(x)|\le 10 for all xx in [1,1.2][1,1.2]. Find an upper bound for the error f(1.2)T4(1.2)|f(1.2)-T_4(1.2)|.

Answer: 10(0.2)55!=10(0.00032)1202.67×105\frac{10\,(0.2)^5}{5!}=\frac{10(0.00032)}{120}\approx 2.67\times 10^{-5}

For a degree-4 polynomial, use n=4n=4, so the error involves the 5th derivative and (n+1)!=5!=120(n+1)!=5!=120. Here M=10M=10 and xc=1.21=0.2|x-c|=|1.2-1|=0.2. Then R410(0.2)5120=100.000321200.0000267|R_4|\le \frac{10(0.2)^5}{120}=\frac{10\cdot 0.00032}{120}\approx 0.0000267. The key is matching the exponent and factorial to n+1=5n+1=5.
The Maclaurin polynomial of degree 2 for f(x)=exf(x)=e^x is T2(x)=1+x+x22T_2(x)=1+x+\frac{x^2}{2}. Which expression gives a valid Lagrange bound for the error at x=0.1x=0.1, given that ete0.1<1.2e^t\le e^{0.1}<1.2 on [0,0.1][0,0.1]?
  1. 1.2(0.1)33!\frac{1.2\,(0.1)^3}{3!}
  2. 1.2(0.1)22!\frac{1.2\,(0.1)^2}{2!}
  3. 1.2(0.1)32!\frac{1.2\,(0.1)^3}{2!}
  4. 1.2(0.1)44!\frac{1.2\,(0.1)^4}{4!}

Answer: 1.2(0.1)33!\frac{1.2\,(0.1)^3}{3!}

For degree n=2n=2, the error uses the third derivative, so the exponent is n+1=3n+1=3 and the factorial is (n+1)!=3!(n+1)!=3!. Since f(3)(x)=ex1.2f^{(3)}(x)=e^x\le 1.2 on the interval, M=1.2M=1.2. This gives 1.2(0.1)33!\frac{1.2(0.1)^3}{3!}. The other choices use wrong exponents or factorials.

FAQ

What is the difference between a Taylor polynomial and a Taylor series?
A Taylor polynomial Tn(x)T_n(x) stops at degree nn and is a finite sum, so it is an approximation with a measurable error. A Taylor series continues the pattern infinitely; when it converges to ff, it equals the function exactly. The Lagrange bound measures how far a finite TnT_n is from ff.
How do I choose the value of M in the Lagrange error bound?
Pick any number that is at least as large as f(n+1)(t)|f^{(n+1)}(t)| for every tt between the center cc and the point xx. You want the maximum of the (n+1)(n+1)th derivative on that interval. If the derivative is something like cost\cos t or sint\sin t, M=1M=1 works; often the problem simply tells you a bound to use.
Why is the exponent n+1 and not n in the error formula?
A degree-nn Taylor polynomial matches derivatives through order nn, so the first unmatched behavior comes from the (n+1)(n+1)th derivative. Taylor's theorem shows the remainder is exactly f(n+1)(z)(n+1)!(xc)n+1\frac{f^{(n+1)}(z)}{(n+1)!}(x-c)^{n+1}, which is why both the exponent and factorial are n+1n+1.
When should I use the alternating series error bound instead of Lagrange?
Use the alternating series bound only when the series alternates in sign and its terms decrease in magnitude to zero; then the error is at most the first omitted term. Use Lagrange for any Taylor polynomial, especially when the problem provides a bound on the next derivative or the series does not alternate.

Learn this with a teacher, not a page

The Crimsora tutor teaches U10.11 Taylor Polynomials and Lagrange Error Bound live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.