I trying to make a general rectangular equation in (x,y) into a polar equation in (r,theta). ReplaceAll[] gets the first part of the job done (i.e. replacing X and Y.
But I cannot figure out how to make Mathematica simplify the result. I have tried the following so far:
Simplify[]
FullSimplify[]
ToPolarCoordinates[]
TrigReduce[]
Factor[]
Collect[]
I need an equation like r=[yada][yada] that I want to feed to PolarPlot[]
.
The sample I have been testing on looks like this:
y=3x+2 ===> r=2/(Sin[theta]-3Cos[theta])
This works:
ReplaceAll[
y == 3 x + 2 , {x :> r Cos[\[Theta]], y :> r Sin[\[Theta]]}]
which emits:
r Sin[\[Theta]] == 2 + 3 r Cos[\[Theta]]
I cannot figure out how to automatically perform the remaining simplification.
Any/all help is greatly appreciated.
Regards..