Calculus II - Integral Test
Calculus II - Integral Test
∞
1
∑
n
n=1
diverges.
1
We’ll start this off by looking at an apparently unrelated problem. Let’s start off by asking what the area under f (x) =
x
on
the interval [1, ∞). From the section on Improper Integrals we know that this is,
∞
1
∫ dx = ∞
1
x
and so we called this integral divergent (yes, that’s the same term we’re using here with series….).
So, just how does that help us to prove that the harmonic series diverges? Well, recall that we can always estimate the area
by breaking up the interval into segments and then sketching in rectangles and using the sum of the area all of the
rectangles as an estimate of the actual area. Let’s do that for this problem as well and see what we get.
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 1/14
4/1/25, 8:56 AM Calculus II - Integral Test
We will break up the interval into subintervals of width 1 and we’ll take the function value at the left endpoint as the height of
the rectangle. The image below shows the first few rectangles for this area.
1 1 1 1 1
A ≈ ( ) (1) + ( ) (1) + ( ) (1) + ( ) (1) + ( ) (1) + ⋯
1 2 3 4 5
1 1 1 1 1
= + + + + + ⋯
1 2 3 4 5
∞
1
= ∑
n
n=1
Now note a couple of things about this approximation. First, each of the rectangles overestimates the actual area and
secondly the formula for the area is exactly the harmonic series!
∞ ∞
1 1
A ≈ ∑ > ∫ dx = ∞
n x
1
n=1
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 2/14
4/1/25, 8:56 AM Calculus II - Integral Test
∞ ∞
1 1
∑ > ∞ ⇒ ∑ = ∞
n n
n=1 n=1
Since we can’t really be larger than infinity the harmonic series must also be infinite in value. In other words, the harmonic
series is in fact divergent.
So, we’ve managed to relate a series to an improper integral that we could compute and it turns out that the improper
integral and the series have exactly the same convergence.
Let’s see if this will also be true for a series that converges. When discussing the Divergence Test we made the claim that
∞
1
∑
2
n
n=1
converges. Let’s see if we can do something similar to the above process to prove this.
1
We will try to relate this to the area under f (x) =
2
is on the interval [1, ∞). Again, from the Improper Integral section
x
we know that,
∞
1
∫ dx = 1
2
1 x
We will once again try to estimate the area under this curve. We will do this in an almost identical manner as the previous
part with the exception that instead of using the left end points for the height of our rectangles we will use the right end
points. Here is a sketch of this case,
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 3/14
4/1/25, 8:56 AM Calculus II - Integral Test
1 1 1 1
A ≈ ( ) (1) + ( ) (1) + ( ) (1) + ( ) (1) + ⋯
2 2 2 2
2 3 4 5
1 1 1 1
= + + + + ⋯
2 2 2 2
2 3 4 5
This time, unlike the first case, the area will be an underestimation of the actual area and the estimation is not quite the
series that we are working with. Notice however that the only difference is that we’re missing the first term. This means we
can do the following,
∞ ∞
1 1 1 1 1 1 1
∑ = + + + + + ⋯ < 1 + ∫ dx = 1 + 1 = 2
2 2 2 2 2 2 2
n 1 2 3 4 5 1
x
n=1
Area Estimation
∞
1
∑ < 2
2
n
n=1
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 4/14
4/1/25, 8:56 AM Calculus II - Integral Test
With the harmonic series this was all that we needed to say that the series was divergent. With this series however, this isn’t
quite enough. For instance, −∞ < 2 , and if the series did have a value of −∞ then it would be divergent (when we want
convergent). So, let’s do a little more work.
First, let’s notice that all the series terms are positive (that’s important) and that the partial sums are,
n
1
sn = ∑
2
i
i=1
Because the terms are all positive we know that the partial sums must be an increasing sequence. In other words,
n n+1
1 1
sn = ∑ < ∑ = sn+1
2 2
i i
i=1 i=1
In sn+1 we are adding a single positive term onto sn and so must get larger. Therefore, the partial sums form an increasing
(and hence monotonic) sequence.
Also note that, since the terms are all positive, we can say,
n ∞
1 1
sn = ∑ < ∑ < 2 ⇒ sn < 2
2 2
i n
i=1 n=1
In the second section on Sequences we gave a theorem that stated that a bounded and monotonic sequence was
guaranteed to be convergent. This means that the sequence of partial sums is a convergent sequence. So, who cares right?
Well recall that this means that the series must then also be convergent!
So, once again we were able to relate a series to an improper integral (that we could compute) and the series and the
integral had the same convergence.
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 5/14
4/1/25, 8:56 AM Calculus II - Integral Test
We went through a fair amount of work in both of these examples to determine the convergence of the two series. Luckily for
us we don’t need to do all this work every time. The ideas in these two examples can be summarized in the following test.
Integral Test
Suppose that f (x) is a continuous, positive and decreasing function on the interval [k, ∞) and that f (n) = an then,
∞ ∞
1. If ∫ f (x) dx is convergent so is ∑ an .
k
n=k
∞ ∞
2. If ∫ f (x) dx is divergent so is ∑ an .
k
n=k
A formal proof of this test can be found at the end of this section.
There are a couple of things to note about the integral test. First, the lower limit on the improper integral must be the same
value that starts the series.
Second, the function does not actually need to be decreasing and positive everywhere in the interval. All that’s really
required is that eventually the function is decreasing and positive. In other words, it is okay if the function (and hence series
terms) increases or is negative for a while, but eventually the function (series terms) must decrease and be positive for all
terms. To see why this is true let’s suppose that the series terms increase and or are negative in the range k ≤ n ≤ N and
then decrease and are positive for n ≥ N + 1 . In this case the series can be written as,
∞ N ∞
∑ an = ∑ an + ∑ an
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 6/14
4/1/25, 8:56 AM Calculus II - Integral Test
Now, the first series is nothing more than a finite sum (no matter how large N is) of finite terms and so will be finite. So, the
original series will be convergent/divergent only if the second infinite series on the right is convergent/divergent and the test
can be done on the second series as it satisfies the conditions of the test.
The requirement in the test that the function/series be decreasing and positive everywhere in the range is required for the
proof. In practice however, we only need to make sure that the function/series is eventually a decreasing and positive
function/series. Also note that when computing the integral in the test we don’t actually need to strip out the
increasing/negative portion since the presence of a small range on which the function is increasing/negative will not change
the integral from convergent to divergent or from divergent to convergent.
There is one more very important point that must be made about this test. This test does NOT give the value of a series. It
will only give the convergence/divergence of the series. That’s it. No value. We can use the above series as a perfect
example of this. All that the test gave us was that,
∞
1
∑ < 2
2
n
n=1
So, we got an upper bound on the value of the series, but not an actual value for the series. In fact, from this point on we will
not be asking for the value of a series we will only be asking whether a series converges or diverges. In a later section we
look at estimating values of series, but even in that section still won’t actually be getting values of series.
Just for the sake of completeness the value of this series is known.
∞ 2
1 π
∑ = = 1.644934... < 2
2
n 6
n=1
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 7/14
4/1/25, 8:56 AM Calculus II - Integral Test
∞
1
∑
n ln n
n=2
Hide Solution
1
f (x) =
x ln x
This function is clearly positive and if we make x larger the denominator will get larger and so the function is also
decreasing. Therefore, all we need to do is determine the convergence of the following integral.
∞ t
1 1
∫ dx = lim ∫ dx u = ln x
x ln x t→∞ x ln x
2 2
t
= lim (ln(ln x))|
2
t→∞
= ∞
The integral is divergent and so the series is also divergent by the Integral Test.
n=0
Hide Solution
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 8/14
4/1/25, 8:56 AM Calculus II - Integral Test
2
−x
f (x) = xe
This function is always positive on the interval that we’re looking at. Now we need to check that the function is decreasing.
It is not clear that this function will always be decreasing on the interval given. We can use our Calculus I knowledge to
help us however. The derivative of this function is,
2
′ −x 2
f (x) = e (1 − 2x )
1
This function has two critical points (which will tell us where the derivative changes sign) at x = ± . Since we are
√2
starting at n = 0 we can ignore the negative critical point. Picking a couple of test points we can see that the function is
increasing on the interval [0, and it is decreasing on [ . Therefore, eventually the function will be decreasing
1 1
] , ∞)
√2 √2
and that’s all that’s required for us to use the Integral Test.
∞ t
2 2
−x −x 2
∫ xe dx = lim ∫ xe dx u = −x
t→∞
0 0
t
1 2 ∣
−x
= lim (− e )∣
t→∞ 2 ∣
0
1 1 2 1
−t
= lim ( − e ) =
t→∞ 2 2 2
The integral is convergent and so the series must also be convergent by the Integral Test.
We can use the Integral Test to get the following fact/test for some series.
∞
1
If k > 0 then ∑ p
converges if p > 1 and diverges if p ≤ 1 .
n
n=k
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 9/14
4/1/25, 8:56 AM Calculus II - Integral Test
Sometimes the series in this fact are called p-series and so this fact is sometimes called the p-series test. This fact follows
directly from the Integral Test and a similar fact we saw in the Improper Integral section. This fact says that the integral,
∞
1
∫ dx
p
x
k
Using the p-series test makes it very easy to determine the convergence of some series.
∞
1
(b) ∑
√n
n=1
∞
1
(a) ∑ 7
Hide Solution
n
n=4
∞
1
(b) ∑ Hide Solution
√n
n=1
1
For this series p =
2
≤ 1 and so the series is divergent by the fact.
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 10/14
4/1/25, 8:56 AM Calculus II - Integral Test
The last thing that we’ll do in this section is give a quick proof of the Integral Test. We’ve essentially done the proof already at
the beginning of the section when we were introducing the Integral Test, but let’s go through it formally for a general function.
First, for the sake of the proof we’ll be working with the series ∑ an . The original test statement was for a series that
n=1
started at a general n = k and while the proof can be done for that it will be easier if we assume that the series starts at
n = 1 .
Another way of dealing with the n = k is we could do an index shift and start the series at n = 1 and then do the Integral
Test. Either way proving the test for n = 1 will be sufficient.
Also note that while we allowed for the first few terms of the series to increase and/or be negative in working problems this
proof does require that all the terms be decreasing and positive.
Let’s start off and estimate the area under the curve on the interval [1, n] and we’ll underestimate the area by taking
rectangles of width one and whose height is the right endpoint. This gives the following figure.
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 11/14
4/1/25, 8:56 AM Calculus II - Integral Test
n n
∑ ai = a2 + a3 + ⋯ an < ∫ f (x) dx
1
i=2
∞ ∞
Now, let’s suppose that ∫ 1 f (x) dx is convergent and so ∫ 1 f (x) dx must have a finite value. Also, because f (x) is
positive we know that,
n ∞
Our series starts at n = 1 so this isn’t quite what we need. However, that’s easy enough to deal with.
n n ∞
∑ ai = a1 + ∑ ai < a1 + ∫ f (x) dx = M
1
i=1 i=2
So, just what has this told us? Well we now know that the sequence of partial sums, sn = ∑ ai are bounded above by M .
i=1
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 12/14
4/1/25, 8:56 AM Calculus II - Integral Test
n n+1
i=1 i=1
∞ ∞
and so the sequence {sn }n=1 is also an increasing sequence. So, we now know that the sequence of partial sums {sn }n=1
∞
So, the first part of the test is proven. The second part is somewhat easier. This time let’s overestimate the area under the
curve by using the left endpoints of interval for the height of the rectangles as shown below.
Since we know this overestimates the area we also then know that,
n−1 n−1
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 13/14
4/1/25, 8:56 AM Calculus II - Integral Test
∞ n
Now, suppose that ∫ 1 f (x) dx is divergent. In this case this means that ∫ 1 f (x) dx → ∞ as n → ∞ because
n−1
f (x) ≥ 0 . However, because n − 1 → ∞ as n → ∞ we also know that ∫ 1 f (x) dx → ∞ .
n−1
Therefore, since sn−1 > ∫
1
f (x) dx we know that as n → ∞ we must have sn−1 → ∞ . This in turn tells us that
sn → ∞ as n → ∞ .
∞
∞
So, we now know that the sequence of partial sums, {sn }n=1 , is a divergent sequence and so ∑ an is a divergent series.
n=1
It is important to note before leaving this section that in order to use the Integral Test the series terms MUST eventually be
decreasing and positive. If they are not then the test doesn’t work. Also remember that the test only determines the
convergence of a series and does NOT give the value of the series.
https://tutorial.math.lamar.edu/Classes/CalcII/IntegralTest.aspx 14/14