Massey has an excellent tutorial on rearranging equations.

Massey Equations Tutorial