THE VARIATIONAL METHOD IN HYDRODYNAMICS