Follow the standard algorithm: Write down the Euler-Lagrange equation. Obtain the solution y(z) of the Euler-Lagrange equation with the given boundary conditions. Introduce deviation n(a) from the obtained solution y(z) and consider the difference J[y(x) + n(x)] - J[y(z)] in order to see if the function y(z) is a minimum, maximum, or not an extremum of the functional. For example, if J[y(z) + n(x)] = J[y(z)] = 0 for all nonzero n(r), then y(z) is the absolute minimum of the functional.
Hint: solutions of differential equations of the form Az^2y" + Bry' + Cy = 0 may be sought in the form of power-law functions y(z) = z^n (you have to identify possible powers for particular equation).
Find all the extrema (local minima and maxima) of the functional
J[y] = (cy + y)^2 dz; y(1) = 1, y(2) = 2
Hint: once you've found the solution of the Euler-Lagrange equation with the boundary conditions, remember to check, like in the previous problem, if this solution is a minimum, a maximum, or not an extremum.