Stone–Weierstrass theorem

In mathematical analysis, the Weierstrass approximation theorem states that every continuous function defined on a closed interval [a, b] can be uniformly approximated as closely as desired by a polynomial function. Because polynomials are among the simplest functions, and because computers can directly evaluate polynomials, this theorem has both practical and theoretical relevance, especially in polynomial interpolation. The original version of this result was established by Karl Weierstrass in 1885 using the Weierstrass transform.

Marshall H. Stone considerably generalized the theorem (Stone 1937) and simplified the proof (Stone 1948). His result is known as the Stone–Weierstrass theorem. The Stone–Weierstrass theorem generalizes the Weierstrass approximation theorem in two directions: instead of the real interval [a, b], an arbitrary compact Hausdorff space X is considered, and instead of the algebra of polynomial functions, a variety of other families of continuous functions on are shown to suffice, as is detailed below. The Stone–Weierstrass theorem is a vital result in the study of the algebra of continuous functions on a compact Hausdorff space.

Further, there is a generalization of the Stone–Weierstrass theorem to noncompact Tychonoff spaces, namely, any continuous function on a Tychonoff space is approximated uniformly on compact sets by algebras of the type appearing in the Stone–Weierstrass theorem and described below.

A different generalization of Weierstrass' original theorem is Mergelyan's theorem, which generalizes it to functions defined on certain subsets of the complex plane.

Weierstrass approximation theoremEdit

The statement of the approximation theorem as originally discovered by Weierstrass is as follows:

Weierstrass Approximation Theorem. Suppose f is a continuous real-valued function defined on the real interval [a, b]. For every ε > 0, there exists a polynomial p such that for all x in [a, b], we have | f (x) − p(x)| < ε, or equivalently, the supremum norm || f  − p|| < ε.

A constructive proof of this theorem using Bernstein polynomials is outlined on that page.


As a consequence of the Weierstrass approximation theorem, one can show that the space C[a, b] is separable: the polynomial functions are dense, and each polynomial function can be uniformly approximated by one with rational coefficients; there are only countably many polynomials with rational coefficients. Since C[a, b] is metrizable and separable it follows that C[a, b] has cardinality at most 20. (Remark: This cardinality result also follows from the fact that a continuous function on the reals is uniquely determined by its restriction to the rationals.)

Stone–Weierstrass theorem, real versionEdit

The set C[a, b] of continuous real-valued functions on [a, b], together with the supremum norm || f || = supaxb | f (x)|, is a Banach algebra, (that is, an associative algebra and a Banach space such that || fg|| ≤ || f ||·||g|| for all f, g). The set of all polynomial functions forms a subalgebra of C[a, b] (that is, a vector subspace of C[a, b] that is closed under multiplication of functions), and the content of the Weierstrass approximation theorem is that this subalgebra is dense in C[a, b].

Stone starts with an arbitrary compact Hausdorff space X and considers the algebra C(X, R) of real-valued continuous functions on X, with the topology of uniform convergence. He wants to find subalgebras of C(X, R) which are dense. It turns out that the crucial property that a subalgebra must satisfy is that it separates points: a set A of functions defined on X is said to separate points if, for every two different points x and y in X there exists a function p in A with p(x) ≠ p(y). Now we may state:

Stone–Weierstrass Theorem (real numbers). Suppose X is a compact Hausdorff space and A is a subalgebra of C(X, R) which contains a non-zero constant function. Then A is dense in C(X, R) if and only if it separates points.

This implies Weierstrass' original statement since the polynomials on [a, b] form a subalgebra of C[a, b] which contains the constants and separates points.

Locally compact versionEdit

A version of the Stone–Weierstrass theorem is also true when X is only locally compact. Let C0(X, R) be the space of real-valued continuous functions on X which vanish at infinity; that is, a continuous function f is in C0(X, R) if, for every ε > 0, there exists a compact set KX such that  | f |  < ε on X \ K. Again, C0(X, R) is a Banach algebra with the supremum norm. A subalgebra A of C0(X, R) is said to vanish nowhere if not all of the elements of A simultaneously vanish at a point; that is, for every x in X, there is some f in A such that f (x) ≠ 0. The theorem generalizes as follows:

Stone–Weierstrass Theorem (locally compact spaces). Suppose X is a locally compact Hausdorff space and A is a subalgebra of C0(X, R). Then A is dense in C0(X, R) (given the topology of uniform convergence) if and only if it separates points and vanishes nowhere.

This version clearly implies the previous version in the case when X is compact, since in that case C0(X, R) = C(X, R). There are also more general versions of the Stone–Weierstrass that weaken the assumption of local compactness.[1]


The Stone–Weierstrass theorem can be used to prove the following two statements which go beyond Weierstrass's result.

  • If f is a continuous real-valued function defined on the set [a, b] × [c, d] and ε > 0, then there exists a polynomial function p in two variables such that | f (x, y) − p(x, y) | < ε for all x in [a, b] and y in [c, d].[citation needed]
  • If X and Y are two compact Hausdorff spaces and f : X × YR is a continuous function, then for every ε > 0 there exist n > 0 and continuous functions f1, ...,  fn on X and continuous functions g1, ..., gn on Y such that || f − Σ fi gi || < ε.[citation needed]

The theorem has many other applications to analysis, including:

Stone–Weierstrass theorem, complex versionEdit

Slightly more general is the following theorem, where we consider the algebra   of complex-valued continuous functions on the compact space  , again with the topology of uniform convergence. This is a C*-algebra with the *-operation given by pointwise complex conjugation.

Stone–Weierstrass Theorem (complex numbers). Let   be a compact Hausdorff space and let   be a separating subset of  . Then the complex unital *-algebra generated by   is dense in  .

The complex unital *-algebra generated by   consists of all those functions that can be obtained from the elements of   by throwing in the constant function 1 and adding them, multiplying them, conjugating them, or multiplying them with complex scalars, and repeating finitely many times.

This theorem implies the real version, because if a net of complex-valued functions uniformly approximates a given function,  , then the real parts of those functions uniformly approximate the real part of that function,  , and because for real subsets,   taking the real parts of the generated complex unital (selfadjoint) algebra agrees with the generated real unital algebra generated.

As in the real case, an analog of this theorem is true for locally compact Hausdorff spaces.

Stone–Weierstrass theorem, quaternion versionEdit

Following John C.Holladay (1957) : consider the algebra C(X, H) of quaternion-valued continuous functions on the compact space X, again with the topology of uniform convergence. If a quaternion q is written in the form q = a + ib;+ jc + kd then the scalar part a is the real number (q − iqi − jqj − kqk)/4. Likewise being the scalar part of −qi, −qj and −qk : b,c and d are respectively the real numbers (−qi − iq + jqk − kqj)/4, (−qj − iqk − jq + kqi)/4 and (−qk + iqj − jqk − kq)/4. Then we may state :

Stone–Weierstrass Theorem (quaternion numbers). Suppose X is a compact Hausdorff space and A is a subalgebra of C(X, H) which contains a non-zero constant function. Then A is dense in C(X, H) if and only if it separates points.

Stone–Weierstrass theorem, C*-algebra versionEdit

The space of complex-valued continuous functions on a compact Hausdorff space   i.e.   is the canonical example of a unital commutative C*-algebra  . The space X may be viewed as the space of pure states on  , with the weak-* topology. Following the above cue, a non-commutative extension of the Stone–Weierstrass theorem, which has remain unsolved, is as follows:

Conjecture. If a unital C*-algebra   has a C*-subalgebra   which separates the pure states of  , then  .

In 1960, Jim Glimm proved a weaker version of the above conjecture.

Stone–Weierstrass theorem (C*-algebras).[2] If a unital C*-algebra   has a C*-subalgebra   which separates the pure state space (i.e. the weak-* closure of the pure states) of  , then  .

Lattice versionsEdit

Let X be a compact Hausdorff space. Stone's original proof of the theorem used the idea of lattices in C(X, R). A subset L of C(X, R) is called a lattice if for any two elements f, gL, the functions max{ f, g}, min{ f, g} also belong to L. The lattice version of the Stone–Weierstrass theorem states:

Stone–Weierstrass Theorem (lattices). Suppose X is a compact Hausdorff space with at least two points and L is a lattice in C(X, R) with the property that for any two distinct elements x and y of X and any two real numbers a and b there exists an element f  ∈ L with f (x) = a and f (y) = b. Then L is dense in C(X, R).

The above versions of Stone–Weierstrass can be proven from this version once one realizes that the lattice property can also be formulated using the absolute value | f | which in turn can be approximated by polynomials in f. A variant of the theorem applies to linear subspaces of C(X, R) closed under max (Hewitt & Stromberg 1965, Theorem 7.29):

Stone–Weierstrass Theorem (max-closed). Suppose X is a compact Hausdorff space and B is a family of functions in C(X, R) such that
  1. B separates points.
  2. B contains the constant function 1.
  3. If f  ∈ B then af  ∈ B for all constants aR.
  4. If f,  gB, then f  + g, max{ f, g} ∈ B.
Then B is dense in C(X, R).

More precise information is available:

Suppose X is a compact Hausdorff space with at least two points and L is a lattice in C(X, R). The function φ ∈ C(X, R) belongs to the closure of L if and only if for each pair of distinct points x and y in X and for each ε > 0 there exists some f  ∈ L for which | f (x) − φ(x)| < ε and | f (y) − φ(y)| < ε.

Bishop's theoremEdit

Another generalization of the Stone–Weierstrass theorem is due to Errett Bishop. Bishop's theorem is as follows (Bishop 1961):

Let A be a closed subalgebra of the complex Banach algebra C(X, C) of continuous complex-valued functions on a compact Hausdorff space X, using the supremum norm. For SX we write AS = {g|S : g ∈ A}. Suppose that f  ∈ C(X, C) has the following property:
f |SAS for every maximal set SX such that all real functions of AS are constant.
Then f  ∈ A.

Glicksberg (1962) gives a short proof of Bishop's theorem using the Krein–Milman theorem in an essential way, as well as the Hahn–Banach theorem : the process of Louis de Branges (1959). See also Rudin (1973, §5.7).

Nachbin's theoremEdit

Nachbin's theorem gives an analog for Stone–Weierstrass theorem for algebras of complex valued smooth functions on a smooth manifold (Nachbin 1949). Nachbin's theorem is as follows (Llavona 1986):

Let A be a subalgebra of the algebra C(M) of smooth functions on a finite dimensional smooth manifold M. Suppose that A separates the points of M and also separates the tangent vectors of M: for each point mM and tangent vector v at the tangent space at m, there is a fA such that df(x)(v) ≠ 0. Then A is dense in C(M).

Editorial historyEdit

In 1885 it was also published an English version of the paper whose title was On the possibility of giving an analytic representation to an arbitrary function of real variable.[3][4][5][6][7] According to the mathematician Yamilet Quintana, Weierstrass "suspected that any analytic functions could be represented by power series".[7][6]

See alsoEdit

  • Müntz–Szász theorem.
  • Bernstein polynomial.
  • Runge's phenomenon shows that finding a polynomial P such that f (x) = P(x) for some finely spaced x = xn is a bad way to attempt to find a polynomial approximating f uniformly. A better approach, explained e.g. in (Rudin 1976), p. 160, eq. (51) ff., is to construct polynomials P uniformly approximating f by taking the convolution of f with a family of suitably chosen polynomial kernels.
  • Mergelyan's theorem, concerning polynomial approximations of complex functions.


  1. ^ Willard, Stephen (1970). General Topology. Addison-Wesley. p. 293. ISBN 0-486-43479-6.
  2. ^ Glimm, James (1960). "A Stone–Weierstrass Theorem for C*-algebras". Annals of Mathematics. Second Series. 72 (2): 216–244 [Theorem 1]. doi:10.2307/1970133. JSTOR 1970133.
  3. ^ Pinkus, Allan. "Weierstrass and Approximation Theory" (PDF). Journal of Approximation Theory. 107 (1): 8. ISSN 0021-9045. OCLC 4638498762. Archived (PDF) from the original on October 19, 2013. Retrieved July 3, 2021.
  4. ^ Pinkus, Allan (2004). "Density methods and results in approximation theory". Orlicz Centenary Volume. Banach Center publications. Institute of Mathematics, Polish Academy of Sciences. 64: 3. CiteSeerX ISSN 0137-6934. OCLC 200133324. Archived from the original on July 3, 2021.
  5. ^ Ciesielski, Zbigniew; Pełczyński, Aleksander; Skrzypczak, Leszek (2004). Orlicz centenary volume : proceedings of the conferences "The Wladyslaw Orlicz Centenary Conference" and Function Spaces VII : Poznan, 20-25 July 2003. Vol. I, Plenary lectures. Banach Center publications. Vol. 64. Institute of Mathematics. Polish Academy of Sciences. p. 175. OCLC 912348549.
  6. ^ a b Quintana, Yamilet; Perez D. (2008). "A survey on the Weierstrass approximation theorem". Divulgaciones Matematicas. 16 (1): 232. OCLC 810468303. Retrieved July 3, 2021. Weierstrass' perception on analytic functions was of functions that could berepresented by power series (arXiv 0611038v2).
  7. ^ a b Quintana, Yamilet (2010). "On Hilbert extensions of Weierstrass' theorem with weights". Journal of Function Spaces. Scientific Horizon. 8 (2): 202. doi:10.1155/2010/645369. ISSN 0972-6802. OCLC 7180746563. (arXiv 0611034v3). Citing: D. S. Lubinsky, Weierstrass' Theorem in the twentieth century: a selection, in Quaestiones Mathematicae18 (1995), 91–130.


Historical worksEdit

The historical publication of Weierstrass (in German language) is freely available from the digital online archive of the Berlin Brandenburgische Akademie der Wissenschaften:

  • K. Weierstrass (1885). Über die analytische Darstellbarkeit sogenannter willkürlicher Functionen einer reellen Veränderlichen. Sitzungsberichte der Königlich Preußischen Akademie der Wissenschaften zu Berlin, 1885 (II).
Erste Mitteilung (part 1) pp. 633–639, Zweite Mitteilung (part 2) pp. 789–805.

Important historical works of Stone include:

External linksEdit