MAT1052 · Week 3 · Geometric Series, Divergence and Integral Tests
Geometric series, the nth-term test and the integral test
You learn geometric series whose sum can be computed exactly, the nth-term test that shows divergence in one line, and the integral test that settles the fate of p-series.
geometric seriescommon rationth-term test for divergenceintegral testp-seriesharmonic seriesremainder estimaterepeating decimal
This week we give the first three answers to the convergence question. The geometric series is one of the rare series whose sum you can find with a closed formula; in the exam it almost always comes as a “find the sum” question. The nth-term test (divergence test) is the fastest divergence check. The integral test ties the fate of a series to an improper integral and proves the p-series rule. Since next week’s comparison tests all work by comparing to p-series and geometric series, the three results on this page are the cornerstone.
Golden rules:
Geometric series: sum =1−rfirst term, only when ∣r∣<1.
In every series, first look at whether the term goes to zero. If it does not, you are done: it diverges.
If the term goes to zero, the nth-term test says nothing. Move on to another test.
The p-series ∑1/np: converges for p>1, diverges for p≤1.
Geometric series
Definition. A series in which each term is a fixed multiple r of the previous one:
∑n=0∞arn=a+ar+ar2+…,a=0.
r is called the common ratio.
Theorem. If ∣r∣<1 the series converges and its sum is 1−ra. If ∣r∣≥1 it diverges.
Why? The partial sum: sn=a+ar+⋯+arn−1. Taking the difference with rsn, almost everything cancels: sn−rsn=a−arn, so
sn=1−ra(1−rn)(r=1).
For ∣r∣<1, rn→0 and sn→1−ra. For ∣r∣>1, rn blows up. For r=1, sn=na; for r=−1, sn goes back and forth between a and 0. Both diverge.
Recognizing a geometric series in the exam
The series is usually not given in the form arn. You separate the exponents and rearrange:
1) Put the term in the form c · (number)^n: 2^(n+1)/3^n = 2 · (2/3)^n2) The ratio r = (number). Is |r| < 1?3) First term = the term at the starting index (plug in n=0, 1, 2 ... whichever it is)4) Sum = first term / (1 - r)
Example 1.n=1∑∞5(31)n−1. The first term at n=1 is 5. The ratio is 31. The sum is 2/35=215.
Example 2.n=0∑∞3n+1(−1)n2n. Rearrange: 31(−32)n. The first term is 31, the ratio is −32. The sum is 1+2/31/3=5/31/3=51.
Example 3 (repeating decimal).1.234=1.2343434… First separate the non-repeating part: 1.2+0.0343434… The second part is a geometric series with first term 100034 and ratio 1001:
Example 3b (application). A ball is dropped from a height of 10 m. On each impact it bounces to 43 of the previous height. How far does the ball travel in total? The first drop is 10 m. After that, each bounce goes both up and down: 2(10⋅43+10⋅(43)2+…). The expression in parentheses is a geometric series with first term 7.5 and ratio 43, with sum 1/47.5=30. The total distance is 10+2⋅30=70 m. Do not forget to count the first drop separately: it goes one way only.
Example 3c (a series with x). For which x does ∑n=0∞(3x)n converge? The ratio is 3x, the condition is ∣3x∣<1, that is, −31<x<31. In this interval the sum is 1−3x1. This idea is the starting point of the power series in week 5: writing a function like an infinite polynomial.
PITFALL · the first term. The a in the formula is not the “coefficient”, it is the first term. In the series ∑n=2∞(1/2)n, a=1/4, and the answer is 1/21/4=21. Taking the coefficient as 1 and writing 2 is the most common mistake.
The nth-term test (divergence test)
Theorem. If ∑an converges, then an→0.
The form you actually use is the contrapositive: if liman=0 or the limit does not exist, then ∑an diverges.
The reason is simple: an=sn−sn−1. If the series converges to S, both sn and sn−1 go to S, and the difference goes to 0.
Example 4.∑3n−1n: the term →31=0, diverges.
Example 5.∑(−1)n: the term has no limit, diverges.
Example 6.∑nsin(1/n): nsin(1/n)=1/nsin(1/n)→1, diverges.
PITFALL · the converse is not true. There is NO rule that says if an→0 then the series converges. For ∑1/n (the harmonic series) the terms go to zero but it diverges. The nth-term test only proves divergence; an answer that says “converges by the nth-term test” gets zero.
The integral test
Theorem. Let an=f(n) and let f be positive, continuous and decreasing for x≥N. Then
∑n=N∞anand∫N∞f(x)dx
either both converge or both diverge.
Intuition. Draw the values an as rectangles of width 1. Since f is decreasing, the rectangles can be arranged to stay under the curve (right endpoint) or to stick out above it (left endpoint):
∫1n+1fdx≤sn≤a1+∫1nfdx.
If the area is finite, the sum stays bounded (positive terms, increasing partial sums, so it converges). If the area is infinite, the sum is infinite too.
Do not apply the test without writing the three conditions. In the exam, write the sentence “f is positive, continuous and decreasing for x≥1”. The shortest way to show that it is decreasing is f′(x)<0.
Example 7.n=1∑∞1+n21. f(x)=1+x21 is positive, continuous, decreasing (f′=(1+x2)2−2x<0).
∫1∞1+x2dx=limb→∞arctanb−arctan1=2π−4π=4π.
It is finite, so the series converges. The sum is NOT π/4; the integral only tells the fate. (As a bound: sum ≤a1+π/4=21+4π.)
Example 7b.n=1∑∞n2+1n. The term goes to zero, and the nth-term test says nothing. f(x)=x2+1x is positive and continuous. f′(x)=(x2+1)21−x2 is negative for x>1, so it is decreasing after x≥1. With the substitution u=x2+1
∫1bx2+1xdx=21ln(b2+1)−21ln2→∞.
The integral diverges, so the series diverges. Intuition: for large n the term is ≈n1, it behaves like the harmonic series. This “look at the dominant term” intuition is the very idea of next week’s limit comparison test.
TIP · the decrease can start later. In the integral test, f does not have to be decreasing from the very beginning. “Decreasing for x≥N” is enough, because a finite number of terms does not change the fate. In Example 7b, f actually peaks at x=1; starting the test at N=1 is not a problem.
p-series
For ∑n=1∞np1, f(x)=x−p (p>0) is positive, continuous, decreasing. The p-integral result from week 1 applies directly:
Series
Converges
Diverges
∑np1
p>1
p≤1
Examples: ∑n21 converges. ∑n1 (p=21) diverges. ∑n1.011 converges (very slowly, but it converges). ∑n1 diverges. If p≤0, the terms do not even go to zero.
The logarithmic family
∑n(lnn)p1 (n≥2): with the substitution u=lnx the integral becomes ∫updu. The rule is the same: converges for p>1, diverges for p≤1. So ∑nlnn1 diverges, ∑n(lnn)21 converges.
Remainder estimate
If S is the true sum, sn the partial sum and Rn=S−sn, then under the conditions of the integral test:
∫n+1∞f(x)dx≤Rn≤∫n∞f(x)dx.
Example 8. If you use s100 for ∑1/n2, the error is at most ∫100∞x−2dx=0.01. If it says “let the error be less than 0.0001”, then n1≤0.0001, that is, n≥10000 terms are needed.
Common mistakes
Wrong
Correct
In a geometric sum, a = coefficient
a = the first term at the starting index
Writing 1−ra when ∣r∣≥1
If ∣r∣≥1 it diverges, the formula is invalid
”an→0, so the series converges”
The nth-term test only shows divergence
cos(1/n)→0
cos(1/n)→1, diverges
Not writing the conditions in the integral test
Positive, continuous, decreasing; show f′<0
Value of the integral = sum of the series
Only the fate is the same; the values differ
∑n1 converges (because there is a root)
p=21≤1, diverges
∑nlnn1 converges (ln helps)
∫ = lnlnb→∞, diverges
Test yourself
Exam-style questions. Solve them on paper first, then reveal the answer.
Question 1easy
Find the sum n=0∑∞3(52)n.
Show answer
5
Geometric series: the first term (n=0) is a=3, the ratio is r=2/5, ∣r∣<1. The sum is 1−ra=3/53=5.
Question 2medium
Find the sum n=1∑∞5n+14n.
Show answer
4/5
5n+14n=51(54)n. The first term (n=1): 51⋅54=254, the ratio is 54. The sum is 1−4/54/25=1/54/25=54.
Question 3medium
Find the sum n=2∑∞(−31)n.
Show answer
1/12
The first term is at n=2: (−31)2=91. The ratio is r=−31. The sum is 1−(−1/3)1/9=4/31/9=121.
Question 4easy
Write the repeating decimal 0.27=0.272727… as a fraction.
Show answer
3/11
0.2727…=10027+100227+…, the first term is 10027, the ratio is 1001. The sum is 99/10027/100=9927=113.
Question 5medium
For which x does n=0∑∞2n(x−1)n converge, and what is its sum?
Show answer
−1<x<3, sum =3−x2
The ratio is r=2x−1. A geometric series converges when ∣r∣<1: ∣x−1∣<2, that is, −1<x<3. The sum is 1−2x−11=2−(x−1)2=3−x2. At the endpoints r=±1, the terms do not go to zero, so it diverges.
Question 6easy
Does n=1∑∞2n+1n converge or diverge?
Show answer
Diverges (nth-term test)
lim2n+1n=21=0. By the nth-term test, if the terms do not go to zero, the series diverges.
Question 7easy
Does n=1∑∞cos(n1) converge or diverge?
Show answer
Diverges
1/n→0, cos is continuous, so cos(1/n)→cos0=1=0. It diverges by the nth-term test. The trap: thinking the term goes to zero just because 1/n→0.
Question 8medium
Find the sum n=1∑∞6n3n+2n.
Show answer
3/2
Split into two: (21)n+(31)n. Two convergent geometric series.∑n≥1(1/2)n=1/21/2=1, ∑n≥1(1/3)n=2/31/3=21. The total is 23.
Question 9medium
Use the integral test to decide whether n=2∑∞nlnn1 converges.
Show answer
Diverges
f(x)=xlnx1 is positive, continuous and decreasing for x≥2.u=lnx, du=dx/x: ∫2bxlnxdx=ln(lnb)−ln(ln2)→∞. Since the integral diverges, the series diverges too.
Question 10medium
Does n=2∑∞n(lnn)21 converge or diverge?
Show answer
Converges
f(x)=x(lnx)21 is positive, continuous, decreasing. With u=lnx:∫2∞x(lnx)2dx=∫ln2∞u2du=ln21, finite. By the integral test the series converges. (The value of the integral is NOT the sum of the series.)
Question 11hard
Does n=1∑∞ne−n2 converge? Use the integral test.
Show answer
Converges
f(x)=xe−x2 is positive and decreasing for x≥1 (f′(x)=e−x2(1−2x2)<0).u=x2: ∫1∞xe−x2dx=[−21e−x2]1∞=2e1. The integral is finite, the series converges.
Question 12hard
Using the integral test remainder estimate, give an upper bound for the error when ∑n=1∞n31 is approximated by s10.
Show answer
R10≤2001=0.005
The remainder estimate: Rn≤∫n∞f(x)dx.∫10∞x−3dx=2⋅1021=2001. There is a lower bound too: R10≥∫11∞x−3dx=2421. The actual remainder is about 0.00452.
Verification: Geometric sums were checked with partial sums of hundreds of terms, the integral test integrals with tanh-sinh (with the x = e^u transformation for slowly decaying ones), and the remainder estimate with partial sums of 2 million terms in node (verify/MAT1052/03.mjs).
Review card
Geometric: Σ a r^(n) → if |r|<1 the sum = FIRST TERM / (1 - r); |r|≥1 diverges
Compute the first term from the starting index (n=0 or n=1 or n=2?)
Find the ratio: divide two consecutive terms. Separate the exponents: 4^n/5^(n+1) = (1/5)(4/5)^n
Repeating decimal: 0.abab... = ab/99
nth-term test: lim a_n ≠ 0 → DIVERGES. lim a_n = 0 → THE TEST SAYS NOTHING
Integral test: f positive, continuous, DECREASING (x≥N). Σf(n) and ∫_N^∞ f share the same fate
Value of the integral ≠ sum of the series
p-series Σ 1/n^p: p>1 converges, p≤1 diverges (harmonic p=1 diverges)
Σ 1/(n ln n) diverges, Σ 1/(n (ln n)^2) converges
Remainder: ∫_(n+1)^∞ f ≤ R_n ≤ ∫_n^∞ f