Hi! Can anyone help guide me through how to find the Gateaux differential and use

it to derive the associated EulerLagrange equation for the following functional? Satisfying and boundary conditions also.

Im really sorry, I was having so many problems with trying to create that in Latex, so I have attached a thumbnail showing the function needed, click it and theres a clear version of the function!

Many thanks