Let II be an interval, A:I→R n×nA:I\rightarrow\mathbb{R}^{\,n\times n} be a matrix-valued function with continuous entries and g‾:I→Rn\underline{g}:I\rightarrow\mathbb{R}^n be continuous. A linear system of first-order equations and its associated homogeneous system are

y‾′=A(t) y‾+g‾(t),y‾′=A(t) y‾,\underline{y}'=A(t)\,\underline{y}+\underline{g}(t),\qquad\underline{y}'=A(t)\,\underline{y},

where the independent variable is written tt and derivatives of vector- and matrix-valued functions are taken entrywise. Every initial value problem y‾(t0)=y‾0\underline{y}\left(t_0\right)=\underline{y}_0 has exactly one solution on all of I.I. The superposition principle holds: the solutions of the homogeneous system form a vector space, which has dimension nn since y‾↦y‾(t0)\underline{y}\mapsto\underline{y}\left(t_0\right) is an isomorphism onto Rn,\mathbb{R}^n, and the general solution of the inhomogeneous system is the sum of a particular solution and the general solution of the homogeneous system. A linear equation of order nn is the special case in which AA is the companion matrix with ones on its superdiagonal, −a0,…,−an−1-a_0,\ldots,-a_{n-1} in its last row and zeros elsewhere.

A fundamental matrix of the homogeneous system is a matrix-valued function Φ:I→R n×n\Phi:I\rightarrow\mathbb{R}^{\,n\times n} whose columns are a basis of the solution space, so that Φ′=A Φ\Phi'=A\,\Phi and Φ(t)\Phi(t) is invertible for every t.t. The Wronskian W=det⁡ΦW=\det\Phi satisfies Liouville’s formula,

W(t)=W(t0)exp⁡(∫t0ttr A(s) ds),W(t)=W\left(t_0\right)\exp\left(\int_{t_0}^{t}\mathrm{tr}\,A(s)\,ds\right),

so nn solutions form a basis if and only if their Wronskian is non-zero at one, and hence every, point. The general solution of the homogeneous system is Φ(t) c‾\Phi(t)\,\underline{c} for c‾∈Rn,\underline{c}\in\mathbb{R}^n, the solution of the initial value problem is Φ(t) Φ(t0)−1y‾0\Phi(t)\,\Phi\left(t_0\right)^{-1}\underline{y}_0 and variation of parameters gives the solution of the inhomogeneous initial value problem.

y‾(t)=Φ(t) Φ(t0)−1y‾0+Φ(t)∫t0tΦ(s)−1g‾(s) ds\underline{y}(t)=\Phi(t)\,\Phi\left(t_0\right)^{-1}\underline{y}_0+\Phi(t)\int_{t_0}^{t}\Phi(s)^{-1}\underline{g}(s)\,ds

Let A∈R n×nA\in\mathbb{R}^{\,n\times n} be a constant matrix. The matrix exponential of AA is the sum of the exponential series with AA in place of the scalar.

eA:=∑k=0∞Akk!e^{A}:=\sum_{k=0}^{\infty}\frac{A^k}{k!}

The series converges absolutely in the Frobenius norm, since ∥Ak∥F≤∥A∥Fk\lVert A^k\rVert_F\leq\lVert A\rVert_F^k and ∑k=0∞∥A∥Fkk!=e∥A∥F,\sum_{k=0}^{\infty}\frac{\lVert A\rVert_F^k}{k!}=e^{\lVert A\rVert_F}, and R n×n\mathbb{R}^{\,n\times n} with this norm is complete. For A,B∈R n×n,A,B\in\mathbb{R}^{\,n\times n}, invertible PP and s,t∈Rs,t\in\mathbb{R} the matrix exponential has the following properties:

e0=In,e(s+t)A=esAetA,(etA)−1=e−tA,ddtetA=A etA=etAAe^{0}=I_n,\qquad e^{\left(s+t\right)A}=e^{sA}e^{tA},\qquad\left(e^{tA}\right)^{-1}=e^{-tA},\qquad\frac{d}{dt}e^{tA}=A\,e^{tA}=e^{tA}A eA+B=eAeB  if  AB=BA,ePAP−1=P eAP−1,det⁡eA=etr A.e^{A+B}=e^{A}e^{B}\,\,\mathrm{if}\,\,AB=BA,\qquad e^{PAP^{-1}}=P\,e^{A}P^{-1},\qquad\det e^{A}=e^{\mathrm{tr}\,A}.

The exponential law can fail for non-commuting matrices. Since ddtetA=A etA,\frac{d}{dt}e^{tA}=A\,e^{tA}, the matrix etAe^{tA} is a fundamental matrix of the system with constant coefficients and the solution of its initial value problem is

y‾′=A y‾,y‾(t)=e(t−t0)A y‾0.\underline{y}'=A\,\underline{y},\qquad\underline{y}(t)=e^{\left(t-t_0\right)A}\,\underline{y}_0.

If AA is diagonalisable as A=PΛP−1A=P\Lambda P^{-1} then etA=P etΛP−1e^{tA}=P\,e^{t\Lambda}P^{-1} where etΛe^{t\Lambda} is diagonal with entries eλit.e^{\lambda_it}. Equivalently, if v‾\underline{v} is an eigenvector of AA with eigenvalue λ\lambda then y‾=eλtv‾\underline{y}=e^{\lambda t}\underline{v} is a solution, and an eigen-basis gives a fundamental set of solutions. A pair of complex conjugate eigenvalues α±iβ\alpha\pm i\beta with eigenvectors u‾±iw‾\underline{u}\pm i\underline{w} gives, by Euler’s formula, the real solutions

eαt(u‾cos⁡βt−w‾sin⁡βt),eαt(u‾sin⁡βt+w‾cos⁡βt).e^{\alpha t}\left(\underline{u}\cos\beta t-\underline{w}\sin\beta t\right),\qquad e^{\alpha t}\left(\underline{u}\sin\beta t+\underline{w}\cos\beta t\right).

If AA is defective then the eigenvectors do not span Rn.\mathbb{R}^n. A generalised eigenvector of rank kk for the eigenvalue λ\lambda is a vector w‾\underline{w} with (A−λIn)kw‾=0‾\left(A-\lambda I_n\right)^k\underline{w}=\underline{0} and (A−λIn)k−1w‾≠0‾.\left(A-\lambda I_n\right)^{k-1}\underline{w}\neq\underline{0}. Since λIn\lambda I_n and A−λInA-\lambda I_n commute, etAw‾=eλtet(A−λIn)w‾e^{tA}\underline{w}=e^{\lambda t}e^{t\left(A-\lambda I_n\right)}\underline{w} and the second series terminates, which gives the solution

y‾(t)=eλt∑j=0k−1tjj!(A−λIn)jw‾.\underline{y}(t)=e^{\lambda t}\sum_{j=0}^{k-1}\frac{t^j}{j!}\left(A-\lambda I_n\right)^j\underline{w}.

Every matrix has a basis of generalised eigenvectors, so these solutions, with polynomial factors of degree less than the algebraic multiplicity, always give a fundamental set. The companion matrix of y′′−2y′+y=0y''-2y'+y=0 has the repeated eigenvalue 11 with a single eigenvector, and the generalised eigenvector recovers the solution t et.t\,e^t.

Let U⊆RnU\subseteq\mathbb{R}^n be open and F‾:U→Rn\underline{F}:U\rightarrow\mathbb{R}^n be C1.C^1. An autonomous system is y‾′=F‾(y‾),\underline{y}'=\underline{F}\left(\underline{y}\right), whose right-hand side is a vector field on the phase space U.U. The image of a solution in UU is a trajectory or orbit, which is tangent to the vector field at every point, and the phase portrait of the system is the collection of its trajectories. By uniqueness, distinct trajectories do not intersect and a trajectory that returns to a point is a closed curve corresponding to a periodic solution. A zero y‾∗\underline{y}^* of F‾\underline{F} is an equilibrium point, whose trajectory is the single point.

Let A∈R 2×2A\in\mathbb{R}^{\,2\times 2} be invertible with eigenvalues λ1,λ2,\lambda_1,\lambda_2, so that 0‾\underline{0} is the only equilibrium point of y‾′=A y‾.\underline{y}'=A\,\underline{y}. Its phase portrait is classified by the eigenvalues, which are determined by the trace τ=λ1+λ2\tau=\lambda_1+\lambda_2 and determinant Δ=λ1λ2\Delta=\lambda_1\lambda_2 through λ2−τλ+Δ=0:\lambda^2-\tau\lambda+\Delta=0:

  • if Δ<0\Delta<0 the eigenvalues are real with opposite signs and the equilibrium point is a saddle: trajectories approach along the eigenvector of the negative eigenvalue and leave along the eigenvector of the positive one;
  • if Δ>0\Delta>0 and τ2≥4Δ\tau^2\geq 4\Delta the eigenvalues are real with the same sign and the equilibrium point is a node, towards which every trajectory moves if τ<0\tau<0 and away from which every trajectory moves if τ>0;\tau>0;
  • if Δ>0\Delta>0 and τ2<4Δ\tau^2<4\Delta the eigenvalues are complex with real part τ2\frac{\tau}{2} and the equilibrium point is a spiral, inwards if τ<0\tau<0 and outwards if τ>0,\tau>0, or a centre surrounded by closed trajectories if τ=0.\tau=0.

Stability of an equilibrium point y‾∗\underline{y}^* of an autonomous system is defined as for a single equation with the norm in place of the absolute value: y‾∗\underline{y}^* is stable if for every ε>0\varepsilon>0 there exists δ>0\delta>0 such that every solution with ∥y‾(t0)−y‾∗∥<δ\left\lVert\underline{y}\left(t_0\right)-\underline{y}^*\right\rVert<\delta exists for all t≥t0t\geq t_0 and satisfies ∥y‾(t)−y‾∗∥<ε,\left\lVert\underline{y}(t)-\underline{y}^*\right\rVert<\varepsilon, asymptotically stable if it is stable and every solution that starts sufficiently close to it converges to it as t→∞,t\rightarrow\infty, and unstable if it is not stable. For the linear system y‾′=A y‾\underline{y}'=A\,\underline{y} the origin is asymptotically stable if and only if every eigenvalue of AA has negative real part, in which case ∥etA∥F→0\left\lVert e^{tA}\right\rVert_F\rightarrow 0 exponentially, and unstable if some eigenvalue has positive real part; a centre is stable but not asymptotically stable.

The linearisation of the autonomous system at an equilibrium point y‾∗\underline{y}^* is the linear system u‾′=JF‾(y‾∗)u‾\underline{u}'=J_{\underline{F}}\left(\underline{y}^*\right)\underline{u} for the deviation u‾=y‾−y‾∗,\underline{u}=\underline{y}-\underline{y}^*, obtained by discarding the remainder of the first-order Taylor expansion of F‾.\underline{F}. The equilibrium point is a hyperbolic equilibrium point if no eigenvalue of JF‾(y‾∗)J_{\underline{F}}\left(\underline{y}^*\right) has zero real part. The linearisation theorem states that a hyperbolic equilibrium point is asymptotically stable if every eigenvalue of the Jacobian matrix has negative real part and unstable if some eigenvalue has positive real part, and the Hartman–Grobman theorem states that near a hyperbolic equilibrium point the phase portrait is the image of the phase portrait of the linearisation under a homeomorphism. Linearisation is inconclusive at non-hyperbolic equilibrium points: the pendulum equation θ′′+sin⁡θ=0,\theta''+\sin\theta=0, written as the system θ′=v,\theta'=v, v′=−sin⁡θ,v'=-\sin\theta, has a centre of the linearisation at (0,0),\left(0,0\right), which is stable since the energy 12v2−cos⁡θ\frac{1}{2}v^2-\cos\theta is constant along trajectories, and a saddle at (π,0).\left(\pi,0\right).

Let V:U→RV:U\rightarrow\mathbb{R} be C1C^1 with V(y‾∗)=0V\left(\underline{y}^*\right)=0 and V>0V>0 elsewhere near y‾∗.\underline{y}^*. Along a solution the chain rule gives ddtV(y‾(t))=∇V(y‾)⋅F‾(y‾).\frac{d}{dt}V\left(\underline{y}(t)\right)=\nabla V\left(\underline{y}\right)\cdot\underline{F}\left(\underline{y}\right). VV is a Lyapunov function for y‾∗\underline{y}^* if ∇V⋅F‾≤0\nabla V\cdot\underline{F}\leq 0 near y‾∗,\underline{y}^*, and Lyapunov’s stability theorem states that an equilibrium point with a Lyapunov function is stable, and asymptotically stable if ∇V⋅F‾<0\nabla V\cdot\underline{F}<0 away from y‾∗.\underline{y}^*. The energy of the pendulum, shifted by its minimum, is a Lyapunov function at (0,0).\left(0,0\right).