Simple divergence test

Videos

Review Videos

Videos, Math Dr. Bob

Link to original

01 Theory

Theory 1

Simple Divergence Test (SDT)

Applicability: Any series.

Test Statement:

limnan0n=1andiverges

AKA the “Not Even Close” test

The converse is not valid. For example, n=11n diverges even though limn1n=0.

Link to original

02 Illustration

Example - Simple Divergence Test: examples

Simple divergence test: examples

(a) Consider: n=1n4n+1

This diverges by the SDT because an14 and not 0.


(b) Consider: n=1(1)n1nn+1

This diverges by the SDT because limnan=DNE.

We can say the terms “converge to the pattern +1,1,+1,1,,” but that is not a limit value.

Link to original

Positive series

Videos

Review Videos

Link to original

03 Theory

Theory 1

Positive series

A series is called positive when its individual terms are positive, i.e. an>0 for all n.

The partial sum sequence SN is monotone increasing for a positive series.

By the monotonicity test for convergence of sequences, SN therefore converges whenever it is bounded above. If SN is not bounded above, then n=1an diverges to +.


Another test, called the integral test, studies the terms of a series as if they represent rectangles with upper corner pinned to the graph of a continuous function.

To apply the test, we must convert the integer index variable n in an into a continuous variable x. This is easy when we have a formula for an (provided it doesn’t contain factorials or other elements dependent on integrality).

Integral Test (IT)

Applicability: f(x) must be:

  • Continuous
  • Positive
  • Monotone decreasing

Test Statement:

n=1anconverges1f(x)dxconverges

Extra - Integral test: explanation

To show that integral convergence implies series convergence, consider the diagram:

This shows that n=2Nan1Nf(x)dx for any N. Therefore, if 1f(x)dx converges, then 1Nf(x)dx is bounded (independent of N) and so n=2Nan is bounded by that inequality. But n=2Nan=SNa1; so by adding a1 to the bound, we see that SN itself is bounded, which implies that n=1an converges.

To show that integral divergence implies series divergence, consider a similar diagram:

This shows that n=1N1an1Nf(x)dx for any N. Therefore, if 1f(x)dx diverges, then 1Nf(x)dx goes to + as N, and so n=1N1an goes to + as well. So n=1an diverges.

Notice: the picture shows f(x) entirely above (or below) the rectangles. This depends upon f(x) being monotone decreasing, as well as f(x)>0. (This explains the applicability conditions.)


Next we use the integral test to evaluate the family of p-series, and later we can use p-series in comparison tests without repeating the work of the integral test.

p-series

A p-series is a series of this form: n=11np

Convergence properties:

p>1:series convergesp1:series diverges

Extra - Proof of p-series convergence

(1) To verify the convergence properties of p-series, apply the integral test:

Applicability: verify it’s continuous, positive, decreasing.

Convert n to x to obtain the function f(x)=1xp.

Indeed 1xp is continuous and positive and decreasing as x increases.


(2) Apply the integral test.

Integrate, assuming p1:

11xpdxlimRxp1p1|1RlimR(Rp+1p+11p+1p+1)

When p>1 we have limRRp+1p+1=0

When p<1 we have limRRp+1p+1=

When p=1, integrate a second time:

11xdxlimRlnx|1RlimRlnRln1

Conclude: the integral converges when p>1 and diverges when p1.


We could instead immediately refer to the convergence results for p-integrals instead of reproving them here.

Link to original

04 Illustration

Example - p-series examples

p-series examples

By finding p and applying the p-series convergence properties:

We see that n=11n1.1 converges: p=1.1 so p>1

But n=11n diverges: p=1/2 so p1

Link to original

Example - Integral test - pushing the envelope of convergence

Integral test - pushing the envelope of convergence

Does n=21nlnn converge?

Does n=21n(lnn)2 converge?

Notice that lnn grows very slowly with n, so 1nlnn is just a little smaller than 1n for large n, and similarly 1n(lnn)2 is just a little smaller still.

Solution

(1) The two series lead to the two functions f(x)=1xlnx and g(x)=1x(lnx)2.

Check applicability.

Clearly f(x) and g(x) are both continuous, positive, decreasing functions on x[2,).


(2) Apply the integral test to f(x).

Integrate f(x):

21xlnxdxu=ln21udulimRlnu|ln1R

Conclude: n=21nlnn diverges.


(3) Apply the integral test to g(x).

Integrate g(x):

21x(lnx)2dxu=ln21u2dulimRu1|ln2R1ln2

Conclude: n=21n(lnn)2 converges.

Link to original

05 Theory

Theory 2

Direct Comparison Test (DCT)

Applicability: Both series are positive: an>0 and bn>0.

Test Statement: Suppose anbn for large enough n. (Meaning: for nN with some given N.) Then:

  • Smaller pushes up bigger:
n=1andivergesn=1bndiverges
  • Bigger controls smaller:
n=1bnconvergesn=1anconverges
Link to original

06 Illustration

Example - Direct comparison test: rational functions

Direct comparison test: rational functions

(a) n=11n3n

Choose: an=1n3n and bn=13n

Check: 1n3n13n

Observe: 13n is a convergent geometric series

Therefore: converges by the DCT.


(b) n=1cos2nn3

Choose: an=cos2nn3 and bn=1n3.

Check: cos2nn31n3

Observe: 1n3 is a convergent p-series

Therefore: converges by the DCT.


(c) n=1nn3+1

Choose: an=nn3+1 and bn=1n2

Check: nn3+11n2 (notice that nn3+1nn3)

Observe: 1n2 is a convergent p-series

Therefore: converges by the DCT.


(d) n=21n1

Choose: an=1n and bn=1n1

Check: 1n1n1

Observe: 1n is a divergent p-series

Therefore: diverges by the DCT.

Link to original

07 Theory

Theory 3

Some series can be compared using the DCT after applying certain manipulations and tricks.

For example, consider the series n=21n21. We suspect convergence because an1n2 for large n. But unfortunately, an>1n2 always, so we cannot apply the DCT.

We could make some ad hoc arguments that do use the DCT, eventually:

Trick Method 1:

  • Observe that for n>1 we have 1n2110n2. (Check it!)
  • But 10n2 converges, indeed its value is 101n2, which is 10π26.
  • So the series 1n21 converges.

Trick Method 2:

  • Observe that we can change the letter n to n+1 by starting the new n at n=1.
  • Then we have:
n=21n21=n=11(n+1)21=n=11n2+2n
  • This last series has terms smaller than 1n2 so the DCT with bn=1n2 (a convergent p-series) shows that the original series converges too.

These convoluted arguments suggest that a more general version of Comparison is possible.

Indeed, it is sufficient to compare the relative large-n behavior of the two series. We use the termwise ratios to estimate comparative behavior for increasing n.

Limit Comparison Test (LCT)

Applicability: Both series are positive: an>0 and bn>0.

Test Statement: Suppose that limnanbn=L. Then: If 0<L<, i.e. finite non-zero, then:

anconvergesbnconverges

Extra - LCT edge cases

If L=0 or L=, we can still draw an inference, but only in one direction:

  • If L=0:
bnconvergesanconverges
  • If L=:
bndivergesandiverges

Extra - Limit Comparison Test explanation

Suppose an/bnL and 0<L<. Then for n sufficiently large, we know an/bn<L+1.

Doing some algebra, we get an<(L+1)bn for n large.

If bn converges, then (L+1)bn also converges (constant multiple), and then the DCT implies that an converges.

Conversely: we also know that bn/an1/L, so bn<(1/L+1)an for all n sufficiently large. Thus if an converges, (1/L+1)an also converges, and by the DCT again bn converges too.

The cases with L=0 or L= are handled similarly.

Link to original

08 Illustration

Example - Limit Comparison Test examples

Limit comparison test examples

(a) n=112n1

Choose: an=12n1 and bn=12n.

Compare in the limit:

limnanbnlimn2n2n11=:L

Observe: 12n is a convergent geometric series

Therefore: converges by the LCT.


(b) n=12n2+3n5+n5

Choose: an=2n2+3n5+n5, bn=1n1/2

Compare in the limit:

limnanbnlimn(2n2+3n)n5+n5 (2n2+3n)n5+n5n2n5/2n5/22=:L

Observe: 1n1/2 is a divergent p-series

Therefore: diverges by the LCT.


(c) n=2n2n4n1

Choose: an=n2n4n1 and bn=1n2

Compare in the limit:

limnanbnlimnn4n4n11=:L

Observe: n=21n2 is a converging p-series

Therefore: converges by the LCT.

Link to original

Alternating series

Videos

Review Videos

Videos, Math Dr. Bob:

Link to original

09 Theory

Theory 1

Consider these series:

1+12+13+14+15+16+17+=1121314151617=112+1314+1516+17=ln21+1213+141516+17+=?

The absolute values of terms are the same between these series, only the signs of terms change.

The first is a positive series because there are no negative terms.

The second series is the negation of a positive series – the study of such series is equivalent to that of positive series, just add a negative sign everywhere. These signs can be factored out of the series. (For example 1n=1n.)

The third series is an alternating series because the signs alternate in a strict pattern, every other sign being negative.

The fourth series is not alternating, nor is it positive, nor negative: it has a mysterious or unknown pattern of signs.

A series with any negative signs present, call it n=1an, converges absolutely when the positive series of absolute values of terms, namely n=1|an|, converges.

THEOREM: Absolute implies ordinary

If a series n=1an converges absolutely, then it also converges as it stands.

A series might converge due to the presence of negative terms and yet not converge absolutely:

A series n=1an is said to be converge conditionally when the series converges as it stands, but the series produced by inserting absolute values, namely n=1|an|, diverges.

The alternating harmonic series above, 112+1314+=ln2, is therefore conditionally convergent. Let us see why it converges. We can group the terms to create new sequences of pairs, each pair being a positive term. This can be done in two ways. The first creates an increasing sequence, the second a decreasing sequence:

increasing from 0:(112)+(1314)+(1516)+(1718)+decreasing from 1:1(1213)(1415)(1617)

Suppose SN gives the sequence of partial sums of the original series. Then S2N gives the first sequence of pairs, namely S2, S4, S6, . And S2N1 gives the second sequence of pairs, namely S1, S3, S5, .

The second sequence shows that SN is bounded above by 1, so S2N is monotone increasing and bounded above, so it converges. Similarly S2N1 is monotone decreasing and bounded below, so it converges too, and of course they must converge to the same thing.

The fact that the terms were decreasing in magnitude was an essential ingredient of the argument for convergence. This fact ensured that the parenthetical pairs were positive numbers.

Alternating Series Test (AST) - “Leibniz Test”

Applicability: Alternating series only: n=1(1)n1an with an>0

Test Statement: If:

  1. an0 as n (i.e. it passes the SDT: if this fails, conclude diverges)
  2. an are decreasing, so a1>a2>a3>a4>>0

Then:

n=1(1)n1anconverges

“Next Term Bound” rule for error of the partial sums:

|SSN|<aN+1

Extra - Alternating Series Test: Theory

Just as for the alternating harmonic series, we can form positive paired-up series because the terms are decreasing:

(a1a2)+(a3a4)+(a5a6)+a1(a2a3)(a4a5)(a6a7)

The first sequence S2N is monotone increasing from 0, and the second S2N1 is decreasing from a1. The first is therefore also bounded above by a1. So it converges. Similarly, the second converges. Their difference at any point is S2NS2N1 which is equal to a2N, and this goes to zero. So the two sequences must converge to the same thing.

By considering these paired-up sequences and the effect of adding each new term one after the other, we obtain the following order relations:

0<S2<S4<S6<<S<<S5<S3<S1=a1

Thus, for any even 2N and any odd 2M1:

S2N<S<S2M1

Now set M=N and subtract S2N1 from both sides:

S2NS2N1<SS2N1<0a2N<SS2N1<0

Now set M=N+1 and subtract S2N from both sides:

0<SS2N<S2N+1S2N0<SS2N<a2N+1

This covers both even cases (n=2N) and odd cases (n=2N1). In either case, we have:

|SSn|<an+1
Link to original

10 Illustration

Example - Alternating Series Test: Basic illustration

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.

Link to original

Example - Approximating π

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.

Link to original