1

Let $$f(x)= \begin{cases} \sin(1/x) & x \ne 0 \\ 0 & x = 0 \end{cases} $$ Prove that for any $\epsilon>0 $ there exists a polynomial $p(x)$ such that $$\int_0^1 |f(x) - p(x)| \, dx \lt \epsilon.$$

lola
  • 13

1 Answers1

3

Hint: Everything happens on $[0,1]$ and the function $f$ is continuous except at $0$ hence one can consider the functions $f_n:[0,1]\to\mathbb R$ defined by $f_n(x)=f(x)$ if $x\geqslant1/n$ and $f_n(x)=f(1/n)$ if $x\leqslant1/n$. These are continuous hence Weierstrass gives some polynomials $p_n$ such that $\|f_n-p_n\|_\infty\leqslant1/n$.

Can you estimate $\int\limits_0^1|f-p_n|$? You might want to decompose the integral into $\int\limits_0^{1/n}+\int\limits_{1/n}^1$ and to bound each part separately...

Did
  • 279,727
  • This is a very nice answer, as usual. I especially like the fact that it seems not to use any unnecessary tools, so it should be useful to the broadest possible audience. – Pete L. Clark Dec 09 '13 at 00:30