BETAInsomnia StudyroomLagrange Error Bound
Lagrange Error Bound

AP Course

AP Calculus AB/BC

Study the complete College Board sequence for AP Calculus AB and BC, from limits through infinite series.

Choose an official unit and topic to open its lecture, concept check, or focused practice.

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

\(|f(x)-P_n(x)|\le\frac{M|x-a|^{n+1}}{(n+1)!}\)

Read every symbol with its domain, direction, units, and hypotheses before applying the relationship.

3. Visual Connection

center aerror
Taylor approximationThe polynomial matches derivatives at the center; the remainder bound controls separation farther away.

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

\(R_n(x)=f(x)-P_n(x).\)

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

\(R_n(x)=\frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}.\)

The unknown location \(c\) prevents direct calculation, so an interval-wide derivative bound is used.

Lagrange Error Bound

If

\(|f^{(n+1)}(t)|\le M\)

for every \(t\) between \(a\) and \(x\), then

\(\boxed{|f(x)-P_n(x)|=|R_n(x)|\le\frac{M|x-a|^{n+1}}{(n+1)!}.}\)

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:

\(I=[\min(a,x),\max(a,x)].\)

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

  1. Identify the polynomial degree \(n\), center \(a\), and target \(x\).
  2. Find or identify \(f^{(n+1)}\).
  3. Write the interval between \(a\) and \(x\).
  4. Justify a bound \(M\) for \(|f^{(n+1)}|\) on that interval.
  5. Substitute \(M\), \(|x-a|\), and \((n+1)!\) into the formula.
  6. 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

\(|R_n(x)|\le\frac{Md^{n+1}}{(n+1)!}\)

for every \(x\) in that interval.

Choosing a polynomial degree

To guarantee error at most \(\varepsilon\), find the least nonnegative integer \(n\) for which

\(\frac{M_n|x-a|^{n+1}}{(n+1)!}\le\varepsilon,\)

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

  1. Name the degree and therefore the required derivative order.
  2. State the interval between the center and target.
  3. Explain why the selected \(M\) bounds the derivative on that whole interval.
  4. Display the complete Lagrange inequality.
  5. Keep the error in absolute value.
  6. 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

\(|R_3(0.2)|\le\frac{e^{0.2}(0.2)^4}{4!}\approx0.00008143<0.000082.\)

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,

\(|R_2(-0.3)|\le\frac{1(0.3)^3}{3!}=0.0045.\)

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\),

\(|R_3(0.1)|\le\frac{(0.1)^4}{4!}\approx4.17\times10^{-6}.\)

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

\(|R_4(0.2)|\le\frac{(0.2)^5}{5!}\approx2.67\times10^{-6}.\)

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

\(|R_2(1.1)|\le\frac{2(0.1)^3}{3!}=\frac1{3000}\approx0.0003333.\)

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

\(|R_2(4.1)|\le\frac{(3/256)(0.1)^3}{3!}\approx1.95\times10^{-6}.\)

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\),

\(|R_4(0.1)|\le\frac{15(0.1)^5}{5!}=1.25\times10^{-6}<10^{-5}.\)

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\):

\(|R_3(x)|\le\frac{e^{0.5}(0.5)^4}{4!}\quad\text{for every }x\in[-0.5,0.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

\(\frac{e^{0.1}(0.1)^5}{5!}\approx9.21\times10^{-8},\)

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.
AP Checkpoint

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}\).