My function y(x) is $C^{1}$ in $[0,\pi]$ , and $y(0)=y(\pi)=0 $.
I want to show that $\int_{0}^{\pi} |y(x)|^{2} dx \le \int_{0}^{\pi} |y'(x)|^{2} dx $
$Hint:\,Extend \,\, y(x)\, to\, an\, odd\,function $
I used the hint, and hence I wrote $y(x)=\sum_{1}^{\infty} b_{n}sin(nx)$ for $x\in[0,\pi]$.
There is a theorem in my book stating that $\frac{2}{\pi}\int_{0}^\pi|y(x)|^{2} dx = \sum_{1}^\infty |b_{n}|^{2}$. Could I say that the left hand side of the inequality equals to this?
And for the right side I can just differentiate $y(x)$ ? So then $y'(x)=\sum_{1}^\infty b_{n}ncos(nx) $
Can I then say that $\int_{0}^{\pi} |y'(x)|^{2} dx = \sum_{1}^\infty n^{2}|b_{n}|^{2}$.
And hence the inequality should hold, or am I thinking wrong?