Sequences, partial sums and convergence
A sequence is an infinite list of numbers in a fixed order, \(a_1, a_2, a_3,\dots\), and \(a_n\) is its \(n\)th term. The number \(n\) is the index of that term. A series adds all the terms of a sequence:
Nobody can add infinitely many numbers one at a time, so the sum of a series is defined with a limit. This topic first defines the limit of a sequence. It then defines the sum of a series as the limit of the sums of its first terms. It finds such sums, and it recovers terms from them.
The limit of a sequence
Dots for the terms of a sequence, for n from 1 to 24: 3, 1.5, 2.33, 1.75, 2.2 and so on, alternately above and below a dashed line at height 2 and closer to it as n grows. An orange strip surrounds the line, and a faint vertical line stands just before the first index N from which every dot lies inside the strip. A slider narrows the strip, and the line moves to the right. A toggle fixes the distance from the line at 1, so that the dots alternate between 3 and 1 and all lie outside the strip.
In Figure 1, the dot above the index \(n\) has the height \(a_n=2+\frac{(-1)^{n+1}}{n}\). The factor \((-1)^{n+1}\) is 1 for odd \(n\) and \(-1\) for even \(n\). The dots therefore lie above and below the faint dashed line at height 2 in turn. Their distance from the line, \(|a_n-2|=\frac1n\), shrinks as \(n\) grows.
A sequence converges to a number \(L\) if its terms come as close to \(L\) as you like and stay that close. Precisely, for every positive number \(w\), there is an index \(N\) such that \(|a_n-L|<w\) for every \(n\ge N\). Then \(L\) is the limit of the sequence, and you write \(\lim_{n\to\infty}a_n=L\).
In Figure 1, the orange strip holds the heights within \(w\) of 2, so its half-width is \(w\). The distance \(\frac1n\) is less than \(w\) once \(n>\frac1w\). With \(w=0.4\), that means \(n>2.5\), so every dot from \(n=3\) on lies inside the strip. The faint vertical line stands just before \(N=3\). Narrow the strip with the slider or the button. The vertical line moves to the right, but every \(w\) has an \(N\): the first whole number greater than \(\frac1w\). The sequence therefore converges to 2.
A limit of a function often gives the limit of a sequence. If \(a_n=f(n)\) for every \(n\) and \(\lim_{x\to\infty}f(x)=L\), then \(\lim_{n\to\infty}a_n=L\). Once \(x\) is large enough, \(f(x)\) stays within \(w\) of \(L\), and so does every term \(f(n)\) with \(n\) that large. The limits at infinity of topic 1.15 therefore give limits of sequences. L’Hôpital’s rule (topic 4.7) needs derivatives, and a sequence has none, because it has values only at whole numbers. Apply the rule to \(f(x)\) instead. The limit laws and the Squeeze Theorem hold for sequences, with the same proofs as for \(x\to\infty\).
The converse is false: a sequence can converge although \(f(x)\) has no limit. The terms \(\sin(\pi n)\) are all 0, so they converge to 0, but \(\sin(\pi x)\) has no limit at infinity.
A sequence that does not converge diverges. Its terms may grow without bound, which means that they become larger than any number you choose and stay larger. For example, the terms \(n^2\) grow without bound, and you write \(\lim_{n\to\infty}n^2=\infty\). The symbol \(\infty\) is not a number, so the sequence diverges. For terms that fall without bound, you write \(-\infty\) in the same way.
The terms may also oscillate, which means that they swing up and down without approaching one number. Use the toggle under Figure 1 to fix the distance at 1. The dots then alternate between 3 and 1, the terms of \(2+(-1)^{n+1}\), and none lies inside the strip. The values 1 and 3 are 2 apart, so a strip of half-width 1 around any number holds at most one of them. Both values occur at indices as large as you like, so no number is the limit, and the sequence diverges.
Partial sums and the sum of a series
Bars for the terms one third, two ninths, four twenty-sevenths and so on, each two thirds of the bar before it, for n from 1 to 8. Beside them, a teal column stacks the first n bars. The newest bar is orange, and the top piece of the column is outlined in orange. Faint marks beside the column show the earlier partial sums. A faint dashed line marks the height 1, and a red bracket runs from the top of the column up to that height.
A series is studied through the sums of its first terms. The \(n\)th partial sum adds the first \(n\) terms:
The partial sums \(S_1, S_2, S_3,\dots\) form a second sequence. If the partial sums converge to a number \(S\), the series converges, and \(S\) is its sum. Otherwise the series diverges and has no sum, as when its partial sums grow without bound or oscillate.
In Figure 2, the bars are the terms \(a_n=\frac13\left(\frac23\right)^{n-1}\), which are \(\frac13\), \(\frac29\), \(\frac4{27}\) and so on. Each term is two thirds of the term before it. The teal column stacks the first \(n\) bars, where the slider sets \(n\), so its height is \(\cb{S_n}\). The orange bar is the last of these \(n\) terms, \(\cy{a_n}\), and it is also the top piece of the column.
After the first term, the column is \(1-\frac13=\frac23\) below the height 1. If it is \(\left(\frac23\right)^{n-1}\) below 1 after \(n-1\) terms, the next term is a third of that distance. Two thirds of the distance remain, which is \(\left(\frac23\right)^n\). Therefore \(S_n=1-\left(\frac23\right)^n\) for every \(n\). Because \(\left(\frac23\right)^n\) approaches 0 (topic 1.15), the partial sums approach 1. The series converges, and its sum is \(S=1\), the height of the dashed line.
The terms approach 0, and the sum is 1. The sum of a series is the limit of its partial sums, not of its terms.
The partial sums also give back the terms. The first term is \(a_1=S_1\). For \(n\ge2\), the partial sum \(S_n\) is \(S_{n-1}\) plus one more term, so \(a_n=S_n-S_{n-1}\). Move the slider from \(n-1\) to \(n\). The column gains the piece outlined in orange, \(\cy{a_n}\), the step from \(S_{n-1}\) up to \(S_n\).
The terms after \(a_n\) form a series of their own, the tail after \(n\) terms. For \(m>n\), its first \(m-n\) terms add to
If the series converges to \(S\), then as \(m\) grows, \(S_m\) approaches \(S\) while \(S_n\) stays the same, so the tail converges to \(S-S_n\). Many books call this number the remainder and write \(\cr{R_n}\). It is the error made when \(S_n\) is used in place of \(S\). The tail starts at \(a_{n+1}\), because \(a_n\) is already part of \(S_n\). If the series diverges, \(S_m\) has no limit, so neither has \(S_m-S_n\), and the tail diverges too.
In Figure 2, the red bracket from the top of the column up to the height 1 is the tail \(\cr{R_n}=1-S_n\). It equals \(\left(\frac23\right)^n\), so it shrinks toward 0 as \(n\) grows.
Telescoping sums
The argument for Figure 2 wrote each term as the distance below 1 before it minus the distance after it, \(a_n=\left(\frac23\right)^{n-1}-\left(\frac23\right)^n\). Whenever each term is a difference \(a_n=b_n-b_{n+1}\) of neighbors in a sequence \(b_n\), most of each partial sum cancels:
Each of \(b_2,\dots,b_n\) is subtracted once and added once, so \(S_n=b_1-b_{n+1}\). A series like this is called telescoping. If \(b_n\) approaches a number, then \(b_{n+1}\) approaches the same number, and the series converges to \(b_1-\lim_{n\to\infty}b_n\). If \(b_n\) has no limit, neither has \(S_n\), and the series diverges.
Partial fractions (topic 6.12) can turn a term into such a difference:
Here \(b_n=\frac1n\), so \(S_n=1-\frac1{n+1}\), and the series converges to 1. Keep the last term until you take the limit, because no partial sum equals 1.
If each term is a difference of values two places apart, \(a_n=b_n-b_{n+2}\), then each of \(b_3,\dots,b_n\) is still added once and subtracted once. Two values then remain at each end, so \(S_n=b_1+b_2-b_{n+1}-b_{n+2}\).
Cancel only inside a partial sum, which is a finite sum. The series \(1-1+1-1+\cdots\) has the partial sums 1, 0, 1, 0, and so on. They oscillate, so the series diverges, although grouping its terms two at a time suggests the sum 0.
Example 1
Distinguish a sequence from a series
Let \(a_n=\dfrac{4n}{n+3}\) for \(n\ge1\). Find the term \(a_3\) and the partial sum \(S_3\). Then determine whether the sequence \(a_n\) converges and whether the series \(\displaystyle\sum_{n=1}^{\infty}a_n\) converges.
Solution
The term \(a_3\) is the number with index 3. The partial sum \(S_3\) adds the first three terms, \(a_1=1\), \(a_2=\frac85\) and \(a_3\):
For the sequence, divide the top and the bottom by \(n\):
The sequence converges to 4. For the series, every term is at least 1, because \(4n-(n+3)=3(n-1)\) is never negative. A partial sum of \(n\) terms is therefore at least \(n\), and the partial sums grow without bound. The series diverges.
Example 2
Find a sequence limit
Determine whether each sequence converges or diverges. If it converges, find its limit. (a) \(p_n=\dfrac{\ln n}{\sqrt n}\) (b) \(q_n=\dfrac{n^2}{3n+1}\) (c) \(r_n=(-1)^n\left(3-\dfrac1n\right)\)
Solution
(a) The function \(f(x)=\frac{\ln x}{\sqrt x}\), for \(x\ge1\), gives \(p_n=f(n)\). As \(x\to\infty\), its top and its bottom both grow without bound, so the form is \(\frac{\infty}{\infty}\). Both are differentiable for \(x\ge1\), and the derivative of the bottom, \(\frac{1}{2\sqrt x}\), is not 0, so L’Hôpital’s rule applies:
The sequence \(p_n\) converges to 0.
(b) Dividing the top and the bottom by \(n\) gives \(q_n=\frac{n}{3+1/n}\). The top grows without bound and the bottom approaches 3, so \(\lim_{n\to\infty}q_n=\infty\), and the sequence diverges.
(c) The size \(|r_n|=3-\frac1n\) approaches 3, so the terms with even \(n\) approach 3, and those with odd \(n\) approach \(-3\). Both occur at indices as large as you like, and no strip of half-width 1 holds numbers near 3 and near \(-3\). The sequence oscillates and diverges.
Example 3
Use a partial-sum formula
The \(n\)th partial sum of the series \(\displaystyle\sum_{n=1}^{\infty}\frac{2n-1}{2^n}\) is \(S_n=3-\dfrac{2n+3}{2^n}\). Find \(S_4\). Determine whether the series converges, and if it converges, find its sum.
Solution
Substitute \(n=4\) in the formula:
As a check, the first four terms are \(\frac12\), \(\frac34\), \(\frac58\) and \(\frac7{16}\), and they add to \(\frac{37}{16}\).
For the limit, the exponential \(2^n\) grows without bound, and it dominates the power \(n\), which means that \(\frac{n}{2^n}\) approaches 0 (topic 1.15). By the limit laws, the fraction \(\frac{2n+3}{2^n}\) therefore approaches 0:
The partial sums approach a number, so the series converges, and its sum is 3.
Example 4
Recover terms or tails from partial sums
The \(n\)th partial sum of a series \(\displaystyle\sum_{n=1}^{\infty}a_n\) is \(S_n=4-\dfrac3n\). Find \(a_1\) and, for \(n\ge2\), \(a_n\). Then find \(\displaystyle\sum_{n=6}^{\infty}a_n\).
Solution
The first term is the first partial sum, \(a_1=S_1=4-3=1\). For \(n\ge2\), subtract the partial sum before \(S_n\):
At \(n=1\), the formula \(\frac{3}{n(n-1)}\) has no value, so \(a_1\) comes only from \(S_1\).
Because \(\frac3n\) approaches 0, the partial sums approach 4, so the series converges to 4. The sum from \(n=6\) on is the tail after 5 terms:
Example 5
Simplify a telescoping sum
Find the sum of the series \(\displaystyle\sum_{n=1}^{\infty}\frac{2}{n^2+2n}\).
Solution
The bottom factors as \(n(n+2)\), which is not 0 for \(n\ge1\). Partial fractions split each term into a difference:
Each term subtracts the fraction that the term two places later adds. Write out the partial sum:
The fractions from \(\frac13\) to \(\frac1n\) each appear once with a plus sign and once with a minus sign, so they cancel. Two fractions remain at each end:
As \(n\to\infty\), the last two fractions approach 0. The series converges, and its sum is \(1+\frac12=\frac32\).
Each example is one of the five skills of topic 10.1 in Which & Why: AP Calculus.