Module 6 : Precalculus
605 : Sequences & Series
S E T U P
In this project we will use the following command packages. Type and execute this line before begining the project below. If you re-enter the worksheet for this project, be sure to re-execute this statement before jumping to any point in the worksheet.
> restart; with(plots):
Warning, the name changecoords has been redefined
___________________________________________________________________________________
A. Sequences
___________________________________________________________________________________
Using the $ operator, we can easily create sequence of numbers in Maple.
Prototype for the sequence, $ operator, a range for k.
> 2*k^2 + 11 $ k = 1..10;
Using this method, we can create many types of sequences.
arithmetic sequences
> 2*j + 1 $ j = 1..16;
> 5*k + 17 $ k = 1..16;
geometric sequences
> 3^k $ k = 1..16;
> (4/5)^k $ k = 1..16;
polynomial sequences
> k^2 + 5*k - 3 $ k = 1..16;
trigonometric sequences
> sin(k*Pi/2) $ k = 1..16;
other sequences
> 1 + (-1)^k $ k = 1..16;
> (k! + 1) / (K^3 + k) $ k = 1..16;
___________________________________________________________________________________
B. Series & Sigma Notation
___________________________________________________________________________________
When we add up a sequence of numbers the result is a sum or series. To express a sum in Maple, we can use the Sum command (with a capital S). This command write the sum in sigma notation, but not compute its value. There are two different ways of computing its value using the sum (with a lower case s), and the value command immediately after the sum.
> Sum( 3*k + 7, k = 1..n) = sum( k , k = 1..n);
> Sum( 3*k + 7, k = 1..200); value(%);
___________________________________________________________________________________
C. Rules of Series
___________________________________________________________________________________
The distributive property for sums looks like this . We can verify that this rule is valid by computing the left and right sides of this equation, and then see that the results are the same. Let k = 4k + 9, and let c = 13.
>
Sum( 13* (4*k + 9), k = 1..200); Left := value(%);
Sum( 4*k + 9, k = 1..200); Right := value(%);
We can see for ourselves that the left and right sides are equal value, but we can ask Maple to verify that the left and right values are the same.
> testeq( Left = Right);
___________________________________________________________________________________
D. Series Formulas
___________________________________________________________________________________
There are formulas to compute the sum of consecutive integers, squares, cubes, etc. You can find many of these formulae in your textbook or a reference book, or let Maple find the formula for you. To get an attractive formula, we will compute the sum, simplify the result, and factor that result.
You might know this formula already. This is the sum of integers : 1 + 2 + 3 + ... + n
> Sum( k, k = 1..n); value(%); simplify(%); factor(%);
This one is more obscure, the sum of 8th powers of integers : 1^8 + 2^8 + 3^8 + ... + n^8
> Sum( k^8, k = 1..n); value(%); simplify(%); factor(%);
___________________________________________________________________________________
E. Infinite Series - Convergence & Divergence
___________________________________________________________________________________
When you add up an infinite number of numbers, it is very like to get infinity as the result.
> Sum( 3*k - 4, k = 1..infinity); % = value(%);
However, the result is not necessarily infinite. If the numbers get small quickly enough, the sum may be a finite number.
> Sum( (4/5)^k, k = 1..infinity); % = value(%);
___________________________________________________________________________________
F. Double Sums
___________________________________________________________________________________
A more complicated situation is double sum where there is a sum within a sum : . Notice that the limit of the inner sum, m, is the index of the outer sum. The inner sum is adding one number, then two numbers, then three, etc. The outer sum is adding all of these together.
Although this is much more complicated, we can get a formula for this too. We simply nest one Sum command within another.
> Sum( Sum(k^2, k = 1..m), m = 1..N); factor( simplify( value(%)));
> subs( N = 100, %);
>