All AP Courses AP Calculus BCAP Calc BC

Unit 10 · Topic 10.12 · about 30 minutes · 7 parts · 10 scored checks, 3 of them multiple choice, plus 2 from earlier lessons

AP Calculus BC 10.12: Lagrange Error Bound

Unit 10: 15 to 20% of the multiple-choice section

What you'll be able to do

  • Determine the error bound associated with a Taylor polynomial approximation.

Key vocabulary

TermWhat it meansThe exam trap
Error of an approximationThe distance |f(x)−Pn(x)| between a function's value and the polynomial's value at the same input.Compare the two values at the same input, and treat the error as a distance, never a signed difference.
Lagrange error boundA number, built from a bound M on the next derivative and the distance from the center, that the error of a Taylor polynomial cannot exceed.Check which derivative, which factorial and which power the bound needs before you substitute numbers.
Alternating series error boundFor an alternating series whose terms shrink in size and approach 0, the error from stopping is at most the size of the first term left out.Check the signs and sizes of the terms at the input in the question before you rely on it.
Taylor polynomial of degree nThe polynomial Pn whose terms run through the power (x−c)n, built from the derivatives of f at the center c.Some coefficients can be 0, so look at which power the degree names, not just the last term printed.
Two views of the graph of y = e^x and its tangent line y = 1 + x at the point (0, 1). On the left, for x from -1.5 to 1.5, the curve and the line separate away from (0, 1), with a gap of 0.718 at x = 1. On the right, zoomed in to x from -0.1 to 0.1, they are hard to tell apart, with a gap of 0.005 at x = 0.1.Tap to open the picture full size

Part 1 Think first How far off can the chip be?

Guess before you learn. A wrong guess still makes the answer stick.

Predict first

A small chip in a toy has no button for ex, so it estimates e0.1 with the polynomial 1+x+x22 and gets 1+0.1+0.005=1.105. The chip cannot compute e0.1 to check itself. What is the most you could say about how far 1.105 is from e0.1, without a calculator?

In short. An error bound for a Taylor polynomial approximation is a number the error |f(x)−Pn(x)| cannot exceed, so f(x) lies within that distance of Pn(x) even when you cannot compute f(x) itself.

  • The Lagrange error bound is M(n+1)!|x−c|n+1, where M is the largest value of |f(n+1)(z)| for z between the center c and x.
  • Finding M means finding a maximum on an interval, the same work as any absolute extremum problem.
  • When the Taylor series at x alternates, its terms shrink in size to 0, and it converges to f(x), the alternating series error bound also works: the error is at most the size of the first term left out.

Part 2 Learn it Putting a number on the error

12a. The Lagrange error bound

Let Pn be the Taylor polynomial of degree n for f about x=c, the one with terms through (x−c)n. Its error at x is |f(x)−Pn(x)|, the distance between the true value and the estimate.

If |f(n+1)(z)|≤M for every z between c and x, then

|f(x)−Pn(x)|≤M(n+1)!|x−c|n+1.

The right side is the Lagrange error bound. It looks like the next term of the Taylor polynomial, with M standing in for the derivative value no one knows, and an absolute value around x−c.

Take f(x)=ln⁡x about c=1. Its second-degree polynomial is P2(x)=(x−1)−(x−1)22, so P2(1.2)=0.18. The third derivative is 2z3, and for z from 1 to 1.2 it is largest at z=1, where it equals 2. So

|ln⁡1.2−0.18|≤23!(0.2)3≈0.002667.

The true error is about 0.002322, under the bound, as it must be. The bound gives a maximum interval for the error: ln⁡1.2 lies between 0.18−0.002667 and 0.18+0.002667.

Quick check · Multiple choice

No calculator. A function f has |f′′′(z)|≤8 for 4.6≤z≤5. P2 is the second-degree Taylor polynomial for f about x=5, used to approximate f(4.6). Which expression is the Lagrange error bound for that approximation?

12b. Finding M

M is the largest value of |f(n+1)(z)| for z between c and x, endpoints included. In this course, when a question asks for the Lagrange error bound, use that largest value. If a question instead tells you |f(n+1)(z)|≤ some number on the interval, that number is M.

Finding the largest value is an absolute maximum problem on a closed interval. Often the derivative only rises or only falls there, so the largest value sits at an endpoint. Decide which endpoint from the formula, not from where the polynomial is centered.

Take f(x)=1x about c=2, with P2 approximating f(2.5). The third derivative is f′′′(z)=−6z4, so |f′′′(z)|=6z4, which falls as z grows. On [2,2.5] it is largest at z=2: M=616=0.375, and

|f(2.5)−P2(2.5)|≤0.3753!(0.5)3≈0.0078.

Had the question asked about f(1.5) instead, the interval would be [1.5,2] and the largest value would sit at z=1.5, the input end, not the center.

For ez, which rises, the largest value on an interval is at its right end. If that value is hard to compute, a slightly larger number you can compute, such as 3 for e, gives a bound that is still true but a little looser.

Quick check · Decide and justify

No calculator. P2 is the second-degree Taylor polynomial for f(x)=ln⁡x about x=4, used to approximate ln⁡3. To find M for the Lagrange error bound, you need the largest value of |f′′′(z)|=2z3 for 3≤z≤4. Where is it largest?

Which reason supports your answer?

12c. When the alternating series bound works

Plug a number into a Taylor series and you get a series of numbers. If that series alternates in sign, its terms shrink in size and approach 0, and it converges to the function's value at that input, the alternating series error bound applies to the Taylor polynomial too: the error is at most the size of the first term left out.

Take ex about 0 at x=−0.5. The series is

1−0.5+0.252!−0.1253!+0.06254!−⋯,

which alternates, with terms shrinking toward 0. P2(−0.5)=1−0.5+0.125=0.625, and the first term left out is −0.1253!, so

|e−0.5−0.625|≤0.1256≈0.0208.

The true error is about 0.0185.

Two cautions. The conditions depend on x: at x=0.5 every term of this series is positive, so the alternating bound does not apply there, though the Lagrange bound still does. And a term that is 0 is not a term left out. Some series skip powers, so the first term left out is the first one after Pn that is not 0.

Quick check · Multiple choice

No calculator. The Taylor series for cos⁡x about x=0 is 1−x22!+x44!−x66!+⋯, and P4(x)=1−x22!+x44! approximates cos⁡(0.6). At x=0.6 the series alternates and its terms shrink in size to 0. What does the alternating series error bound give as the bound on |cos⁡(0.6)−P4(0.6)|?

Part 3 Watch it done Show the error is small enough

Watch each step, then do the last one yourself.

A function f has derivatives of all orders, and |f(4)(x)|≤30 for 3≤x≤3.6. The third-degree Taylor polynomial for f about x=3 is used to approximate f(3.6). Show that the error is less than 0.2.

  1. Step 1 · Match the degree to the derivative

    The polynomial has degree n=3, so the Lagrange bound uses the fourth derivative. The question gives |f(4)(x)|≤30 on the interval, so M=30.

  2. Step 2 · Find the distance from the center

    |x−c|=|3.6−3|=0.6.

  3. Why this step?

    Why is it enough to know a bound on the fourth derivative, without the function itself?

    The error is controlled by f(4) at some unknown point between 3 and 3.6. Whatever that point is, its value is at most 30 in size, so using 30 gives a number the error can never pass.

  4. Your step · Calculate

    No calculator. Finish it. A function f has |f(4)(x)|≤30 for 3≤x≤3.6, and P3 is its third-degree Taylor polynomial about x=3, used to approximate f(3.6). Write the Lagrange error bound for this approximation and evaluate it. Give an exact decimal.

Since 0.162<0.2, the error is less than 0.2. On a free-response answer, write the bound with its numbers in it, then compare it with the number the question gives.

Part 4 Try it A bound from scratch, and when alternating works

Try it · Multiple choice

No calculator. P2(x)=1+x2−x28 is the second-degree Taylor polynomial for f(x)=1+x about x=0, used to approximate 1.2. What is the Lagrange error bound for this approximation, with M the largest value of |f′′′(z)| for 0≤z≤0.2?

Try it · Sort it

No calculator. Each card gives a Taylor series about x=0 and an input. Sort each one: can the alternating series error bound bound the error of a Taylor polynomial there?

The alternating series bound applies

It does not apply

Part 5 Explain it Write it as a free-response answer

On the exam free response is handwritten, so work this on paper first. Nothing you type here leaves this page. Then open the model answer and score yourself against each point.

Free response is 50% of the exam score. This one is shaped like Question 6, from free-response Part B (calculator not permitted).

Free-response practice · Question 6 style

No calculator. A function f has derivatives of all orders for 1≤x≤1.5, with f(1)=3, f′(1)=−2, f′′(1)=4 and f′′′(1)=6. The fourth derivative satisfies |f(4)(x)|≤15 for 1≤x≤1.5.

(a) Write the third-degree Taylor polynomial for f about x=1, and use it to approximate f(1.4).

(b) Use the Lagrange error bound to show that the approximation in part (a) differs from f(1.4) by less than 0.02.

(c) Can f(1.4) equal 2.61? Explain your reasoning.

Model answer

(a) P3(x)=3−2(x−1)+42!(x−1)2+63!(x−1)3=3−2(x−1)+2(x−1)2+(x−1)3, so f(1.4)≈P3(1.4)=3−0.8+0.32+0.064=2.584.

(b) |f(1.4)−P3(1.4)|≤154!(1.4−1)4=1524(0.0256)=0.016, and 0.016<0.02.

(c) No. By part (b), f(1.4) is within 0.016 of 2.584, so 2.568≤f(1.4)≤2.6. But |2.61−2.584|=0.026>0.016, so 2.61 is outside that interval.

Score your own answer. This is a self-check, not a grade. Tick each point your answer makes.

Part 6 Check yourself A function known only near one point

The two case questions use the same function. Answer them from the table.

A function f has derivatives of all orders. At x=2, f(2)=5, f′(2)=−1, f′′(2)=4 and f′′′(2)=6. The fourth derivative f(4) is positive and increasing for 1.5≤x≤3.5, with the values in the table. P3 is the third-degree Taylor polynomial for f about x=2, used to approximate f(3).

Values of the fourth derivative
xf(4)(x)
1.53
26
2.512
324
3.536

Case question 1 · Calculate

No calculator. Find the Lagrange error bound for P3(3) as an approximation of f(3), with M the largest value of |f(4)(z)| for 2≤z≤3.

Case question 2 · Decide and justify

No calculator. A classmate says f(3) could equal 8.7. Is the classmate right?

Which reason supports your answer?

The rest stand on their own and do not use the case.

Check yourself · Spot the error

No calculator. A function f has |f(4)(z)|≤20 for 0≤z≤0.5, and its third-degree Taylor polynomial about x=0 gives P3(0.5)=2.1. A student uses the Lagrange error bound to say what is known about f(0.5). Tap the first line with a mistake.

Check yourself · Fill the statement

No calculator. You want to approximate e with a Taylor polynomial Pn for f(x)=ex about x=0, evaluated at x=1. Tap a blank, then tap an answer.

Every derivative of ex is ex, so M, the largest value of ez for 0≤z≤1, is e, and the Lagrange error bound for Pn at x=1 is . For n=5 that bound is about , and for n=6 it is about . So the smallest degree that makes the bound less than 0.001 is .

Part 7 Keep it Bring back earlier ideas

Finding M is an absolute maximum on a closed interval, and the tangent line is the Taylor polynomial of degree 1. Both come back here.

From 5.5 Using the Candidates Test to Determine Absolute (Global) Extrema · Calculate

No calculator. Let f(x)=2x3−9x2+12x. What is the absolute maximum value of f on the closed interval [0,3]?

From 4.6 Approximating Values of a Function Using Local Linearity and Linearization · Decide and justify

No calculator. A function y=f(x) has f(0)=0.5 and slope dydx=1−y2. The tangent line at x=0 gives f(0.2)≈0.65. A classmate says 0.65 is an underestimate, because the slope at x=0 is positive. Is the classmate correct?

Which reason supports your answer?

In three lines

  • The Lagrange error bound for Pn about c is M(n+1)!|x−c|n+1, with M the largest |f(n+1)(z)| between c and x.
  • The bound caps the error, so f(x) lies between Pn(x) minus the bound and Pn(x) plus the bound.
  • When the series at x alternates with terms shrinking to 0 and converges to f(x), the first nonzero term left out also bounds the error.

Exam strategy for this topic

  • Section I Part A, Multiple Choice (calculator not permitted): 29 questions in 62 minutes.
  • Section I Part B, Multiple Choice (graphing calculator required): 13 questions in 38 minutes.
  • Section II Part A, Free Response (graphing calculator required): 2 questions in 30 minutes.
  • Section II Part B, Free Response (calculator not permitted): 4 questions in 60 minutes.

Show the bound with its numbers in place: name M and say where it comes from, write (n+1)! and |x−c|n+1, then compare the value with the number the question gives. Say which bound you are using. For the alternating series bound, say that the terms alternate, shrink in size and approach 0.

Questions students ask

Why does the Lagrange bound use the next derivative?

The error of Pn comes from everything after the (x−c)n term, and the first of those terms involves f(n+1). Taylor's theorem says the error equals that term with f(n+1) taken at some unknown point between c and x. The bound replaces that unknown value with M, the largest it could be.

Does the Lagrange bound tell me whether my estimate is too big or too small?

No. It caps the size of the error on both sides of Pn(x). Whether the estimate is over or under takes other information, such as the sign of the next derivative together with which side of the center x is on, or the sign of the first term left out of an alternating series.

What if I cannot find the exact maximum for M?

Any number you can show is at least as large as |f(n+1)(z)| on the interval gives a true bound, just a looser one; e<3 is the usual example. When a question asks for the Lagrange error bound itself, use the largest value, or the number the question gives you.

When should I use the alternating series bound instead of the Lagrange bound?

When the series at that input alternates, its terms shrink in size to 0, and it converges to f(x) there. It is often quicker, since it needs no derivative bound. The Lagrange bound works whether the series alternates or not, as long as you can bound the next derivative.

Can the actual error equal the bound?

It can be as large as the bound, never larger. Usually it is smaller, because M is the worst case over the whole interval.

Course alignment, for teachers

AP Calculus BC topic 10.12, Unit 10: Infinite Sequences and Series.

  • Skill 1.F: Explain how an approximated value relates to the actual value.

This lesson maps all 2 essential knowledge statements of the topic to the part that teaches each one: 2 are checked by a scored question. The map is in the lesson file.