Alternating series test: basic illustration

(a) n=1(1)n1n 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=1cosnπn2 converges by the AST.

Notice the funny notation: cosnπ=(1)n.

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

Approximating pi

The Taylor series for tan1x is given by:

tan1x=xx33+x55x77+

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 tan11=π4. Therefore:

π4=113+1517+

and thus:

π=443+4547+

(2) Write En for the error of the approximation, meaning En=SSn.

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=42n1. Plug in n+1 in place of n to find an+1=42n+1. Now solve:

an+1=42n+1<0.00140.001<2n+13999<2n2000n

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.