Alternating series test: basic illustration

(a) ∑n=1∞(−1)n−1n converges by the AST.

Notice that ∑1n diverges as a p-series with p=1/2<1.

Therefore the first series converges conditionally.


(b) ∑n=1∞cos⁡nπn2 converges by the AST.

Notice the funny notation: cos⁡nπ=(−1)n.

This series converges absolutely because |cos⁡nπn2|=1n2, which is a p-series with p=2>1.

Approximating pi

The Taylor series for tan−1⁡x is given by:

tan−1⁡x=x−x33+x55−x77+⋯

Using the AST “next term bound,” how many terms are needed to approximate π to within 0.001?

Solution

(1) The main idea is to use tan⁡π4=1 and thus tan−1⁡1=π4. Therefore:

π4=1−13+15−17+⋯

and thus:

π=4−43+45−47+⋯

(2) Write En for the error of the approximation, meaning En=S−Sn.

By the AST error formula, we have |En|<an+1.

We desire n such that |En|<0.001. Therefore, calculate n such that an+1<0.001, and then we will know:

|En|<an+1<0.001

(3) The general term is an=42n−1. Plug in n+1 in place of n to find an+1=42n+1. Now solve:

an+1=42n+1<0.001≫≫40.001<2n+1≫≫3999<2n≫≫2000≤n

We conclude that at least 2000 terms are necessary to be confident (by the error formula) that the approximation of π is accurate to within 0.001.