Subsection 3.1.1 Sequences
In the discussion above we used the term “sequence” without giving it a precise mathematical meaning. Let us rectify this now.
Definition 3.1.1
A sequence is a list of infinitely 1 many numbers with a specified order. It is denoted
\begin{equation*}
\big\{a_1,\ a_2,\ a_3,\ \cdots,\ a_n,\ \cdots\big\}
\quad\text{or}\quad
\big\{a_n\big\}
\quad\text{or}\quad
\big\{a_n\big\}_{n=1}^\infty
\end{equation*}
We will often specify a sequence by writing it more explicitly, like
\begin{gather*}
\Big\{ a_n = f(n) \Big\}_{n=1}^\infty
\end{gather*}
where \(f(n)\) is some function from the natural numbers to the real numbers.
Example 3.1.2 Three sequences and another one
Here are three sequences.
\begin{align*}
&\Big\{1,\ \frac{1}{2},\ \frac{1}{3},\ \cdots,\ \frac{1}{n},\ \cdots\Big\}
&&\text{or}
&&\Big\{a_n=\frac{1}{n}\Big\}_{n=1}^\infty\\
&\Big\{1,\ 2,\ 3,\ \cdots,\ n,\ \cdots\Big\}
&&\text{or}
&&\Big\{a_n=n\Big\}_{n=1}^\infty\\
&\Big\{1,\ -1,\ 1,\ -1,\ \cdots,\ (-1)^{n-1},\ \cdots\Big\}
&&\text{or}
&&\Big\{a_n=(-1)^{n-1}\Big\}_{n=1}^\infty
\end{align*}
It is not necessary that there be a simple explicit formula for the \(n^{\rm th}\) term of a sequence. For example the decimal digits of \(\pi\) is a perfectly good sequence
\begin{equation*}
\big\{3,\ 1,\ 4,\ 1,\ 5,\ 9,\ 2,\ 6,\ 5,\ 3,\ 5,\ 8,\ 9,\ 7,\ 9,\ 3,\ 2,\ 3,\
8,\ 4,\ 6,\ 2,\ 6,\ 4,\ \cdots\ \big\}
\end{equation*}
but there is no simple formula 2 for the \(n^{\rm th}\) digit.
Our primary concern with sequences will be the behaviour of \(a_n\) as \(n\) tends to infinity and, in particular, whether or not \(a_n\) “settles down” to some value as \(n\) tends to infinity.
Definition 3.1.3
A sequence \(\big\{a_n\big\}_{n=1}^\infty\) is said to converge to the limit \(A\) if \(a_n\) approaches \(A\) as \(n\) tends to infinity. If so, we write
\begin{equation*}
\lim_{n\rightarrow\infty} a_n=A\qquad\hbox{or}\qquad a_n\rightarrow A\text{ as }n\rightarrow\infty
\end{equation*}
A sequence is said to converge if it converges to some limit. Otherwise it is said to diverge.
The reader should immediately recognise the similarity with limits at infinity
\begin{gather*}
\lim_{x \to \infty} f(x) = L \qquad\hbox{if}\qquad
f(x) \to L \text{ as } x \to \infty
\end{gather*}
Example 3.1.4 Convergence in Example 3.1.2
Three of the four sequences in Example 3.1.2 diverge:
- The sequence \(\big\{a_n=n\big\}_{n=1}^\infty\) diverges because \(a_n\) grows without bound, rather than approaching some finite value, as \(n\) tends to infinity.
- The sequence \(\big\{a_n=(-1)^{n-1}\big\}_{n=1}^\infty\) diverges because \(a_n\) oscillates between \(+1\) and \(-1\) rather than approaching a single value as \(n\) tends to infinity.
- The sequence of the decimal digits of \(\pi\) also diverges, though the proof that this is the case is a bit beyond us right now 3 .
The other sequence in Example 3.1.2 has \(a_n=\frac{1}{n}\text{.}\) As \(n\) tends to infinity, \(\frac{1}{n}\) tends to zero. So
\begin{equation*}
\lim_{n\rightarrow\infty} \frac{1}{n}=0
\end{equation*}
Example 3.1.5 \(\lim\limits_{n\rightarrow\infty}\frac{n}{2n+1}\)
Here is a little less trivial example. To study the behaviour of \(\frac{n}{2n+1}\) as \(n\rightarrow\infty\text{,}\) it is a good idea to write it as
\begin{equation*}
\frac{n}{2n+1}=\frac{1}{2+\frac{1}{n}}
\end{equation*}
As \(n\rightarrow\infty\text{,}\) the \(\frac{1}{n}\) in the denominator tends to zero, so that the denominator \(2+\frac{1}{n}\) tends to \(2\) and \(\frac{1}{2+\frac{1}{n}}\) tends to \(\frac{1}{2}\text{.}\) So
\begin{gather*}
\lim_{n\rightarrow\infty}\frac{n}{2n+1}
=\lim_{n\rightarrow\infty}\frac{1}{2+\frac{1}{n}}
=\frac{1}{2}
\end{gather*}
Notice that in this last example, we are really using techniques that we used before to study infinite limits like \(\ds \lim_{x\rightarrow\infty}f(x)\text{.}\) This experience can be easily transferred to dealing with \(\lim\limits_{n\rightarrow\infty}a_n\) limits by using the following result.
Theorem 3.1.6
If
\begin{equation*}
\lim_{x\rightarrow\infty} f(x) = L
\end{equation*}
and if \(a_n=f(n)\) for all positive integers \(n\text{,}\) then
\begin{equation*}
\lim_{n\rightarrow\infty} a_n = L
\end{equation*}
Example 3.1.7 \(\lim\limits_{n\rightarrow\infty}e^{-n}\)
Set \(f(x)=e^{-x}\text{.}\) Then \(e^{-n}=f(n)\) and
\begin{align*}
\text{since }
\lim_{x\rightarrow\infty}e^{-x}&=0
&\text{ we know that }&&
\lim\limits_{n\rightarrow\infty}e^{-n}&=0
\end{align*}
The bulk of the rules for the arithmetic of limits of functions that you already know also apply to the limits of sequences. That is, the rules you learned to work with limits such as \(\ds \lim_{x\rightarrow\infty}f(x)\) also apply to limits like \(\ds\lim_{n\rightarrow\infty}a_n\text{.}\)
Theorem 3.1.8 Arithmetic of limits
Let \(A\text{,}\) \(B\) and \(C\) be real numbers and let the two sequences \(\big\{a_n\big\}_{n=1}^\infty\) and \(\big\{b_n\big\}_{n=1}^\infty\) converge to \(A\) and \(B\) respectively. That is, assume that
\begin{align*}
\lim_{n \to \infty} a_n&=A & \lim_{n \to \infty} b_n &=B
\end{align*}
Then the following limits hold.
-
\(\ds \lim_{n \to \infty} \big[a_n+b_n\big] = A+B\)
(The limit of the sum is the sum of the limits.)
-
\(\ds \lim_{n \to \infty} \big[a_n-b_n\big] = A-B\)
(The limit of the difference is the difference of the limits.)
- \(\ds \lim_{n \to \infty} C a_n = C A\text{.}\)
-
\(\ds \lim_{n \to \infty} a_n\,b_n = A\,B\)
(The limit of the product is the product of the limits.)
-
If \(B \neq 0\) then \(\ds \lim_{n \to \infty}\frac{a_n}{b_n} = \frac{A}{B}\)
(The limit of the quotient is the quotient of the limits provided the limit of the denominator is not zero.)
We use these rules to evaluate limits of more complicated sequences in terms of the limits of simpler sequences — just as we did for limits of functions.
Example 3.1.9 Arithmetic of limits
Combining Examples 3.1.5 and 3.1.7,
\begin{align*}
\lim_{n\rightarrow\infty}\Big[\frac{n}{2n+1} + 7 e^{-n}\Big]
&= \lim_{n\rightarrow\infty}\frac{n}{2n+1}
+\lim_{n\rightarrow\infty} 7 e^{-n}
& \text{by Theorem }\knowl{./knowl/thm_SRlimarith.html}{\text{3.1.8}}\text{(a)}\\
&= \lim_{n\rightarrow\infty}\frac{n}{2n+1}
+7\lim_{n\rightarrow\infty} e^{-n}
& \text{by Theorem }\knowl{./knowl/thm_SRlimarith.html}{\text{3.1.8}}\text{(c)}\\
\end{align*}
and then using Examples 3.1.5 and 3.1.7
\begin{align*}
&=\frac{1}{2} + 7\cdot 0\\
&=\frac{1}{2}
\end{align*}
There is also a squeeze theorem for sequences.
Theorem 3.1.10 Squeeze theorem
If \(a_n\le c_n\le b_n\) for all natural numbers \(n\text{,}\) and if
\begin{equation*}
\lim_{n\rightarrow\infty}a_n=\lim_{n\rightarrow\infty}b_n=L
\end{equation*}
then
\begin{equation*}
\lim_{n\rightarrow\infty}c_n=L
\end{equation*}
Example 3.1.11 A simple squeeze
In this example we use the squeeze theorem to evaluate
\begin{equation*}
\lim_{n\rightarrow\infty}\Big[1+\frac{\pi_n}{n}\Big]
\end{equation*}
where \(\pi_n\) is the \(n^{\mathrm{th}}\) decimal digit of \(\pi\text{.}\) That is,
\begin{equation*}
\pi_1=3\quad \pi_2=1 \quad \pi_3=4 \quad \pi_4=1 \quad \pi_5=5 \quad\pi_6=9\quad\cdots
\end{equation*}
We do not have a simple formula for \(\pi_n\text{.}\) But we do know that
\begin{equation*}
0\le\pi_n\le 9
\implies 0 \le \frac{\pi_n}{n} \le \frac{9}{n}
\implies 1 \le 1+\frac{\pi_n}{n} \le 1+\frac{9}{n}
\end{equation*}
and we also know that
\begin{gather*}
\lim_{n\rightarrow\infty} 1 = 1\qquad
\lim_{n\rightarrow\infty} \Big[1+\frac{9}{n}\Big] = 1
\end{gather*}
So the squeeze theorem with \(a_n=1\text{,}\) \(b_n=1+\frac{\pi_n}{n}\text{,}\) and \(c_n=1+\frac{9}{n}\) gives
\begin{equation*}
\lim_{n\rightarrow\infty}\Big[1+\frac{\pi_n}{n}\Big] = 1
\end{equation*}
Finally, recall that we can compute the limit of the composition of two functions using continuity. In the same way, we have the following result:
Theorem 3.1.12 Continuous functions of limits
If \(\lim\limits_{n\rightarrow\infty}a_n=L \) and if the function \(g(x)\) is continuous at \(L\text{,}\) then
\begin{equation*}
\lim_{n\rightarrow\infty}g(a_n)=g(L)
\end{equation*}
Example 3.1.13 \(\lim\limits_{n\rightarrow\infty}\sin\frac{\pi n}{2n+1}\)
Write \(\sin\frac{\pi n}{2n+1}=g\big(\frac{n}{2n+1}\big)\) with \(g(x)=\sin(\pi x)\text{.}\) We saw, in Example 3.1.5 that
\begin{equation*}
\lim_{n\rightarrow\infty}\frac{n}{2n+1} = \frac{1}{2}
\end{equation*}
Since \(g(x) = \sin (\pi x)\) is continuous at \(x=\frac{1}{2}\text{,}\) which is the limit of \(\frac{n}{2n+1}\text{,}\) we have
\begin{equation*}
\lim_{n\rightarrow\infty}\sin\frac{\pi n}{2n+1}
=\lim_{n\rightarrow\infty}g\Big(\frac{n}{2n+1}\Big)
=g\Big(\frac{1}{2}\Big)
=\sin\frac{\pi}{2}
=1
\end{equation*}
With this introduction to sequences and some tools to determine their limits, we can now return to the problem of understanding infinite sums.