Series convergence tests: geometric, divergence, integral, comparison and alternating
Ten problems on infinite series: a geometric series that starts at n = 1, a telescoping sum, the divergence test and what it cannot say about 1/√n, the integral test on 1/(n ln² n) with bounds on the sum, a direct comparison for (2 + cos n)/n², a limit comparison, the alternating harmonic series and conditional convergence, how many terms an alternating error bound needs, the ratio test on n!/nⁿ, and the step-size conditions behind stochastic gradient descent, with worked solutions and the mistakes of starting a geometric sum at the wrong term, reading terms that go to 0 as convergence and comparing with a bigger divergent series.
Before you start
An infinite series adds up infinitely many numbers, and the first question is whether the total is a finite number at all. Taylor series, the geometric sums behind an exponential moving average, and the step-size conditions in proofs that stochastic gradient descent converges all depend on the answer. A handful of tests settle most series: compare with a geometric series or a p-series, compare with an integral, or use the alternating signs. The work goes wrong in a few places: a geometric sum started at the wrong term, terms that go to 0 read as proof of convergence, a comparison made in the direction that proves nothing, the alternating series test used on terms that do not shrink, and a ratio limit of 1 treated as a verdict. These ten problems cover each of them.
Convergence.n=1∑∞an converges to S if the partial sums SN=a1+⋯+aN tend to .S. Otherwise it diverges.
Geometric series.n=0∑∞arn=1−ra for ,∣r∣<1, and it diverges for .∣r∣≥1. In general the sum is .1−rfirst term.
Divergence test. If ,an→0, the series diverges. If ,an→0, this test says nothing.
Integral test and p-series. If f is positive and decreasing with ,f(n)=an, then ∑an and ∫1∞f(x)dx converge or diverge together, and .∫N∞f≤n=N∑∞an≤aN+∫N∞f. So ∑np1 converges exactly when .p>1.
Comparison. For :0≤an≤bn: if ∑bn converges so does ;∑an; if ∑an diverges so does .∑bn.Limit comparison: if an,bn>0 and an/bn→L with ,0<L<∞, both converge or both diverge.
Alternating series. If bn decreases to ,0,∑(−1)n+1bn converges, and stopping after N terms leaves an error of at most .bN+1. A series is absolutely convergent if ∑∣an∣ converges, and conditionally convergent if it converges but ∑∣an∣ does not.
Ratio test. If ,∣an+1/an∣→ℓ, the series converges absolutely for ℓ<1 and diverges for .ℓ>1. At ℓ=1 it says nothing.
What does the divergence test say about ,n=1∑∞2n+1n, and about ?n=1∑∞n1?
··
Use the integral test to show that n=2∑∞n(lnn)21 converges, and bound its sum.
··
Show that n=1∑∞n22+cosn converges, and give bounds for its sum.
··
Does n=1∑∞n3+23n+1 converge?
··
Show that n=1∑∞n(−1)n+1=1−21+31−… converges, decide whether it converges absolutely, and bound the error of .S4.
··
How many terms of n=1∑∞n3(−1)n+1 guarantee an error less than ?0.001?
···
Use the ratio test on .n=1∑∞nnn!.
···
Proofs that stochastic gradient descent converges usually ask for step sizes αn>0 with ∑αn=∞ and .∑αn2<∞. For which p does αn=npc (with )c>0) qualify? Does ?αn=0.1⋅0.99n?
Answers
10
1
The first diverges; for the second the test is silent, and it diverges anyway
It converges, with 1.443≤S≤2.483
It converges, to a sum between 1.645 and 4.935
Yes, it converges
It converges conditionally, not absolutely; ∣S−S4∣≤0.2
10 terms
,ℓ=e1≈0.368<1, so the series converges
;21<p≤1; the geometric schedule fails, because ∑αn=9.9 is finite
Worked solutions
Problem 1
Find .n=1∑∞5(32)n.
,r=32, and ,∣r∣<1, so the series convergesA geometric series: each term is 32 of the one before.
The first term, at ,n=1, is 5⋅32=310The sum starts at ,n=1, not .n=0.
SN=(1−21)+(21−31)+⋯+(N1−N+11)=1−N+11Every middle term cancels with the next one: the sum telescopes.
1−N+11→1Take the limit of the partial sums.
1For example .S99=0.99. Telescoping sums are one of the few kinds, with geometric series, whose exact value is easy to find.
Problem 3
What does the divergence test say about ,n=1∑∞2n+1n, and about ?n=1∑∞n1?
2n+1n→21=0Divide top and bottom by .n.
So ∑2n+1n divergesAdding terms near 21 forever gives partial sums that grow like .2N.
,n1→0, so the divergence test says nothing about ∑n1Terms going to 0 are needed for convergence, but they are not enough.
The first diverges; for the second the test is silent, and it diverges anywayIt is a p-series with .p=21≤1. Directly: each of the first N terms is at least ,N1, so .SN≥N..S100≈18.59.
Problem 4
Use the integral test to show that n=2∑∞n(lnn)21 converges, and bound its sum.
f(x)=x(lnx)21 is positive and decreasing for x≥2Both x and lnx increase, so the denominator does.
∫2bx(lnx)2dx=[−lnx1]2b=ln21−lnb1Substitute ,u=lnx,:du=xdx: the integral of .u−2.
,lnb1→0, so the integral is ln21≈1.4427 and the series convergesThe integral test.
ln21≤S≤2(ln2)21+ln21The bounds with :N=2: the integral alone, and the integral plus the first term.
It converges, with 1.443≤S≤2.483The sum is about .2.110. Without the square, ∑nlnn1 diverges: its integral is .ln(lnb)→∞.
Problem 5
Show that n=1∑∞n22+cosn converges, and give bounds for its sum.
,1≤2+cosn≤3, so n21≤n22+cosn≤n23cosn is between −1 and .1. Every term is positive.
∑n23 convergesA p-series with ,p=2>1, times .3.
So the series converges by direct comparisonSmaller than a convergent series, term by term.
∑n21=6π2≈1.645 and ∑n23=2π2≈4.935The known value of .∑n21.
It converges, to a sum between 1.645 and 4.935The sum is about .3.614. The integral test can't be used here, because the terms are not decreasing.
Problem 6
Does n=1∑∞n3+23n+1 converge?
For large ,n,n3+23n+1 behaves like n33n=n23Keep the highest power on top and bottom.
1/n2(3n+1)/(n3+2)=n3+23n3+n2→3Limit comparison with .bn=n21.
0<3<∞ and ∑n21 convergesBoth series do the same thing.
Yes, it convergesA direct comparison works too: 3n+1≤4n and ,n3+2>n3, so the terms are below .n24. The sum is about .3.260.
Problem 7
Show that n=1∑∞n(−1)n+1=1−21+31−… converges, decide whether it converges absolutely, and bound the error of .S4.
bn=n1 decreases and tends to 0The conditions of the alternating series test.
So the series convergesEach partial sum overshoots the last in the other direction, by less each time.
∑n(−1)n+1=∑n1 divergesThe harmonic series, a p-series with .p=1.
,S4=1−21+31−41=127≈0.5833, with error at most b5=51The first omitted term.
It converges conditionally, not absolutely; ∣S−S4∣≤0.2The sum is ,ln2≈0.6931, so the actual error is about ,0.110, inside the bound.
Problem 8
How many terms of n=1∑∞n3(−1)n+1 guarantee an error less than ?0.001?
bn=n31 decreases to ,0, so the error after N terms is at most (N+1)31The alternating series error bound.
(N+1)31<0.001 needs ,(N+1)3>1000, so N+1>10103=1000 exactly, which is not enough for a strict inequality.
:N=10: the bound is 13311≈0.00075N=9 gives a bound of exactly .0.001.
10 terms,S10≈0.90112, and the sum is :43ζ(3)≈0.90154: the actual error is about .0.00043.
Problem 9
Use the ratio test on .n=1∑∞nnn!.
anan+1=(n+1)n+1(n+1)!⋅n!nnWrite out the ratio of consecutive terms.
=(n+1)n+1(n+1)nn=(n+1)nnn=(n+1n)n,(n+1)!/n!=n+1, which cancels one factor of .n+1.
(n+1n)n=(1+1/n)n1→e1The limit that defines .e.
,ℓ=e1≈0.368<1, so the series convergesThe sum is about .1.880. Factorials and powers in the same term are what the ratio test is for: the comparison tests have nothing simple to compare with.
Problem 10
Proofs that stochastic gradient descent converges usually ask for step sizes αn>0 with ∑αn=∞ and .∑αn2<∞. For which p does αn=npc (with )c>0) qualify? Does ?αn=0.1⋅0.99n?
∑npc=∞ exactly when p≤1The p-series test.
∑(npc)2=c2∑n2p1<∞ exactly when 2p>1Again the p-series test, now with exponent .2p.
Both hold when 21<p≤1So nc qualifies, and nc (whose squares form the harmonic series) and n2c (whose sum is finite) do not.
n=1∑∞0.1⋅0.99n=1−0.990.1⋅0.99=9.9Geometric, with first term .0.099.
;21<p≤1; the geometric schedule fails, because ∑αn=9.9 is finiteThe first condition lets the steps reach a minimum however far away it starts; with steps adding to ,9.9, the iterates can only travel 9.9 times the largest gradient. The second condition makes the noise in the gradients average out.
Where this goes wrong
1. Starting the geometric sum at the wrong term
1−ra is memorized with a as the number in front of .rn.
,n=1∑∞5(32)n, geometric with r=32Right so far: Problem 1, step 1.
“.a=5.”The habit that causes the mistake: 5 is the term at ,n=0, and this sum starts at .n=1.
1−2/35=15That includes a term of 5 that is not in the series. The formula needs the first term actually in the sum, ,5⋅32=310, and the sum is .10.
2. Reading terms that go to 0 as convergence
The divergence test gets used backwards.
n1→0Right so far: Problem 3, step 3.
“The terms go to ,0, so the series converges.”The habit that causes the mistake: the divergence test turned around.
∑n1 convergesIt diverges: ,SN≥N, and .S10000≈198.5. Terms that go to 0 are necessary for convergence, not sufficient, and the harmonic series ∑n1 is the standard example.
3. Comparing with a bigger divergent series
Any true inequality looks like a comparison.
an=n3+23n+1>0Right so far: Problem 6.
“an≤n4 for every ,n≥1, and ∑n4 diverges.”The inequality is true: (3n+1)n≤4(n3+2) for every .n≥1.
So ∑an divergesBeing smaller than a divergent series proves nothing; a series of zeros is smaller too. To prove divergence, an must be at least the terms of a divergent series; to prove convergence, at most those of a convergent one. Here ,an≤n24, and the series converges.
4. Using the alternating series test on terms that don't shrink to 0
The signs alternate, so the test seems to apply.
,n=1∑∞(−1)n+1n+1n, with bn=n+1nThe setup of Problem 7, on a different series.
“It alternates, so it converges.”The habit that causes the mistake: the test has two conditions, and only the alternation was checked.
The series converges,bn→1, not ,0, so the terms do not go to 0 and the series diverges by the divergence test: its partial sums keep jumping by nearly .1. The alternating series test needs bn to decrease to 0.
5. Taking a ratio limit of 1 as an answer
The ratio test is applied to every series, and its answer is read even at the boundary.
For :∑n1:anan+1=n+1n→1Right so far: the same step as Problem 9, step 1.
“,ℓ≤1, so it converges.”The habit that causes the mistake: the boundary case lumped in with .ℓ<1.
∑n1 convergesIt diverges. At ℓ=1 the ratio test gives no answer: ∑n21 also has ratio (n+1n)2→1 and converges. Any p-series has ratio limit ,1, so for these, use the integral test or a comparison instead.