4.3.18 · D4Calculus III — Sequences & Series

Exercises — Taylor's remainder theorem — error estimation

2,602 words12 min readBack to topic
Recall The one formula everything rests on

The error bound (from the parent note): Read it as "Next derivative, Next factorial, Next power" — everything is , one step beyond the polynomial degree .

  • is the exact error.
  • is the degree- Taylor polynomial.
  • The bound comes from the Lagrange form , where is unknown, so we replace by its worst-case size .

Level 1 — Recognition

Here you just read the formula and name the pieces. No calculus yet.

Recall Solution L1.1

WHAT the symbols mean. is the degree of the polynomial you kept. The bound always uses one step beyond .

  • Derivative needed: — the fifth derivative.
  • Factorial: .
  • Power: .

WHY and not . The polynomial already matches up to the 4th derivative; the first thing it gets wrong is the 5th derivative term, so that is what controls the leftover error.

Recall Solution L1.2

Derivatives at : , , . — the exact gap between the true cosine and this parabola.


Level 2 — Application

Now plug numbers into the recipe: find , compute the bound.

Recall Solution L2.1

, , , .

  • . On it is increasing, biggest at : . Take .
  • Why an over-estimate? We want a safe upper bound; picking a little large only makes the guaranteed error a little large, never wrong. So is correct to within . (True , actual error — inside the bound. ✓)
Recall Solution L2.2

, , .

  • , and always, so (no interval work needed — the cleanest possible bound). ; true , actual error . ✓
Recall Solution L2.3

Derivatives: , , .

  • We need on . Since decreases as grows, its max is at : .
  • Why the left endpoint? shrinks when rises, so the worst (largest) case is the smallest .
Recall Solution L2.4

, so we need , giving on .

  • WHERE is the max? is zero at both endpoints (, ) and rises to at the interior point . So the maximum is strictly inside at , not at an endpoint. Look at the figure: the peak (red dot) sits in the middle, not at the edges.

    Figure — Taylor's remainder theorem — error estimation
  • Why endpoints would fail here: plugging or gives , which would falsely claim zero error — clearly wrong, since but . A large but honest bound: the linear approximation is genuinely terrible that far out, and only the interior maximum captures it.


Level 3 — Analysis

Now solve for an unknown: how many terms? how close must be?

Recall Solution L3.1

, , . On , , so . Demand . Test values:

  • : — too big.
  • : — still too big.
  • : . ✓ Answer: (terms up to ). Note how the small factor helps you — far fewer terms than the case in the parent note.
Recall Solution L3.2

(up to sign), so . Solve for . Multiply both sides by : . Now take the fifth root of both sideswhy is that legal? The function is increasing for , so it preserves the inequality direction; and , so its fifth root is well defined. Hence Compute: . Answer: guarantees accuracy. (Because the bound uses , this range is symmetric: it works for and — see L4.3.)


Level 4 — Synthesis

Now combine ideas — non-zero centre, negative targets, choosing the smart centre.

Recall Solution L4.1

Here and , so . Every Taylor polynomial gives exactly. Zero error — because . This is the degenerate/limiting case: the closer your centre is to the target, the smaller and the more brutally the power crushes the error. It is the whole reason Taylor approximations are "local."

Recall Solution L4.2

, , so , . Derivatives of : , , , .

  • . This decreases in , so max at : .
  • Why ? shrinks as grows, so the largest value is at the left endpoint. (For reference , giving ; true , actual error . ✓)
Recall Solution L4.3

, , , target . The interval "between and " is now — it runs to the left of the centre.

  • WHAT is here. on is increasing, so its max is at the right end : . Take .
  • Why the right end this time? grows with , and is the largest in — the mirror image of the L2.1 reasoning.
  • WHY the sign disappears. The bound uses . The absolute value erases the sign — a target units to the left gives the exact same power as units to the right. That is why we never worry about which side of the centre we are on. Check: ; true , actual error . ✓
Recall Solution L4.4

From the parent note: on , , so and Since but , we need , i.e. (terms up to ).

The wrong alternative, stated plainly. The exact Lagrange form is for some unknown . A tempting shortcut is to guess a specific value of — say , giving and error — and call that "the error." Why it is wrong: the theorem only promises that some exists; it never tells you which one. If the true is closer to , the real factor is up to , nearly your guess — so a guessed can under-report the error and break your guarantee. Why the bound wins: replacing by its safe maximum over the whole interval gives a value that is valid no matter where hides. You trade a slightly larger (but certified) number for a promise that can never be violated.


Level 5 — Mastery

Now prove and reason at the edge — bounds that must hold for all , and comparisons.

Recall Solution L5.1

Every derivative of is or , so for all and all . Hence works uniformly: WHY this . Fix any real . The quantity is the general term of the convergent series ; terms of a convergent series must tend to . Therefore for every . Conclusion: the factorial always beats the power, no matter how big is — the series converges everywhere (infinite radius of convergence).

Recall Solution L5.2

Lagrange (from our formula), : (using ). Alternating Series bound: the Maclaurin series is alternating with decreasing terms, so the error after the term is at most the first omitted term . Which is tighter: the alternating bound is about 5× smaller than . WHY. The Lagrange bound uses the worst-case derivative blindly; the alternating theorem exploits the cancellation between and terms, which is extra information. When a series alternates, prefer that theorem; when it does not, Lagrange is your general tool.

Recall Solution L5.3

Exact Lagrange form: for some between and . As , that too, so . Thus The dominant behaviour is times a bounded factor, which is exactly the meaning of : the error shrinks like the next power of as . The factor is the leading constant hidden inside the Big-O.


Score yourself

Correct-per-level
L1 = you can name the pieces; L2 = you can compute a bound (including when the max is interior); L3 = you can solve for or the range; L4 = you handle shifted centres, negative targets, and the factor; L5 = you can prove convergence and compare bounds.