I have a differential equation
$\frac{dx}{dt} = \sqrt{1+x^4}$
$x$ is a complex variable.
I want to solve it for some given initial condition, and plot the solution (real part vs. imaginary part).
I've tried this
sol = NDSolve[{x'[t] == Sqrt[1 + x[t]^4], x[0] == 1 + I}, x[t], {t, 0, 20}, Method -> "ExplicitMidpoint", "StartingStepSize" -> 1/1000];
ParametricPlot[Evaluate[{Re[x[t]], Im[x[t]]} /.sol], {t, 0, 20}]
But the result is not what I was expecting, it should be something similar to this
But if I use the direction fields:
With[{xMin = 3}, StreamPlot[{Re[#], Im[#]} &[Sqrt[1 + (x + I y)^4]], {x, -xMin, xMin}, {y, -xMin, xMin}]]
The result somehow resembles what I want:
How can I obtain the correct plot just by solving the differential equation?
Plot3D[Re[Sqrt[1 + (re + im*I)^4]], {re, 0, 2}, {im, 0, 2}]
andPlot3D[Im[Sqrt[1 + (re + im*I)^4]], {re, 0, 2}, {im, 0, 2}]
show a branch cut that is probably givingNDSolve
fits. Sorry, I don't have a fix though! $\endgroup$