See my paper on this topic online in the Proceedings of AMATYC 2010:
http://www.amatyc.org/Events/conferences/2010Boston/proceedings.html
It includes two examples of this type of problem along with steps to follow to visually verify the solutions using CalcPlot3D.