Let $\phi$ be a function and $\phi \in C^{\infty}(\mathbb{R}_{+},\mathbb{R})$ with compact support and $\mbox{supp }{\phi} \subset [0, \infty)$.
I want to prove that: $$\phi^{2}(0) \leq \|\phi\|^2_{L^{2}}+\|\phi'\|^{2}_{L^{2}}.$$
Someone give an indication that I should begin with:
$$\phi(x)-\phi(0)=\int_{0}^{x}{\phi'(t)}\mbox{dt}$$ and then to prove that:
$$\phi^{2}(0) \leq \int_{0}^{\infty}{|2\phi(x)\phi'(x)|dx} \mbox{ . }$$
Thanks :)