The mathematica solve function is a lot of fun to use.