MathCalculus

Alternating Series Error Bound: How Many Terms Approximate cos 1?

Count the constant term, bound the first omitted factorial term, and show why five terms meet the 0.00001 tolerance while four do not.

Question

The cosine expansion is

cos⁡θ=1−θ22!+θ44!−θ66!+⋯ .\cos\theta=1-\frac{\theta^2}{2!}+\frac{\theta^4}{4!}-\frac{\theta^6}{6!}+\cdots.

Determine how many terms are needed to approximate cos⁡1\cos 1 with error at most 0.000010.00001.

Required number of terms

Five terms, counting the initial 11, are sufficient. The approximation is

S5=1−12!+14!−16!+18!=2178540320≈0.540302579365.S_5=1-\frac1{2!}+\frac1{4!}-\frac1{6!}+\frac1{8!} =\frac{21785}{40320}\approx0.540302579365.

Apply the bound with the correct indexing

At θ=1\theta=1 radian, the magnitudes 1/(2k)!1/(2k)! decrease to zero. Define the NN-term approximation by

SN=∑k=0N−1(−1)k(2k)!.S_N=\sum_{k=0}^{N-1}\frac{(-1)^k}{(2k)!}.

The next omitted term has magnitude 1/(2N)!1/(2N)!. Therefore

∣cos⁡1−SN∣≤1(2N)!.|\cos1-S_N|\le\frac1{(2N)!}.
Terms retained NNFirst omitted magnitudeMeets 10−510^{-5} bound?
41/8!≈2.48015873×10−51/8!\approx2.48015873\times10^{-5}No guarantee from this bound
51/10!≈2.75573192×10−71/10!\approx2.75573192\times10^{-7}Yes

Why four terms are not enough here

A bound larger than the tolerance alone would not prove failure. In this particular series, the four-term error has the lower bound

cos⁡1−S4≥18!−110!=893628800≈2.45260141×10−5>10−5.\cos1-S_4\ge\frac1{8!}-\frac1{10!} =\frac{89}{3628800}\approx2.45260141\times10^{-5}>10^{-5}.

This follows by grouping the remaining decreasing alternating terms after those first two into positive pairs. For N=1,2,3N=1,2,3, the analogous lower bound 1/(2N)!−1/(2N+2)!1/(2N)!-1/(2N+2)! is also greater than 10−510^{-5}. Thus five is the minimum, as well as the first term count certified by the standard upper bound.

Evidence boundary

This solution uses OpenStax §5.5 exercise 303, the expansion of cos θ, θ=1 radian, and an error of at most 0.00001. N counts retained terms starting with the constant 1. Decimal values are rounded displays; the factorial inequalities establish the guarantee.

Sources

Эти источники подтверждают изложенные выше концепции и методы.