Taylor’s Theorem with Lagrange Remainder Explained with Worked Examples

Taylor’s theorem gives , with the Lagrange remainder for some between and .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Taylor’s theorem with Lagrange remainder means

A Taylor polynomial approximates a function near . The remainder tells you the size of the error. Bounding on the interval bounds the error.

For at with the terms up to , the error is at most .

It is the quantitative version of the Taylor series and the extension of the mean value theorem. It gives the error term for the Maclaurin series and the Taylor series, and rests on the mean value theorem. For a related method, compare Derivative from first principles.

This page is part of Differentiation in Calculus. Topics that work alongside it: Taylor series about x = a, Mean value theorem, Maclaurin series, L'Hôpital's rule, Curvature of a plane curve, Implicit function derivative and Concavity and points of inflection.

What is it used for?

Taylor’s theorem gives a polynomial approximation to a function together with a formula for the size of the error, the Lagrange remainder.

How to use taylor’s theorem with lagrange remainder

  1. Write the Taylor polynomial of degree .
  2. Write the remainder with .
  3. Bound the derivative on the interval.
  4. Evaluate the bound.

Graph

sin x and the polynomial x − x³/6-3-2-10123-1.5-1-0.500.511.5sin x and the polynomial x − x³/6xysin xx − x³/6Graph with x from -3.2 to 3.2 and y from -1.6 to 1.6. Shows the curve sin x; the curve x − x³/6.

The gap between the curves is the remainder. Near x = 0 it is tiny, and it grows as |x| increases.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: an error bound

Bound the error when is approximated by .

Worked example
Answer
∣R2∣≤1.84×10−4|R_{2}|\le1.84\times10^{-4}
  1. The next derivative
    Every derivative of is , at most on .
  2. Lagrange remainder

Example 2: compare with the actual error

Check the bound against the actual error.

Worked example
Answer
Within the bound\text{Within the bound}
  1. Exact and approximate
    The exact value is and the approximation is 1.105.
  2. Actual error
    About , within the bound.

Example 3: error for sin 0.5

Bound the error when is approximated by .

Worked example
Answer
∣error∣≤0.00026|\text{error}| \le 0.00026
  1. The next term has degree 5
  2. Evaluate

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

eˣ, n = 2, x = 0.5

bound e^0.5 × 0.125/6

0.0343.

Actual error

e^0.5 − 1.625

0.0237.

sin x, n = 3, x = 0.5

0.5⁴/24

0.0026.

Quadratic approximation

1 + 0.5 + 0.125

1.625.

Word problems

f(x) = Σ_{k≤n} f⁽ᵏ⁾(a)(x − a)ᵏ/k! + Rₙ, with Rₙ = f⁽ⁿ⁺¹⁾(ξ)(x − a)ⁿ⁺¹/(n + 1)! for some ξ between a and x. Bound |f⁽ⁿ⁺¹⁾| to bound the error.

Approximation

eˣ about 0 to n = 2 at x = 0.5.

  1. 1 + 0.5 + 0.125
  2. Check: ✓1.625

Error bound

Bound R₂ ≤ e^0.5 × 0.5³/3!.

  1. 1.6487 × 0.0208
  2. Check: ✓0.0343

Actual error Higher

e^0.5 − 1.625.

  1. 1.6487 − 1.625
  2. Check: below the bound ✓0.0237

Sine Higher

sin x with n = 3 at x = 0.5: bound 0.5⁴/4!.

  1. 0.0625/24
  2. Check: ✓0.0026

Common mistakes

ξ unknown means no bound

useless ✗

bound |f⁽ⁿ⁺¹⁾| on the interval ✓

Maximum.

Wrong factorial

n! ✗

(n + 1)! ✓

Next term.

Using x instead of x − a

xⁿ⁺¹ ✗

(x − a)ⁿ⁺¹ ✓

Centre.

Error = remainder bound exactly

equal ✗

error ≤ bound ✓

Inequality.

Exam tips

  1. Rₙ = f⁽ⁿ⁺¹⁾(ξ)(x − a)ⁿ⁺¹/(n + 1)!.
  2. Bound |f⁽ⁿ⁺¹⁾|.
  3. (n + 1)!.
  4. Error ≤ bound.
  5. Choose n for target accuracy.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Bound for eˣ, n = 3, x = 0.2: e^0.2 × 0.2⁴/24 Foundation

0.000081

2. Bound for sin x, n = 1, x = 0.1: 0.1²/2 Foundation

0.005

3. Bound for cos x, n = 2, x = 0.3: 0.3³/6 Foundation

0.0045

4. Taylor poly eˣ n = 2 at x = 0.3 Higher

1.345

5. Actual error e^0.3 − 1.345 to 5 d.p. Higher

0.00486

6. Bound for ln(1+x), n = 2, x = 0.1: 0.1³/3 Higher

0.00033

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Taylor’s theorem
Polynomial plus remainder.
Lagrange remainder
Rₙ.
ξ
Unknown point between a and x.
Error bound
Upper limit.
Degree (n)
Order of polynomial.
Approximation
Taylor polynomial.

Frequently asked questions

What is the Lagrange remainder?

Rₙ = f⁽ⁿ⁺¹⁾(ξ)(x − a)ⁿ⁺¹/(n + 1)!.

How do I bound the error?

Bound |f⁽ⁿ⁺¹⁾| on the interval.

What is ξ?

An unknown point between a and x.

Is the actual error equal to the bound?

No; it is at most the bound.

Which page covers Taylor series?

Taylor series.

Which page covers implicit differentiation?

implicit function derivative.

More in Calculus and the formula sheets.