#Infinite Series
An infinite series is simply an infinite sum of numbers.
###Example 1
The harmonic series is the sum of the reciprocals of the positive integers:
This may be written with summation notation as
###Partial Sums
How do we carefully define what we mean by an "infinite sum"? We rewrite our sum as a sequence. If this sequence convergest to a number , then that is the value of our series. If the sequence diverges, so does our infinte sum. This sequence is called The Sequence of Partial Sums. Given a series , we define the sequence as follows:
Given a series , we define a sequence as follows:
is called the nth partial sum of the series.
So, the start of the sequence would be:
If exists, then we say the series converges (or is convergent), and we define the sum of the series to be this limit; that is,
If the limit does not exist, then we say the series diverges (or is divergent).
###Example 2
The decimal expansion of a real number can be thought of as a series.
In this example, we can see that an infinite sum of numbers may give you a finite answer. Such a series is called convergent.
Of course, many infinite series do not give you a finite sum. Such series are called divergent.
One of the easiest ways to get a divergent series is if the terms don't approach zero. That is, diverges if .
On the other hand, if , this is no guarantee that converges.
###Example 3
Even though , the harmonic series diverges. This fact was proved as far back as the 14th century by Oresme. His approach was to compare the harmonic series to a series with smaller terms. If the smaller series diverges, then the harmonic series must as well.
Given
Replace with , replace with , replace each of , , and with , and so on. What you get is the smaller series
This series diverges, because we can always find a term in the sequence of partial sums greater than any integer multiple of .
Compare this result with this convergent series:
[Side note: compare this to the improper integrals (divergent) and (convergent). Actually, each series is a left Riemann sum for the corresponding integral.]
###Geometric Series
One common type of series is called a geometric series, because the terms form a geometric sequence (a sequence is geometric if the ratio of successive terms is a constant, called the common ratio).
In other words, is a geometric series, if there exists a constant such that for all .
In general, a geometric series has the form
where is the first term and is the common ratio (note: it is customary to begin geometric series at , although this is not necessary).
###Example 4
Consider the geometric series . Let's look at the partial sums.
I'll use the sum command in Sage: sum(formula, index variable, start, end)
I'm going to separate out the initial 1 (the 0th term) to make the pattern easier to see.
As , the partial sums approach .
###Sum of a Geometric Series
In general, if , then
If , then the series diverges.
[Note: the index must start at 0 for this formula.]
###Example 5
(geometric series with and )
###Example 6
(geometric series with and )
###Example 7
Find the sum of the geometric series .
In this case, and (how do you know?), so the sum is
Let's find the sum with Sage:
###Alternating Series
Suppose that is a decreasing sequence of positive numbers. Then the series is called an an Alternating series. It is known that an alternating series converges if . The question for us though is what is the value of a convergent alternating series? Unlike geometric series, there is no general formula to use to find the limit value of a series. However, there is a way to estimate how far away our partial sum is from the actual sum. Suppose that our alternating series converges to a sum of . The difference between the partial sum and actual sum is bouned above by the next term in the series,
####Example
Consider the alternating series . How many terms in a partial sum are needed to guarantee that our partial sum is within of the actual sum?
The non-alternating terms are positive and have limit of zero. Thus, we know that the partial sum with terms is within of the actual sum. We need an so that Then we will compute the partial sum with this many terms, .
Hence, if we take , this partial sum is within of the actual sum. Thus,
Therefore,
###Error Estimates using Integration
The integral test can help us show if a series converges or diverges. Moreover, it can give us an estimate on how many terms in a partial sum are needed to approximate the actual sum with a partial sum. Suppose that is a positive decreasing function and our series is . If the series converges, the error between the actual sum and the th partial sum is satisfies,
####Example
Consider the series . How many terms in a partial sum are needed to estimate the series sum to within ?
Here is positive and eventually decreasing. We need to find an so that,
Since we know Sage can compute improper integrals, we utilize this.
Using we have an estimate to within of the actual sum.
Example 8 (And Interactive Sums)
Many series are difficult to estimate as they are not alternating series, or don't satisfy the conditions to use the Integral test. We can try to explore the partial sums to see if they give any information. Below is an interact that allow you to quickly look at partial sums and if Sage knows a way to evaluate the actual sum.
Try some series! For example, , or , or , or
#Series Assignment
###Question 1
Find the sum of the following geometric series using the sum command in Sage and using the formula (you should get the same answer).
###Question 2
Consider the alternating series . Use a partial sum to estimate the series value to within .
###Question 3
Use the sum command to evaluate the infinite sum directly in sage to compute,
###Question 4 Find the 10th, 100th, and 1000th partial sums of the series . Do you think the series converges?
[Recall factorial(n)]
###Question 5
Consider the series . Use the integral test to estimate the value of this integral using a partial sum to within . Hint: You may want to assign the value of your integral to a function, then evaluate your function to see how big the error is. (The value of the intgral is a large expression.)