# Dirichlet's test

Part of a series of articles about :
Calculus :
$\int _{a}^{b}f'(t)\,dt=f(b)-f(a)$ :
Fundamental theorem
Limits
Continuity
Rolle's theorem
Mean value theorem
Inverse function theorem :
Differential
Definitions
Derivative (generalizations)
Differential
infinitesimal
of a function
total
Concepts
Differentiation notation
Second derivative
Implicit differentiation
Logarithmic differentiation
Related rates
Taylor's theorem
Rules and identities
Sum
Product
Chain
Power
Quotient
L'Hôpital's rule
Inverse
General Leibniz
Faà di Bruno's formula
Reynolds :
Integral
Lists of integrals
Integral transform
Leibniz integral rule
Definitions
Antiderivative
Integral (improper)
Riemann integral
Lebesgue integration
Contour integration
Integral of inverse functions
Integration by
Parts
Discs
Cylindrical shells
Substitution (trigonometric, tangent half-angle, Euler)
Euler's formula
Partial fractions (Heaviside's method)
Changing order
Reduction formulae
Differentiating under the integral sign
Risch algorithm :
Series
Geometric (arithmetico-geometric)
Harmonic
Alternating
Power
Binomial
Taylor
Convergence tests
Summand limit (term test)
Ratio
Root
Integral
Direct comparison
Limit comparison
Alternating series
Cauchy condensation
Dirichlet
Abel :
Vector
Gradient
Divergence
Curl
Laplacian
Directional derivative
Identities
Theorems
Gradient
Green's
Stokes'
Divergence
generalized Stokes
Helmholtz decomposition :
Multivariable
Formalisms
Matrix
Tensor
Exterior
Geometric
Definitions
Partial derivative
Multiple integral
Line integral
Surface integral
Volume integral
Jacobian
Hessian :
Advanced
Calculus on Euclidean space
Generalized functions
Limit of distributions :
Specialized
Fractional
Malliavin
Stochastic
Variations :
Miscellanea
Precalculus
History
Glossary
List of topics
Integration Bee
Mathematical analysis
Nonstandard analysis :
vte :
In mathematics, Dirichlet's test is a method of testing for the convergence of a series that is especially useful for proving conditional convergence. It is named after its author Peter Gustav Lejeune Dirichlet, and was published posthumously in the Journal de Mathématiques Pures et Appliquées in 1862.

## Statement

The test states that if $(a_{n})$ is a monotonic sequence of real numbers with lim$_{n→∞}$a$_n$=0{\textstyle \lim _{n\to \infty }a_{n}=0} and $(b_{n})$ is a sequence of real numbers or complex numbers with bounded partial sums, then the series
    $\sum _{n=1}^{\infty }a_{n}b_{n}$
converges.

## Proof

Let S$_n$=∑$_{k=1}$$^n$a$_k$b$_k${\textstyle S_{n}=\sum _{k=1}^{n}a_{k}b_{k}} and B$_n$=∑$_{k=1}$$^n$b$_k${\textstyle B_{n}=\sum _{k=1}^{n}b_{k}}.
From summation by parts, we have that S$_n$=a$_n$B$_n$+∑$_{k=1}$$^{n−1}$B$_k$(a$_k$−a$_{k+1}$){\textstyle S_{n}=a_{n}B_{n}+\sum _{k=1}^{n-1}B_{k}(a_{k}-a_{k+1})}. Since the magnitudes of the partial sums $B_{n}$ are bounded by some M and $a_{n}\to 0$ as $n\to \infty$, the first of these terms approaches zero: $|a_{n}B_{n}|\leq |a_{n}M|\to 0$ as $n\to \infty$.
Furthermore, for each k, $|B_{k}(a_{k}-a_{k+1})|\leq M|a_{k}-a_{k+1}|$.
Since $(a_{n})$ is monotone, it is either decreasing or increasing:
* If $(a_{n})$ is decreasing, $\sum _{k=1}^{n}M|a_{k}-a_{k+1}|=\sum _{k=1}^{n}M(a_{k}-a_{k+1})=M\sum _{k=1}^{n}(a_{k}-a_{k+1}),$ which is a telescoping sum that equals $M(a_{1}-a_{n+1})$ and therefore approaches $Ma_{1}$ as $n\to \infty$. Thus, ∑$_{k=1}$$^∞$M(a$_k$−a$_{k+1}$){\textstyle \sum _{k=1}^{\infty }M(a_{k}-a_{k+1})} converges.
* If $(a_{n})$ is increasing, $\sum _{k=1}^{n}M|a_{k}-a_{k+1}|=-\sum _{k=1}^{n}M(a_{k}-a_{k+1})=-M\sum _{k=1}^{n}(a_{k}-a_{k+1}),$ which is again a telescoping sum that equals $-M(a_{1}-a_{n+1})$ and therefore approaches $-Ma_{1}$ as $n\to \infty$. Thus, again, ∑$_{k=1}$$^∞$M(a$_k$−a$_{k+1}$){\textstyle \sum _{k=1}^{\infty }M(a_{k}-a_{k+1})} converges.
So, the series ∑$_{k=1}$$^∞$B$_k$(a$_k$−a$_{k+1}$){\textstyle \sum _{k=1}^{\infty }B_{k}(a_{k}-a_{k+1})} converges by the direct comparison test to ∑$_{k=1}$$^∞$M(a$_k$−a$_{k+1}$){\textstyle \sum _{k=1}^{\infty }M(a_{k}-a_{k+1})}. Hence $S_{n}$ converges.

## Applications

A particular case of Dirichlet's test is the more commonly used alternating series test for the case $b_{n}=(-1)^{n}\Longrightarrow \left|\sum _{n=1}^{N}b_{n}\right|\leq 1.$
Another corollary is that ∑$_{n=1}$$^∞$a$_n$sin⁡n{\textstyle \sum _{n=1}^{\infty }a_{n}\sin n} converges whenever $(a_{n})$ is a decreasing sequence that tends to zero. To see that $\sum _{n=1}^{N}\sin n$ is bounded, we can use the summation formula $\sum _{n=1}^{N}\sin n=\sum _{n=1}^{N}{\frac {e^{in}-e^{-in}}{2i}}={\frac {\sum _{n=1}^{N}(e^{i})^{n}-\sum _{n=1}^{N}(e^{-i})^{n}}{2i}}={\frac {\sin 1+\sin N-\sin(N+1)}{2-2\cos 1}}.$

## Improper integrals

An analogous statement for convergence of improper integrals is proven using integration by parts. If the integral of a function f is uniformly bounded over all intervals, and g is a non-negative monotonically decreasing function, then the integral of fg is a convergent improper integral.