Application Center - Maplesoft

# Introduction to infinite series

You can switch back to the summary page by clicking here.

L16-series1.mws

Calculus II

Lesson 16: Introduction to Infinite Series

Infinite Series

What does it mean to add up a sequence of numbers? (Remember that sequences are always infinite, so this is a question about adding up an infinite set of numbers.) As explained in Section 10.2, to compute the sum , we first form the sequence of partial sums:

, , , ... ,

whose general term is

= = + + + ... + ,

and then compute the limit .

This procedure can be very hard to do directly by hand---a large part of Chapter 10 is devoted to showing you ways of doing it indirectly---but it is sometimes feasible with Maple . Let's look at summing the series

.

We begin by defining the sequence of terms of the series, and the sequence of partial sums. To save some typing, we will use the function syntax to define and as functions of . Note that both sequences actually start with , rather than , since the first term in the sum is .

> a := proc(n) (5/9)^n end:

> s := proc(n) sum(a(i), i=0..n) end:

We can now easily print out the first few terms; for example,

> a(n) \$n=0..10;

Similarly, here are the first few partial sums:

> s(n) \$n=0..10;

Notice that these two sequences are different!!! The second sequence consists of sums of the terms in the first sequence; for example, the first three partial sums are

> a(0); a(0) + a(1); a(0) + a(1) + a(2);

In case you still need convincing, here are plots of the two sequences. First is a plot of the sequence of terms; next is a plot of the sequence of partial sums.

> plot([[n,a(n)] \$n=0..50], x=0..50, style=point);

> plot([[n,s(n)] \$n=0..50], x=0..50, style=point);

The sequences of terms appears to converges to 0, and you can check with limit that this is correct. This does not mean that the series has a sum of 0. The sum of the series is the limit of the partial sums:

> limit(s(n), n=infinity);

This means we can write . Not surprisingly, Maple could have given us this answer in one step.

> sum((5/9)^n, n=0..infinity);

>

Question 4

For each of the following series, define the sequence of terms and the sequence of partial sums, then find the sum of the series by taking the limit of the latter, if it exists. (Some of the series may diverge.) For each example, check your result by asking Maple to sum the series.

(a) (b) (c) (d)

(Hint for (b): if Maple has trouble computing the partial sums of this one, use partial fractions.)

Solutions. Here is the first series:

> a := proc(n) 5/(-2)^n end:

> s := proc(n) sum(a(j), j=1..n) end:

> limit(s(n), n=infinity);

Series (a) converges, and its sum is -5/3. We can now do the others just by re-defining ; since all our series start the summation at , the expression for in terms of will be the same every time.

> a := proc(n) 1/(n*(n+1)) end:

> limit(s(n), n=infinity);

Series (b) converges, with sum 1.

> a := proc(n) 1/n end:

> limit(s(n), n=infinity);

The answer shows that series (c) diverges.

> a := proc(n) 1/n^2 end:

> limit(s(n), n=infinity);

Series (d) converges, with sum /6 . (Strange but true: what has have to do with summing reciprocals of squares of positive integers?)