(Book: 5.9)
The energy equation in words: the change of energy of a material region is the net work done on the region and heat added to the region.
Lagrangian formulation:
Note: we will account for gravity as an external force doing work, rather than using gravitational potential energy.