Refactor utility functions.

Remove function_from_partials from potential_energy function. This
allows for independent use, as is desired when calculating dissipation
functions.
Add Exercise 9.13.
Add Exercise 9.14