Let $f$ is continuous function on $[0,1]$ and $\epsilon>0$. Show that there is a polynomial $p$ such that $p(0)=f(0)$, $p(1)=f(1)$, $f(x)-p(x)|<\epsilon, \forall x\in(0,1)$.
Consider $f(x)-p(x)=x(x-1)q(x)$. Clearly it satisfies the given condition. Then $|f(x)-p(x)|=|x(x-1)q(x)|.$
Please help me to complete the proof.