Okay, I have worked this problem a few times and I end up with a solution that I don't think is correct. Any feedback would be awsome.

If possible, find the stationary point of the functional

So I use the Euler-Lagrange Equation

with

so

and

and

So now I end up with

I don't think this is correct and it would only be consistant with the boundry values if

Thanks