Question
The cosine expansion is
Determine how many terms are needed to approximate with error at most .
Required number of terms
Five terms, counting the initial , are sufficient. The approximation is
Apply the bound with the correct indexing
At radian, the magnitudes decrease to zero. Define the -term approximation by
The next omitted term has magnitude . Therefore
| Terms retained | First omitted magnitude | Meets bound? |
|---|---|---|
| 4 | No guarantee from this bound | |
| 5 | 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
This follows by grouping the remaining decreasing alternating terms after those first two into positive pairs. For , the analogous lower bound is also greater than . 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
Các nguồn này hỗ trợ những khái niệm và phương pháp được giải thích ở trên.