Mistake Master
Lagrange Error Bound
Four Parts, and the One With No Shortcut
You'll learnto assemble the Lagrange bound from its four parts, to keep the derivative order, the factorial and the power one step past the degree, to find M as a maximum over the whole interval rather than at its ends, and to tell which of the unit's two error bounds a given problem lets you use.
A Taylor polynomial is close to its function near the center and gets worse as you move away. The Lagrange bound says how much worse it can get, and it is built from four parts: a derivative one order past the degree, the size of that derivative across the whole interval, a factorial, and a power. Three of those move together and the fourth is where the marks are lost. Twelve short steps; press Next for each one.
Read all 12 steps as text
The polynomial drifts from the curve
The pink curve is \(\cos x\) and the teal one is \(P_2(x) = 1 - \frac{x^{2}}{2}\); they leave the left of the panel together and are far apart by the time they reach the right of it.
Measure the gap at one x
At \(x = 2\) the curve is at \(\cos 2 \approx -0.4161\) and the polynomial is at \(-1\), so the pink segment between them is the error there.
A formula bounds the gap
The Lagrange bound is \(\dfrac{M}{(n+1)!}\left|x-a\right|^{n+1}\), and with \(M = 1\), \(n = 2\), \(x = 2\) and \(a = 0\) it comes to \(\frac{8}{6} = \frac{4}{3}\) - a teal segment that reaches past the curve.
Four parts, three of them linked
Three of the four parts carry the same number: the derivative order \(n+1\), the factorial \((n+1)!\) and the power \(n+1\). The fourth, \(M\), comes from somewhere else entirely.
Slip the index and all three slip
Using \(n\) where the formula wants \(n+1\) moves the derivative order, the factorial and the power together, and at \(x = 2\) it gives \(2\) instead of \(\frac{4}{3}\) - looser here, tighter elsewhere, and not the bound either way.
M is a maximum over the interval
The panel changes to the third derivative of \(\cos\), whose size is \(\left|\sin t\right|\), over the interval from \(0\) to \(\pi\); \(M\) has to be at least as big as everything on it.
Both ends of this one read zero
At \(t = 0\) and at \(t = \pi\) the size of that derivative is \(0\), so checking only the ends of the interval returns \(M = 0\) while the true maximum sits between them.
A bound of zero is not a weak answer
Back on the cosine plane at \(x = \pi\): the real gap is about \(2.93\), the correct bound reaches past it, and the endpoint reading of \(M\) gives a bound of no length at all.
A series with nothing to alternate
Every term of the Maclaurin series of \(e^{x}\) is positive, so its partial sums climb towards the curve from one side instead of closing in on it from both.
The next term falls short
At \(x = 1\) the real gap is \(0.2183\) and the next term of the series is \(\frac{1}{3!} = 0.1667\), which is smaller - so it is not a bound, and the alternating rule was never available.
Which bound to reach for
Here the Lagrange route works: \(M = \max e^{t}\) on \([0, 1]\) is \(e\), so the bound is \(\frac{e}{6} \approx 0.4530\) and the teal segment reaches past the curve as it should.
Name the interval M came from
Write the derivative order, the factorial and the power as one number past the degree, then say which interval \(M\) is the maximum over; topic 10.13 asks where a whole power series is safe to use at all.