Maths WorkshopMaths problems with full solutions
Exercise 778Calculus › Single-variable calculus › Differentiation › Taylor expansionsL1Added 2 Nov 2026

Approximating e with a guaranteed error

#Taylor-Lagrange#error bound#number e

Statement

  1. Write the Taylor–Lagrange formula for exe^x at 00 and x=1x=1, at order nn.
  2. Find the smallest nn such that ∑k=0n1k!\sum_{k=0}^n\frac1{k!} approximates ee with an error below 10−610^{-6}. Use e<3e<3.
  3. Compute this approximation.
Hint

The remainder is eθ(n+1)!\dfrac{e^\theta}{(n+1)!} for some θ∈(0,1)\theta\in(0,1).

Show solutionHide solution

Solution

1. For some θ∈(0,1)\theta\in(0,1),
e=∑k=0n1k!+eθ(n+1)!.e=\sum_{k=0}^n\frac1{k!}+\frac{e^\theta}{(n+1)!}.

2. Error bound. Since 0<θ<10<\theta<1, eθ<e<3e^\theta<e<3, so the error satisfies
0<e−∑k=0n1k!<3(n+1)!.0<e-\sum_{k=0}^n\frac1{k!}<\frac3{(n+1)!}.
- For n=8n=8: 39!≈8.3⋅10−6\frac3{9!}\approx8.3\cdot10^{-6}, not small enough.
- For n=9n=9: 310!≈8.3⋅10−7<10−6\frac3{10!}\approx8.3\cdot10^{-7}<10^{-6}.

So n=9n=9 guarantees the precision (and it is the first nn for which this *bound* does).

3. ∑k=091k!=2.7182815255…\sum_{k=0}^9\frac1{k!}=2.7182815255\dots, while e=2.7182818284…e=2.7182818284\dots; the actual error is 3.0⋅10−73.0\cdot10^{-7}, indeed below the bound.

Remark. The factorials in the denominator make this series converge extremely fast: ten terms give six correct digits. The same reasoning is how calculators compute exe^x.