Tutorials › AP Calculus › The Lagrange Error Bound for Taylor Polynomials
← All AP Calculus Tutorials
AP Calculus BC Intermediate

The Lagrange Error Bound for Taylor Polynomials

How to determine the maximum possible error when approximating a function with a Taylor polynomial. The Lagrange error bound turns a Taylor approximation into a rigorous guarantee.

What the Lagrange Error Bound Is For

A Taylor polynomial gives you an approximation to a function near the center of the polynomial. But an approximation is only useful if you know how accurate it is.

The Lagrange error bound gives you a way to put a guaranteed upper limit on the error. Instead of simply saying that a Taylor polynomial "looks close" to the original function, you can say something much stronger: the actual error is no greater than a specific number.

If is approximated by its degree- Taylor polynomial centered at , the Lagrange error bound tells us how far the approximation can be from the actual value of the function.

The Big Idea

The Lagrange error bound does not tell you the exact error. It gives you a number that the error is guaranteed not to exceed.

The Lagrange Error Bound Formula

Suppose is the degree- Taylor polynomial for centered at . Then the error between and satisfies:

Here, represents the maximum value of the absolute value of the derivative on the interval between and .

The formula is often written more compactly as:

What Each Part Means

The most important detail is the derivative order. If you use a degree- Taylor polynomial, you need the derivative to calculate the Lagrange error bound.

The Standard AP Calculus Method

Most Lagrange error-bound questions can be solved with the same four-step process.

  1. Identify the degree of the Taylor polynomial. If the polynomial has degree , the error formula uses the derivative.
  2. Find or bound the maximum value of the next derivative. Determine a value such that throughout the required interval.
  3. Substitute into the Lagrange formula.
  4. Interpret the result. State that the error is less than or equal to the calculated bound.

Worked Examples

Example 1: A Basic Error Bound

Let be the third-degree Maclaurin polynomial for . Use the Lagrange error bound to determine an upper bound for the error when approximating .

Step 1: The polynomial has degree 3, so we need the fourth derivative.
Step 2: Since , we have . On the interval from to , the maximum value is therefore .
Step 3: The distance from the center to is .
Step 4: Apply the Lagrange error bound:
Result: The error is at most .
Example 2: Bounding an Approximation to

Suppose is the second-degree Maclaurin polynomial for . Use the Lagrange error bound to estimate the maximum error when .

Step 1: Because the Taylor polynomial has degree 2, use the third derivative.
Step 2: Differentiate:
Step 3: On the interval , the maximum value of is .
Step 4: The distance from the center to the target point is .
Step 5: Therefore:
Result: The approximation is guaranteed to have an error no greater than .
Example 3: Finding How Many Terms Are Needed

How many terms of the Maclaurin series for are required to approximate with an error less than ?

Step 1: We want the Lagrange error bound to satisfy:
Step 2: Suppose we use a degree- polynomial. Then the relevant derivative is the derivative.
Step 3: Because the derivatives of cycle through values whose absolute value is at most 1, we can use as a bound for .
Step 4: The error bound becomes:
Step 5: We need to find the smallest degree that satisfies this inequality.
Result: The smallest acceptable degree is .
Example 4: A Bound That Requires a Derivative Maximum

Let be the fourth-degree Taylor polynomial for centered at . Find an upper bound for the error when .

Step 1: Since the polynomial has degree 4, we need the fifth derivative:
Step 2: Differentiate five times:
Step 3: We need a value that is at least as large as everywhere on the interval from to . Since , we can use .
Step 4: The distance from the center to the target point is .
Step 5: Apply the bound:
Result: The error is at most .

How to Find the Value of

The hardest part of many Lagrange error-bound problems is not the formula itself. It is determining the value of .

You need a number such that:

In other words, must be an upper bound for the absolute value of the required derivative throughout the entire interval.

When the Derivative Has an Obvious Maximum

Sometimes the derivative is something simple like . If the interval is , the largest possible value is clearly .

When the Derivative Is Bounded by 1

This is especially common with sine and cosine. Since:

you can often use whenever the relevant derivative is a sine or cosine function.

Using a Convenient Upper Bound

You do not always need the smallest possible value of . Any valid upper bound works.

For example, if you determine that the derivative is always less than or equal to 7 on the interval, then is valid. If it is also always less than or equal to 10, then is technically valid too, although it produces a weaker error bound.

AP Exam Tip

A larger valid value of still gives a correct error bound. The key word is valid. You are looking for a number that the derivative cannot exceed on the entire interval.

Why the Interval Matters

The maximum derivative value must be taken over the interval connecting the Taylor center and the point where you are evaluating the approximation.

This is important because the derivative might be small near the center but much larger farther away.

For example, if a Taylor polynomial is centered at and used to approximate a value at , you need a bound valid on the entire interval . You cannot simply evaluate the derivative at the endpoint and assume that is automatically the maximum.

Understanding the Error Bound Intuitively

The Lagrange formula contains two major ingredients:

The first part, , measures how large the relevant derivative can become. The second part, , measures how far you are moving away from the Taylor center.

That second factor is particularly important. Because the distance is raised to the power , increasing the degree of the Taylor polynomial can make the error shrink very quickly when the target point is close to the center.

Common Mistakes

Using the wrong derivative

If the Taylor polynomial has degree , the Lagrange error formula uses the derivative—not the derivative. The derivative order is always one more than the polynomial degree.

Using the derivative at one point instead of bounding it on the interval

The value must be an upper bound for across the entire interval between the center and the target point.

Using the distance from the origin automatically

The distance in the formula is , not necessarily . For a Taylor polynomial centered at a value other than zero, you must use the distance from that center.

Confusing the bound with the actual error

If the Lagrange error bound is , that does not mean the actual error equals . It means the actual error is guaranteed to be no larger than that value.

Forgetting the absolute value

The formula uses . Error is being measured by magnitude, so a negative derivative does not make the error bound negative.

Lagrange Error Bound vs. Actual Error

Suppose a Taylor polynomial gives an approximation of , while the actual value is . The actual error is:

The Lagrange error bound instead gives a number such that:

So the actual error might be much smaller than the bound. The power of the Lagrange method is that the bound is guaranteed.

From Error Bound to Decimal Accuracy

AP Calculus questions sometimes ask you to determine how accurately a Taylor polynomial approximates a value.

If you establish that:

then you know the approximation differs from the actual value by less than .

For example, if the error is guaranteed to be less than , then the approximation is accurate to at least the corresponding decimal place required by the problem.

Best Practice

Do not round intermediate values unnecessarily. Keep the error-bound calculation exact when possible, and round only at the end according to the question's instructions.

A Reliable AP Calculus Checklist

  1. Find the degree: identify .
  2. Increase the derivative order by one: use .
  3. Identify the interval: from to .
  4. Find a valid maximum: choose so that .
  5. Calculate the distance: .
  6. Substitute: .
  7. Interpret: state that the error is less than or equal to the resulting value.

Practice Problems

Question 1

A degree-3 Maclaurin polynomial is used to approximate . If on the interval from 0 to 0.5, find a Lagrange error bound.

Show answer
Question 2

A degree-4 Taylor polynomial centered at is used to approximate . If on the interval, find an upper bound for the error.

Show answer
Question 3

A Taylor polynomial of degree is centered at . What derivative must be used in the Lagrange error formula?

Show answer
Question 4

For a degree-2 Maclaurin polynomial approximating at , suppose on the interval. Find the Lagrange error bound.

Show answer
Question 5

A degree-5 Taylor polynomial centered at approximates . Explain why a bound on the sixth derivative is required rather than a bound on the fifth derivative.

Show answer

The Formula to Remember

If you remember only one workflow for the AP exam, remember this:

The Four-Step Shortcut

Degree → Next derivative → Maximum derivative → Substitute into the formula.

The Lagrange error bound is ultimately about turning an approximation into a guarantee. Taylor polynomials tell you what to approximate with; the Lagrange error bound tells you how accurate that approximation is guaranteed to be.

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