Studies of stability of fluid flowa using variational methods