Let $y \in C^([0,\pi])$ satisfying $y(0)=y(\pi)=0$ and $\int_0 ^\pi y^2(x)dx=1$ extremizes the functional
$J(y)=\int_0^\pi (y'^2(x))dx$ then
$y(x)=\frac{\sqrt{2}}{\pi} \sin x$
$y(x)=-\frac{\sqrt{2}}{\pi} \sin x$
$y(x)=\frac{\sqrt{2}}{\pi} \cos x$
$y(x)=-\frac{\sqrt{2}}{\pi} \cos x$
its answer is (1)(2)
$y(x)=\frac{\sqrt{2}}{\pi}$ and $y(x)=-\frac{\sqrt{2}}{\pi} \cos x$ does not extremizes the functional as both does not satisfy the $y(0)=y(\pi)=0$.
$F(x,y,y')=(y'^2(x))$ applying Euler's equation
$\frac{\partial F}{\partial y'}= C$
solving this i am not getting option 1 and 2 .
Please help, Thanks very much in advance.