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
- Use the Alternating Series Error Bound (and know whether your estimate is too high or too low)
- Find how many terms are needed to guarantee an error smaller than a target like \(0.001\)
- Use the Lagrange Error Bound (and know how to find \(M\))
- Decide which error bound to use on an AP FRQ and write the full-credit justification
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:
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\)).
Approximate \(S = \displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^2}\) using the first 4 terms, and bound the error.
- Compute \(S_4 = 1 - \frac14 + \frac19 - \frac{1}{16} \approx 0.7986\).
- Check AST conditions: terms alternate in sign, decrease in magnitude (\(\frac{1}{(n+1)^2} < \frac{1}{n^2}\)), and approach \(0\). ✓
- Find the first omitted term (the \(n = 5\) term): \(b_5 = \dfrac{1}{5^2} = \dfrac{1}{25} = 0.04\).
- 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\) ✓.)
Approximate \(\sin(0.5)\) using \(P_3(x) = x - \dfrac{x^3}{6}\) and show the error is less than \(0.001\).
- 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\)!
- Approximation: \(P_3(0.5) = 0.5 - \dfrac{0.125}{6} \approx 0.4792\).
- 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 \]
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?
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\).
where \(M \ge \max\big|f^{(n+1)}(z)\big|\) for all \(z\) between \(a\) and \(x\).
How do you find \(M\)?
- On most AP FRQs, \(M\) is handed to you! Look for a sentence like "It is known that \(|f^{(4)}(x)| \le 6\) for all \(x\) in \([1, 2]\)" or a graph of \(f^{(4)}\) where you can read its highest peak (or lowest valley's absolute value!).
- For standard functions (\(\sin x\), \(\cos x\), \(e^x\)):
- For \(\sin x\) or \(\cos x\): every derivative is \(\pm\sin x\) or \(\pm\cos x\), so \(|f^{(n+1)}(z)| \le 1\) always — use \(M = 1\)!
- For \(e^x\) on \([0, 1]\): \(e^z\) is increasing, so its max on \([0,1]\) is \(e^1 < 3\) — use \(M = 3\) (any valid upper bound works!).
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}\).
- Identify the pieces: \(n = 3\) (so \(n + 1 = 4\)), center \(a = 0\), target \(x = 1\).
- 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\)).
- 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\) ✓.
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\).
- Identify: \(n = 3 \Rightarrow n+1 = 4\), \(a = 1\), \(x = 1.5\) (so \(|x - a| = 0.5 = \frac12\)), and \(M = 6\).
- 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} \]
- Compare with \(0.02\): \(\dfrac{1}{64} = 0.015625 < 0.02\) (or without decimals: \(\frac{1}{64} < \frac{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)|\)?
Common mistakes
- Using \(n\) instead of \(n + 1\) in Lagrange (or the last included term instead of the first omitted term in AST).
- Plugging in \(x\) instead of \(|x - a|\) when the center \(a \ne 0\).
- Using AST when the series doesn't alternate at that \(x\)! For example, \(e^x\) alternates when \(x < 0\) (like \(e^{-0.5}\)), but NOT when \(x > 0\) (like \(e^{0.5}\)).
- Forgetting to state the AST conditions ("alternates, terms decrease in magnitude to \(0\)") on an FRQ.
- Computing a negative error bound — error is always an absolute value (\(\ge 0\)).
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
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.
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\) ✓.
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
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 \]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
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\).