I am trying to understand a certain function on the complex plane, and in particular the contours of steepest descent associated to the saddles of such function. Using ContourPlot I can easily draw the path of steepest descent and ascent. Is there a way to tell Mathematica to only draw in ContourPlot the path of steepest descent?
Below you can see a working example:
f[z_] := z^3 + 2 z + 4
sa = z /. Solve[f'[z] == 0, z];
Show[ContourPlot[Re[f[x + I y]], {x, -3, 3}, {y, -3, 3},
Contours -> {0}, PlotRange -> All],
ContourPlot[Im[f[x + I y]] == Im[f[sa[[1]]]], {x, -3, 3}, {y, -3, 3},
Contours -> {0}, PlotRange -> All],
ListPlot[Transpose[{Re[sa], Im[sa]}],
PlotStyle -> {PointSize[Large], Red}]]
Clear[f, sa]
Only one of the paths shown is of steepest descent, and I would like M to just keep that particular case.
StreamPlot[ -D[ReIm[f[x + I*y]] // ComplexExpand, {{x, y}}] // Evaluate, {x, -3, 3}, {y, -3, 3}]
$\endgroup$