X. Sequences ( draft version in progress, 2015)
© 2000 M. Flashman

Dec., 2005: This page now requires Internet Explorer 6+MathPlayer or Mozilla/Firefox/Netscape 7+.
X.A Simple Examples and Definitions: Visualizing Sequences.

Preface: Throughout this introduction to calculus we have found that estimates could be improved by some process determined by a natural number `n`. In our estimates for solving equations this number `n` denoted the number of steps we would follow in using either the bisection method or Newton's method. Later `n` was the number of steps we used in Euler's method to estimate the value of the solution to a differential equation with given initial (or boundary) condition. Later still we found `n` controlling the size of intervals and the quality of estimates for the value of a definite integral with the trapezoidal rule and Simpson's rule. The number `n` also was used in estimating the values of many measurable quantities in applications, such as area and volume, allowing us to connect real situations to the mathematical concepts of derivative and integral. Finally, in the last chapter we found `n` indicating the degree of the MacLaurin and Taylor polynomials and their remainder terms which gave estimates for values for functions, integrals and solutions to differential equations.


The mathematics of real number sequences concerns the study a collection of real numbers determined in an order by a counter or index number, often denoted by `n`. The mathematical issues entail the description of these sequences and their properties.

One crucial question considers whether there is a tendency in the sequence for its members associated with larger natural numbers to approach a particular value called the limit of the sequence. There are actually two important and related questions:

(1) Is there a limit for a particular sequence?

Here we might look for various tests to determine an answer to the question for any sequence or for sequences of some generic classifications, such as those arising from the Taylor polynomials. (2) When there is a limit, can we find it's precise value? This can be a much more challenging question.

For example, we are fortunate sometimes when we can use the Fundamental Theorem of Calculus to determine the precise value of the limit of numbers arising from Simpson's Rule for estimating a definite integral. Or in other situations we can use the Taylor Theorem to recognize that `1 + 1 + 1/2+ 1/6 + 1/{4!} + … + 1/{n!}` is approximately `e`. And we shouldn't forget that the sequences that arise from Newton's method for estimating solutions to equations (square roots, etc) frequently converge to numbers that are well described but known primarily by their estimates.


Notation: Since real number sequences usually involve the natural numbers in their description, it is conventional to use a variable name indexed by a subscripted natural number for the sequence and then describe when possible a generic term of the sequence as a function. Since the sequences are sets, the sequences are often represented inside set braces. Typical names for sequences are
 
{`a_n : n = 0,1,2, …` } {`b_k`}`k = 0,1,2, …` {`c_k`}`k = 1,2,3, …`
{`x_ n`}`n = 0,1,2, …` {`y_n`} `n = 0,1,2, …` {`s_n`} `n = 0,1,2, …` 

A typical defining statement for a sequence is `a_n = f(n)` where `f` is some function defined at least on the natural numbers.
For example `a_n = n^2`, `b_n = 1/{n+1}`;  `x_k = 1/{k!}`;  and `s_n = sum_{k=0}^{k=n}1/{k!}`.

It  is also possible to define a term of a sequence using previous terms, such as `r_0=2` and for `k>=0, r_{k+1} = {r_k^2 + 2}/{2r_k}` [Coming from Newton's method to approximate the square root of 2.] Another example of this sort is the sequence defined by  `f_0=1, f_1=1` and `f_{k+2}=f_k + f_{k+1}`, creating the  sequence `1,1,2,3,5,8,13,....` often described as (Leonardo Pisano) Fibonacci's sequence (1170 - 1250) .

An even more general example would allow the sequence to have a real variable in its definition, such as the sequence

`P_n(x) = 1+ x +{x^2}/{2!}+{x^3}/{3!}+ {x^4)/(4!) +...+ {x^n}/{n!}= sum_{k=0}^{k=n}{x^k}/{k!}`.

Visualizing sequences: There are many ways to think about real number sequences and each way leads to a visualization of the sequence that can assist in making the sequence and its properties more apparent.

First, a real number sequence is a set of real numbers together with an order for these numbers. With this in mind we can display the sequence as a collection of points on a real number line. The order of the points can be seen by labeling the points with the subscripts that indicate there relative
order, such as `a_1, a_2, a_3, …` .

Example. X.I.A 
A visualization of the sequence {`1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7, 1/8, 1/9, 1/10, ..., 1/k ,...`}

Another way to indicate the order is to draw an arrow from one point to the next on the line, so we see a succession of arrows above the number line each showing which number is next in the sequence.


A second and important way to treat a sequence is as a function from its index set , usually the natural numbers, to the real numbers. [The expression of the definition of a sequence by an equation like `a_n = f (n)`  uses precisely this approach.] Now we can visualize a sequence just as we visualize other functions, either with a mapping  diagram from the source real number line to a target real number line or with the graph of the function in the cartesian plane of ordered pairs of real numbers.

Example. X.I.A (continued). Let `a_n = 1/n` for `n = 1,2,3,...` .
In the mapping diagram the index values, `n`, will be located on the source line while the actual values of the sequence, `a_n`, will be corresponding points on the target line. An arrow is drawn from the index point in the source to the corresponding value point of the sequence on the target.

In fact the target line will look essentially like our first visualization without arrows to indicate the order. The order in the mapping diagram is indicated by the usual order of the indices on the source line.
In the graph of a sequence we see a collection of points in the plane with ordered pairs of real numbers for coordinates. The first coordinate is the index of the number in the sequence, `n`, while the second coordinate is the actual value of the sequence, `a_n`. The order in the graph is seen as the fact that values with larger indices are represented by points further to the right on the graph.

Convergence. The values of a real number sequence can be interpreted as numbers that occur in some order, as the image values in a mapping diagram with the indices increasing, or as points on the graph of the sequence.

One issue that is very important in the study of sequences is whether the values of the sequence {`a_n`} `n=0,1,2, …` approach a limiting number, `L`, when `n` is very large. If this is the case we write that `a_n -> L` as `n ->oo` or `lim_{n->oo}a_n = L` and we say, "The sequence an converges to L as n goes to infinity."

Examples. Let `a_n = n^2` ,`b_n =1/{n+1}`, `c_n = {4n^2} /{7 n^2  - 5n - 2}`, and `S_n = cos(1/{1 + n^2 })`.
Discussion: These sequences might also be described directly as { `n^2` }`n = 0,1,2, …`; { `1/{n+1}` }`n = 0,1,2,…`;  `{4 n^2} /{7 n2  - 5 n - 2}`
`n = 0,1,2, …`; and `cos(1/{1 + n^2}) n = 0,1,2,` …. Table X.A.1 shows some of the initial values for the sequences while the figures below show in part the mapping diagrams and graphs for initial values of the latter three sequences.

n
`a_n = n^2`
`b_n = 1/{n+1}`
`c_n= {4n^2} /{7 n^2-5n-2}`
`S_n = cos(1/{1 + n^2 })`
0
0
1
0
0.540302306
1
1
0.5
TILT!
0.877582562
2
4
0.333333333
1
0.980066578
3
9
0.25
0.782608696
0.995004165
4
16
0.2
0.711111111
0.998270395
5
25
0.166666667
0.675675676
0.999260446
6
36
0.142857143
0.654545455
0.999634792
7
49
0.125
0.640522876
0.999800007
8
64
0.111111111
0.630541872
0.999881659
9
81
0.1
0.623076923
0.99992564
10
100
0.090909091
0.617283951
0.999950986
11
121
0.083333333
0.612658228
0.999966407
12
144
0.076923077
0.608879493
0.999976219
13
169
0.071428571
0.605734767
0.999982699
14
196
0.066666667
0.603076923
0.999987116
15
225
0.0625
0.600801068
0.999990211
16
256
0.058823529
0.598830409
0.99999243
17
289
0.055555556
0.597107438
0.999994055
18
324
0.052631579
0.595588235
0.999995266
19
361
0.05
0.594238683
0.999996184

Without being rigorous at this stage, it should make sense that there are limits for all but the first of these sequences. In particular
`lim_{n->oo}1/{n+1} = 0 ; lim _{n->oo}{4n^2} /{7 n^2-5n-2}=  lim _{n->oo}{4} /{7 - 5/n - 2/{n^2}}=  4/7`; and `lim _{n->oo}cos(1/{1 + n^2 }) = 1`.


Example of visualizing a sequence with a mapping diagram and a graph created with GeoGebra.

This is a Java Applet created using GeoGebra from www.geogebra.org - it looks like you don't have Java installed, please go to www.java.com


Examples from Euler's method and  Riemann sum integral approximations.

Example. A sequence that converges to `e`. Recall that in considering the differential equation `y'=y` with `y(0)=1` we estimated the value of `y(1)` using Euler's method in `n` steps to be `(1+1/n)^ n`. With `n` larger we obtain better estimates for `y(1)=e`. Thus we can conclude that as `n->oo, (1+1/n)^ n -> e`.

Example. A sequence that converges to `ln(2)`. In considering the differential equation `y'=1/x` with `y(1)=0`, using Euler's method in n steps, we estimated
`y(2)~~ 1/n [1 + n/{n+1} + n/{n+2} + …. + n/{2n-1}] = 1/n + 1/{n+1} + … + 1/{2n-1} = S_n`. Thus as `n->oo, S_n -> y(2) = ln(2)`. Notice that this sequence is also the sequence of left hand endpoint Riemann sum estimates of the definite integral `int_1^2 1/x dx`.

Example. A sequence that converges to `1/2`. For a simpler example we can consider `S_n = 1/n [ 1/n + 2/n + …. + {n-1}/n]`, the left hand Riemann sum estimate for the definite integral `int_0^1 x dx = 1/2` . Thus as `n->oo, S_ n-> 1/2`.


Examples from Taylor approximations.

Example. Another sequence that converges to e. Recall that in considering the differential equation `y' = y` with `y(0)=1` we estimated the value of `y(1)` using Taylor (Maclaurin) polynomials of degree `n` evaluated at `x=1`. If we let `S_n = P_n (x) = 1 + 1 + 1/2 + 1/{3!} + 1/{4!}  + ... + 1/{n!}`, then with n larger we obtain better estimates for `y(1)=e`. [In fact we actually have a measure of the difference between `e` and `S_n` given by `R_n = e - S_n` as in the work on Taylor Theory in chapter IX.] Thus we can conclude that as `n->oo, S_n -> e`. Furthermore, the same theory explains why for each x, the sequence
`S_n = P_n (x) = 1 + x + {x^2}/2 + {x^3}/{3!} + {x^4}/{4!}  + ... + {x^n}/{n!}` converges to `e^x` as `n->oo`..

Example. A sequence that converges to `ln(1.1)`. Recall that in considering the differential equation `y' = 1/x` with `y(1)=0` we estimated the value of `y(1.1)` using Taylor polynomials of degree `n` about `x=1` evaluated at `x=1.1`. If we let

`S_n = P_n (1.1;1,ln(x)) = .1 + {(.1)^2}/2 + {(.1)^3}/{3} + {(.1)^4}/{4}  + ... + {(.1)^n}/{n}`,
then with n larger we obtain better estimates for `y(1.1) = ln(1.1)`. [In fact we actually have a measure of the difference between `ln(1.1)` and `S_n` given by
`R_n = ln(1.1) - S_n` as in the work on Taylor Theory in chapter IX.] Thus we can conclude that as `n->oo`, `S_n -> ln(1.1)`.

Exercises X.A.

For each of the following sequences, (a) list the first five values,(b) draw a mapping diagram for the first five values, (c) draw a graph for the first five values, and (d) find the limit as  `n->oo` when possible.

1. `((5n^2 + 3n -2)/(2n^2 + 3n -1)) _ {{n = 0,1,2 ...}}`.

2. ` sin( (3n -2)/(2n^2 + 3n -1))  _ {{n = 0,1,2 ...}}`.

3.`((4n + 2)/(3n^2 + 2n -1))   _ {{n = 0,1,2 ...}}`.

4. `((n^3 + 1)/(3n^2 + 2n))   _ {{n = 1,2 ...}}`.

5.  (-1)n{n = 0,1,2 ...}.

6. (-1)n/(n2 + 1) {n = 0,1,2 ...}.

7. (2/3)n {n = 0,1,2 ...}.

8. (-2/3)n{n = 0,1,2 ...}.

9. e1/(n+1) {n = 0,1,2 ...}.

10. `tan^(-1)(1 - 1/(n+1))  _ {{n = 0,1,2 ...}}`.