CALCULUS 2 • SEQUENCES & SERIES

Lagrange Error Bound

Quantify the maximum error when a Taylor polynomial approximates a function.

Historical Context & Motivation

The idea of approximating functions with polynomials reaches back centuries, but mathematicians long struggled with a fundamental question: how good is the approximation? Without a rigorous way to bound the error, polynomial approximations remained useful heuristics rather than provable tools. The development of what we now call the Lagrange error bound (also known as the Taylor remainder theorem) gave mathematicians exactly this capability, transforming Taylor series from elegant curiosities into precision instruments of analysis.

1715
Brook Taylor's Methodus Incrementorum
Brook Taylor publishes his treatise introducing what we now call Taylor series, expressing functions as infinite polynomial sums centered at a point. However, Taylor provides no systematic method for bounding the error of partial sums.
1772
Lagrange's Remainder Formula
Joseph-Louis Lagrange derives the remainder term Rn(x) for a Taylor polynomial of degree n, establishing that the error depends on the (n+1)-th derivative of the function evaluated at an intermediate point.
1797
Lagrange's Théorie des fonctions analytiques
Lagrange formally publishes the remainder theorem in his attempt to place calculus on an algebraic foundation, giving the result the polished form taught in courses today.
1823
Cauchy's Integral Remainder
Augustin-Louis Cauchy provides an alternative integral form of the remainder, offering a second perspective and new proof techniques that complement Lagrange's approach.

The central question Lagrange answered is deceptively simple: if we truncate a Taylor series after the n-th degree term, how far can the resulting polynomial possibly deviate from the true function? His answer—the Lagrange remainder—provides a concrete, computable upper bound on this error, enabling engineers, physicists, and mathematicians to use finite polynomial approximations with guaranteed precision.

Core Principles & Definitions

Before diving into the formula, it is essential to establish the conceptual scaffolding upon which the Lagrange error bound rests. The bound connects three interrelated ideas: the Taylor polynomial as a local approximation, the remainder as the gap between polynomial and function, and the behavior of higher-order derivatives as the mechanism that controls that gap.

1

Taylor Polynomial Pₙ(x)

The n-th degree Taylor polynomial of f centered at x = a is the unique polynomial that matches f and its first n derivatives at a. It serves as the best local polynomial approximation of degree n near the center.
2

Remainder Rₙ(x)

The remainder is defined as Rₙ(x) = f(x) − Pₙ(x). It captures the exact error at any particular x. Lagrange showed this remainder can be expressed in terms of the (n+1)-th derivative of f.
3

The (n+1)-th Derivative Bound M

If |f⁽ⁿ⁺¹⁾(t)| ≤ M for all t between a and x, then M acts as a worst-case ceiling on the derivative's contribution to the error. Finding or estimating M is the practical heart of applying the bound.
4

The Error Bound Inequality

The Lagrange error bound states |Rₙ(x)| ≤ M|x − a|ⁿ⁺¹ / (n+1)!. The factorial in the denominator ensures that for well-behaved functions, the error shrinks rapidly as n increases.
KEY TAKEAWAY
Think of the Lagrange error bound like a GPS accuracy circle. When your phone says "accurate to within 5 meters," it is not telling you the exact error—it is giving a worst-case radius. Similarly, the Lagrange bound does not reveal the exact remainder; it guarantees the error cannot exceed a calculable ceiling. The tighter you can estimate the (n+1)-th derivative bound M, the smaller and more useful that "accuracy circle" becomes.

Visual Explanation

The diagram below illustrates the relationship between a function f(x) = eˣ, its second-degree Taylor polynomial P₂(x) centered at a = 0, and the Lagrange error bound envelope. Observe how the error bound (shaded region) widens as x moves away from the center, reflecting the factor |x − a|ⁿ⁺¹ in the bound formula.

The solid cyan curve shows f(x) = eˣ, while the dashed violet curve represents the second-degree Taylor polynomial P₂(x) = 1 + x + x²/2. The pink dashed lines form the error bound envelope, illustrating how the Lagrange bound widens as x moves away from the center a = 0. The yellow dot marks the expansion center.

Notice that at the center a = 0, the polynomial and the function coincide exactly, so the error is zero. As |x − a| grows, the error can increase, but the Lagrange bound guarantees it stays within the shaded envelope. The width of that envelope is governed by the factor |x − a|³/3! (since n = 2) multiplied by the maximum of |f'''(t)| on the interval between a and x. For f(x) = eˣ, all derivatives are again eˣ, so the bound increases with the maximum value of eˣ on the relevant interval.

Mathematical Framework

The Lagrange error bound emerges from the Taylor remainder theorem, which provides the exact form of the error term. Recall that if f is (n+1)-times differentiable on an interval containing a and x, we can write f(x) exactly as the sum of its n-th degree Taylor polynomial and a remainder term.

TAYLOR'S THEOREM WITH REMAINDER
f(x) = Pₙ(x) + Rₙ(x)
where Pₙ(x) = Σ [f⁽ᵏ⁾(a)/k!] × (x − a)ᵏ for k = 0 to n, and Rₙ(x) = f(x) − Pₙ(x) is the exact error.
LAGRANGE FORM OF THE REMAINDER
Rₙ(x) = f⁽ⁿ⁺¹⁾(c) × (x − a)ⁿ⁺¹ / (n + 1)!
for some c strictly between a and x. The value c exists by the Mean Value Theorem but is generally unknown.

Since c is unknown, we cannot compute Rn(x) exactly in most cases. However, we can bound it. If we find a constant M such that |f⁽ⁿ⁺¹⁾(t)| ≤ M for all t between a and x, then the absolute value of the remainder satisfies the following inequality.

LAGRANGE ERROR BOUND
|Rₙ(x)| ≤ M × |x − a|ⁿ⁺¹ / (n + 1)!
M = max |f⁽ⁿ⁺¹⁾(t)| for t in the closed interval between a and x. This is the computable upper bound on the approximation error.

The power of this formula lies in its two competing factors. The numerator |x − a|ⁿ⁺¹ grows as x moves farther from the center, which makes intuitive sense: polynomials are local approximations, and they degrade at distance. The denominator (n + 1)! grows factorially with the polynomial degree, which overwhelms the numerator for sufficiently large n. This factorial decay is precisely why Taylor polynomials of increasing degree provide ever-more-accurate approximations for analytic functions—functions whose Taylor series converge to the function itself.

COMMON PITFALL
When finding M, always evaluate |f⁽ⁿ⁺¹⁾(t)| over the entire interval between a and x, not just at the endpoints. For functions with interior extrema (like trigonometric functions), the maximum of the derivative may occur at an interior point. However, for monotonic derivatives (like eˣ), the maximum always occurs at an endpoint, which simplifies the analysis considerably.

Finding the Derivative Bound M

The most challenging—and most important—step in applying the Lagrange error bound is determining a suitable value for M, the upper bound on |f⁽ⁿ⁺¹⁾(t)| over the relevant interval. The tighter your estimate of M, the more useful the bound becomes. Below, we examine strategies for common function families.

A reference card showing how to determine the derivative bound M for five common function families. The key insight is that an overestimate of M still yields a valid (if less tight) error bound, while an underestimate invalidates the guarantee entirely.

For sin x and cos x, the bounding analysis is especially clean because every derivative of sine or cosine is itself a sine or cosine, and both are bounded in absolute value by 1 everywhere on the real line. This means M = 1 regardless of the interval, making the Lagrange error bound for Maclaurin polynomials of sin x simply |x|ⁿ⁺¹/(n+1)!. For , every derivative is again eˣ, which is monotonically increasing, so M equals eˣ evaluated at the endpoint of the interval farthest from zero. When x > 0 and a = 0, this gives M = eˣ; when x < 0 and a = 0, this gives M = e⁰ = 1.

Worked Example

Let us apply the Lagrange error bound to a concrete problem. We will estimate the maximum error when the third-degree Maclaurin polynomial of sin x is used to approximate sin(0.5).

Bounding the Error of sin(0.5) Using P₃(x)
1
Step 1 — Identify the SetupWe have f(x) = sin x, the center a = 0, the evaluation point x = 0.5, and the polynomial degree n = 3. The third-degree Maclaurin polynomial for sin x is P₃(x) = x − x³/3! = x − x³/6.
P₃(0.5) = 0.5 − (0.5)³/6 = 0.5 − 0.125/6 = 0.5 − 0.020833… ≈ 0.479167
2
Step 2 — Determine the Required DerivativeSince n = 3, we need the (n+1)-th = 4th derivative of sin x. The derivative cycle for sin x is: f'(x) = cos x, f''(x) = −sin x, f'''(x) = −cos x, f⁽⁴⁾(x) = sin x. So f⁽⁴⁾(x) = sin x.
f⁽⁴⁾(x) = sin x
3
Step 3 — Find the Bound MWe need M ≥ |f⁽⁴⁾(t)| = |sin t| for all t in [0, 0.5]. Since |sin t| ≤ 1 for all real t, we can use M = 1. This is the sharpest universal bound, and it is valid on any interval.
M = 1
4
Step 4 — Apply the Lagrange Error BoundSubstituting into |Rₙ(x)| ≤ M × |x − a|ⁿ⁺¹ / (n+1)!, we get |R₃(0.5)| ≤ 1 × |0.5 − 0|⁴ / 4! = (0.5)⁴ / 24 = 0.0625 / 24.
|R₃(0.5)| ≤ 0.0625/24 ≈ 0.002604
5
Step 5 — Interpret the ResultThe Lagrange error bound tells us the approximation P₃(0.5) ≈ 0.479167 is within 0.002604 of the true value sin(0.5). The actual value is sin(0.5) ≈ 0.479426, so the true error is |0.479426 − 0.479167| ≈ 0.000259, which is well within our bound—about ten times smaller, in fact. The bound is conservative but reliable.
Guaranteed: sin(0.5) ∈ [0.476563, 0.481771]. Actual error ≈ 0.000259 ≪ 0.002604.

Strengths, Limitations & Comparisons

The Lagrange error bound is the most commonly taught remainder estimate in introductory calculus, but it is not the only tool available. Understanding its strengths and limitations helps you know when to deploy it confidently and when to consider alternatives.

Strengths and limitations of the Lagrange error bound
FeatureStrengthLimitation
SimplicitySingle formula with only three inputs: M, |x − a|, and nFinding a tight M can be nontrivial for complicated functions
GeneralityWorks for any (n+1)-times differentiable function on the intervalRequires differentiability; fails for functions with discontinuous derivatives
ConservatismAlways overestimates the error, so the guarantee is reliableCan be very conservative; actual error may be orders of magnitude smaller
Alternating seriesStill applicable, providing an alternative to the alternating series estimation theoremThe alternating series remainder is often tighter and requires only the next term's magnitude
KEY TAKEAWAY
The Lagrange error bound is like an insurance policy: it may quote a premium that seems high relative to the actual claim (the true error), but it guarantees you will never be caught off guard. For alternating series specifically, the alternating series estimation theorem often provides a cheaper policy—but the Lagrange bound works universally, even for series that are not alternating.

Connection to Advanced Theory

The Lagrange error bound is the entry point into a rich family of remainder theorems and error analysis techniques used throughout higher mathematics, numerical analysis, and applied sciences. Recognizing these connections prepares you for more advanced coursework in real analysis, complex analysis, and scientific computing.

From the Lagrange error bound to advanced topics
ConceptLagrange Error BoundAdvanced Extension
Remainder formLagrange form: f⁽ⁿ⁺¹⁾(c)(x−a)ⁿ⁺¹/(n+1)!Cauchy integral form: ∫ₐˣ f⁽ⁿ⁺¹⁾(t)(x−t)ⁿ/n! dt; useful for sharper bounds
Convergence analysisShow Rₙ(x) → 0 as n → ∞ to prove convergence of a Taylor seriesUniform convergence and Weierstrass M-test in real analysis
Numerical methodsBounds error for polynomial interpolation near a single pointInterpolation error bounds (Newton, Hermite) with divided differences
Complex analysisReal-variable bound using maximum of derivative on an intervalCauchy's estimate for Taylor coefficients using complex contour integrals

One particularly important application is proving Taylor series convergence. To show that a function equals its Taylor series on an interval, it suffices to demonstrate that lim Rₙ(x) = 0 as n → ∞ for each x in the interval. For eˣ, since M = e|x| is constant with respect to n while (n+1)! grows without bound, the Lagrange bound |Rₙ(x)| ≤ e|x| × |x|ⁿ⁺¹ / (n+1)! → 0, proving that the Maclaurin series for eˣ converges to eˣ for all real x. This same technique works for sin x, cos x, and many other standard functions, and it represents one of the most elegant applications of the error bound.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain why the Lagrange error bound always overestimates the true error. In your explanation, identify the specific step in the derivation where the inequality becomes non-tight.
PROBLEM 2BASIC CALCULATION
Use the Lagrange error bound to find the maximum error when the 4th-degree Maclaurin polynomial of cos x is used to approximate cos(0.3).
PROBLEM 3INTERMEDIATE
Determine the minimum degree n of the Maclaurin polynomial for eˣ needed to approximate e⁰·⁵ with an error less than 10⁻⁶.
PROBLEM 4APPLIED
A mechanical engineer uses the approximation sin θ ≈ θ − θ³/6 (the third-degree Maclaurin polynomial) for small-angle calculations. For what range of angles θ (in radians) is this approximation guaranteed to have error less than 10⁻⁴?
PROBLEM 5CRITICAL THINKING
Consider f(x) = ln(1 + x) centered at a = 0. Use the Lagrange error bound to show that the Maclaurin series for ln(1 + x) converges to ln(1 + x) for x ∈ (0, 1]. Specifically, prove that Rₙ(x) → 0 as n → ∞ for x = 1, thereby establishing that ln 2 = 1 − 1/2 + 1/3 − 1/4 + ⋯.

Lesson Summary

The Lagrange error bound provides a rigorous, computable upper bound on the error |f(x) − Pₙ(x)| when approximating a function with its n-th degree Taylor polynomial. The formula |Rₙ(x)| ≤ M × |x − a|ⁿ⁺¹ / (n+1)! depends on three quantities: the derivative bound M (the maximum of |f⁽ⁿ⁺¹⁾(t)| on the interval between a and x), the distance |x − a| from the center, and the polynomial degree n. The factorial in the denominator ensures the bound shrinks rapidly as n increases for well-behaved functions.

Applying the bound involves four steps: identify f, a, x, and n; compute the (n+1)-th derivative; find M on the relevant interval; and substitute into the formula. For sin x and cos x, M = 1 universally; for , M equals the exponential evaluated at the far endpoint. Beyond error estimation, the bound is the primary tool for proving Taylor series convergence by showing Rₙ(x) → 0 as n → ∞, connecting finite approximations to the infinite series.

Varsity Tutors • Calculus 2 • Lagrange Error Bound