Appendix S1. Linear systems
In L4 the stability of a fixed point \(x^*\) of \(\dot x=f(x)\) came from the sign of \(f'(x^*)\). In L6, with two species, it came from the eigenvalues of the Jacobian. This appendix covers the gap in between, providing the solution a linear system in any dimension
Why linear systems
Take \(D\) variables, \(\dot x_i=f_i(x_1,\dots,x_D)\), and a fixed point \(x^*\), \(f_i(x^*)=0\) for all \(i\). Close to it, write \(x_i=x_i^*+\delta_i\) and expand to first order:
\[ \frac{d\delta_i}{dt}=f_i(x^*+\delta)\simeq\sum_{j=1}^D\left.\frac{\partial f_i}{\partial x_j}\right|_{x^*}\delta_j=\sum_{j=1}^D J_{ij}\,\delta_j . \]
The Jacobian \(J\) is a constant matrix. So near any fixed point, any system looks like
\[ \boxed{\ \frac{dx_i}{dt}=\sum_{j=1}^D A_{ij}\,x_j,\qquad i=1,\dots,D\ } \]
with \(A=J\) and \(x=\delta\). In vector form, \(\dot{\mathbf x}=A\mathbf x\). \(A\) does not depend on time, so the system is autonomous (time independent). \(\mathbf x=0\) is always a fixed point. The question is whether trajectories go to it or leave it, and how.
In one dimension, \(\dot x=ax\) gives \(x(t)=x(0)\,e^{at}\) (L1): decay if \(a<0\), growth if \(a>0\). We want the same statement in \(D\) dimensions.
Example: two variables. With \(D=2\),
\[ \begin{cases}\dot x_1=a\,x_1+b\,x_2\\ \dot x_2=c\,x_1+d\,x_2\end{cases} \qquad\Longleftrightarrow\qquad \frac{d}{dt}\begin{pmatrix}x_1\\x_2\end{pmatrix}=\begin{pmatrix}a&b\\c&d\end{pmatrix}\begin{pmatrix}x_1\\x_2\end{pmatrix}. \]
The harmonic oscillator, \(m\ddot x=-kx\), is of this form. A second-order equation is two first-order ones, for the position \(x\) and the velocity \(v=\dot x\):
\[ \begin{cases}\dot x=v\\ \dot v=-\frac{k}{m}\,x\end{cases} \qquad A=\begin{pmatrix}0&1\\-k/m&0\end{pmatrix}. \]
We will come back to it at the end.
Idea of the solution. Look for solutions where all components grow at the same rate, \(x_i(t)=v_i\,e^{\lambda t}\). Substituting,
\[ \sum_jA_{ij}v_j=\lambda\,v_i , \]
so \(\lambda\) is an eigenvalue of \(A\) and \(\mathbf v\) its eigenvector. The eigenvalues are the \(D\) roots of the characteristic polynomial, \(\det(A-\lambda\mathbb 1)=0\). The system is linear, so sums of solutions are solutions. If we can write the initial condition as a combination of eigenvectors, each piece evolves as \(e^{\lambda t}\) on its own and we are done. How to find the coefficients of that combination is the whole content of what follows, and it is easier when \(A\) is symmetric.
Symmetric matrix
Start from \(A_{ij}=A_{ji}\), with real entries. The spectral theorem says that a real symmetric matrix has \(D\) real eigenvalues \(\lambda^\alpha\) and \(D\) eigenvectors \(\mathbf v^\alpha\), \(\alpha=1,\dots,D\),
\[ \sum_jA_{ij}v_j^\alpha=\lambda^\alpha v_i^\alpha ,\qquad\lambda^\alpha\in\mathbb R, \]
that can be chosen orthonormal:
\[ \sum_i v_i^\alpha v_i^\beta=\delta_{\alpha\beta}. \]
(The index \(\alpha\) labels the eigenvector, \(i\) its component.) Eigenvectors of different eigenvalues are orthogonal automatically (Exercise 1). With a repeated eigenvalue we can still pick an orthonormal set within its eigenspace.
Collect the eigenvectors as the columns of a matrix, \(V_{i\alpha}=v_i^\alpha\). Orthonormality is \(V^TV=\mathbb 1\). Then \(V^T=V^{-1}\), so also \(VV^T=\mathbb 1\):
\[ \sum_\alpha v_i^\alpha v_j^\alpha=\delta_{ij}. \]
This is completeness: the eigenvectors are a basis, and any vector can be written in it, \(x_i=\sum_\alpha v_i^\alpha\left(\sum_jv_j^\alpha x_j\right)\).
Spectral decomposition
Multiply the eigenvalue equation by \(v_k^\alpha\) and sum over \(\alpha\). Completeness on the left gives
\[ \sum_j A_{ij}\sum_\alpha v_j^\alpha v_k^\alpha=A_{ik}, \qquad\text{so}\qquad \boxed{\ A_{ik}=\sum_\alpha\lambda^\alpha\,v_i^\alpha v_k^\alpha\ } \]
The matrix is a sum of \(D\) projectors on its eigenvectors, each weighted by its eigenvalue. Multiplying instead by \(v_i^\beta\) and summing over \(i\) gives the same statement the other way round: in the basis of eigenvectors, \(A\) is diagonal,
\[ \sum_{i,j}v_i^\beta A_{ij}v_j^\alpha=\lambda^\alpha\delta_{\alpha\beta}. \]
The solution
Project the state on each eigenvector:
\[ c^\alpha(t)=\sum_j v_j^\alpha\,x_j(t). \]
Its time derivative, using the equation and then the symmetry of \(A\),
\[ \frac{dc^\alpha}{dt}=\sum_{i}v_i^\alpha\dot x_i=\sum_{i,j}v_i^\alpha A_{ij}x_j=\sum_j\Bigl(\sum_iA_{ji}v_i^\alpha\Bigr)x_j=\lambda^\alpha\sum_jv_j^\alpha x_j=\lambda^\alpha c^\alpha . \]
The \(D\) coupled equations become \(D\) independent ones, each the one-dimensional problem of L1:
\[ c^\alpha(t)=c^\alpha(0)\,e^{\lambda^\alpha t},\qquad c^\alpha(0)=\sum_jv_j^\alpha x_j(0). \]
Back to the original coordinates with completeness, \(x_i(t)=\sum_\alpha v_i^\alpha c^\alpha(t)\), so
\[ \boxed{\ x_i(t)=\sum_\alpha\Bigl(\sum_jv_i^\alpha v_j^\alpha\,x_j(0)\Bigr)e^{\lambda^\alpha t}\ } \qquad\text{or}\qquad \mathbf x(t)=\sum_\alpha\bigl(\mathbf v^\alpha\!\cdot\mathbf x(0)\bigr)\,\mathbf v^\alpha\,e^{\lambda^\alpha t}. \]
We decomposed the initial condition along the eigenvectors, and each component grows or decays exponentially on its own, at rate \(\lambda^\alpha\). Geometrically, we rotated the axes \((x_1,\dots,x_D)\) to the axes of the eigenvectors \((\mathbf v^1,\dots,\mathbf v^D)\), and along each new axis the dynamics is one-dimensional.
The matrix \(G_{ij}(t)=\sum_\alpha v_i^\alpha v_j^\alpha e^{\lambda^\alpha t}\), with \(x_i(t)=\sum_jG_{ij}(t)x_j(0)\), is the propagator. It is the matrix exponential, \(G(t)=e^{At}=\sum_n(At)^n/n!\) (Exercise 3).
Long times
Order the eigenvalues and call \(\lambda^*=\max_\alpha\lambda^\alpha\), attained at \(\alpha^*\). Each term goes as \(e^{\lambda^\alpha t}\), so at long times the largest wins. If \(\mathbf v^{\alpha^*}\!\cdot\mathbf x(0)\neq0\) (true for almost every initial condition) and \(\lambda^*\) is not repeated,
\[ x_i(t)\simeq\bigl(\mathbf v^{\alpha^*}\!\cdot\mathbf x(0)\bigr)\,v_i^{\alpha^*}e^{\lambda^*t}\qquad(t\to\infty). \]
All components end up proportional to the leading eigenvector, and grow or decay at the same rate. Then:
- all \(\lambda^\alpha<0\): every trajectory goes to \(0\), the fixed point is stable;
- at least one \(\lambda^\alpha>0\): almost every trajectory leaves, the fixed point is unstable. Only initial conditions with no component along the growing directions go to \(0\);
- \(\lambda^*=0\): along \(\mathbf v^{\alpha^*}\) nothing moves (\(e^{0t}=1\)), there is a line of fixed points. The linear system is marginal.
When the fixed point is stable, the slowest decay sets the return time after a perturbation, \(1/|\lambda^*|\). This is the time that diverges at a bifurcation, when \(\lambda^*\to0\) (L5).
A potential
In L5 the one-dimensional flow was always the gradient of a potential, \(\dot x=-V'(x)\). In \(D\) dimensions a gradient system is
\[ \dot x_i=-\frac{\partial V}{\partial x_i}, \qquad\text{and then}\qquad \frac{dV}{dt}=\sum_i\frac{\partial V}{\partial x_i}\dot x_i=-\sum_i\Bigl(\frac{\partial V}{\partial x_i}\Bigr)^2\le0 . \]
\(V\) decreases along every trajectory, and trajectories end at minima of \(V\). When does a linear system have a potential? From \(\dot x_i=\sum_jA_{ij}x_j=-\partial V/\partial x_i\),
\[ A_{ik}=\frac{\partial\dot x_i}{\partial x_k}=-\frac{\partial^2V}{\partial x_k\,\partial x_i}, \qquad A_{ki}=\frac{\partial\dot x_k}{\partial x_i}=-\frac{\partial^2V}{\partial x_i\,\partial x_k}. \]
Mixed partial derivatives commute, so a potential needs \(A_{ik}=A_{ki}\): a linear system has a potential if and only if \(A\) is symmetric. If it is,
\[ V(\mathbf x)=-\frac12\sum_{i,j}x_iA_{ij}x_j=-\frac12\sum_\alpha\lambda^\alpha\,(c^\alpha)^2, \]
where the second form uses the spectral decomposition. \(V\) is a quadratic form, a paraboloid with axes along the eigenvectors. All \(\lambda^\alpha<0\): a bowl, \(\mathbf x=0\) is its minimum, stable. All \(\lambda^\alpha>0\): a hilltop, unstable. Mixed signs: a saddle of \(V\), and a saddle of the flow. For a nonlinear system the same argument applies to its Jacobian: a potential needs \(J_{ij}=J_{ji}\) everywhere, which is why competitive LV has none in general (L6).
A potential is a special case. To decide stability, a potential is more than we need: it is enough to have a function that decreases along every trajectory and has its minimum at the fixed point, a Lyapunov function. A stable linear system always has one, symmetric or not: \(V(\mathbf x)=\mathbf x^TP\,\mathbf x\), with \(P\) the positive-definite solution of \(A^TP+PA=-\mathbb 1\), gives \(dV/dt=\mathbf x^T(A^TP+PA)\,\mathbf x=-|\mathbf x|^2\). A potential is the special case where, in addition, the flow goes straight downhill, \(\dot x_i=-\partial V/\partial x_i\). The function used for many species in L6 is a Lyapunov function, not a potential.
Non-symmetric matrix
Now no assumption on \(A\), except real entries. Two things change.
- The eigenvalues can be complex. Since \(A\) is real, they come in conjugate pairs: if \(\sum_jA_{ij}v_j=\lambda v_i\), conjugating gives \(\sum_jA_{ij}\bar v_j=\bar\lambda\bar v_i\). The eigenvector of \(\bar\lambda\) is \(\bar{\mathbf v}\).
- The eigenvectors are in general not orthogonal, so the projection \(\mathbf v^\alpha\!\cdot\mathbf x\) no longer gives the component of \(\mathbf x\) along \(\mathbf v^\alpha\).
There may also be fewer than \(D\) eigenvectors (see When \(A\) cannot be diagonalized below). Until then, assume there are \(D\) independent ones; this is true, for instance, whenever the \(D\) eigenvalues are distinct.
Left and right eigenvectors
The eigenvectors so far are right eigenvectors, \(A\) acting on them from the left. There are also left eigenvectors, a row vector multiplying \(A\):
\[ \sum_jA_{ij}v_j^\alpha=\lambda^\alpha v_i^\alpha\quad\text{(right)},\qquad \sum_iw_i^\alpha A_{ij}=\lambda^\alpha w_j^\alpha\quad\text{(left)}. \]
The left eigenvectors of \(A\) are the right eigenvectors of \(A^T\), with the same eigenvalues, since \(\det(A^T-\lambda\mathbb 1)=\det(A-\lambda\mathbb 1)\). If \(A\) is symmetric, \(\mathbf w^\alpha=\mathbf v^\alpha\).
Left and right eigenvectors of different eigenvalues are orthogonal. Compute \(\sum_{i,j}w_i^\alpha A_{ij}v_j^\beta\) in two ways, acting with \(A\) to the left or to the right:
\[ \lambda^\alpha\sum_iw_i^\alpha v_i^\beta=\lambda^\beta\sum_iw_i^\alpha v_i^\beta \quad\Longrightarrow\quad (\lambda^\alpha-\lambda^\beta)\sum_iw_i^\alpha v_i^\beta=0 . \]
Normalizing each pair so that \(\mathbf w^\alpha\!\cdot\mathbf v^\alpha=1\) (the length of \(\mathbf v^\alpha\) is free, and fixes that of \(\mathbf w^\alpha\)), we get biorthogonality,
\[ \boxed{\ \sum_iw_i^\alpha v_i^\beta=\delta_{\alpha\beta}\ } \]
The dot product here has no complex conjugate: it is \(\sum_iw_iv_i\), not \(\sum_i\bar w_iv_i\). In matrix form, with \(V_{i\alpha}=v_i^\alpha\) (columns) and \(W_{\alpha i}=w_i^\alpha\) (rows), this is \(WV=\mathbb 1\), so \(W=V^{-1}\) and also \(VW=\mathbb 1\):
\[ \boxed{\ \sum_\alpha v_i^\alpha w_j^\alpha=\delta_{ij}\ } \]
the completeness relation. What we lost from the symmetric case is \(\sum_iv_i^\alpha v_i^\beta=\delta_{\alpha\beta}\) and \(\sum_\alpha v_i^\alpha v_j^\alpha=\delta_{ij}\): in general \(V^{-1}\neq V^T\).
As before, multiplying the right eigenvalue equation by \(w_k^\alpha\) and summing over \(\alpha\) gives the spectral decomposition, and sandwiching \(A\) between a left and a right eigenvector diagonalizes it:
\[ \boxed{\ A_{ij}=\sum_\alpha\lambda^\alpha\,v_i^\alpha w_j^\alpha\ } \qquad \sum_{i,j}w_i^\alpha A_{ij}v_j^\beta=\lambda^\alpha\delta_{\alpha\beta}, \qquad\text{i.e.}\quad A=V\Lambda V^{-1},\ \ \Lambda=\operatorname{diag}(\lambda^1,\dots,\lambda^D). \]
The solution
The same steps as for symmetric \(A\), but now project on the left eigenvectors:
\[ c^\alpha(t)=\sum_iw_i^\alpha x_i(t), \qquad \frac{dc^\alpha}{dt}=\sum_{i,j}w_i^\alpha A_{ij}x_j=\lambda^\alpha\sum_jw_j^\alpha x_j=\lambda^\alpha c^\alpha , \]
so \(c^\alpha(t)=c^\alpha(0)\,e^{\lambda^\alpha t}\). Going back with completeness, \(\sum_\alpha v_i^\alpha c^\alpha(t)=\sum_j\bigl(\sum_\alpha v_i^\alpha w_j^\alpha\bigr)x_j(t)=x_i(t)\), and
\[ \boxed{\ x_i(t)=\sum_\alpha v_i^\alpha\Bigl(\sum_jw_j^\alpha\,x_j(0)\Bigr)e^{\lambda^\alpha t}\ } \]
The same form as before, with \(\mathbf v^\alpha\) replaced by \(\mathbf w^\alpha\) in the projection. Why the left eigenvectors: the eigenvectors are now oblique axes, and the coordinate of \(\mathbf x\) along \(\mathbf v^\alpha\) is not its projection on \(\mathbf v^\alpha\). It is its projection on the direction orthogonal to all the other \(\mathbf v^\beta\), and that direction is \(\mathbf w^\alpha\).
Complex eigenvalues give oscillations
Now \(\lambda^\alpha\), \(v_i^\alpha\) and \(w_i^\alpha\) can be complex, but \(x_i(t)\) is real. Define the complex amplitudes
\[ z_i^\alpha=v_i^\alpha\sum_jw_j^\alpha x_j(0),\qquad x_i(t)=\sum_\alpha z_i^\alpha e^{\lambda^\alpha t}. \]
Split the sum into real eigenvalues, eigenvalues with positive imaginary part, and their conjugates. If \(\lambda^\beta\) has partner \(\bar\lambda^\beta\), its eigenvectors are \(\bar{\mathbf v}^\beta\), \(\bar{\mathbf w}^\beta\), and since \(\mathbf x(0)\) is real its term is \(\overline{z_i^\beta e^{\lambda^\beta t}}\). A number plus its conjugate is twice its real part:
\[ x_i(t)=\sum_{\beta:\,\operatorname{Im}\lambda^\beta=0}z_i^\beta e^{\lambda^\beta t}+2\sum_{\beta:\,\operatorname{Im}\lambda^\beta>0}\operatorname{Re}\bigl(z_i^\beta e^{\lambda^\beta t}\bigr). \]
Write \(\lambda^\beta=\mu^\beta+i\,\omega^\beta\) and \(z_i^\beta=|z_i^\beta|\,e^{i\theta_i^\beta}\). Then \(\operatorname{Re}\bigl(z\,e^{\lambda t}\bigr)=|z|\,e^{\mu t}\operatorname{Re}\,e^{i(\omega t+\theta)}=|z|\,e^{\mu t}\cos(\omega t+\theta)\), and
\[ \boxed{\ x_i(t)=\sum_{\beta:\,\omega^\beta=0}z_i^\beta\,e^{\lambda^\beta t}+2\sum_{\beta:\,\omega^\beta>0}|z_i^\beta|\,e^{\mu^\beta t}\cos\bigl(\omega^\beta t+\theta_i^\beta\bigr)\ } \]
Everything is now explicitly real (the \(z_i^\beta\) of real eigenvalues are real). The two parts of an eigenvalue do two different things:
- the real part \(\mu=\operatorname{Re}\lambda\) sets exponential growth or decay;
- the imaginary part \(\omega=\operatorname{Im}\lambda\) sets oscillations, with angular frequency \(\omega\) and period \(2\pi/\omega\).
The phases \(\theta_i^\beta\) differ between components: the components oscillate out of phase, and the state rotates in the plane spanned by \(\operatorname{Re}\mathbf v^\beta\) and \(\operatorname{Im}\mathbf v^\beta\). This is why oscillations need at least two dimensions: in one dimension \(a\) is real, and there is no plane to rotate in.
Long times and stability
Let \(\beta^*\) be the eigenvalue (or pair) with the largest real part, \(\mu^*=\max_\beta\operatorname{Re}\lambda^\beta\). At long times, for almost every initial condition:
- if \(\lambda^{\beta^*}\) is real, \(x_i(t)\simeq z_i^{\beta^*}e^{\lambda^{\beta^*}t}\), as in the symmetric case;
- if \(\lambda^{\beta^*}\) is complex, \(x_i(t)\simeq2|z_i^{\beta^*}|\,e^{\mu^*t}\cos(\omega^{\beta^*}t+\theta_i^{\beta^*})\): oscillations that shrink if \(\mu^*<0\) and grow if \(\mu^*>0\).
So the stability criterion becomes
\[ \text{stable}\iff\operatorname{Re}\lambda^\alpha<0\ \text{for all }\alpha,\qquad \text{unstable}\iff\operatorname{Re}\lambda^\alpha>0\ \text{for at least one }\alpha . \]
If the largest real part is exactly \(0\) the linear system is marginal: a line of fixed points (real \(\lambda=0\)) or neutral oscillations (a center, below).
Growth before decay
With non-orthogonal eigenvectors, “all \(\operatorname{Re}\lambda<0\)” says what happens at long times, not at short ones. The size of a perturbation can grow for a while before it decays. Take
\[ A=\begin{pmatrix}-2&4\\0&-1\end{pmatrix},\qquad\lambda=-2,-1,\qquad\mathbf v^1=\begin{pmatrix}1\\0\end{pmatrix},\ \mathbf v^2=\begin{pmatrix}4\\1\end{pmatrix}. \]
Both eigenvalues are negative, but the two eigenvectors are almost parallel. Starting from \(\mathbf x(0)=(0,1)\), of length \(1\), the solution (Exercise 4) is \(x_1=4(e^{-t}-e^{-2t})\), \(x_2=e^{-t}\). Its length reaches \(1.13\) at \(t\approx0.56\) before decaying. The initial growth rate of \(|\mathbf x|\) is set by the symmetric part of \(A\): \(\frac{d}{dt}\frac{|\mathbf x|^2}{2}=\sum_{ij}x_iA_{ij}x_j=\sum_{ij}x_i\frac{A_{ij}+A_{ji}}{2}x_j\). The largest eigenvalue of \((A+A^T)/2\), here \(+0.56\), is the largest initial growth rate over all perturbations, called reactivity in ecology (Neubert & Caswell 1997). For symmetric \(A\) it equals \(\lambda^*\), and there is no transient growth.
When \(A\) cannot be diagonalized
A repeated eigenvalue may have fewer independent eigenvectors than its multiplicity. The simplest case is
\[ A=\begin{pmatrix}\lambda&1\\0&\lambda\end{pmatrix}, \]
with \(\lambda\) twice and the single eigenvector \((1,0)\). Solve from the bottom: \(\dot x_2=\lambda x_2\) gives \(x_2=x_2(0)e^{\lambda t}\). Then \(\dot x_1=\lambda x_1+x_2(0)e^{\lambda t}\), and with \(x_1=y\,e^{\lambda t}\), \(\dot y=x_2(0)\):
\[ x_1(t)=\bigl(x_1(0)+x_2(0)\,t\bigr)e^{\lambda t},\qquad x_2(t)=x_2(0)\,e^{\lambda t}. \]
A term \(t\,e^{\lambda t}\) appears. In general (Jordan form) an eigenvalue of multiplicity \(m\) with fewer than \(m\) eigenvectors gives terms up to \(t^{m-1}e^{\lambda t}\). Stability does not change: a polynomial loses against an exponential, so the sign of \(\operatorname{Re}\lambda\) still decides. This case is not generic: any small change of the entries splits the eigenvalue in two. It is the boundary between real and complex eigenvalues, and shows up in 2D on the parabola of the next section.
Two dimensions
For \(A=\begin{pmatrix}a&b\\c&d\end{pmatrix}\) the characteristic polynomial is
\[ \det\begin{pmatrix}a-\lambda&b\\c&d-\lambda\end{pmatrix}=\lambda^2-\tau\lambda+\Delta=0, \qquad\tau=\operatorname{tr}A=a+d,\quad\Delta=\det A=ad-bc, \]
\[ \lambda_\pm=\frac\tau2\pm\sqrt{\frac{\tau^2}{4}-\Delta},\qquad\lambda_++\lambda_-=\tau,\qquad\lambda_+\lambda_-=\Delta . \]
Two numbers, the trace and the determinant, decide everything.
Real eigenvalues, \(\tau^2>4\Delta\).
- \(\Delta<0\): opposite signs, a saddle. Trajectories come in along the eigenvector of \(\lambda_-<0\) and leave along that of \(\lambda_+>0\). Unstable.
- \(\Delta>0\), \(\tau<0\): both negative, a stable node. Trajectories go to \(0\), at long times tangent to the eigenvector of the eigenvalue closer to zero (the slow direction).
- \(\Delta>0\), \(\tau>0\): both positive, an unstable node.
The eigenvectors need not be orthogonal: a node or saddle of a non-symmetric \(A\) looks sheared compared with the symmetric one.
Complex eigenvalues, \(\tau^2<4\Delta\) (so \(\Delta>0\)). \(\lambda_\pm=\tau/2\pm i\omega\) with \(\omega=\sqrt{\Delta-\tau^2/4}\). There is one pair, so both components are
\[ x_i(t)=2|z_i|\,e^{\tau t/2}\cos(\omega t+\theta_i), \]
with the same frequency and decay rate and different phases. In the \((x_1,x_2)\) plane:
- \(\tau<0\): a stable spiral (or focus), trajectories spiral into \(0\);
- \(\tau>0\): an unstable spiral, they spiral out;
- \(\tau=0\): a center. Closed orbits, ellipses for a linear system, whose size is set by the initial condition. A center is neither stable nor unstable: a perturbation neither grows nor decays.
The sense of rotation is set by the sign of \(c\). At \(\mathbf x=(1,0)\), \(\dot x_2=c\): counterclockwise if \(c>0\), clockwise if \(c<0\). (With complex eigenvalues \((a-d)^2/4+bc<0\), so \(b\) and \(c\) have opposite signs.)
Borderlines. \(\tau^2=4\Delta\): one repeated real eigenvalue. Either \(A=\lambda\mathbb 1\) (a star, all directions are eigenvectors) or the non-diagonalizable case above (a degenerate node). \(\Delta=0\): one eigenvalue is \(0\), and there is a line of fixed points.
Putting it together, the fixed point is stable if and only if both eigenvalues have negative real part. For real eigenvalues that is \(\lambda_+\lambda_->0\) and \(\lambda_++\lambda_-<0\); for complex ones \(\tau/2<0\), with \(\Delta>0\) automatically. Either way,
\[ \boxed{\ \text{stable}\iff\tau<0\ \text{ and }\ \Delta>0\ } \]
the criterion used in L6. In the \((\tau,\Delta)\) plane: below the \(\tau\) axis, saddles; above it, nodes outside the parabola \(\Delta=\tau^2/4\) and spirals inside; stable on the left, unstable on the right; centers on the positive \(\Delta\) axis.
Linear systems in two dimensions
Move the four entries of \(A\) with the sliders, pick an example, or drag the point in the trace–determinant plane (this changes \(c\), keeping \(a-d\) and \(b\) fixed). The phase plane shows the flow, the real eigenvectors (dashed) and a trajectory from a draggable start; the last panel shows \(x_1(t)\) and \(x_2(t)\) along it.
The solution in closed form. In 2D there is a shortcut that covers all cases at once. Cayley–Hamilton (\(A\) satisfies its own characteristic polynomial, \(A^2-\tau A+\Delta\mathbb 1=0\)) gives \(\bigl(A-\frac\tau2\mathbb 1\bigr)^2=\kappa^2\,\mathbb 1\), with \(\kappa^2=\tau^2/4-\Delta\). Summing the exponential series with this,
\[ e^{At}=e^{\tau t/2}\left[\cosh(\kappa t)\,\mathbb 1+\frac{\sinh(\kappa t)}{\kappa}\Bigl(A-\frac\tau2\mathbb 1\Bigr)\right], \]
where for complex eigenvalues \(\kappa=i\omega\), so \(\cosh\to\cos(\omega t)\) and \(\sinh(\kappa t)/\kappa\to\sin(\omega t)/\omega\), and for \(\kappa=0\) the bracket is \(\mathbb 1+t\,(A-\frac\tau2\mathbb 1)\), the \(t\,e^{\lambda t}\) term. (The interactive figure uses this formula.)
The harmonic oscillator
Back to \(\dot x=v\), \(\dot v=-(k/m)x\): \(\tau=0\), \(\Delta=k/m>0\), a center. The eigenvalues are \(\lambda=\pm i\omega\) with \(\omega=\sqrt{k/m}\), and from the closed form
\[ x(t)=x(0)\cos\omega t+\frac{v(0)}{\omega}\sin\omega t,\qquad v(t)=-\omega\,x(0)\sin\omega t+v(0)\cos\omega t . \]
Both oscillate at frequency \(\omega\), a quarter period apart, with an amplitude set by the initial condition. The orbits are the ellipses of constant energy, \(\frac12mv^2+\frac12kx^2=E\). Here \(c=-k/m<0\), so in the \((x,v)\) plane they turn clockwise.
Add friction, \(m\ddot x=-kx-\gamma\dot x\): now \(\tau=-\gamma/m<0\) and \(\Delta=k/m\). The center becomes a stable spiral (damped oscillations) if \(\gamma^2<4km\), and a stable node (no oscillations, overdamped) if \(\gamma^2>4km\) (Exercise 5).
Back to nonlinear systems
The linear system \(\dot\delta=J\delta\) describes a nonlinear system only close to a fixed point. When no eigenvalue of \(J\) has zero real part (a hyperbolic fixed point), the nonlinear flow near \(x^*\) is a continuous deformation of the linear one: a saddle stays a saddle, a stable spiral a stable spiral (Hartman–Grobman theorem). When the largest real part is zero (a zero eigenvalue, or a center), the linear terms do not decide, and the nonlinear terms do. In one dimension this was \(f'(x^*)=0\) (L4, L5). In two dimensions, a linear center can be a true center of the nonlinear system (predator–prey Lotka–Volterra, which has a conserved quantity, L12), or a weak spiral in or out, which is where limit cycles are born (Hopf bifurcation, L13).
Exercises
- Show that the eigenvalues of a real symmetric matrix are real, and that eigenvectors of different eigenvalues are orthogonal. (Hint: compute \(\sum_{ij}\bar v_iA_{ij}v_j\) in two ways.)
- For \(A=\begin{pmatrix}-2&1\\0&-1\end{pmatrix}\) find \(\lambda^\alpha\), \(\mathbf v^\alpha\) and \(\mathbf w^\alpha\), normalize them so that \(\mathbf w^\alpha\!\cdot\mathbf v^\beta=\delta_{\alpha\beta}\), check completeness, and write \(x_i(t)\) for a generic \(\mathbf x(0)\).
- Show that the propagator \(G_{ij}(t)=\sum_\alpha v_i^\alpha w_j^\alpha e^{\lambda^\alpha t}\) equals \(\bigl[e^{At}\bigr]_{ij}=\sum_n\bigl[(At)^n\bigr]_{ij}/n!\). (Hint: from the spectral decomposition, \((A^n)_{ij}=\sum_\alpha(\lambda^\alpha)^nv_i^\alpha w_j^\alpha\).)
- For \(A=\begin{pmatrix}-2&4\\0&-1\end{pmatrix}\) and \(\mathbf x(0)=(0,1)\), find \(x_1(t)\), \(x_2(t)\). Show that \(x_1\) peaks at \(t=\ln2\), where \(|\mathbf x|>1\). Compute the eigenvalues of \((A+A^T)/2\) and explain why one of them is positive although both eigenvalues of \(A\) are negative.
- Damped oscillator, \(m\ddot x=-kx-\gamma\dot x\). Write it as a 2D linear system, find \(\tau\) and \(\Delta\), and show that it is a stable spiral for \(\gamma<2\sqrt{km}\) and a stable node for \(\gamma>2\sqrt{km}\). What is the frequency of the damped oscillations?
- Show that the coexistence point of the competitive Lotka–Volterra model of L6 is never a spiral. (Hint: the off-diagonal entries of its Jacobian have the same sign.) What sign pattern would you need for damped oscillations? Which ecological interaction is it?
- Solve \(\dot{\mathbf x}=A\mathbf x\) with \(A=\begin{pmatrix}0&1&0\\0&0&1\\-1&-3&-3\end{pmatrix}\), the third-order equation \(\dddot x+3\ddot x+3\dot x+x=0\) written as a first-order system. Show that \(\lambda=-1\) is a triple eigenvalue with a single eigenvector, and that \(x(t)=(p_0+p_1t+p_2t^2)\,e^{-t}\).
References
- S. H. Strogatz, Nonlinear Dynamics and Chaos, ch. 5 (linear systems, classification) and 6.3 (linearization, Hartman–Grobman).
- M. W. Hirsch, S. Smale, R. L. Devaney, Differential Equations, Dynamical Systems, and an Introduction to Chaos, ch. 2–6 (for the non-diagonalizable case in full).
- M. G. Neubert, H. Caswell, Alternatives to resilience for measuring the responses of ecological systems to perturbations, Ecology 78, 653 (1997).