Integral Test for Series Convergence
What is the integral test
Determining the sum of an infinite series and assessing its convergence or divergence is not always straightforward. Several methods are available to study convergence, one of which involves comparing the series to an improper integral. This test applies to series with positive terms and relies on the principle that the convergence of the series can be determined by comparing it to the behavior of an associated improper integral.
Let $f$ be a positive, decreasing function defined on $[ 1 , + \infty )$, such as a rational or polynomial function. Then the series
\[\sum_{n = 1}^{\infty} f ( n )\]converges or diverges if and only if the improper integral
\[\int_{1}^{\infty} f ( x ) d x\]does the same, assuming that $f$ is continuous on $[ 1 , + \infty ) .$

The graph illustrates the connection between a series and an improper integral as stated by the Integral Test.
- The curve $f ( x )$ represents the continuous function.
- The gray area shows a portion of the improper integral (the area under the curve from $x = 1$ to some $x = n$).
- The vertical rectangles represent the terms of the series $f ( n )$, each with base 1 and height $f ( n )$.
This visual helps compare the discrete sum (the series) and the continuous accumulation (the integral). Since the rectangles overestimate or underestimate the area depending on the function’s behavior, the integral can be used to determine the convergence of the series.
Proof
Let us consider the partial sum of the series:
\[s_{k} = \sum_{n = 1}^{k} f ( n ) k \in \mathbb{N}\]This represents the sum of the first $k$ terms of the series $\sum f ( n )$. Since the series has positive terms, the sequence of partial sums $s_{k}$ is increasing and admits a limit as $k \rightarrow \infty$:
\[\underset{k \rightarrow + \infty}{lim} s_{k} = s \in [ 0 , + \infty ]\]Just as the series is defined by the limit of its partial sums, the improper integral is defined as the limit of the definite integral as the upper bound tends to infinity:
\[\underset{k \rightarrow + \infty}{lim} \int_{1}^{k} f ( x ) d x = \int_{1}^{+ \infty} f ( x ) d x\]By the linearity of the integral, and in particular its additivity over adjacent intervals, we can write:
\[\int_{1}^{k} f ( x ) d x = \sum_{n = 1}^{k - 1} \int_{n}^{n + 1} f ( x ) d x\]This holds because the definite integral over $[ 1 , k ]$ can be decomposed into a sum of integrals over the unit-length subintervals $[ n , n + 1 ]$, which are disjoint and consecutive. Since $f$ is assumed to be decreasing, we obtain the following inequality for all $x \in [ n , n + 1 ]$:
\[f ( n + 1 ) \leq f ( x ) \leq f ( n )\]By applying the inequality within the integral, we obtain:
\[\int_{n}^{n + 1} f ( n + 1 ) d x \leq \int_{n}^{n + 1} f ( x ) d x \leq \int_{n}^{n + 1} f ( n ) d x\]By the properties of definite integrals, the first and third terms represent integrals of constant functions. Therefore, the constants can be factored out of the integrals, giving:
\[f ( n + 1 ) \leq \int_{n}^{n + 1} f ( x ) , d x \leq f ( n )\]Now summing these inequalities from $n = 1$ to $k - 1$:
\[\sum_{n = 1}^{k - 1} f ( n + 1 ) \leq \sum_{n = 1}^{k - 1} \int_{n}^{n + 1} f ( x ) d x \leq \sum_{n = 1}^{k - 1} f ( n )\]By taking the limit as $k \rightarrow \infty$, we obtain:
\[\sum_{n = 2}^{\infty} f ( n ) \leq \int_{1}^{\infty} f ( x ) d x \leq \sum_{n = 1}^{\infty} f ( n )\]which shows that the improper integral is bounded between two versions of the series differing only by the first term $f ( 1 )$. Because the integral lies between two versions of the series that differ only by the first term, if the integral converges, so does the series, and if the integral diverges, the series diverges as well.
Example
Determine whether the following series converges or diverges using the integral test:
\[\sum_{n = 2}^{\infty} \frac{1}{n log n}\]First, consider the associated function:
\[f ( x ) = \frac{1}{x log x}\]defined on the interval $x \geq 2$. This function is positive, continuous, and decreasing on $[ 2 , + \infty ) ,$ so the conditions for using the integral test are satisfied.
Now we evaluate the improper integral:
\[\int_{2}^{\infty} \frac{1}{x log x} d x\]To compute this, use the substitution $u = log x$, which implies $d u = \frac{1}{x} d x$. The integral becomes:
\[\int_{log 2}^{\infty} \frac{1}{u} d u = \underset{t \rightarrow \infty}{lim} \int_{log 2}^{t} \frac{1}{u} d u = \underset{t \rightarrow \infty}{lim} [ log u ]_{log 2}^{t} = \infty\]Since the integral diverges, the integral test tells us that the series also diverges.
Glossary
- Infinite Series: an expression of the form $\sum_{n = 1}^{\infty} a_{n} = a_{1} + a_{2} + a_{3} + \ldots$, where $a_{n}$ are the terms of the series.
- Convergence of a series: an infinite series converges if its sequence of partial sums approaches a finite limit.
- Divergence of a series: an infinite series diverges if its sequence of partial sums does not approach a finite limit (either it goes to infinity or oscillates).
- Improper integral: a definite integral where at least one of the limits of integration is infinite, or the integrand has a discontinuity within the interval of integration.
- Decreasing function: a function $f ( x )$ is decreasing on an interval if for any $x_{1} < x_{2}$ in that interval, $f ( x_{1} ) \geq f ( x_{2} ) .$
- Continuous function: a function whose graph can be drawn without lifting the pen, meaning there are no abrupt jumps or breaks.
- Partial sum $s_{k}$: the sum of the first $k$ terms of an infinite series, denoted as $s_{k} = \sum_{n = 1}^{k} a_{n}$.
- Limit of a sequence: the value that the terms of a sequence approach as the index tends to infinity.
- Additivity of integrals: the property that the definite integral over a compound interval is the sum of the definite integrals over the disjoint subintervals that make up the compound interval.