let $f\in C^{(1)}[a,b]$,and such that $f(a)=f(b)=0$, show that
$$\int_{a}^{b}f^2(x)dx\le (b-a)^2\int_{a}^{b}[f'(x)]^2dx\cdots\cdots (1)$$
My try: use Cauchy-Schwarz inequality
we have
$$\int_{a}^{b}[f'(x)]^2dx\int_{a}^{b}x^2dx\ge \left(\int_{a}^{b}xf'(x)dx\right)^2$$ $$\Longrightarrow \int_{a}^{b}[f'(x)]^2dx\ge\dfrac{3\left(\displaystyle\int_{a}^{b}xdf(x)\right)^2}{(b^3-a^3)}=\dfrac{3\left(\displaystyle\int_{a}^{b}f(x)dx\right)^2}{b^3-a^3}$$ so we only show that following $$\dfrac{3\left(\displaystyle\int_{a}^{b}f(x)dx\right)^2}{b^3-a^3}\ge\dfrac{\displaystyle\int_{a}^{b}f^2(x)dx}{(b-a)^2}$$ maybe this is not true. so How prove it by (1)
Thank you
Let $M=|f(x_0)|=\|f\|_{C[a,b]}.$ By Cauchy-Schwarz $$(b-a)^2\int_a^bf'^2(x)dx\ge (b-a)\int_{a}^{x_0}1dx\int_a^{x_0}f'^2(x)dx\ge(b-a)\left(\int_a^{x_0}f'(x)dx\right)^2$$$$=M^2(b-a)\ge \int_a^bf^2(x)dx$$ where the last inequality follows from the fact that $f^2(x)\le M^2.$ P.S. It is enough to request $f$ to vanish at one endpoint only.