Appendix II.  Details of the equations of motion