# Weierstrass M-test

In mathematics, the Weierstrass M-test is a test for determining whether an infinite series of functions converges uniformly and absolutely. It applies to series whose terms are bounded functions with real or complex values, and is analogous to the comparison test for determining the convergence of series of real or complex numbers. It is named after the German mathematician Karl Weierstrass (1815-1897).

## Statement

Weierstrass M-test. Suppose that (fn) is a sequence of real- or complex-valued functions defined on a set A, and that there is a sequence of non-negative numbers (Mn) satisfying the conditions

• ${\displaystyle |f_{n}(x)|\leq M_{n}}$  for all ${\displaystyle n\geq 1}$  and all ${\displaystyle x\in A}$ , and
• ${\displaystyle \sum _{n=1}^{\infty }M_{n}}$  converges.

Then the series

${\displaystyle \sum _{n=1}^{\infty }f_{n}(x)}$

converges absolutely and uniformly on A.

The result is often used in combination with the uniform limit theorem. Together they say that if, in addition to the above conditions, the set A is a topological space and the functions fn are continuous on A, then the series converges to a continuous function.

## Proof

Consider the sequence of functions

${\displaystyle S_{n}(x)=\sum _{k=1}^{n}f_{k}(x).}$

Since the series ${\displaystyle \sum _{n=1}^{\infty }M_{n}}$  converges and Mn ≥ 0 for every n, then by the Cauchy criterion,

${\displaystyle \forall \varepsilon >0:\exists N:\forall m>n>N:\sum _{k=n+1}^{m}M_{k}<\varepsilon .}$

For the chosen N,

${\displaystyle \forall x\in A:\forall m>n>N}$
${\displaystyle \left|S_{m}(x)-S_{n}(x)\right|=\left|\sum _{k=n+1}^{m}f_{k}(x)\right|{\overset {(1)}{\leq }}\sum _{k=n+1}^{m}|f_{k}(x)|\leq \sum _{k=n+1}^{m}M_{k}<\varepsilon .}$

(Inequality (1) follows from the triangle inequality.)

The sequence Sn(x) is thus a Cauchy sequence in R or C, and by completeness, it converges to some number S(x) that depends on x. For n > N we can write

${\displaystyle \left|S(x)-S_{n}(x)\right|=\left|\lim _{m\to \infty }S_{m}(x)-S_{n}(x)\right|=\lim _{m\to \infty }\left|S_{m}(x)-S_{n}(x)\right|\leq \varepsilon .}$

Since N does not depend on x, this means that the sequence Sn of partial sums converges uniformly to the function S. Hence, by definition, the series ${\displaystyle \sum _{k=1}^{\infty }f_{k}(x)}$  converges uniformly.

Analogously, one can prove that ${\displaystyle \sum _{k=1}^{\infty }|f_{k}(x)|}$  converges uniformly.

## Generalization

A more general version of the Weierstrass M-test holds if the common codomain of the functions (fn) is a Banach space, in which case the premise

${\displaystyle |f_{n}(x)|\leq M_{n}}$

is to be replaced by

${\displaystyle \|f_{n}(x)\|\leq M_{n}}$ ,

where ${\displaystyle \|\cdot \|}$  is the norm on the Banach space. For an example of the use of this test on a Banach space, see the article Fréchet derivative.