You now have the form of Why not sub. into the integral and integrate?
Find the extremal for
Now I have done most of the question as follows
which cancels down to
then when you solve the ODE you get
then subbing in the first bound of we get
I believe I have done this part correctly
Now, I have got no clue how to do the other bound. Can somebody please show me how to do it