Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Image: ubuntu2204
Sequences
MAT1001 (Calculus I) discussed two key topics in the analysis and computation of functions:
derivative of a function,
integral of a function.
We are going to talk about a third key topic: infinite series.
Infinite series can be used to
express numbers
express functions
approximate a function using the first few terms
represent a function as a polynomial with infinitely many terms (evaluate, differentiate, integrate), e.g.,
Infinite sequences
An infinite sequence, or sequence is a list of numbers
A sequence is a function whose domain is the set of integers , i.e., ,
The integer is called the index of .
The index set can start with any integer number other than 1, e.g., , , are sequences.
We use to denote . Sometimes, we just say if the index set is not important or is clear from the context.
Example 1
Consider the sequence . It can be written in the following ways:
for .
(n starts at 1 by default)
A sequence can be defined recursively
Fibonacci sequence
Graphing a sequence
Plot the first 100 terms of the following three sequence.
Converges to .
Diverges because it goes to infinity.
Diverges because it bounces back and forth.
Since there is no explicit form for the Fibonacci sequence, we define a function to compute the elements in the sequence.
Convergence
A sequence converges to the number if for any positive number , there exists an integer such that for all ,
If converges to , we write , or simply , and call the limit of the sequence .
depends on , in general, a smaller requires a bigger .
can be replaced by .
If no such number exists, we say that diverges.
Examples
For the case We know that it converges to , so . We need to have which is the same as . We we need to choose the integer
For the case We know that it converges to , so . We need to have which is the same as
For the case If exists, then we have and for a small , which can not happen. So does not exist.
Divergence to infinity
If for every , there exists such that for all . We say that diverges to
If for every , there exists such that for all . We say that diverges to
Summary: Possible outcomes
Convergence
Divergence
Divergence to or .
Other divergence cases
Remarks: The first finitely many terms do not change the convergence
Adding/removing/changing finitely many terms to a sequence does not change its convergence/divergence.
Calculating limits of sequences
Similar to the theorems on limits of functions in Chapter 2, we have the following theorem.
Let and be convergent sequences of real numbers with and .
Sum Rule:
Difference Rule:
Constant Multiple Rule: (any real number )
Product Rule:
Qutient Rule: \quad if
Example
Note that So
Remark
It can happen that exists but both and do not exist.
Example:
and () are divergent or convergent at the same time.
Note: Limit
treats the sequence as a function.
In the following example, the limit
returns "ind", which means "indefinite but bounded." However, the sequence has a limit 0, but the function oscillates between 1 and -1 forever.
Instead, we can have the assumption that is integer by assume(n, 'integer')
Sandwich theorem for sequences
Let and be sequences of real numbers. If holds for all , and if , then .
If , then
Continuous function theorem for sequences
Let be a sequence with and is a function that is continuous at and defined at all , then .
Example:
Using l'Hopital's rule
Support that is a function defined for all and that is a sequence such that for all . Then
Example:
When , we have
If we take the limit, we get , which is undeterminated.
We can take the log first, we have
Therefore,
Find the limit of a recursively defined sequence
When we are given a recursively defined sequence, we can first look at the graph to see if the limit exists or not. Then we calculate many values of the sequence and see where we end up.
Example
If is the Fibonacci sequence, which does not converge, what about the sequence
We can take a look at the graph first.
The limit of the sequence is the "Golden Ratio"
Common limits ( is fixed)
Bounded sequences
A sequence is bounded from above if there exists a number such that for all . The number M is an upper bound for . If is an upper bound for but no number less than is an upper bound for , then is the least upper bound for .
A sequence is bounded from below if there exists a number such that for all . The number is a lower bound for . If is a lower bound for but no number greater than is a lower bound for , then is the greatest lower bound for .
If is bounded from above and below, then is bounded. If is not bounded, then we say that is an unbounded sequence.
Bounded monotonic sequences
A sequence is nondecreasing if for all . That is, . The sequence is nonincreasing if for all . The sequence is monotonic if it is either nondecreasing or nonincreasing.
is bounded monotonic
is bounded but not monotonic
is bounded and monotonic
A bounded and monotonic sequence converges.