Variational methods (physics)