You can
put this solution on YOUR website!The equations linking 2d-polar and 2d-cartesian are (learn these!)

and
Substituting these into your equation of a line gives:
polar equations are normally written as
=)
so by factoring an

and dividing, you should get:
Of course, this isn't valid when

you should think about when this happens, and what it means.
Hope that helps,
Kev