MathsCalculus

Series Convergence
calculator.

Test whether an infinite series settles on a finite sum, and estimate that sum.

How it's worked out

A series converges when its partial sums, the running totals of its terms, settle on one number. You give the term ana_n and the index where it starts. The tool runs up to five standard tests, adds up to 100,000 terms, and reports what the evidence shows.

These tests use numbers at large n, not algebra, so the result is strong evidence and not a proof. Use it to check the answer you reached by hand, and to see which test does the work.

The divergence test comes first. If the terms do not approach 0, the series diverges and no other test is needed. Terms that do approach 0 prove nothing. They only let the series stay in the running.

The ratio and root tests read a limit L. If L is below 1, the series converges absolutely. If L is above 1, it diverges. If L is 1, the test tells you nothing, which happens for any term that shrinks like a power of n.

L\displaystyle L=limn→∞⁡|an+1an|\displaystyle {}= \lim_{n \to \infty} \left|\frac{a_{n+1}}{a_n}\right|
L\displaystyle L=limn→∞⁡|an|1/n\displaystyle {}= \lim_{n \to \infty} \left|a_n\right|^{1/n}

The limit comparison test covers those power-like terms. A p-series with p above 1 converges, and one with p at or below 1 diverges. If your term keeps a steady power of n, its fate matches that p-series. The tool estimates p from the terms at n = 10,000 and n = 1,000,000, and it uses p only when the two estimates agree.

∑n=1∞1np\sum_{n=1}^{\infty} \frac{1}{n^p}

The alternating series test handles signs that flip. If the sizes fall steadily to 0, the series converges. The error after any partial sum is then at most the size of the next term. A series is absolutely convergent if the sizes of its terms have a finite total too, and conditionally convergent if they do not.

Worked examples

Dana checks the sum of the reciprocal squares

Dana has 1n2\frac{1}{n^2} starting at n = 1. The ratio and root tests both read about 1, so they stay silent. The term shrinks like a power with p near 2, so the limit comparison test says it converges absolutely.

After 100,000 terms the partial sum is 1.644924. The tool adds an estimate of the tail, 0.00001, and reaches 1.64493407. The exact sum is π26\frac{\pi^2}{6}, which is 1.64493407.

Open this example in the tool

Marcus watches the harmonic series crawl upward

The terms of 1n\frac{1}{n} go to 0, yet the series diverges. Marcus sees how slowly: the partial sum is 2.929 after 10 terms, 5.187 after 100 terms, 7.485 after 1,000 terms, 9.788 after 10,000 terms, 12.09 after 100,000 terms.

The last step, ten times as many terms, adds 2.303. So the sum grows like the natural log of the number of terms, and it never stops. A partial sum alone can fool you here, and that is why the verdict rests on p near 1 and not on the size of the sum.

Open this example in the tool

Priya tests the alternating harmonic series

Priya flips every other sign of the harmonic series. The sizes fall to 0, so the series converges, and its sum is ln⁡2\ln 2, which is 0.69314718. The estimate here is 0.69314718, the average of the last two partial sums.

The sizes on their own form the harmonic series, which diverges, so the convergence is conditional. After 100,000 terms the partial sum is 0.693142, and the next term of size 0.00001 limits the remaining error.

Open this example in the tool

Reading your result

Absolute or conditional. This changes how you may treat the series. An absolutely convergent series keeps its sum in any order. A conditionally convergent one can be rearranged to reach a different value or to diverge, so its order matters.

Inconclusive means inconclusive. 1nln⁡n\frac{1}{n \ln n} from n = 2 gets this result, because its apparent power keeps drifting toward 1. Its partial sum is only 3.238 after 100,000 terms. By hand, the integral test settles it: the integral of 1xln⁡x\frac{1}{x \ln x} is ln⁡(ln⁡x)\ln(\ln x), which grows without limit, so the series diverges.

Early terms do not decide anything. The terms of n!10n\frac{n!}{10^n} shrink until n = 9, then grow for good, so the series diverges. At the large n it reads, the ratio test gets 10.1, which is far above 1. A comparison in the other direction also matters: nn2+1\frac{n}{n^2 + 1} looks small, but its p ≈ 1 puts it with the harmonic series.

Terms that level off. For (nn+1)n\left(\frac{n}{n+1}\right)^n, the terms approach about 0.3679 and not 0, so the divergence test ends the matter, and the result is that it diverges.

Results for some common series
TermStartResultEstimated sum
1n2\frac{1}{n^2}1Converges, absolute1.6449
1n1.5\frac{1}{n^{1.5}}1Converges, absolute2.6124
1n\frac{1}{\sqrt{n}}1Diverges–
0.9n0.9^n0Converges, absolute10
2nn!\frac{2^n}{n!}0Converges, absolute7.3891
(−1)nn\frac{(-1)^n}{\sqrt{n}}1Converges, conditional−0.6049
nn2+1\frac{n}{n^2 + 1}1Diverges–
1nln⁡n\frac{1}{n \ln n}2Inconclusive–

Common mistakes

  • Reading terms that approach 0 as convergence. That is needed but not enough. The harmonic series is the standard counterexample, and its terms reach 0 quite fast.
  • Stopping at L = 1. A ratio of 1 does not mean divergence. It means the ratio test has nothing to say, so move on to a comparison, the integral test or the alternating series test.
  • Dividing by zero at the start. A term such as 1n\frac{1}{n} has no value at n = 0. Starting the index at 1 fixes it, and the first few terms never change whether a series converges, only what it sums to.
  • Trusting the sum of a slow series. Adding many terms of a slowly converging series still leaves a real gap. For 1n2\frac{1}{n^2}, the sum after 1,000 terms is still off in the third decimal place. That gap is why a tail estimate is added.
  • Writing a power with a negative base. Use brackets for flipping signs: type (−1)n(-1)^n, because −1n-1^n means minus the quantity 1n1^n, which is always −1.

Questions people ask

Zero terms are required for convergence, but they do not guarantee it. The terms of 1 over n shrink too slowly: the sum grows like the natural log of the number of terms. Grouping shows it too, since each block from 2ᵏ to 2ᵏ⁺¹ adds at least one half.

Sources