Hi all, I got set this question as part of my calculus of variations homework, but the lecturer has told me that it's not actually a calculus of variations problem (just a calculus problem).

Find the minimum of the integral:

I'm not sure whether I should do something involving Leibniz's rule, or whether I should try integrating, then differentiating twice.

So far I got:

,

since

Any hints?