Euler Hall — free maths guides

The remainder: how wrong the polynomial is

State and apply the Lagrange remainder bound. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus II guides.

Three bounds, three situations

f(x)=Pn(x)+Rn(x)f(x)=P_n(x)+R_n(x) is an identity, not an approximation: the remainderRnR_n is exactly the error. The problem is that computingRnR_n directly would needf(x)f(x), which is what you were trying to avoid. So the remainder is BOUNDED rather than computed, and there are three bounds.

Lagrange. If∣f(n+1)∣≤M|f^{(n+1)}|\le M on the interval betweenaa andxx, then

∣Rn(x)∣≤M(n+1)!∣x−a∣n+1.|R_n(x)|\le \frac{M}{(n+1)!}|x-a|^{n+1}.

Alternating series. If the series alternates and its terms decrease to zero, the error is at most the first omitted term — no derivative needed at all.

Integral. Whenf(n+1)f^{(n+1)} is monotone, the error is bounded by the integral of the next term. It is the sharpest of the three and the least often usable.

Choosing among them. If the series alternates, use the alternating bound: it is exact, cheap and needs no estimate of a derivative. Lagrange is for everything else, and its weakness is thatMM must be estimated — a bound with a crudeMM is still a bound, just a wasteful one.

A bound is not an approximation. Saying "the error is below0.0010.001" is a guarantee; saying "the error is roughly0.0010.001" is a different claim that no theorem supports. Exams ask for guarantees.

Where the Lagrange bound comes from

Integrate the identityf′(t)=Pn′(t)+Rn′(t)f'(t)=P_n'(t)+R_n'(t) repeatedly, or more directly: apply the mean value theorem to the functiong(t)=f(t)−Pn(t)g(t)=f(t)-P_n(t) after dividing by(t−a)n+1(t-a)^{n+1}. The(n+1)(n+1)-st derivative ofgg's normalised form isf(n+1)f^{(n+1)}, and the mean value theorem turns that into an equality at some interior pointξ\xi:

Rn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1.R_n(x)=\frac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1}.

Estimating∣f(n+1)(ξ)∣≤M|f^{(n+1)}(\xi)|\le M gives the bound. Notice the structure: the remainder looks exactly like the next term of the series, with the derivative evaluated at an unknown point instead of at the centre. That is why the bound has the same shape as the term you dropped.

The alternating case is a special case with a better constant. There, the successive terms decrease monotonically, so the tail is bounded by its first term with noMM to estimate.

Worked example: how many terms for three decimals

How many terms of the Maclaurin series forcos⁡x\cos x givecos⁡1\cos 1 to within10−310^{-3}?

The series alternates and its terms decrease, so the error is at most the first omitted term. The terms atx=1x=1 are1, 12, 124, 1720,…1,\ \frac{1}{2},\ \frac{1}{24},\ \frac{1}{720},\dots

124≈0.0417\frac{1}{24}\approx0.0417 is too big;1720≈0.00139\frac{1}{720}\approx0.00139 is too big;140320≈2.5×10−5\frac{1}{40320}\approx2.5\times10^{-5} is small enough. So we must include the term1720\frac{1}{720} and the first omitted is140320\frac{1}{40320} — meaning the polynomial1−12+124−17201-\frac12+\frac1{24}-\frac1{720} suffices.

That iscos⁡1≈0.540278\cos 1\approx0.540278 against the true0.5403020.540302: an error of2.4×10−52.4\times10^{-5}, comfortably inside the promised2.5×10−52.5\times10^{-5}.

Read the count carefully. The degree is 6 (four terms: powers 0, 2, 4, 6); the first omitted term is the one inx8x^8. Getting the index right is where most of the marks in this question are.

By the end you can
  • State and apply the Lagrange remainder bound
  • Use the alternating-series bound when the hypotheses hold
  • Decide how many terms an accuracy target needs
Check yourself
  1. 1. Bound the error ofP1P_1 forsin⁡x\sin x atx=0.1x=0.1 withM=1M=1.
  2. 2. How many terms of the alternating harmonic series give the sum to within0.010.01?
  3. 3. State the Lagrange bound forn=3n=3,M=5M=5,x=2x=2,a=0a=0.
Answers

1.1⋅0.012=0.005\frac{1\cdot0.01}{2}=0.005. 2. Terms decrease like1/n1/n, so1n+1<0.01\frac{1}{n+1}<0.01 meansn≥100n\ge100 — a hundred terms, which is why the alternating harmonic is a terrible way to computeln⁡2\ln 2. 3.5⋅824=53\frac{5\cdot8}{24}=\frac53.

Work out where to start — free, no accountAnswer six real questions — free, no account