I have a set of characteristic equations, obtained by method of characteristics from Hamilton-Jacobi equation $$H(q,x) = (q^2-q)x+(1-q^2)x^2$$
$$\partial_s x = (2q-1)x-2qx^2$$
$$\partial_{-s} q = (q^2-q)+2(1-q^2)x$$
They are solved by $q(s) = 1$ and $x(s)$ being a solution of $\partial_s x = x-2x^2$.
The Hamiltonian also vanishes for, $H(1,x)=0, x= 0, x(q) = \frac{q}{1+q}$. And we have fixed points at, $(1,0), (1,1/2), (0,0)$. I want to obtain a phase portrait that looks something like,
I tried the following in Mathematica,
h[q_, x_] := (q^2 -] q) x + (1 - q^2) x^2
StreamPlot[{D[h[q, x], x], -D[h[q, x], q]} // Evaluate, {q, -0.2,
1.2}, {x, -0.2, 0.6}
Some problems
the flows don't look identical to the figure attached.
Is there someway to format the Mathematica output so it looks aesthetically similar to the one pictured.
Also, a way to plot green disks for the fixed points, and plot the vertical orange dashed line using Plot[].
For reference. https://arxiv.org/pdf/1609.02849.pdf. Page 29, equation 103, 104 (trying to replicate this)
(q^2 - q)
is missing a factor ofx
. The order is also exchanged in the plotting command ($\partial x$ vs $\partial q$). But even after correcting these mistakes, the equations you quote simply do not correspond to the plot you show. $\endgroup$ParametricPlot
for the vertical line. $\endgroup$StreamPlot
code (if it helps to determine the correctness, using the stream points in my answer) so that it matches the system visualized in your image? As I understand this question (the first list item especially), you expect the system to be the same as in the image, and it's not. $\endgroup$