Lax equation preserves the spectrum (source code)

= Lax equation preserves the spectrum
{c}
{title2=$\dot L=LA-AL$}

For symmetric $L$ and antisymmetric $A$ satisfying $\dot L=LA-AL$, solve $\dot Q=-AQ$, $Q(0)=I$. Then $Q$ is orthogonal and $Q^TLQ$ is constant. Hence every eigenvalue and every coefficient of the characteristic polynomial of $L$ is conserved.