We are given the functional $$J(x(t)) = \int_0^{\pi/2} [\dot x(t)^2 - x(t)^2 ]dt$$ with the fixed boundary condition $x(0)=0$ and $x(\frac{\pi}{2})=1$.
Could anyone help me prove that $x^*(t)=\sin(t)$ minimizes $J$?
By looking at the second variation of $J$, I got a negative term there, so I could not conclude whether $x^*(t)$ is a min or max. I also tried to show the convexity of $J$, and it all boiled down to showing that $J\geq0$, and I got stuck there.
Any help is appreciated!
Hint: check that if $x(0)=0$ then $$\int\limits_0^{\pi/2} (\dot x^2(t) - x^2(t) )dt=\int\limits_0^{\pi/2}(\dot x(t)-x(t)\cot(t))^2dt.$$