proof of Weierstrass approximation theorem in R^n
To show that the Weierstrass Approximaton Theorem holds in, we will use induction on .
For the sake of simplicity, consider first the case of the cubicalregion , . Suppose that is acontinuous, real valued function on this region. Let be anarbitrary positive constant.
Since a continuous functions on compact regions are uniformlycontinuous
, is uniformly continuous. Hence, there exists aninteger such that whenever and both and lie in the cubical region.
Define as follows:
Consider the function defined as follows:
We shall now show that whenever lies in thecubical region. By way that was defined, only two of the termsin the sum defining will differ from zero for anyparticular value of , and hence
so
Next, we will use the Weierstrass approximation theorem in dimensions
and in one dimesnsion to approximate by apolynomial
. Since is continuous and the cubical region iscompact, must be bounded
on this region. Let be an upperbound for the absolute value
of on the cubical region. Using theWeierstrass approximation theorem in one dimension, we conclude thatthere exists a polynoial such that for all in the region. Using theWeierstrass approximation theorem in dimensions, we concludethat there exist polynomials , such that . Then one has the following inequality
:
Define
As a finite sum of products of polynomials, this is a polynomial.From the above inequality, we conclude that , hence .
It is a simple matter of rescaling variables to conclude theWeirestrass approximation theorem for arbitrary parallelopipeds. Anycompact subset of can be embedded in some parallelopedand any continuous function on the compact subset can be extended to acontinuous function on the parallelopiped. By approximating thisextended function, we conclude the Weierstrass approximation theoremfor arbitrary compact subsets of .