Integral Test – Definition, Conditions, and Examples

Integral TestThe integral test is an important tool kit to learn when studying series and their convergence. As we know, series and sequences are the foundations of advanced numerical analysis. This means that convergence tests such as the integral test are essential when we’re studying different types of series.

The integral test is an essential tool kit in determining whether a given series is convergent or not. This test uses a closely related improper integral to determine a series’ convergence.

Our discussion will thoroughly explore the concepts behind the integral test. We’ll cover its definition, conditions, and process and also learn when it’s best to use this convergence test. We’ll be dealing with improper integrals in this article, so keep your notes handy or head over to this link for a quick refresher.

By the end of our discussion, we’ll make sure that you can work independently and master this technique. This will be a thorough discussion, so take notes when you can.

For now, let’s go ahead and understand what makes this convergence test unique and understand how we have established the rules for the integral test.

What is the integral test?

The integral test determines whether a given series is convergent or not by comparing the series to a closely related improper integral. When f(x) is continuous, positive and decreasing, within the interval [1,) and we define an as f(n), according to the integral test:

·         The series n=1an is convergent when 1f(x)xdx is convergent.

·         Similarly, when n=1an is divergent then 1f(x)xdx is divergent.

We’ll show you how we can establish this technique and understand the key conditions when implementing the integral test. For now, let’s observe how we can establish the integral test’ method by estimating the sum of n=11n2.

Finding the exact value of a series, Sn, is often challenging unless we’re working with a series that has been studied thoroughly in the past. This is when convergence tests such as the integral test enter.

Let’s begin by observing the series containing terms with the reciprocals of the squares of the positive integrals, {1,2,3,4,}.

n=11n2=112+122+132+142+

We haven’t learned of a straightforward approach in the past that allows us to approximate the sum of this series’ first n terms. Let us show you the table of values that the series approaches as n increases (we used a computer to calculate these):

n

Sn

10

1.5498

100

1.6350

500

1.6429

1000

1.6439

5000

1.6447

10000

1.6448

From the table of values, we can see that as n, the sum of the series, Sn, converges to a given value. In fact, we can confirm this geometrically by graphing the curve of y=1x2 and the rectangles representing each term’s value. This will be similar to how we construct the rectangle for the Riemann sum.

illustration of the sum of a series

From the graph, we can see that the function converges and in addition, the sum of the rectangles’ areas will be equivalent to our original series:

n=11n2=112+122+132+142+

If we take out the first rectangle with an area of 11!=1 square unit, the sum of the area of the remaining rectangles will be less than the area of the curve, y=1x2, for the interval, [1,). Using the fundamental theorem of calculus, we can express the area of y as 11x2xdx.

n=11n2=112+122+132+142++1n2+<1+11x2xdx

We’ve learned how to evaluate improper integrals in the past and we can show that 11x2xdx=1. Need a refresher? Check out the calculations below.

EVALUATING AN IMPROPER INTEGRAL                                         

11x2xdx=lima1a1x2xdx=lima[1x]1a=lima(1a1)=lima(1a1)=(01)=1

 

 

This means that we can simplify our inequality  as shown below.

n=11n2=112+122+132+142++1n2+<2

Since the series as well as its partial sums is less than 2 and we know that Sn is increasing by  1n2, the series converges.

Sn=Sn1+1n2Series converges

 Through the Monotone Convergence Theorem, we can conclude that the series n=11n2 converges. We’ll follow the same process when confirming the convergence of series using the integral test. For now, let’s generalize the process and understand when it’s best to utilize this technique.

Integral test conditions

If the series, n=1an, contains positive terms an so that there exists a continuous, positive, and decreasing function, f(n)=an, the partial sum of the series, Sn, can be expressed as shown below.

Sn=a1+a2+a3++an<a1+1nf(x)xdx<1+1f(x)xdx

a series that converges through the integral test

This means that the series’s convergence or divergence will depend on 1f(x)xdx. When Sn is an increasing series, like our earlier example, the series will converge too. Hence, when 1f(x)xdx converges, the series, n=1an converges too.

Now, what happens when the series satisfies the equation below?

Sn=a1+a2+a3++an<a1+1nf(x)xdx<1+1f(x)xdx

a series that diverges through the integral test

The graph above illustrates the situation and when we evaluate from 1 to n+1 and as n approaches infinity.  When this happens, the series will be unbounded and will cause Sn to be divergent.  This means that when 1f(x)xdx diverges, the series, n=1an, diverges as well. Let’s summarize these conditions to highlight what we need when implementing the improper integral.

                                                         INTEGRAL TEST                                        

Let’s say we have the series, n=kan, where all the terms are positive. Then there exists a function, f(x), and positive integer, n, that satisfy the following conditions:

i) f(x) is continuous

i) f(x) is decreasing

ii) f(n)=an for all integers

When the function satisfies all three conditions, we can use the following rules to determine whether the series is convergent or divergent:

kf(x)xdx is convergentn=kan is convergent

kf(x)xdx is divergentn=kan is divergent

Keep in mind though that k is often equal to 1 there are instances when k1. We’ll use these conditions to test if a given series is convergent or not. In the next section, we’ll understand how to implement the integral test on different types of series.

How to use the integral test?             

Here are some pointers that’ll help you in using the integral test to check a series’ convergence or divergence. Keep this guideline in mind when working on the sample problems we’ve prepared:

  • Express an as a function of f(x).
  • Check if the function satisfies the three conditions: it is continuous, decreasing, and equivalent to f(n)=an throughout the appropriate interval.
  • Set up the improper integral, n=kf(x)xdx, where k represents the initial index of the series.
  • Evaluate the improper integral and see if it converges or diverges.
  • Use the result from the previous step to determine whether the series is convergent or divergent.

Why don’t we confirm the convergence of n=1(1e)n using the integral test?

n=1(1e)n=1e+(1e)2+(1e)3+(1e)4+

We let f(x)=(1e)x. The larger the exponent or the value of x, the smaller the value of (1e)x, so the function is continuous and decreasing. Since the series starts when n=1, we set up the improper integral with k=1. Hence, we have the following:

1f(x)xdx=1(1e)xxdx=lima1a(1e)xxdx

Apply appropriate integral techniques to evaluate the resulting expression.

lima1a(1e)xxdx=lima1aexxdx=lima[ex]1a=lima[(ea)(e1)]=lima[1e1ea]=1e0=1econverges

From this, we can see that the improper integral, 1(1e)xxdx converges, through the integral test, we can conclude that n=1(1e)n is also convergent.

Ready to work on more problems involving the integral test? Don’t worry, we’ve prepared a whole lot for you. Before diving right in, review your notes and keep your integral formulas ready as well!

Example 1

Using the integral test, confirm whether the series, n=11n, is convergent or divergent.

Solution

We’re now working with the series, n=11n.

n=11n=11+12+13+14+

Let’s check first if we can apply the integral test by checking the three conditions required:

  • Within the interval of [1,), we all terms, an can be expressed as f(n), where f(x)=1x.
  • The function, f(x)=1x, is continuous throughout the interval.
  • The larger the value of n, the smaller the value of f(x). For example, 116<19.

We can also show mathematically that f(x) is decreasing by taking its derivative.  Find the critical points of f(x) then assign test values to see if f(x) is negative or positive. When f(x)<0, the function is decreasing.

f(x)=ddx1x=12x121=12x32=12x32<0,xx[1,)f(x) is decreasing

Since f(x) satisfies all three conditions, we can now set up the improper integral, 1f(x)xdx and evaluate that instead to determine whether our series is convergent or divergent.
11xxdx=lima1a1xxdx=lima1a(x)12xdx=lima1a[x12+11/2+1]1a=lima[2x]1a=lima(2a2)=diverges

Since 11xxdx is divergent, through the integral test, we can also conclude that the series, n=11n is divergent as well.

Example 2

Using the integral test, confirm whether the series, n=11n4, is convergent or divergent.

Solution

Let’s see if we can use the integral test to check if our given series is convergent or not.

n=11n4=114+124+134+144+

Breaking down our assessment of the three conditions, we have the following:

  • From n=1 to n=, we can express each nth term by evaluating f(n). This means that we can assign f(x)=1x4.
  • The only time that f(x)=1x4 is not continuous occurs when x=0, so we can confirm that the function is continuous within the interval, [1,).
  • For positive integers, as x increases the value of 1x4 decreases. This means that f(x) is indeed decreasing.

f(x)=ddx1x4=ddxx4=4x41=14x5<0,xx[1,)f(x) is decreasing

We have now confirmed that we can apply the integral test to determine whether the series is convergent or divergent. Now, let’s set up the improper integral, 1f(x)xdx, and evaluate the resulting expression to check the series for convergence.

11x4xdx=lima1a1x4xdx=lima1ax4xdx=lima[x4+14+1]1a=lima[x33]1a=lima[13a3(13(1)3)]=lima(13a3+13)=0+13=13converges

We’ve shown that the improper integral, 11x4xdx, converges to 13. Through the integral test, we can also conclude that the series, n=11n4, is also convergent.

Example 3

Using the integral test, confirm whether the series, n=21nlnn, is convergent or divergent.

Solution

The values within the interval, [2,), will always return a positive value for 1nlnn. Why don’t we go ahead and confirm if we can use the integral test for this series:

  • For all values of n within the interval, [2,), we can assign f(x)=1xlnx and we can see that an will always be f(n).
  • There are no restrictions for f(x)=1xlnx for the interval, [2,), so our function is continuous.
  • We can also show that as x becomes larger, the function’s value decreases, so the function is decreasing.

f(x)=ddx1xlnx=ddx(xlnx)1=(xlnx)2[x1x+lnx1]=1(xlnx)2(1+lnx)=1+lnx(xlnx)2<0,xx[2,)f(x) is decreasing

Now that we’ve checked all three conditions, we can now move on to the next part of the process: set up the improper integral, 2f(x)xdx. Yes, the lower limit has to change when the index changes.

21xlnxxdx

Evaluate the resulting expression to see if the improper integral is convergent or divergent.

 21xlnxxdx=lima2a1xlnxxdx=lima2a1xlnxxdx

Let’s focus on integrating f(x)=1xlnx first using the substation method then we’ll go back to our simplifying lima2a1xlnxxdx.

u=lnxdu=1xxdxxxdu=dx1xlnxxdx=1xuxxdu=1uxdu=ln|u|+C=ln|lnx|+C

Substitute this expression for 1xlnxxdx back into our improper integral expression.

21xlnxxdx=lima2a1xlnxxdx=lima2a1xlnxxdx=lima[ln|lnx|]2a=lima(ln|lna|ln|ln2|)=diverges

From this, we can see that the improper integral, 21xlnxxdx, is divergent. Through the integral test, we can also conclude that the series, n=21nlnn, is divergent.

Example 4

Using the integral test, confirm whether the series, n=11+sinnn2, is convergent or divergent.

Solution

As always, let’s make sure that we can use the integral test to check for the series:

  • For the interval, [1,), we can the equation an=f(n) will always be true.
  • The denominator will always be positive so regardless of the values we enter, the function, f(x)=1+sinxx2, will always be continuous.
  • Sine functions are oscillating, so the function will be decreasing or increasing depending on the period.

This means that f(x) is not decreasing throughout the interval, [1,). For this series, the integral test can’t be applied. Instead, we can use the comparison test to confirm that the series is convergent.

                                       EXAMPLE OF COMPARISON TEST

1sinn11+1sinn1+10 1+sinn20n2 1+sinnn22n201+sinnn22n2

1+sinnn22n22n2 is convergent1+sinnn2 is convergent

This example shows that it’s important for us to check the three conditions before applying the integral test. This will save us time form integrating the improper integral and we can then move on to using another converge test. Head over to this link if you want a quick refresher of the different converges tests.

Example 5

Using the integral test, confirm whether the series, n=0nen2, is convergent or divergent.

Solution

For this series, we can use f(x)=xex2. All the values within the interval, [0,), will satisfy the equation:  an=f(n). Why don’t we proceed in checking that the series meets all three conditions?

  • Since ex2 will always be positive, the function, f(x)=xex2 will be 0 or positive as well.
  • In addition, the function will be continuous throughout the interval, [0,).
  • We can also show that f(x) is decreasing by observing f(x)’s expressions.

f(x)=ddxxex2=x(2xex2)+1(xex2)=xex2(12x)>0,xx[0,12]<0,xx[12,)f(x) is increasing,xx[0,12]f(x) is decreasing,xx[12,)

From this, we can see that f(x) is decreasing within the interval [12). Does this mean we can no longer use the integral test? Well, we still can and that’s by  observing the nature of n=01/2nen2 and n=1/2nen2. The first series is convergent, so we can instead focus on n=1/2nen2.

Let’s now work on the improper integral, 1/2f(x)xdx.

1/2xex2xdx=lima1/2axex2xdx

Focus on the indefinite integral first and apply the substitution method.

u=x2du=2xxdx12xxdu=dxxex2xdx=xeu12xxdu=12euxdu=12eu=12ex2

Use this expression to simplify our improper integral’s expression.

lima1/2axex2xdx=lima[12ex2]1/2a=lima(12ea2+12e12)=lima(12ea2+12e12)=0+12e12converges

Since the improper integral, 1/2xex2xdx, is convergent, through the integral test,  can confirm that n=1/2nen2 is also convergent.

n=0nen2=n=01/2nen2convergent+n=1/2nen2convergentn=0nen2 is convergent

Now, when two series are convergent, their sum will also be convergent. This means that the series, n=0nen2, is also convergent.

We can shorten this solution by evaluating the improper integral from [0,) since a significant portion of the interval is decreasing. Keep in mind that we can only do this when only an insignificant portion of the interval is increasing. This is also why we can’t do this for the previous problem – the function was periodically increasing and decreasing.

Practice Questions

1. Using the integral test, confirm whether the series, n=112n1, is convergent or divergent.
2. Using the integral test, confirm whether the series, n=11n3, is convergent or divergent.
3. Using the integral test, confirm whether the series, n=1nn2+1, is convergent or divergent.
4. Using the integral test, confirm whether the series, n=21n(lnn)2, is convergent or divergent.
5. Using the integral test, confirm whether the series, n=13n3n4+1, is convergent or divergent.
6. Using the integral test, confirm whether the series, n=1(n+2)2n2n3, is convergent or divergent.
7. Using the integral test, confirm whether the series, n=1(n+lnn)2n3+nlnn, is convergent or divergent.
8. Using the integral test, confirm whether the series, n=13+2sin(n2)n2, is convergent or divergent.

Answer Key

1. n=112n1 is divergent.
2. n=11n3 is convergent.
3. n=1nn2+1 is divergent.
4. n=21n(lnn)2 is convergent.
5. n=13n3n4+1 is divergent.
6. n=1(n+2)2n2n3 is convergent.
7. n=1(n+lnn)2n3+nlnn is divergent.
8. n=13+2sin(n2)n2 is divergent.

Images/mathematical drawings are created with GeoGebra.