I have a problem relating to the extremal function for a surface of revolution.
The Euler-Lagrange equation is
Surface area of revolution =
So
 = {2\pi y \sqrt{1+(y')^2}}dx)
[eqn. (1)] is a function of y and y' only and so the Euler-Lagrange equation is

because x is absent from F.
Mr F says: This is wrong. It should be
where C is a constant. This is a first integral of the Euler-Lagrange equation.
But in a similar problem
= (y')^2+yy'+y^2)
[eqn. (2)] and the E-L equation is stated as
- {\partial F \over \partial y}=0)
because x is not absent from F....
why is eqn. (1) independent of x but eqn. (2) isn't !?