Sequences and Series

Sequences

Definition : A sequence is (for us) an infinite list of numbers which can be ordered and in which there is a first term.

Notation: [Maple Math] = [Maple Math] , ... , [Maple Math] , ...

e.g. [Maple Math] , ... , [Maple Math] , ... e.g. [Maple Math] = 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, ....

e.g. (famous) the Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, ... = { [Maple Math] } where [Maple Math] = 1 and [Maple Math] for [Maple Math] .

Here are the first 20 terms of the Fibonacci sequence:

> with(combinat,fibonacci):seq(fibonacci(n),n=1..20);

Warning, new definition for fibonacci

[Maple Math]

Here follows an interesting sequence of matrices:

> with(linalg):f:=matrix(2,2,[1,1,1,0]);seq(evalm(f^n),n=1..10);

[Maple Math]

[Maple Math]

Definition : [Maple Math] = L means that the terms of [Maple Math] can be made arbitrarily close to L by taking n sufficiently large.

Note: If n is an integer and [Maple Math] and [Maple Math] = L then [Maple Math] = L . It follows that the usual limit laws that we learned for functions also apply to sequences.

Definition : If [Maple Math] exists (and = L) then { [Maple Math] }is said to converge to L . Otherwise { [Maple Math] } is divergent or diverges.

Theorem : If [Maple Math] and [Maple Math] when n is an integer, then [Maple Math] .

e.g. since [Maple Math] = 0, the sequence { [Maple Math] } converges to 0 but { [Maple Math] } and { [Maple Math] } both diverge (and for different reasons, why?)

Limit Laws : All the limit laws from Cal I apply to sequences (see table on page 696 ). For example :

If [Maple Math] and [Maple Math] are convergent sequences then [Maple Math]

The squeeze theorem also applies and says that if [Maple Math] and [Maple Math] for [Maple Math] and [Maple Math] = L , then [Maple Math] = L .

As a consequence of the squeeze theorem is an important litle fact:

If [Maple Math] then [Maple Math] .

Definition : [Maple Math] is increasing if [Maple Math] for all [Maple Math] . It is decreasing if ... It is monotonic if it is either increasing or decreasing.

Definition : [Maple Math] is bounded above if there is a number M such that [Maple Math] for all [Maple Math] . Similar definition for bounded below .

Theorem : Every bounded, monotonic sequence is convergent.

Series

Definition : If [Maple Math] is a sequence then its associated series is [Maple Math] = [Maple Math] = [Maple Math] + ....

If [Maple Math] is a series then we associate with it a sequence of partial sums, [Maple Math] , where [Maple Math] .

=> [Maple Math] , [Maple Math] , [Maple Math] , and so on...

e.g. Consider [Maple Math] and its sequence of partial sums.


[Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math] [Maple Math] [Maple Math]
[Maple Math] [Maple Math]
[Maple Math]
[Maple Math] [Maple Math]
[Maple Math] [Maple Math]
[Maple Math]
[Maple Math] [Maple Math]
[Maple Math] [Maple Math]
[Maple Math]
[Maple Math] [Maple Math]
[Maple Math] [Maple Math]
[Maple Math]
[Maple Math] [Maple Math]

From the table you should be fairly convinced that [Maple Math] = 1 and it is overwhelmingly tempting to conclude that [Maple Math] . And that's what we will conclude and it inspires the following definition.

Definition : The series [Maple Math] is convergent if and only if its associated sequence of partial sums converges. If [Maple Math] converges to L then we say that [Maple Math] = L.

e.g. the Geometric Series

[Maple Math] = [Maple Math] + .... is a geometric series with first term a and common ratio r . According to Maple, we have that (see blackboard for proof):

> Sum(a*r^(n-1),n=1..infinity)=sum(a*r^(n-1),n=1..infinity);

[Maple Math]

*** The above formula is only true if [Maple Math] . ***

e.g. 1) Find [Maple Math] 2) Find [Maple Math] + ...

1)

> S:=Sum(1/(2^n),n = 1 .. infinity)=sum(1/(2^n),n = 1 .. infinity);

[Maple Math]

2)

> Sum(-2*(-3/4)^n,n=0..infinity)=sum(-2*(-3/4)^n,n=0..infinity);

[Maple Math]

3) Write 1.42323232323..... as a ratio of integers.

Note: 1.42323232323... = 1.4 + [Maple Math] + [Maple Math] + [Maple Math] + ... = [Maple Math] + [Maple Math] + [Maple Math] + [Maple Math] + ...

> 1.4+Sum(23/10*1/100^n,n=1..infinity)=14/10+sum(23/10*1/100^n,n=1..infinity);

[Maple Math]

> evalf(1409/990,75);

[Maple Math]

Theorem : If [Maple Math] is convergent then [Maple Math] .

Note: the converse of the above theorem is not true. For example, the Harmonic Series is not covergent (see blackboard).

Test for Divergence : If [Maple Math] then [Maple Math] diverges.

e.g. [Maple Math]

> an:=2/(n^2+3*n+2);bn:=1/3^n;

[Maple Math]

[Maple Math]

> convert(an,parfrac,n);

[Maple Math]

> A:=Sum(an,n=1..infinity);B:=Sum(bn,n=1..infinity);value(A);value(B);

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

> Sum(an+bn,n=1..infinity)=sum(an+bn,n=1..infinity);

[Maple Math]

3 quick e.g.'s. Determine the donvergence/divergence of:

1.

> Sum((-3)^(n-1)/4^n,n=1..infinity)=sum((-3)^(n-1)/4^n,n=1..infinity);

[Maple Math]

2.

> Sum((3^n+2^n)/(6^n),n = 1 .. infinity)=sum((3^n+2^n)/(6^n),n = 1 .. infinity);

[Maple Math]

3.

> Sum(ln(n/(n+1)),n=1..infinity)=sum(ln(n/(n+1)),n=1..infinity);Limit(ln(x/(x+1)),x=infinity)=limit(ln(x/(x+1)),x=infinity);evalf(seq(sum(ln(n/(n+1)),n=1..i),i=1..10),4);evalf(seq(sum(ln(n/(n+1)),n=1..i),i=90..100),4);evalf(seq(sum(ln(n/(n+1)),n=1..i),i=990..1000),4);

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

=> It looks like the series diverges. It does. Prove it!

e.g. Find x so that S = [Maple Math] converges.

Note: S is a Geometric Series with first term [Maple Math] and common ratio [Maple Math] . It will converge <=> [Maple Math]

> plot([abs(1/x),1],x,y=0..4,thickness=2,colour=[black,red]);

[Maple Plot]

> solve(abs(1/x)=1,x);

[Maple Math]

=> converges for [Maple Math] and [Maple Math] . The sum will then be

> simplify((1/x)/(1-(1/x)));

[Maple Math]

The Integral Test

e.g. Show that the Harmonic Series diverges.

> with(student):

> leftbox(1/x,x=1..16,15,title=`y = 1/x`);

[Maple Plot]

Looking at the picture above it should be clear that [Maple Math] + .... > [Maple Math] and we know from earlier work with improper integrals that [Maple Math] = [Maple Math] . It follows that the hamonic series, [Maple Math] + ..., is divergent.

e.g. Show that [Maple Math] is convergent.

> rightbox(1/(x^2+1),x=0..10,10,title=`y = 1/(x^2+1)`);

[Maple Plot]

Calculate the areas of the rectangles in the picture and we get [Maple Math] = [Maple Math] + ... < [Maple Math] . Therefore, it follows that the sequence of partial sums, [Maple Math] , of the series is bounded above by [Maple Math] (see below) and clearly [Maple Math] is monotonic increasing. We stated a theorem about sequences that therefore guarantees the convergence of [Maple Math] (and we know that its sum is something less than 1.3 ).

> I1:=1/2+Int(1/(x^2+1),x=1..infinity);value(I1);

[Maple Math]

[Maple Math]

The Integral Test

The two preceeding examples motivate the integral test:

If f is a continuous, positive, decreasing function [Maple Math] and [Maple Math] then

(i) If [Maple Math] is convergent, then [Maple Math] is convergent

(ii) If [Maple Math] is divergent, then [Maple Math] is divergent

Notes: 1) It is not necessary for the series to start at n = 1. It is only necessary to make sure that the "starting numbers" match. e.g. to study [Maple Math] we would use the intgral [Maple Math] .

2) It is not necessary that f be always decreasing but only that it be monotonic decreasing for all x beyond some number N (i.e. f must be ultimately decreasing).

The p-series: [Maple Math] .

If p < 1 then we know that [Maple Math] and if p = 0 then [Maple Math] = 1. In both cases, the series diverges by the [Maple Math] term test for divergence. If p > 0 then we can see that [Maple Math] is continuous and decreasing on [Maple Math] and we can use the integral test on [Maple Math] .

It follows that the p -series is convergent if p > 1 and divergent if [Maple Math] .

The plots of three different "p-functions" below is informative.

> s1:=1/x^(1.5):s2:=1/x:s3:=1/sqrt(x):

> plot([s1,s2,s3],x=0..50,colour=[black,red,magenta],thickness=2,title=`y = 1/x^1.5, 1/x and 1/x^(1/2)`);

[Maple Plot]

Determine the behaviour of [Maple Math] .

> f:=x*exp(1)^(-x);plot(f,x=0..6,thickness=2);

[Maple Math]

[Maple Plot]

Clearly, [Maple Math] is positive for x > 0 and the picture makes it look like f is decreasing on [Maple Math] . To prove decreasing you can look at the derivative and see that it is indeed dcreasing for all x > 1.

> fp:=diff(f,x);solve(fp<0);

[Maple Math]

[Maple Math]

> Int(x*exp(1)^(-x),x=1..infinity)=int(x*exp(1)^(-x),x=1..infinity);

[Maple Math]

Maple says that the integral converges so we conclude that so does the series.

> value(Sum(n*exp(1)^(-n),n = 1 .. infinity));

[Maple Math]

The Comparison Tests

The Comparison Test

If [Maple Math] and [Maple Math] are both positive term series, then:

(i) if [Maple Math] is convergent and [Maple Math] for all n then [Maple Math] is also convergent.

(ii) if [Maple Math] is divergent and [Maple Math] for all n then [Maple Math] is also divergent.

Determine the convergence/divergence of: a) [Maple Math] b) [Maple Math] c) [Maple Math]

> Sum(1/(n^2+n-1),n = 1 .. infinity)=sum(1/(n^2+n-1),n = 1 .. infinity);

[Maple Math]

> evalf(%);

[Maple Math]

> plot([1/(x^2+x-1),1/x^2],x=0..4,y=0..1.5,discont=true,colour=[black,red],thickness=2);

[Maple Plot]

> Sum(5/(2+3^n),n=1..infinity);evalf(%);

[Maple Math]

[Maple Math]

> plot([5/(2+3^n),5/3^n],n=0..5,y=0..5,colour=[black,magenta],thickness=2);

[Maple Plot]

> Sum(ln(n)/n,n=1..infinity);evalf(%);

[Maple Math]

[Maple Math]

> plot([ln(n)/n,1/n],n=0..6,y=-2..2,colour=[black,red],thickness=2);

[Maple Plot]

> evalf(seq(sum(ln(i)/i,i=1..n),n=1..50),3);

[Maple Math]
[Maple Math]
[Maple Math]

=> [Maple Math] diverges by the comparison test (compare to a p-series with p = 1).

The Limit Comparison Test

Suppose that [Maple Math] and [Maple Math] are both positive term series and that [Maple Math] where [Maple Math] and [Maple Math] . Then either both series converge or both series diverge.

e.g. [Maple Math]

> restart:an:=sin(1/n);bn:=1/n;Limit(an/bn,n=infinity)=limit(an/bn,n=infinity);

[Maple Math]

[Maple Math]

[Maple Math]