Derive the Euler-Lagrange equation for the integral
I[y]=∫x0x1f(y,y′,y′′,x)dx
when y(x) and y′(x) take given values at the fixed endpoints.
Show that the only function y(x) with y(0)=1,y′(0)=2 and y(x)→0 as x→∞ for which the integral
I[y]=∫0∞(y2+(y′)2+(y′+y′′)2)dx
is stationary is (3x+1)e−x.