Infinite Series and Partial Sums
Learning Objectives
- Define the sum of an infinite series as the limit of its sequence of partial sums, and say when a series converges or diverges.
- Sum a geometric series, state exactly when the formula applies, and turn a repeating decimal into a fraction.
- Find the partial sums of a telescoping series by cancellation and take their limit.
- State the divergence test in the correct direction and show with an example why its converse is false.
- Prove that the harmonic series diverges, say how slowly it does, and recognize when floating-point summation hides a divergence.
Context & Motivation
The previous lesson, arithmetic-and-geometric-progressions, gave closed forms for the sum of the first terms. Now let the number of terms grow forever. Adding infinitely many numbers cannot be done by adding them one after another, so the sum has to be defined, and the definition reuses what you know from sequences-and-convergence: look at the sequence of partial sums and ask whether it converges.
The same question appeared for areas in improper-integrals, where an infinite tail of area either added up to a finite number or did not. Series are the discrete version of that story, and the two will meet again below, because the integral from to of decides the fate of the harmonic series. In computing, series appear whenever a quantity is built by adding corrections: a numerical approximation, a running total of costs, the probabilities of the successive outcomes of a repeated trial. Whether the total is finite is not a technicality.
Core Theory
Partial sums and the meaning of an infinite sum
Given a sequence , the -th partial sum is . The infinite series converges to if the sequence converges to , and diverges if does not converge. The number is called the sum of the series. Nothing is "added infinitely many times"; the sum is a limit of finite sums.
Where the series starts affects the value but not whether it converges, since removing finitely many terms shifts the sum by a fixed amount. If and both converge, then and . If one converges and the other diverges, the sum of the two diverges. If both diverge, anything can happen: with and the combined series converges.
The geometric series
For ,
The proof is the closed form from the previous lesson: , and for we have , so . For the terms do not tend to , which rules out convergence by the divergence test below. The formula is a statement about the case only. Plugging into it to "sum" gives , a meaningless answer for a series whose partial sums are .
Telescoping series
If for some sequence , then consecutive terms cancel and
So the series converges exactly when converges, and then its sum is . The work is in finding the , often by partial fractions.
The divergence test
If converges, then .
The reason: , and if then also , so . The useful form is the contrapositive. If does not tend to (it tends to something else, or has no limit), the series diverges. The test can only prove divergence. The converse is false: does not make the series converge, and the harmonic series is the standard counterexample.
The harmonic series
The harmonic series is , with partial sums . Compare each term with an area. For the function is at most on , so . Adding these inequalities for ,
so the series diverges. This is the borderline of the -test from improper-integrals. A matching upper bound comes from for , giving . Together,
so grows like : unboundedly, but very slowly.
Series with non-negative terms
If every , the partial sums are nondecreasing, so by the monotone convergence theorem the series converges if and only if is bounded above. This is the tool behind comparison arguments, and it fails for terms of mixed sign. For example, since for , a telescoping sum shows . The partial sums are bounded, so converges. (Its sum is , a value that needs a different argument.) The next lesson, convergence-tests, collects more of these comparison ideas.
Worked Examples
Example 1: geometric series, a decimal, and the cases that fail
For we have , , so the sum is . The partial sums approach it:
textlast index m S_m 0 1.0000 1 1.6667 2 2.1111 5 2.7366 10 2.9653 20 2.9994
The repeating decimal is geometric with and , so it equals . A direct sum of the first six terms gives , in agreement with (the exact six-term sum is , short of by about ).
Cases that fail: for the partial sums are and do not converge, so has no sum. For the terms grow and the divergence test applies. And the starting index matters for the value: while .
Example 2: two telescoping sums, one convergent and one not
Convergent. Partial fractions give . The terms cancel two steps apart, so only the first two and the last two -values survive:
Checking in exact fractions for confirms the formula and gives , climbing toward .
Divergent, although the terms go to zero. Since , the partial sums telescope to , which is at , at , and at . The series diverges even though .
Example 3: how slowly the harmonic series diverges
Direct computation and the bounds from Core Theory:
textN ln(N+1) H_N 1 + ln N 10 2.398 2.929 3.303 100 4.615 5.187 5.605 1000 6.909 7.485 7.908 1000000 13.816 14.393 14.816
Each value of sits between the bounds. The partial sum first exceeds at . To pass , use the approximation with (the Euler-Mascheroni constant): the partial sum passes near . The sum is unbounded, and no computation could observe it. Divergence here is a statement about the limit, not about anything a machine will ever reach.
Example 4: floating point can make a divergent series look convergent
Sum in single precision until adding a term no longer changes the total:
plaintextimport numpy as np total, k = np.float32(0), 0 while True: k += 1 new = np.float32(total + np.float32(1) / np.float32(k)) if new == total: # adding 1/k no longer changes the float32 sum break total = new print(k, total)
It prints 2097152 15.403683. The spacing of single-precision numbers near is about , and the term is half of that, so from onward each added term is rounded away and the computed sum stops at . The true partial sum, computed in double precision, is , and it keeps growing without bound. The float32 total also differs from it, because rounding errors accumulated over two million additions. A stopping rule "quit when the next term is below the resolution" would report a finite value for a series that diverges. Double precision pushes the stall much later but does not remove it.
Common Misconceptions & Pitfalls
- "If , the series converges." The harmonic series and both have terms tending to and diverge. The divergence test only works in one direction.
- "The formula works for any ratio." It requires . For it returns for a series whose partial sums go to infinity.
- Mixing up the starting index. The same terms summed from or from differ by the first term. Write the first term out before using a formula.
- "A series with tiny terms has converged." Example 4 sums terms smaller than and gets stuck at a finite value, while the true series diverges. Tiny terms and a stalled floating-point total are not evidence of convergence.
- "Parentheses and rearrangements are always safe." Grouping the terms of as gives , while gives , and the series has no sum at all (its partial sums alternate between and ). Rearranging the terms of a convergent series can also change its sum for some series, which requires the notion of absolute convergence to sort out.
- "If the partial sums are bounded the series converges." This holds for non-negative terms, where the partial sums are monotone. For the partial sums are bounded and the series diverges.
- Splitting a series into two divergent pieces. Linearity needs both series to converge.
Summary
An infinite series is the limit of its partial sums : it converges when does, and diverges otherwise. The geometric series converges to exactly when . Telescoping series collapse to , so their convergence reduces to that of a sequence. The divergence test says that if the series diverges, but guarantees nothing, as the harmonic series shows: , so it diverges, but so slowly that passes only at . For non-negative terms, convergence is the same as bounded partial sums. Floating-point summation can stall on a divergent series, so numerical behavior alone proves nothing. The next lesson, convergence-tests, builds general criteria for deciding convergence without computing partial sums in closed form.