Conservative planar phase portrait (source code)

= Conservative planar phase portrait

For $\dot q=p$, $\dot p=-V'(q)$, the energy
$$
E=\frac12p^2+V(q)
$$
is constant. Local minima of $V$ give center equilibria, local maxima give saddle equilibria, and separatrices are energy contours through saddles.