Exact quadratic basin boundary (source code)

= Exact quadratic basin boundary
{title2=$\dot V=2\|z\|^2(V-1)$}

For $\dot z=Az+\|z\|^2z$, suppose a positive-definite <matrix> $P$ solves $A^TP+PA=-2I$. The quadratic function $V=z^TPz$ then obeys $\dot V=2\|z\|^2(V-1)$. Its unit ellipsoid separates decay toward the origin from escape. In a planar system with nonzero angular speed it is an invariant periodic orbit.