Let be $f:[a,b] \rightarrow \Bbb{R} $ continous with $\int_a ^b f(x)p(x)dx = 0$, $\forall p(x)$ polynomial.
Using Stone-Weiestrass theorem, show that:
$f(x)=0,\ \forall x\in [a,b]$.
First, I'll asume this refers to
Theorem (Weiestrass Aproximation)
$\forall f \in \mathscr C[a,b], \exists$ $\{p_n\}_\Bbb N$ shuch that
$\{p_n\}_\Bbb N$ converges to $f(x), \forall x\in [a,b]$
but still, I can't find a way to prove it.
Easy facts: 1. If $g_n \to g$ uniformly on $[a,b]$ and $f$ is bounded on $[a,b],$ then $g_nf\to gf$ uniformly on $[a,b].$ 2. If $f_n$ is a sequence of Riemann integrable functions on $[a,b],$ and $f_n \to f$ uniformly on $[a,b],$ then $f$ is Riemann integrable on $[a,b]$ and $\int_a^b f_n \to \int_a^b f.$
In our problem, Weierstrass shows (we don't need Stone here, with all due respect), there is a sequence of polynomials $p_n$ such that $p_n\to f$ uniformly on $[a,b].$ Thus by the above, $p_nf \to f^2$ uniformly on $[a,b].$ Therefore $\int_a^b fp_n\to \int_a^b f^2.$ Since each $\int_a^b fp_n = 0,$ we have $\int_a^bf^2 = 0.$ The continuity of $f$ then implies $f\equiv 0.$