AP Calculus AB/BC · Unit 10 · Topic 10.12 · BC Only
Lagrange Error Bound
Guarantee the accuracy of a Taylor approximation by bounding the next derivative throughout the interval from the center to the target.
1. Topic Focus
Determine series convergence, estimate error, construct Taylor approximations, and represent functions with power series on valid intervals.
This topic: Guarantee the accuracy of a Taylor approximation by bounding the next derivative throughout the interval from the center to the target.
2. Key Relationship
Read every symbol with its domain, direction, units, and hypotheses before applying the relationship.
3. Visual Connection
4. Worked Example
Use the (n+1)st derivative, a valid interval-wide bound M, and the full distance from the center.
Write the governing relationship first, carry out the algebra cleanly, and finish with a sentence that answers the mathematical question.
5. Concept Development
BC-only topic. A Taylor polynomial gives a local approximation, but the Lagrange Error Bound turns that approximation into a guaranteed statement about accuracy.
Remainder notation
If \(P_n\) is the degree-\(n\) Taylor polynomial for \(f\) centered at \(a\), define
The quantity \(R_n(x)\) is the signed error, while \(|R_n(x)|\) is the absolute error.
Taylor's Theorem with Lagrange remainder
If \(f\) has the required derivatives on the interval between \(a\) and \(x\), then some number \(c\) between \(a\) and \(x\) satisfies
The unknown location \(c\) prevents direct calculation, so an interval-wide derivative bound is used.
Lagrange Error Bound
If
for every \(t\) between \(a\) and \(x\), then
Read every index carefully
- A degree-\(n\) polynomial requires a bound on the \((n+1)\)st derivative.
- The exponent on the distance is \(n+1\).
- The factorial is \((n+1)!\).
These three appearances of \(n+1\) must agree.
The relevant interval
The derivative bound must hold on the entire closed interval joining the center and target:
If \(x<a\), do not reverse the endpoints or use a negative distance; the formula contains \(|x-a|\).
How to choose M
Any valid upper bound for \(|f^{(n+1)}|\) on \(I\) works. A practical choice is the smallest easy bound you can justify.
- For sine and cosine derivatives, \(M=1\) is always valid.
- For \(e^t\), use the exponential value at the right endpoint because \(e^t\) increases.
- For a decreasing positive expression such as \(C/t^p\), inspect the left endpoint.
- If the problem provides \(|f^{(n+1)}(t)|\le K\), use \(M=K\).
- For a more complicated derivative, analyze critical points and endpoints of \(|f^{(n+1)}|\).
M is not usually a value at the center
The number \(|f^{(n+1)}(a)|\) is valid only if it also bounds the derivative everywhere between \(a\) and \(x\). Checking one point without a monotonicity or maximum argument does not justify \(M\).
A step-by-step workflow
- Identify the polynomial degree \(n\), center \(a\), and target \(x\).
- Find or identify \(f^{(n+1)}\).
- Write the interval between \(a\) and \(x\).
- Justify a bound \(M\) for \(|f^{(n+1)}|\) on that interval.
- Substitute \(M\), \(|x-a|\), and \((n+1)!\) into the formula.
- Compare the result with the requested tolerance.
The bound is conservative
The Lagrange expression is a guaranteed maximum, not the actual error. A convenient \(M\) may be larger than the true maximum, making the bound loose but still valid.
Uniform accuracy on an interval
If \(|f^{(n+1)}(t)|\le M\) and \(|x-a|\le d\) throughout a target interval, then one calculation gives
for every \(x\) in that interval.
Choosing a polynomial degree
To guarantee error at most \(\varepsilon\), find the least nonnegative integer \(n\) for which
where \(M_n\) bounds the derivative of order \(n+1\). Check successive degrees because \(M_n\) may change with \(n\).
What the bound does not determine
The absolute-value inequality alone does not tell whether \(P_n(x)\) is an overestimate or underestimate. That requires additional sign information about \(f^{(n+1)}(c)(x-a)^{n+1}\).
Lagrange versus alternating-series error
The Lagrange bound uses a higher-derivative maximum and applies to Taylor-polynomial remainders under Taylor's theorem. The alternating-series bound uses the first omitted term and requires alternating, decreasing magnitudes. Use the theorem whose hypotheses are established.
AP-style checklist
- Name the degree and therefore the required derivative order.
- State the interval between the center and target.
- Explain why the selected \(M\) bounds the derivative on that whole interval.
- Display the complete Lagrange inequality.
- Keep the error in absolute value.
- Finish by comparing the bound with the requested accuracy.
6. Detailed Worked Example and Error Check
Example 1: Exponential approximation to the right
Approximate \(e^{0.2}\) with the degree-\(3\) Maclaurin polynomial. Since \(f^{(4)}(t)=e^t\) and \(e^t\le e^{0.2}\) on \([0,0.2]\), take \(M=e^{0.2}\). Then
Example 2: Exponential approximation to the left
For the degree-\(2\) Maclaurin approximation of \(e^{-0.3}\), the interval is \([-0.3,0]\). Because \(e^t\le1\) there,
Example 3: Sine with a standard bound
The degree-\(3\) Maclaurin polynomial for \(\sin x\) is \(x-x^3/6\). Since \(f^{(4)}(t)=\sin t\) and \(|\sin t|\le1\),
Example 4: Cosine approximation
For the degree-\(4\) Maclaurin polynomial \(1-x^2/2+x^4/24\), the fifth derivative of cosine has magnitude at most \(1\). Therefore
Example 5: Logarithm centered at 1
Approximate \(\ln(1.1)\) with \(P_2\) centered at \(1\). Since \(f'''(t)=2/t^3\), its largest magnitude on \([1,1.1]\) is \(M=2\). Thus
Example 6: Square root with an endpoint maximum
For \(f(x)=\sqrt x\), \(f'''(t)=3/(8t^{5/2})\). On \([4,4.1]\), this is largest at \(t=4\), so \(M=3/256\). The degree-\(2\) approximation centered at \(4\) satisfies
Example 7: A derivative bound supplied by the problem
Suppose \(|f^{(5)}(t)|\le15\) for \(0\le t\le0.5\). Using the degree-\(4\) Maclaurin polynomial at \(x=0.1\),
This proves the requested accuracy without knowing the exact function value.
Example 8: One bound for an entire interval
For the degree-\(3\) Maclaurin polynomial of \(e^x\) on \([-0.5,0.5]\), use \(M=e^{0.5}\) and \(|x|\le0.5\):
Example 9: Find the least degree
To approximate \(e^{0.1}\) with error at most \(10^{-8}\), use \(M=e^{0.1}\) on \([0,0.1]\). Degree \(4\) gives
which is too large. Degree \(5\) gives \(e^{0.1}(0.1)^6/6!\approx1.54\times10^{-9}\), so the least guaranteed degree is \(5\).
Example 10: Why checking only the center fails
Let \(f(x)=1/(1-x)\), centered at \(0\), and use \(P_2\) at \(x=0.5\). Here \(f'''(t)=6/(1-t)^4\). Its center value is \(6\), but on \([0,0.5]\) the maximum is \(96\). Using \(M=6\) would produce an invalid bound \(0.125\), smaller than the actual error \(2-1.75=0.25\). The interval-wide bound \(M=96\) is valid, though conservative.
Common errors
- Bounding \(f^{(n)}\) instead of \(f^{(n+1)}\).
- Using \(n!\) or \(|x-a|^n\) in a degree-\(n\) error formula.
- Choosing \(M=|f^{(n+1)}(a)|\) without an interval argument.
- Evaluating the derivative only at the target point.
- Forgetting the absolute value on the derivative or error.
- Using \(x\) instead of the distance \(|x-a|\).
- Writing the interval in the wrong order when \(x<a\).
- Calling the upper bound the exact error.
- Assuming a larger \(M\) makes the argument invalid; it only makes the estimate less sharp.
- Claiming overestimate or underestimate from an absolute bound alone.
- Using the alternating-series error formula without verifying alternation and decrease.
- Rounding the bound before comparing it with the required tolerance.
7. AP Reasoning Routine
Check the nth-term condition first, match the series structure to a justified test, state convergence type, and test power-series endpoints separately.
- Identify the representation and requested quantity.
- State the rule or theorem and verify its conditions.
- Keep exact values until the final requested approximation.
- Interpret sign, units, interval, and context.
Use the Lagrange Error Bound and justify every value of \(M\).
(a) A degree-\(4\) Taylor polynomial is evaluated \(0.2\) from its center, and \(|f^{(5)}(t)|\le12\) on the relevant interval. Find an error bound.
(b) Bound the error when the degree-\(2\) Maclaurin polynomial approximates \(e^{0.25}\).
(c) Bound the error when the degree-\(2\) Maclaurin polynomial approximates \(e^{-0.25}\).
(d) Bound the error when \(x-x^3/6\) approximates \(\sin(0.2)\).
(e) Bound the error when the degree-\(3\) Taylor polynomial for \(\ln x\), centered at \(1\), approximates \(\ln(0.9)\).
(f) For \(f(x)=\sqrt x\), bound the error when the tangent-line approximation centered at \(8\) is used at \(8.1\).
(g) If \(|f^{(6)}(t)|\le8\) on the relevant interval and \(|x-a|=0.3\), bound the error of \(P_5(x)\).
(h) Give a uniform error bound for the degree-\(3\) Maclaurin polynomial of \(e^x\) on \([-0.2,0.2]\).
(i) Find the least degree guaranteeing that the Maclaurin polynomial for \(e^x\) approximates \(e^{0.1}\) within \(10^{-8}\).
(j) Explain why \(M\) need not equal the exact maximum, but must still be justified on the full interval.
(k) Contrast the hypotheses of the Lagrange Error Bound with those of the Alternating Series Error Bound.
(l) Suppose \(|f^{(5)}(t)|\le20\) for \(0\le t\le0.2\). Show that the degree-\(4\) Maclaurin approximation at \(x=0.2\) is within \(10^{-4}\) of \(f(0.2)\).
Check the solution
(a) \(|R_4|\le12(0.2)^5/5!=0.000032\).
(b) On \([0,0.25]\), \(f'''(t)=e^t\le e^{0.25}\). Thus \(|R_2(0.25)|\le e^{0.25}(0.25)^3/3!\approx0.003344\).
(c) On \([-0.25,0]\), \(e^t\le1\). Thus \(|R_2(-0.25)|\le(0.25)^3/3!\approx0.002604\).
(d) Since \(|f^{(4)}(t)|=|\sin t|\le1\), \(|R_3(0.2)|\le(0.2)^4/4!\approx0.00006667\).
(e) Here \(f^{(4)}(t)=-6/t^4\). On \([0.9,1]\), \(M=6/(0.9)^4\). Therefore \(|R_3(0.9)|\le[6/(0.9)^4](0.1)^4/4!\approx0.00003810\).
(f) Since \(f''(t)=-1/(4t^{3/2})\), its magnitude is largest at \(t=8\). Thus \(|R_1(8.1)|\le[1/(4\cdot8^{3/2})](0.1)^2/2!\approx0.00005524\).
(g) \(|R_5|\le8(0.3)^6/6!=0.0000081\).
(h) Since \(e^t\le e^{0.2}\) on the interval and \(|x|\le0.2\), \(|R_3(x)|\le e^{0.2}(0.2)^4/4!\) for all \(x\in[-0.2,0.2]\).
(i) With \(M=e^{0.1}\), degree \(4\) gives approximately \(9.21\times10^{-8}\), while degree \(5\) gives approximately \(1.54\times10^{-9}\). The least guaranteed degree is \(5\).
(j) Any number at least as large as \(|f^{(n+1)}(t)|\) everywhere on the interval yields a valid bound. A larger convenient value is allowed, but an unsupported or smaller value can invalidate the guarantee.
(k) Lagrange uses a bound on the \((n+1)\)st derivative over the center-to-target interval. The alternating bound requires alternating terms whose magnitudes decrease to zero and then uses the first omitted magnitude.
(l) \(|R_4(0.2)|\le20(0.2)^5/5!=0.00005333\ldots<0.0001\). Therefore the approximation is within \(10^{-4}\).