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