Energy and Variational Methods in Applied Mechanics