Weierstrass Approximation Theorem

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

The Weierstrass approximation theorem states that polynomials are dense in the set of continuous functions. More explicitly, given a positive number and a continuous real-valued function defined on , there is a polynomial such that . Here is the infinity (or supremum) norm, which in this case (because the closed unit interval is compact) can be taken to be the maximum. The proof of the theorem is based on Bernstein polynomials constructed from , .


This Demonstration provides four different functions to which the theorem is applied. Choose between the four functions and observe how the Bernstein polynomial approximates the function chosen according to the degree stated for . Then click the "difference" button and observe the graph of the absolute value of the difference between the function chosen and the corresponding Bernstein polynomial.


Contributed by: Fabián Alejandro Romero (January 2015)
Based on a program by: Michael Ford
Open content licensed under CC BY-NC-SA



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.