Loading
Quantify exactly how far a Taylor polynomial can stray from the function it approximates.
Long before electronic calculators, mathematicians needed reliable methods for computing transcendental quantities such as e, sin 1, and ln 2 to many decimal places. Taylor polynomials offered a powerful tool—replace a complicated function with a polynomial and evaluate that polynomial instead. The deeper question, however, was always the same: how many terms are enough to guarantee a desired accuracy? Without a rigorous answer, a polynomial approximation was merely a hopeful guess.
Lagrange's contribution answered the critical question: if you truncate a Taylor series after n terms, how large can the error possibly be? The bound he established depends on the behavior of the (n + 1)-th derivative of the function—an elegant result that bridges local derivative information with global approximation quality. On the AP Calculus BC exam, this result appears as the Lagrange Error Bound and is one of the most tested topics in the series unit.
Before diving into the bound itself, you need to be fluent in several interconnected ideas. The Taylor polynomial of degree n centered at c is the unique polynomial that matches the function and its first n derivatives at x = c. The difference between the actual function value and this polynomial at any point x is called the remainder or truncation error. The Lagrange Error Bound places an upper limit on the absolute value of this remainder.
The following diagram shows a function f(x) = eˣ (in cyan) alongside its first-, second-, and third-degree Taylor polynomials centered at c = 0. The shaded error band around each polynomial represents the region allowed by the Lagrange Error Bound. Observe how the band narrows dramatically as the degree increases and how it widens as x moves farther from the center.
Two key visual takeaways emerge from this diagram. First, the error grows as |x − c| increases: near the center the polynomial practically sits on top of f, but farther away it peels off. Second, increasing the polynomial degree shrinks the error much faster than you might expect, because the factorial (n + 1)! in the denominator of the bound grows very rapidly. These geometric observations are exactly what the Lagrange Error Bound formula captures algebraically.
The Lagrange form of the remainder originates from Taylor's theorem with the remainder expressed in a form analogous to the Mean Value Theorem. If f has continuous derivatives through order n + 1 on an interval containing both c and x, then there exists some value z strictly between c and x such that the remainder equals exactly f⁽ⁿ⁺¹⁾(z) · (x − c)ⁿ⁺¹ / (n + 1)!. Because we typically cannot identify z precisely, we replace |f⁽ⁿ⁺¹⁾(z)| with a convenient upper bound M.
Notice how two competing forces govern the size of the bound. The numerator |x − c|ⁿ⁺¹ grows when x is far from c, but the denominator (n + 1)! grows factorially in n. For a fixed x and a well-behaved function, increasing n causes the factorial to dominate, driving the bound—and therefore the error—toward zero. This is precisely the mechanism by which Taylor series converge.
The most nuanced step in applying the Lagrange Error Bound is determining a valid value for M, the maximum of |f⁽ⁿ⁺¹⁾(z)| on the interval between c and x. The strategy depends entirely on the function in question. For some functions the derivatives cycle (like sine and cosine), making M obvious; for others, you must use calculus techniques—such as checking whether the (n + 1)-th derivative is increasing or decreasing—to identify the maximum.
| Function | f⁽ⁿ⁺¹⁾(x) Pattern | Typical M Choice |
|---|---|---|
| sin x | ±sin x or ±cos x | M = 1 |
| cos x | ±sin x or ±cos x | M = 1 |
| eˣ | eˣ (always increasing) | M = eˣ evaluated at endpoint farther from 0 |
| ln(1 + x) | (−1)ⁿ · n! / (1+x)ⁿ⁺¹ | M = n! / (1+a)ⁿ⁺¹ where a is closer to −1 |
| 1/(1 − x) | (n+1)! / (1−x)ⁿ⁺² | Evaluate at x closest to 1 |
Let us compute an upper bound on the error when the fourth-degree Maclaurin polynomial for sin x is used to approximate sin(0.5). This example mirrors the style and complexity of AP Calculus BC free-response questions.
The Lagrange Error Bound is the most frequently used error bound in introductory calculus courses, but it is not the only tool available. Understanding its advantages and shortcomings helps you decide when to use it and when another method—such as the Alternating Series Estimation Theorem—might be more efficient.
| Aspect | Lagrange Error Bound | Alternating Series Estimation |
|---|---|---|
| Applicability | Works for any Taylor polynomial of a sufficiently differentiable function | Only applies when the series is alternating and satisfies the alternating series conditions |
| What you need | An upper bound M on |f⁽ⁿ⁺¹⁾| on the relevant interval | The first omitted term of the series (must be decreasing in absolute value) |
| Tightness | Can overestimate error significantly if M is loose | Often gives a tighter bound because it uses the actual next term |
| AP exam usage | Used when FRQ specifically asks for 'Lagrange error bound' or for non-alternating series | Preferred when the series alternates and the problem asks for a general error estimate |
| Difficulty | Requires computing the (n+1)-th derivative and bounding it | Simpler—just evaluate the next term in the series |
The Lagrange Error Bound is, at its heart, a consequence of the Mean Value Theorem applied iteratively. In more advanced analysis courses, you encounter other forms of the Taylor remainder—the Cauchy form and the integral form—each useful in different contexts. The integral form, Rₙ(x) = ∫ from c to x of f⁽ⁿ⁺¹⁾(t)(x − t)ⁿ / n! dt, provides a direct connection to numerical integration and is often used in proofs of convergence for specific series.
| Remainder Form | Formula | Best Used For |
|---|---|---|
| Lagrange | f⁽ⁿ⁺¹⁾(z)(x − c)ⁿ⁺¹/(n+1)! | Bounding error without integration; AP Calculus BC |
| Cauchy | f⁽ⁿ⁺¹⁾(z)(x − z)ⁿ(x − c)/n! | L'Hôpital-style arguments; proving convergence rates |
| Integral | ∫ from c to x f⁽ⁿ⁺¹⁾(t)(x−t)ⁿ/n! dt | Exact computation; real analysis proofs; multivariable extensions |
In multivariable calculus, the Lagrange remainder generalizes to functions of several variables, where the bound involves partial derivatives of order n + 1 and norms of displacement vectors. In numerical analysis, the same structural idea underlies error bounds for interpolation polynomials, quadrature rules, and finite difference methods. Mastering the single-variable version now builds the conceptual foundation you will rely on in linear algebra, differential equations, and beyond.
The Lagrange Error Bound provides a guaranteed upper limit on the absolute error when a Taylor polynomial Pₙ(x) replaces a function f(x). The bound is |Rₙ(x)| ≤ M · |x − c|ⁿ⁺¹ / (n + 1)!, where M is an upper bound for |f⁽ⁿ⁺¹⁾(z)| on the interval between the center c and the evaluation point x. The key skill is selecting an appropriate M: for sin x and cos x, M = 1 always works; for eˣ, evaluate at the interval endpoint farther from zero.
This bound also serves as the theoretical engine for proving Taylor series convergence: if |Rₙ(x)| → 0 as n → ∞, the series converges to the function. On the AP exam, distinguish between the Lagrange Error Bound (which applies universally) and the Alternating Series Estimation Theorem (which applies only to alternating series but is often tighter). Practice identifying n, computing the (n + 1)-th derivative, choosing M, and evaluating the bound—these steps appear in nearly every FRQ on series.
Keep learning with more lessons from the same subject.