Error Bounds

When you chop off an infinite series after \(n\) terms to estimate a number, you don't know the exact answer—so how do you know how close you are? Error bounds give you a guaranteed ceiling on your mistake, without needing to know the true answer.

By the end you can

What "error" means

If \(S\) is the exact value (say \(f(x)\) or the exact sum of a series) and \(S_n\) (or \(P_n(x)\)) is your finite approximation, the error (or remainder \(R_n\)) is the gap between them:

\[ \text{Error} = |S - S_n| = |f(x) - P_n(x)| \]

We can't compute \(|f(x) - P_n(x)|\) directly without knowing \(f(x)\), so we find a clean upper bound \(B\) such that \(|f(x) - P_n(x)| \le B\).

1. The Alternating Series Error Bound

Remember the zig-zag picture from Alternating Series & Ratio Test? Because the partial sums bounce back and forth across the true sum \(S\) with shrinking steps, the true sum is always trapped between \(S_n\) and \(S_{n+1}\)! The distance between \(S_n\) and \(S_{n+1}\) is literally the size of the very next term you left off:

Alternating Series Error Bound

If \(\sum (-1)^n b_n\) satisfies the AST conditions (alternating, \(b_n\) decreasing to \(0\)), then:

\[ |S - S_n| \le b_{n+1} = |\text{first omitted term}| \]

Bonus fact: you also know the direction of the error! If the first omitted term is positive, you haven't added it yet, so \(S_n\) is an underestimate (\(S_n < S\)). If the first omitted term is negative, \(S_n\) is an overestimate (\(S_n > S\)).

Example 1 · Bounding a numerical alternating series

Approximate \(S = \displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^2}\) using the first 4 terms, and bound the error.

  1. Compute \(S_4 = 1 - \frac14 + \frac19 - \frac{1}{16} \approx 0.7986\).
  2. Check AST conditions: terms alternate in sign, decrease in magnitude (\(\frac{1}{(n+1)^2} < \frac{1}{n^2}\)), and approach \(0\). ✓
  3. Find the first omitted term (the \(n = 5\) term): \(b_5 = \dfrac{1}{5^2} = \dfrac{1}{25} = 0.04\).
  4. Direction check: the \(n=5\) term is \(+\frac{1}{25}\) (positive), so \(S_4\) is an underestimate! (In fact \(S = \frac{\pi^2}{12} \approx 0.8225\), and the actual error is \(0.0239 \le 0.04\) ✓.)
\(S_4 \approx 0.799\), with error \(\le \dfrac{1}{25} = 0.04\) (underestimate).
Example 2 · Alternating bound on a Taylor polynomial

Approximate \(\sin(0.5)\) using \(P_3(x) = x - \dfrac{x^3}{6}\) and show the error is less than \(0.001\).

  1. Plug \(x = 0.5\) into the full Maclaurin series for \(\sin x\): \[ \sin(0.5) = 0.5 - \frac{0.5^3}{3!} + \frac{0.5^5}{5!} - \frac{0.5^7}{7!} + \dots \] Notice that at \(x = 0.5\), this is an alternating series whose terms decrease in magnitude to \(0\)!
  2. Approximation: \(P_3(0.5) = 0.5 - \dfrac{0.125}{6} \approx 0.4792\).
  3. First omitted nonzero term is the \(x^5\) term! \[ |\sin(0.5) - P_3(0.5)| \le \frac{0.5^5}{5!} = \frac{1/32}{120} = \frac{1}{3840} \approx 0.000260 < 0.001 \]
\(P_3(0.5) \approx 0.479\); error \(\le \frac{1}{3840} < 0.001\).

For \(\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^3}\), you approximate the sum using \(S_3 = 1 - \frac18 + \frac{1}{27}\). What is the Alternating Series Error Bound?

Always take the absolute value of the first omitted term—here \(n = 4\), so \(\left|\frac{(-1)^5}{4^3}\right| = \frac{1}{64}\). Option 1 used the last included term (\(n=3\)); option 3 forgot absolute values!

2. The Lagrange Error Bound

What if the series is not alternating (for example, \(e^x\) at \(x = 1\), where every term is positive), or you only know a bound on the next derivative? Then you can't use the Alternating Series Error Bound—you use the Lagrange Error Bound!

Intuition: the error of \(P_n(x)\) behaves just like the very next term \(\dfrac{f^{(n+1)}(a)}{(n+1)!}(x-a)^{n+1}\), except instead of evaluating \(f^{(n+1)}\) at \(a\), we replace \(|f^{(n+1)}|\) with its worst-case (maximum) value \(M\) anywhere between \(a\) and \(x\).

Lagrange Error Bound
\[ |R_n(x)| = |f(x) - P_n(x)| \le \frac{M \cdot |x - a|^{n+1}}{(n + 1)!} \]

where \(M \ge \max\big|f^{(n+1)}(z)\big|\) for all \(z\) between \(a\) and \(x\).

How do you find \(M\)?

Example 3 · Lagrange bound on \(e^1\)

Use the Lagrange Error Bound to bound the error in approximating \(e^1\) with \(P_3(x) = 1 + x + \frac{x^2}{2} + \frac{x^3}{6}\).

  1. Identify the pieces: \(n = 3\) (so \(n + 1 = 4\)), center \(a = 0\), target \(x = 1\).
  2. Find \(M\): \(f^{(4)}(z) = e^z\). On \([0, 1]\), the maximum of \(e^z\) is \(e^1\). Since we're pretending we don't know \(e\) yet, use the safe upper bound \(M = 3\) (since \(e < 3\)).
  3. Plug into the Lagrange formula: \[ |e^1 - P_3(1)| \le \frac{3 \cdot |1 - 0|^4}{4!} = \frac{3}{24} = \frac{1}{8} = 0.125 \] Actual error is \(e - 2.6667 \approx 0.0516\), safely below \(0.125\) ✓.
Error \(\le \dfrac{1}{8} = 0.125\)
Example 4 · Classic AP FRQ Lagrange question

Let \(P_3(x)\) be the 3rd-degree Taylor polynomial for \(f\) about \(x = 1\). It is known that \(\big|f^{(4)}(x)\big| \le 6\) for all \(x\) in \([1, 1.5]\). Use the Lagrange error bound to show that \(\big|f(1.5) - P_3(1.5)\big| < 0.02\).

  1. Identify: \(n = 3 \Rightarrow n+1 = 4\), \(a = 1\), \(x = 1.5\) (so \(|x - a| = 0.5 = \frac12\)), and \(M = 6\).
  2. Apply the Lagrange Error Bound: \[ |f(1.5) - P_3(1.5)| \le \frac{6 \cdot |1.5 - 1|^4}{4!} = \frac{6 \cdot (1/2)^4}{24} = \frac{6 \cdot (1/16)}{24} = \frac{1}{64} \]
  3. Compare with \(0.02\): \(\dfrac{1}{64} = 0.015625 < 0.02\) (or without decimals: \(\frac{1}{64} < \frac{1}{50} = 0.02\)). ✓
\(|f(1.5) - P_3(1.5)| \le \dfrac{1}{64} < \dfrac{1}{50} = 0.02\).

Which error bound should I use?

Use Alternating Series Error Bound when:

  • The series evaluated at your \(x\) actually alternates, with terms decreasing in magnitude to \(0\).
  • You're NOT given a bound \(M\) on \(f^{(n+1)}\).
  • Always state on FRQs: "The series alternates, terms decrease in magnitude to \(0\), so by the Alternating Series Error Bound..."

Use Lagrange Error Bound when:

  • The prompt explicitly gives a bound on \(|f^{(n+1)}(x)|\) (or a table/graph of \(f^{(n+1)}\)), OR mentions "Lagrange."
  • The series does NOT alternate at that \(x\) (e.g. \(e^{0.5}\)).

Let \(P_2(x)\) be the 2nd-degree Taylor polynomial for \(f\) about \(x = 4\). Suppose \(|f'''(z)| \le 18\) for all \(z \in [3.5, 4.5]\). What is the Lagrange error bound for \(|f(4.5) - P_2(4.5)|\)?

Since \(n = 2\), we use \(n + 1 = 3\): \(\frac{M|x-a|^3}{3!} = \frac{18(0.5)^3}{6} = 3 \cdot \frac18 = \frac38\). Option 1 used \(n\) instead of \(n+1\); option 3 used \(x = 4.5\) instead of \(|x - a| = 0.5\)!

Common mistakes

Watch out for these
On the AP exam

Question 6 (the Series FRQ) includes an error-bound part almost every single year! Often you just have to show your bound is less than a given fraction like \(\frac{1}{100}\)—you don't need to simplify messy arithmetic if the comparison is already obvious (e.g., \(\frac{1}{64} < \frac{1}{50}\)).

Practice problems

Warm-up

Estimate \(\cos(0.2)\) with \(P_2(x) = 1 - \frac{x^2}{2}\) and give an upper bound for the error using the Alternating Series Error Bound. Is \(P_2(0.2)\) an overestimate or underestimate?

Hint

Next nonzero term in \(\cos x\) is \(+\frac{x^4}{4!}\). Look at its sign!

Solution

\(P_2(0.2) = 1 - \frac{0.04}{2} = 0.98\).

The series for \(\cos(0.2)\) alternates with terms decreasing to \(0\). First omitted term: \(+\frac{(0.2)^4}{4!} = \frac{0.0016}{24} \approx 0.0000667\).

Because the first omitted term is positive, \(0.98\) is an underestimate.

\(P_2(0.2) = 0.98\); error \(\le \dfrac{(0.2)^4}{24} \approx 6.67\times 10^{-5}\); underestimate.
Medium

How many terms of \(\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{(2n - 1)^2}\) must you add so the Alternating Series Error Bound guarantees an error strictly less than \(0.001\)?

Hint

If you add \(N\) terms, the first omitted term is \(n = N + 1\), which has magnitude \(\frac{1}{(2N+1)^2}\). Solve \(\frac{1}{(2N+1)^2} < \frac{1}{1000}\).

Solution

Need \((2N + 1)^2 > 1000 \Rightarrow 2N + 1 > \sqrt{1000} \approx 31.62 \Rightarrow 2N > 30.62 \Rightarrow N > 15.31\).

Check \(N = 15\): next term is \(\frac{1}{31^2} = \frac{1}{961} > 0.001\) (not enough!). Check \(N = 16\): next term is \(\frac{1}{33^2} = \frac{1}{1089} < 0.001\) ✓.

\(16\) terms
Medium

Let \(P_3(x)\) be the 3rd-degree Taylor polynomial for \(f\) about \(x = 2\). If \(|f^{(4)}(z)| \le 12\) for all \(z \in [1.7, 2.3]\), find the Lagrange error bound for \(|f(2.2) - P_3(2.2)|\).

Hint

\(n = 3 \Rightarrow n+1 = 4\), \(M = 12\), \(|x - a| = 0.2\).

Solution
\[ |f(2.2) - P_3(2.2)| \le \frac{12 \cdot (0.2)^4}{4!} = \frac{12}{24} \cdot 0.0016 = 0.0008 \]
\(0.0008\) (or \(\dfrac{1}{1250}\))
AP-style

Using the Lagrange Error Bound with \(P_4(x) = x - \frac{x^3}{6}\) for \(f(x) = \sin x\) about \(x = 0\), find an upper bound for \(|\sin(0.5) - P_4(0.5)|\). (Why can we treat \(x - \frac{x^3}{6}\) as \(P_4(x)\) instead of just \(P_3(x)\)?)

Hint

The \(x^4\) term of \(\sin x\) has coefficient \(0\), so \(P_4(x) = P_3(x)\)! That lets you jump straight to \(n + 1 = 5\) with \(M = 1\).

Solution

Because \(f^{(4)}(0) = \sin 0 = 0\), \(P_4(x) = x - \frac{x^3}{6} + 0\cdot x^4\). Using \(n = 4\), \(f^{(5)}(z) = \cos z\), so \(|f^{(5)}(z)| \le 1\):

\[ |\sin(0.5) - P_4(0.5)| \le \frac{1 \cdot (0.5)^5}{5!} = \frac{1}{3840} \approx 0.000260 \]
\(\dfrac{1}{3840}\) (tighter than using \(n = 3\), which would give \(\frac{0.5^4}{24} = \frac{1}{384}\))
AP-style

Suppose \(P_2(1.5) = 3.2\) is the 2nd-degree Taylor approximation to \(f(1.5)\) centered at \(x = 1\), and it is known that \(|f'''(x)| \le 4\) on \([1, 1.5]\). Can \(f(1.5)\) equal \(3.4\)? Justify your answer.

Hint

Compute the Lagrange error bound \(B\), then check if \(3.4\) falls inside \([3.2 - B,\; 3.2 + B]\).

Solution
\[ |f(1.5) - 3.2| \le \frac{4 \cdot (0.5)^3}{3!} = \frac{4 \cdot (1/8)}{6} = \frac{1}{12} \approx 0.0833 \]

Therefore \(3.2 - \frac{1}{12} \le f(1.5) \le 3.2 + \frac{1}{12} \approx 3.2833\). Since \(3.4 > 3.2833\), \(f(1.5)\) cannot equal \(3.4\).

No, because Lagrange guarantees \(f(1.5) \le 3.2 + \frac{1}{12} \approx 3.283 < 3.4\).