∫Calc Practice

The Lagrange error bound

Problem 7.419 · easy

What degree \( \displaystyle n \) of Maclaurin polynomial for \( \displaystyle e^{x} \) guarantees, by the Lagrange error bound, an error less than \( \displaystyle \frac{1}{1000000} \) at \( \displaystyle x = 1 \)?
  1. |Rₙ(x)| ≤ M|x|ⁿ⁺¹/(n + 1)!, where M bounds |f⁽ⁿ⁺¹⁾|; here M = 3 because on [0, 1] every derivative of eˣ is at most e < 3.
    Reviewed
  2. \[ 1 \cdot \frac{1}{1209600} = \frac{1}{1209600} \]
    n = 9: the bound is 1/1209600 < 1/1000000.✓ Proved
  3. \[ 1 \cdot \frac{1}{120960} = \frac{1}{120960} \]
    n = 8: the bound is 1/120960, not below 1/1000000.✓ Proved
Answer \( n = 9 \)

Lines: 2 proved, 1 reviewed. The answer was also checked a second way, without looking at the solution. The reviewers disagree about how one step is explained; every verdict is in the receipt.

The full receipt
LineStatusChecked byDetail
1Reviewedreviewers: gpt-oss:20b, qwen3.6:27b-mlxa sentence; read, not computed
2✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
3✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
answer, a second way✓ Checked independentlysympy 1.14.0 + mpmath 1.3.0the bound recomputed at n and n − 1

Reviewers

  • gpt-oss:20b: pass
  • qwen3.6:27b-mlx: pass — The solution correctly applies the Lagrange error bound formula, justifies the choice of M=3, and verifies that n=9 is the smallest integer satisfying the error condition.
Every verdict on record (4)
  • gpt-oss:20b: pass 2026-10-08
  • qwen3.6:27b-mlx: pass 2026-10-08 — The solution correctly applies the Lagrange error bound formula, justifies the choice of M=3, and verifies that n=9 is the smallest integer satisfying the error condition.
  • qwen3.6:27b-mlx: fail (error) 2026-10-08 — The solution uses the error bound formula for the polynomial of degree n-1 (using n! in the denominator) instead of degree n (which requires (n+1)!). For n=9, the correct Lagrange bound is e/10! ≈ 0.00007, not 1/9!. Consequently, n=9 does not guarantee the error is less than 1/1000000; n=10 is required.
  • gpt-oss:20b: pass 2026-10-08

Proved: SymPy reduced the difference between the two sides to zero. Checked independently: a separate method, named above, confirmed it. Checked numerically: the two sides agree at every sampled point, which is evidence, not proof. Reviewed: a model or a person read it; that is all a sentence can have. Solution by generator:structured/lagrange_error, checked 2026-10-08 with SymPy 1.14.0.