Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Calculus · Unit 10 · Step-Through Animation

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.

12 STEPS · 6 QUICK CHECKS · A MAXIMUM OVER AN INTERVAL · v2

M is the largest the next derivative gets anywhere on the interval
Before you start
What you're looking at
A function plane. The pink curve is the function, the teal one is its Taylor polynomial, and the vertical distance between them at a chosen x is the error you are trying to put a ceiling on.
The question
A polynomial that is exact at the center is wrong everywhere else. How wrong can it get by the time you reach a particular x?
Step 1 / 12

Read all 12 steps as text
Step 1

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.

Step 2

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.

Step 3

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.

Step 4

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.

Step 5

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.

Step 6

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.

Step 7

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.

Step 8

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.

Step 9

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.

Step 10

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.

Step 11

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.

Step 12

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.