Sequences and Series

This section is currently under construction.

1. How can I find the partial sums of a series on the calculator?

Answer: Put the terms of the series into the list variable L1 .(See questions#3,4 below for possible methods for putting the terms of a series into the L1 list variable.) Then enter the instruction cumSum(L1) on the home screen. (The cumSum instruction is located in the [2nd] [LIST] OPS menu, item # 6.) The partial sums will appear as an output list on the home screen. This output list has the same length as L1.

If we enter the instruction cumSum( L1 ) ---> L2 , then L2 will contain the sequence of partial sums of L1. These two sequences can be viewed side by side in the STAT EDIT screen.

2. Suppose I know that a power series c0 + c1*x + c2*x2 + ... + cn*xn + ... converges to f(x) in the interval -R < x < R (where an expression for f(x) is known). How can I graph f(x) together with the first several partial sums sn(x)?

Answer: This question often appears in calculus textbooks. There are many ways to answer this question. We will give two answers as follows:

In answer #1, we will describe a method for graphing the function f(x) and the first 5 distinct partial sum functions. The method will not use any special efficiencies of computation, but should be easy to understand.

In answer #2, we will plot more partial sum functions, and will use Horner's method to help gain computational efficiency.

Answer #1. Put f(x) into the function variable Y1. Put the partial sum functions s0(x), s1(x), s2(x), s3(x), and s4(x) (which we assume are distinct) into the function variables Y2, Y3, Y4, Y5, and Y6 respectively. Set up the window with an interval of values for the x variable (and also for the y variable), and then press [GRAPH].

For example, if f(x) = ex, we set

Y1 = e^(X)
Y2 = 1
Y3 = 1 + X
Y4 = 1 + X + X2/2
Y5 = 1 + X + X2/2 + (X^3)/6
Y6 = 1 + X + X2/2 + (X^3)/6 + (X^4)/24

We graph in the window 0 < X < 3 and 0 < Y < 10. To complete the picture, we then graph again using the window -3 < X < 0 and -3 < Y < 3. We can see the beginning of the convergence of sn(x) to ex.

Answer #2. This answer will assume that more partial sum functions are to be plotted. We also assume that the expressions for the cn's are sufficiently complicated that we want the calculator to compute these values also.

In Part A of this answer, we outline some ideas which should give an efficient computation so that the graphs will appear without too much delay. In Part B of the answer, we display a calculator program designed to save on calculator button pushing. This program will be useful if one needs to solve several problems with power series.

It is usually sufficient for textbook problems to graph no more than the first 9 partial sum functions. Thus, our idea is to put f(x) into the Y1 function variable, and place s0(x), ... , s7(x), s8(x) into the variables Y2, ... , Y9, Y0 respectively.(If one wants to plot more than 9 sum functions, it is probably better to use an idea based on stat plots (or list plots).)

To make the computation efficient, we compute ahead of time the coefficients c0, c1, ... , c8 and store them in the variables A, B, ... , I . (Often, the seq( instruction (located in the LIST OPS menu) can be used to generate the coefficients c0, c1, ... , c8 .) We set up the computations of the partial sums using Horner nests. Thus, we set

Y2 = A
Y3 = A+XB
Y4 = A + X(B + XC)
Y5 = A + X(B + X(C + XD))
Y6 = A + X(B + X(C + X(D + XE)))
Y7 = A + X(B + X(C + X(D + X(E + XF))))
Y8 = A + X(B + X(C + X(D + X(E + X(F + XG)))))
Y9 = A + X(B + X(C + X(D + X(E + X(F + X(G + XH))))))
Y0 = A + X(B + X(C + X(D + X(E + X(F + X(G + X(H + XI)))))))

These Horner computations are somewhat redundant, but the computations proceed quickly enough that the graphs appear without too much delay.

If the computation of f(x) is lengthy, then its graph may appear slowly. It may be necessary in this case to first store the graph of f(x) as a "picture" and then recall the picture when you want to view the graph of f(x).

The window can be set so that Xmin = -R and Xmax = R, or some other appropriate values. The values of Ymin and Ymax should also be chosen appropriately. For a more rapid graphing computation, Xres could be set to 2 or 3 instead of 1.

If the graphs of f(x), s0(x), ... , s7(x), s8(x) give a cluttered appearance on the graph screen, then you may want to generate a sequence of graph pictures as follows:

First, graph only f(x), s0(x), s1(x) (turn off all other functions) and copy the picture.
Then, graph only f(x), s2(x), s3(x) (turn off all other functions) and copy the new picture.
Then, graph only f(x), s4(x), s5(x) (turn off all other functions) and copy the new picture.
Continue until all graphs are copied.

The final picture should give a good demonstration (for textbook problems) of the convergence of sn(x) to f(x) on (-R,R).

Part B: Here is a calculator program which will set up Y2, ... , Y9, Y0. We call the program SUMS. We assume that {c0, c1, ... , c8} is in the list variable L1. The program is as follows:

L1(1) -> A..........(Note: We use the symbol "->" to
L1(2) -> B............represent the operation "Store".)
L1(3) -> C
L1(4) -> D
L1(5) -> E
L1(6) -> F
L1(7) -> G
L1(8) -> H
L1(9) -> I
"A" -> Y2 ....(Note: The quotation marks are necessary, surrounding the letter "A".)
"A+XB" -> Y3
"A + X(B + XC)" -> Y4
"A + X(B + X(C + XD))" -> Y5
"A + X(B + X(C + X(D + XE)))" -> Y6
"A + X(B + X(C + X(D + X(E + XF))))" -> Y7
"A + X(B + X(C + X(D + X(E + X(F + XG)))))" -> Y8
"A + X(B + X(C + X(D + X(E + X(F + X(G + XH))))))" -> Y9
"A + X(B + X(C + X(D + X(E + X(F + X(G + X(H + XI)))))))" -> Y0

For example,if f(x) = ln(3+x), then c0 = ln 3 and cn = (1/3)n (1/n)(-1)(n-1) , n = 1, 2, ... , 8 . In the function editor, set Y1 = ln(3+X). On the home screen, enter the instructions:

seq( (((1/3)^N)/N)(-1)^(N-1),N,1,8) -> L1
augment( {ln(3) } , L1) -> L1
Prgm SUMS

Then Y1, ... , Y9, Y0 should have all the appropriate functions for graphing purposes.
(Thank you to WG for suggesting this question.)

3. How can I use the sequence mode functions u, v or w to generate a sequence, and then store the sequence in a list variable?

Answer: As an example, we will describe how to recursively generate the first twenty numbers of the Fibonacci sequence, and store the result in the L1 list variable.

Set the MODE to "Seq" and press the [Y=] button. Set nMin=1, u(n) = u(n-1) + u(n-2) , and u(nMin) = { 1 , 1 } . (Note that the variable "u" on the keyboard is above the [7] button. Also, the independent variable "n" will appear when you press the [X,T,Theta,n] button (near the [ALPHA] button) . )

Now go to the home screen and enter the instruction u(1,20,1) ---> L1 . The first twenty numbers of the Fibonacci sequence will now appear in the L1 list variable. (Thank you to JK for suggesting this question.)

4. How can I use the "seq" instruction (in the LIST OPS menu) to generate a sequence, and then store the sequence in a list variable?

Answer: As an example, suppose the sequence {an} is defined by an = ( ( -1 )n-1 ) / n . On the home screen, enter the instruction seq( ( (-1)^(N-1) ) / N , N , 1 , 20 ) ---> L1 . The first twenty numbers of the sequence will appear in the list variable L1 . (This example could also be solved using the sequence mode function "u" . We would set u(n) = ((-1)^(n-1))/n . See question 3 above.)

5. How can I "manually" create a list of numbers and store the list in a list variable?

Answer: If the list is short, you can enter the list on the home screen. For example, the instruction {2,3,5,8} ---> L1 will store the list of four numbers into the list variable L1.

For longer lists, you may want to use the STAT editor. Press [STAT], [ENTER] to enter the editor. You will see a column for L1. If the column for L1 has numbers in it, these numbers need to be deleted. One way to delete these numbers is to use the up arrow to put the cursor on "L1". Now press [CLEAR], followed by the down arrow. This clears L1 and puts the cursor on the first position in the L1 column. Now key in a number and press [ENTER]. Repeat the process until all of your numbers have been entered into the L1 list. Then press [2nd], [QUIT] to return to the home screen.

6. How can I plot the five data points (4,2), (-3,4), (2,2), (-2,-1), (1,3) on the graph screen?

Answer: We will use the STAT PLOT feature of the TI83. First, put the x-coordinates into the list variable L1. (This can be done using the STAT editor. See question#5 above.) Thus, L1 will contain {4, -3, 2, -2, 1}. Also, put the y-coordinates (in the corresponding order) into the list variable L2. Thus, L2 will contain {-2, 4, 2, -1, 3}.

Now press [2nd], [STAT PLOT], [1]. Highlight "On", set Xlist = L1, and Ylist = L2. Press [WINDOW] and set Xmin = -4, Xmax = 5, Ymin = -3, Ymax = 5. Then press [GRAPH]. This will produce a graph of the five data points.

7. How can I plot the graph of a sequence of numbers?

Answer: We will give two answers to this question. The first (and recommended) answer will make use of the STAT PLOT feature of the TI83 and the "seq" instruction. The second answer will use the sequence function "u". As an example, we will plot the first 20 terms of the sequence an = (.8)n , n=1,2,3,... .

Answer#1: On the home screen, enter the two instructions seq(N, N,1, 20) ---> L1, seq( .8^N, N, 1, 20) ---> L2. These instructions place the sequence of x-coordinates {1, 2, 3, ..., 20} into L1 and the sequence of y-coordinates {a1, a2, a3, ... , a20 } into L2.

Next, press [Y=] and turn off all "Y=" functions. Press [WINDOW] and set Xmin = 0, Xmax = 20, Xscl = 20, Ymin = 0, Ymax = 1, Yscl = 1. Then press [2nd], [STAT PLOT], [1]. Highlight "On", set Xlist = L1, and Ylist = L2. Then press [GRAPH]. This will produce a graph of 20 terms of an.

Answer#2: Press [MODE] and highlight "Seq" on line 4. (This will put the calculator into the sequence mode.) Then press [Y=] and set nMin = 1, u(n) = .8 ^ n , u(nMin) = {.8} . (Clear any functions in v or w . Also, turn off any highlighted stat plots at the top of the sequence function menu screen.) Next, press [WINDOW] and set nMin = 1, nMax = 20, PlotStart = 1, PlotStep = 1, Xmin = 0, Xmax = 20, Xscl = 20, Ymin = 0, Ymax = 1, Yscl = 1.

Now press [GRAPH]. This will produce a graph of 20 terms of an.

8. How can I simultaneously graph the terms of a series and the terms of the corresponding partial sum sequence?

Answer: We will give two answers to this question. The first (and recommended) answer will make use of the STAT PLOT feature of the TI83 and the "seq" instruction. The second answer will use the sequence functions u, v, and w. As an example, we will consider the series whose terms are an = (.8)n , n = 1, 2, 3, ... . We will plot the first 20 terms of the series and the corresponding 20 partial sums sn.

Answer#1: On the home screen, enter the three instructions seq(N, N, 1, 20) ---> L1, seq(.8^N, N, 1, 20) ---> L2, cumSum(L2) ---> L3. These instructions place the sequence of x-coordinates {1, 2, 3, ... , 20} into L1, the sequence {a1, a2, a3, ... , a20} into L2, and the sequence {s1, s2, s3, ... , s20} into L3.

Next, press [Y=] and turn off all "Y=" functions. Press [WINDOW] and set Xmin = 0, Xmax = 20, Xscl = 20, Ymin = 0, Ymax = 4, Yscl = 1. Then press [2nd], [STAT PLOT], [1]. Highlight "On", set Xlist = L1, and Ylist = L2. Next, press [2nd], [STAT PLOT], [2]. Highlight "On", set Xlist = L1, and Ylist = L3.

Now press [GRAPH]. This will produce the graphs of 20 terms of an and sn.

Answer#2: Press [MODE] and highlight "Seq" on line 4. (This will put the calculator into the sequence mode.) Then press [Y=] and turn off any highlighted stat plots at the top of the screen. Set nMin = 1, u(n) = .8 ^ n , u(nMin) = {.8}, v(n) = v(n-1) + w(n-1), v(nMin) = {.8}, w(n) = .8^(n+1), w(nMin) = {.8^2}. (Note that u(nMin) and v(nMin) have the value of a1, and w(nMin) has the value of a2. These values must be entered manually. Also, w(n) has the expression for an+1. In addition, note that the sequence function u will generate the terms an, and v will generate the terms sn.)

Next, turn off the "w" function so that it will not be graphed. Press [WINDOW] and set nMin = 1, nMax = 20, PlotStart = 1, PlotStep = 1, Xmin = 0, Xmax = 20, Xscl = 20, Ymin = 0, Ymax = 4, Yscl = 1. Now press [GRAPH]. This will produce the graphs of 20 terms of an and sn.




Related questions




Q1. How do I enter the variable Y1 onto the home screen?




Back to main menu




Section links:




Frequently Asked Questions
Basics of Calculator Operation
Functions
Limits
Derivatives
Curve Sketching
Integration
Inverse Functions
Parametric Equations
Polar Equations
Sequences and Series
Vectors and Matrices
Functions of Several Variables
Multiple Integrals
Applications
Programs for the TI83
Problems Where the Calculator Gives an Incorrect Answer
Methods for Using the Calculator to Present Calculus Topics
Resources for Calculus Projects
Links to Other Calculus Sites
Reviews of Calculus Books, Web Sites, Etc
Calculus Forums
References to Articles on the Use of the Calculator in Calculus Courses
Final Examinations