Skip to content
🎯⭐ INTERACTIVE LESSON

Lagrange Error Bound

Learn step-by-step with interactive practice!

Lagrange Error Bound - Complete Interactive Lesson

Part 1: Core Concepts

Lagrange Error Bound — The Formula

Part 1 of 7 — Understanding the Remainder

Taylor's Theorem with Remainder

If ff has (n+1)(n+1) continuous derivatives on an interval containing cc and xx, then:

f(x)=Tn(x)+Rn(x)f(x) = T_n(x) + R_n(x)

where the Lagrange remainder (error) satisfies:

∣Rn(x)∣=∣f(x)−Tn(x)∣≤M⋅∣x−c∣n+1(n+1)!\boxed{|R_n(x)| = |f(x) - T_n(x)| \le \frac{M \cdot |x - c|^{n+1}}{(n+1)!}}

and M=max⁡t∈I∣f(n+1)(t)∣M = \max_{t \in I} |f^{(n+1)}(t)| on the interval II between cc and xx.

Breaking Down Each Piece

SymbolMeaningHow to Find It
nnDegree of Taylor polynomialGiven in the problem
ccCenter of expansionGiven
xxPoint of evaluationGiven
MMMax of $f^{(n+1)}
(n+1)!(n+1)!Factorial in denominatorCompute directly

AP Tip: Finding MM is where most students struggle. You need to bound ∣f(n+1)(t)∣|f^{(n+1)}(t)| for all tt between cc and xx — not just at the endpoints.

Finding MM: The Critical Step

Strategy 1: Direct bound (trig functions)

For sin⁡x\sin x and cos⁡x\cos x: ALL derivatives are ±sin⁡\pm \sin or ±cos⁡\pm \cos, so ∣f(n+1)(t)∣≤1|f^{(n+1)}(t)| \le 1 for all tt.

M=1 for sine and cosine — always!M = 1 \text{ for sine and cosine — always!}

Strategy 2: Monotone bound (exe^x)

f(n+1)(x)=exf^{(n+1)}(x) = e^x is increasing, so M=ex0M = e^{x_0} where x0x_0 is the endpoint farther from center.

For crude bounds: e<3e < 3, so use M=3M = 3 when x≤1x \le 1.

Strategy 3: Given information

AP problems often state: "Let ∣f(n+1)(t)∣≤K|f^{(n+1)}(t)| \le K on [a,b][a, b]..."

Example

Bound the error of T4(x)T_4(x) for cos⁡x\cos x at x=0.5x = 0.5:

∣R4(0.5)∣≤1⋅(0.5)55!=1/32120=13840≈0.000260|R_4(0.5)| \le \frac{1 \cdot (0.5)^5}{5!} = \frac{1/32}{120} = \frac{1}{3840} \approx 0.000260

Lagrange Basics

Finding M Practice

Error Bound Computation

Summary

  • Lagrange Error: ∣Rn(x)∣≤M∣x−c∣n+1/(n+1)!|R_n(x)| \le M|x-c|^{n+1}/(n+1)!
  • MM = max of ∣f(n+1)∣|f^{(n+1)}| on the interval between cc and xx
  • For sin⁡/cos⁡\sin/\cos: M=1M = 1 always
  • For exe^x: M=emax⁡∣x∣M = e^{\max|x|} (or crude bound like 33)

Next: Part 2 — Finding nn for a Given Accuracy.

Part 2: Worked Examples

Finding n for Desired Accuracy

Part 2 of 7 — How Many Terms Do You Need?

The Key Question

AP problems often ask: "How many terms of the Taylor series are needed to approximate f(x)f(x) within ε\varepsilon?"

Method: Solve M⋅∣x−c∣n+1(n+1)!<ε\frac{M \cdot |x - c|^{n+1}}{(n+1)!} < \varepsilon for nn.

Worked Example: cos⁡(0.5)\cos(0.5) to Within 10−610^{-6}

Using Tn(0.5)T_n(0.5) centered at c=0c = 0. Since M=1M = 1 for cosine:

(0.5)n+1(n+1)!<10−6\frac{(0.5)^{n+1}}{(n+1)!} < 10^{-6}

nn(0.5)n+1/(n+1)!(0.5)^{n+1}/(n+1)!<10−6< 10^{-6}?
2(0.5)3/6=0.0208(0.5)^3/6 = 0.0208No
4(0.5)5/120=2.60×10−4(0.5)^5/120 = 2.60 \times 10^{-4}No
6(0.5)7/5040=1.55×10−6(0.5)^7/5040 = 1.55 \times 10^{-6}No
8(0.5)9/362880=5.38×10−9(0.5)^9/362880 = 5.38 \times 10^{-9}Yes

So we need at least T8T_8 (though for cosine, only even-powered terms are nonzero, so effectively 55 nonzero terms).

Key Fact: For trig/exponential functions, the factorial in the denominator eventually dominates any fixed ∣x−c∣n+1|x - c|^{n+1}, guaranteeing convergence.

Systematic Approach for exe^x

Approximate e1e^1 using Tn(1)T_n(1) centered at 00 to within 10−410^{-4}.

M=e1<3M = e^1 < 3, so: 3⋅1n+1(n+1)!<10−4\frac{3 \cdot 1^{n+1}}{(n+1)!} < 10^{-4}, i.e., (n+1)!>30000(n+1)! > 30000.

nn(n+1)!(n+1)!>30000> 30000?
67!=50407! = 5040No
78!=403208! = 40320Yes

So T7(1)T_7(1) approximates ee to within 10−410^{-4}.

Special Case: Alternating Series

If the series alternates and satisfies the conditions of the AST, the alternating series error bound is tighter:

∣Rn∣≤∣an+1∣(first omitted term)|R_n| \le |a_{n+1}| \quad \text{(first omitted term)}

AP Tip: On the AP exam, if the series alternates, the AST error bound is usually simpler. Use Lagrange when the series does NOT alternate or when explicitly asked.

Determining Sufficient n

Term Count Practice

Finding n

Summary

  • To find nn: solve M∣x−c∣n+1/(n+1)!<εM|x-c|^{n+1}/(n+1)! < \varepsilon
  • Build a table — try different nn until the bound is small enough
  • For alternating series, the AST error bound may require fewer terms
  • The factorial always eventually dominates, so the series converges

Next: Part 3 — Bounding Derivatives Strategically.

Part 3: Problem-Solving Patterns

Bounding Derivatives Strategically

Part 3 of 7 — Finding MM for Different Functions

The Core Challenge

The Lagrange bound ∣Rn(x)∣≤M∣x−c∣n+1/(n+1)!|R_n(x)| \le M|x-c|^{n+1}/(n+1)! requires:

M=max⁡t∈I∣f(n+1)(t)∣M = \max_{t \in I} |f^{(n+1)}(t)|

This is straightforward for sin⁡,cos⁡,ex\sin, \cos, e^x. For other functions, you need strategy.

Function-by-Function Guide

Functionf(n+1)(t)f^{(n+1)}(t) patternBounding strategy
sin⁡x,cos⁡x\sin x, \cos x±sin⁡,±cos⁡\pm \sin, \pm \cosAlways M=1M = 1
exe^xexe^xM=emax⁡(c,x)M = e^{\max(c,x)} (increasing)
e−xe^{-x}±e−x\pm e^{-x}M=e−min⁡(c,x)M = e^{-\min(c,x)} (decreasing $
ln⁡(1+x)\ln(1+x)±n!/(1+t)n+1\pm n!/(1+t)^{n+1}Max at smallest (1+t)(1+t)
(1+x)p(1+x)^pProduct with decreasing termsCase-by-case
arctan⁡x\arctan xRational functionsOften given on AP

Key Fact: On the AP exam, complicated derivatives are often given to you. You just plug into the formula.

Example 1: ln⁡(1+x)\ln(1+x) at c=0c = 0, x=0.5x = 0.5, n=3n = 3

f(x)=ln⁡(1+x)f(x) = \ln(1+x). Derivatives:

  • f′(x)=(1+x)−1f'(x) = (1+x)^{-1}
  • f′′(x)=−(1+x)−2f''(x) = -(1+x)^{-2}
  • f′′′(x)=2(1+x)−3f'''(x) = 2(1+x)^{-3}
  • f(4)(x)=−6(1+x)−4f^{(4)}(x) = -6(1+x)^{-4}

∣f(4)(t)∣=6(1+t)4|f^{(4)}(t)| = \frac{6}{(1+t)^4}

On [0,0.5][0, 0.5]: decreasing, so max at t=0t = 0: M=6M = 6.

∣R3(0.5)∣≤6(0.5)44!=6⋅0.062524=0.37524=0.015625|R_3(0.5)| \le \frac{6(0.5)^4}{4!} = \frac{6 \cdot 0.0625}{24} = \frac{0.375}{24} = 0.015625

Example 2: When MM is Given

"ff has derivatives of all orders. It is known that ∣f(5)(t)∣≤12|f^{(5)}(t)| \le 12 for all tt in [2,3][2, 3]."

∣R4(3)∣≤12⋅∣3−2∣55!=12120=0.1|R_4(3)| \le \frac{12 \cdot |3 - 2|^5}{5!} = \frac{12}{120} = 0.1

AP Tip: When the bound on a derivative is stated in an FRQ, that IS the value of MM. Don't second-guess it.

Bounding Strategies

M-Value Practice

Computing the Bound

Summary

  • For sin⁡/cos⁡\sin/\cos: M=1M = 1
  • For exe^x: use monotonicity to find max on interval
  • For quotient-type derivatives: max where denominator is smallest
  • When AP provides the bound, just plug in

Next: Part 4 — Lagrange vs. AST Error Bounds.

Part 4: Graphs and Interpretation

Lagrange vs. AST Error Bounds

Part 4 of 7 — Choosing the Right Error Bound

Two Error Bound Tools

FeatureLagrange Error BoundAST Error Bound
Formula$Mx-c
RequiresBound on (n+1)(n+1)st derivativeAlternating, decreasing, →0\to 0
Applies toAny Taylor polynomialAlternating series only
TightnessOften overestimatesUsually tighter
AP usageRequired when NOT alternatingSimpler when applicable

When to Use Each

Alternating series⇒AST bound (simpler)\boxed{\text{Alternating series} \Rightarrow \text{AST bound (simpler)}} Non-alternating or "Use Lagrange"⇒Lagrange bound\boxed{\text{Non-alternating or "Use Lagrange"} \Rightarrow \text{Lagrange bound}}

Key Fact: Even when a series alternates, the AP may say "Use the Lagrange error bound" — then you MUST use Lagrange, not AST.

Side-by-Side Comparison

Approximate cos⁡(0.5)\cos(0.5) using T4(0.5)T_4(0.5) centered at 00.

cos⁡x=1−x2/2+x4/24−x6/720+⋯\cos x = 1 - x^2/2 + x^4/24 - x^6/720 + \cdots

AST Bound: First omitted term: ∣a5∣=(0.5)6/720≈2.17×10−5|a_5| = (0.5)^6/720 \approx 2.17 \times 10^{-5}

Actually, T4T_4 includes terms through x4x^4. The next nonzero term is −x6/720-x^6/720: ∣error∣≤(0.5)6/720=1/46080≈2.17×10−5|\text{error}| \le (0.5)^6/720 = 1/46080 \approx 2.17 \times 10^{-5}

Lagrange Bound: ∣R4(0.5)∣≤M(0.5)5/5!=1⋅(0.5)5/120=1/3840≈2.60×10−4|R_4(0.5)| \le M(0.5)^5/5! = 1 \cdot (0.5)^5/120 = 1/3840 \approx 2.60 \times 10^{-4}

Comparison: AST gives 2.17×10−52.17 \times 10^{-5}; Lagrange gives 2.60×10−42.60 \times 10^{-4}.

The AST bound is about 12× tighter because it accounts for the fact that the x5x^5 coefficient is 00 in the cosine series, while Lagrange does not.

AP Tip: When both apply, the AST bound is usually better — but read the problem carefully. "Use Lagrange" means Lagrange, even if AST is tighter.

Choosing the Right Bound

Bound Selection Practice

Bound Comparison

Summary

  • AST bound: simpler, tighter, only for alternating series
  • Lagrange bound: universal, requires MM
  • AP exam: use whichever is specified; default to AST when series alternates
  • When both apply, AST ≤ Lagrange (AST never overestimates worse)

Next: Part 5 — AP Exam FRQ Strategies.

Part 5: Applications

AP Exam FRQ Strategies

Part 5 of 7 — Earning Full Credit

How Lagrange Appears on the AP Exam

Common FRQ Patterns:

  1. "Use the Lagrange error bound to show that..."

    • Given: ff, some derivatives, cc, xx
    • Write the formula, identify MM, compute, compare to target
  2. "Show the approximation is within ε\varepsilon of the actual value"

    • Same setup but you must conclude with an inequality
  3. "Find the minimum degree nn such that..."

    • Try successive nn values in the bound

Template for Full Credit

Step 1: State the formula: ∣Rn(x)∣≤M∣x−c∣n+1/(n+1)!|R_n(x)| \le M|x - c|^{n+1}/(n+1)!

Step 2: Identify each component:

  • n=n = __, c=c = __, x=x = __

Step 3: Find or state MM:

  • "Since ∣f(n+1)(t)∣≤M|f^{(n+1)}(t)| \le M on [c,x][c, x]..."

Step 4: Compute and conclude:

  • "∣Rn(x)∣≤value<ε|R_n(x)| \le \text{value} < \varepsilon. Therefore..."

AP Tip: The graders look for the formula stated, MM identified with justification, and the final inequality. Missing any one of these costs a point.

Model FRQ Response

"Let f(x)=sin⁡xf(x) = \sin x. Use the Lagrange error bound to show that T5(1)T_5(1) approximates sin⁡(1)\sin(1) within 0.0020.002."

Response:

By the Lagrange error bound:

∣R5(1)∣≤M⋅∣1−0∣66!|R_5(1)| \le \frac{M \cdot |1 - 0|^6}{6!}

Since all derivatives of sin⁡x\sin x satisfy ∣f(k)(t)∣≤1|f^{(k)}(t)| \le 1 for all tt, we have M=1M = 1.

∣R5(1)∣≤1⋅16720=1720≈0.00139|R_5(1)| \le \frac{1 \cdot 1^6}{720} = \frac{1}{720} \approx 0.00139

Since 0.00139<0.0020.00139 < 0.002, the approximation T5(1)T_5(1) is within 0.0020.002 of sin⁡(1)\sin(1). □\square

Common Mistakes That Lose Points

MistakeWhy it costs points
Not stating the formulaGraders can't give formula credit
Using M=f(n+1)(c)M = f^{(n+1)}(c) instead of maxMM must be a max over the interval
Forgetting (n+1)!(n+1)!The factorial is essential
Not concluding with "<ε< \varepsilon"Must explicitly compare

FRQ Strategy

FRQ Setup Practice

FRQ Computation

Summary

  • State formula → identify MM → compute → conclude with inequality
  • Use the MM given in the problem when provided
  • (n+1)!(n+1)! not n!n! — get the formula exactly right
  • Always include the final comparison: "bound <ε< \varepsilon, therefore..."

Next: Part 6 — Problem-Solving Workshop.

Part 6: Exam Strategy

Problem-Solving Workshop

Part 6 of 7 — Mixed Practice

Work through these problems combining all Lagrange error bound skills.

Workshop Problems — Multiple Choice

Workshop — Strategy Selection

Workshop — Computation

Workshop Summary

  • Always identify: alternating → AST; non-alternating → Lagrange
  • For Lagrange: find MM using the function's derivative behavior
  • M=1M = 1 for trig, M=eendpointM = e^{\text{endpoint}} (or crude bound) for exe^x
  • Final step: state the inequality explicitly

Next: Part 7 — Comprehensive Review.

Part 7: Mixed Review

Comprehensive Review

Part 7 of 7 — Lagrange Error Bound Mastery

Complete Formula Reference

∣Rn(x)∣≤M⋅∣x−c∣n+1(n+1)!,M=max⁡t∈[c,x]∣f(n+1)(t)∣\boxed{|R_n(x)| \le \frac{M \cdot |x - c|^{n+1}}{(n+1)!}, \quad M = \max_{t \in [c,x]} |f^{(n+1)}(t)|}

Decision Flowchart

  1. Is the series alternating?

    • Yes → Use AST bound (unless told otherwise)
    • No → Use Lagrange
  2. Is MM given in the problem?

    • Yes → Use it directly
    • No → Find max of ∣f(n+1)∣|f^{(n+1)}| on the interval
  3. Plug into the formula and conclude.

Quick MM Reference

FunctionMM value
sin⁡x,cos⁡x\sin x, \cos x11
exe^x on [0,a][0, a] (a>0a > 0)eae^a (or use 33 if a≤1a \le 1)
e−xe^{-x} on [0,a][0, a]11
ln⁡(1+x)\ln(1+x), nnth remaindern!n! at t=0t = 0
Given: "$f^{(k)}

Review — Conceptual

Review — Computation

Review — Identify the Error

Review — Final Challenge

Topic Complete!

You've mastered the Lagrange Error Bound:

  • The formula and what each part means
  • Finding MM for common functions
  • Determining how many terms you need
  • Lagrange vs. AST: when to use each
  • AP FRQ response format for full credit

Key Takeaway: The Lagrange Error Bound is one of the most tested BC topics. Master the formula, practice finding MM, and always conclude with an explicit inequality.