I'm new to Mathematica, and I'm writing a math research paper and I need to generate a phase portrait of the following system of polar equations
$\qquad \dot r=r(r-1)(r-2)$
$\qquad \dot \theta=1$
where $r$ and $\theta$ are the polar radial and angular coordinates, respectively, both are functions of $t$, and the dots mean derivative with respect to $t$.
All the equations I've used up until now have been in Cartesian coordinates; as an example, for the system
$\qquad \dot x = y$
$\qquad \dot y = -x + y(1-x^2)$
I used the following Mathematica commands to generate a phase portrait (with one particular solution):
p1 =
StreamPlot[{y, -x + -y*x^2 + y}, {x, -4, 4}, {y, -4, 4},
Axes -> True, StreamStyle -> Gray, ImageSize -> Large]
deq1 = x'[t] == y[t];
deq2 = y'[t] == -x[t] + y[t] (1 - x[t]^2);
solution1 =
NDSolve[{deq1, deq2, x[0] == .0001, y[0] == .0001}, {x[t], y[t]}, {t, 0, 100}]
p2 =
ParametricPlot[Evaluate[{x[t], y[t]} /. solution1], {t, 0, 100},
PlotStyle -> Thickness[0.005]]
Show[p1, p2, ImageSize -> Large]
Also, I found, through a google search, one way to generate a polar stream plot:
field1 = {r (r - 1) (r - 2), 1}
StreamPlot[
Evaluate @ TransformedField["Polar" -> "Cartesian", field1, {r, θ} -> {x, y}],
{x, -3, 3}, {y, -3, 3},
Axes -> True, StreamStyle -> Gray, ImageSize -> Large]
However, I do not know how to plot particular solutions for this system to overlay onto the stream plot like I did with the Cartesian systems. Does anyone know how to do this in Mathematica?