In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the comparison test, sometimes called the direct comparison test to distinguish it from similar related tests (especially the
limit comparison test), provides a way of deducing whether an
infinite series
In mathematics, a series is, roughly speaking, an addition of infinitely many terms, one after the other. The study of series is a major part of calculus and its generalization, mathematical analysis. Series are used in most areas of mathemati ...
or an
improper integral
In mathematical analysis, an improper integral is an extension of the notion of a definite integral to cases that violate the usual assumptions for that kind of integral. In the context of Riemann integrals (or, equivalently, Darboux integral ...
converges or diverges by comparing the series or integral to one whose convergence properties are known.
For series
In
calculus
Calculus is the mathematics, mathematical study of continuous change, in the same way that geometry is the study of shape, and algebra is the study of generalizations of arithmetic operations.
Originally called infinitesimal calculus or "the ...
, the comparison test for series typically consists of a pair of statements about infinite series with non-negative (
real-valued) terms:
* If the infinite series
converges and
for all sufficiently large ''n'' (that is, for all
for some fixed value ''N''), then the infinite series
also converges.
* If the infinite series
diverges and
for all sufficiently large ''n'', then the infinite series
also diverges.
Note that the series having larger terms is sometimes said to ''dominate'' (or ''eventually dominate'') the series with smaller terms.
Alternatively, the test may be stated in terms of
absolute convergence, in which case it also applies to series with
complex
Complex commonly refers to:
* Complexity, the behaviour of a system whose components interact in multiple ways so possible interactions are difficult to describe
** Complex system, a system composed of many components which may interact with each ...
terms:
* If the infinite series
is absolutely convergent and
for all sufficiently large ''n'', then the infinite series
is also absolutely convergent.
* If the infinite series
is not absolutely convergent and
for all sufficiently large ''n'', then the infinite series
is also not absolutely convergent.
Note that in this last statement, the series
could still be
conditionally convergent; for real-valued series, this could happen if the ''a
n'' are not all nonnegative.
The second pair of statements are equivalent to the first in the case of real-valued series because
converges absolutely if and only if
, a series with nonnegative terms, converges.
Proof
The proofs of all the statements given above are similar. Here is a proof of the third statement.
Let
and
be infinite series such that
converges absolutely (thus
converges), and
without loss of generality assume that
for all positive integers ''n''. Consider the
partial sum
In mathematics, a series is, roughly speaking, an addition of infinitely many terms, one after the other. The study of series is a major part of calculus and its generalization, mathematical analysis. Series are used in most areas of mathemati ...
s
:
Since
converges absolutely,
for some real number ''T''. For all ''n'',
:
is a nondecreasing sequence and
is nonincreasing.
Given
then both
belong to the interval