Series in this visualization
An infinite series has no last term, so we look at the sum of its first n terms, the partial sum , as n grows. If approaches a number S, the series converges and S is its sum. Otherwise it diverges.
The graph plots against n on a logarithmic axis from 1 to a million. The number line on the left draws each term as an arc from to . Positive terms make arcs that all go one way, and alternating terms make arcs that swing back and forth.
Terms that tend to 0 are necessary for convergence, because . They are not enough. The harmonic series has terms that tend to 0, yet its partial sums grow without bound. Integral comparison shows why: the rectangle of height 1/k on [k, k + 1] lies above the curve y = 1/x, so . The growth is so slow that a million terms add up to only about 14.39.
The same rectangles settle the p-series : it converges exactly when p > 1. For p > 1 they also pin down what is left after n terms, the remainder :
So the page can give an interval that must contain the limit, even when the limit has no simple formula. A narrow interval does not mean that is close, though. At p = 1.1, a million terms still fall about 2.5 short of the limit. Yet adding to the two integrals gives a tiny interval that contains it.
The geometric series has partial sums with a closed form:
With r = ½ each term fills half of the gap still open, which is what Remaining gap draws, and . At r = 1 the partial sums grow without bound, and at r = −1 they jump between −1 and 0 forever.
If the terms alternate in sign and their sizes decrease to 0, the series converges, and its sum always lies between two neighbouring partial sums. Each such interval sits inside the one before, and their widths shrink to 0, so they close down on a single number. Nested intervals stacks them. The page has two such series: , and Leibniz’s .
The alternating harmonic series converges only conditionally: without the signs, diverges. Riemann’s rearrangement theorem says that such a series can be reordered to converge to any number T. Rearranged keeps the terms of each sign in their original order: at or below T it adds the next positive term, above T the next negative one. The positive terms alone sum to +∞ and the negative terms to −∞, so each run reaches or crosses T. Each overshoot is at most the size of the term that caused it, and the terms shrink to 0, so the sums settle on T.
Things to notice
- A million terms are evidence, not a proof. At this scale the divergent harmonic series and the convergent p = 1.1 series look much alike. Whether a series converges comes from an argument such as the ones above.
- has no sum: its partial sums are 1, 0, 1, 0, …. Grouping the terms as keeps only some of the partial sums, and so changes the series.
Controls
- Press anywhere on the graph to set n, and drag sideways; n catches on the powers of ten. With Rearranged, drag T’s handle up and down.