ConceptComplete

Systems of Linear ODEs

Systems of first-order linear ODEs arise naturally from higher-order equations, coupled oscillators, and compartmental models. The matrix-vector formulation unifies the theory.


Matrix Formulation

Definition5.1Linear system

A first-order linear system of nn equations is

x=A(t)x+g(t)\mathbf{x}' = A(t)\mathbf{x} + \mathbf{g}(t)

where x(t)Rn\mathbf{x}(t) \in \mathbb{R}^n, A(t)A(t) is an n×nn \times n matrix, and g(t)Rn\mathbf{g}(t) \in \mathbb{R}^n. The system is homogeneous if g=0\mathbf{g} = \mathbf{0} and has constant coefficients if AA is constant.

RemarkReduction from higher order

Any nn-th order ODE y(n)+pn1y(n1)++p0y=g(t)y^{(n)} + p_{n-1}y^{(n-1)} + \cdots + p_0 y = g(t) is equivalent to a first-order system: let x1=y,x2=y,,xn=y(n1)x_1 = y, x_2 = y', \ldots, x_n = y^{(n-1)}. Then x=Ax+g\mathbf{x}' = A\mathbf{x} + \mathbf{g} with companion matrix AA.


Fundamental Matrix

Definition5.2Fundamental matrix

A fundamental matrix for x=A(t)x\mathbf{x}' = A(t)\mathbf{x} is an n×nn \times n matrix Φ(t)\Phi(t) whose columns are nn linearly independent solutions. The general solution is x(t)=Φ(t)c\mathbf{x}(t) = \Phi(t)\mathbf{c} for cRn\mathbf{c} \in \mathbb{R}^n.

The matrix exponential fundamental matrix is Φ(t)=eAt\Phi(t) = e^{At} (for constant AA), defined by eAt=k=0(At)kk!e^{At} = \sum_{k=0}^\infty \frac{(At)^k}{k!}.

Theorem5.1Properties of the matrix exponential

For a constant matrix AA:

  1. eA0=Ie^{A \cdot 0} = I (identity matrix).
  2. (eAt)=AeAt=eAtA(e^{At})' = Ae^{At} = e^{At}A.
  3. e(A+B)t=eAteBte^{(A+B)t} = e^{At}e^{Bt} if and only if AB=BAAB = BA.
  4. (eAt)1=eAt(e^{At})^{-1} = e^{-At}.
  5. det(eAt)=etr(A)t\det(e^{At}) = e^{\text{tr}(A)t}.

Eigenvalue Method

ExampleSolving via eigenvalues

Solve x=(1331)x\mathbf{x}' = \begin{pmatrix}1 & 3\\3 & 1\end{pmatrix}\mathbf{x}.

Eigenvalues: det(AλI)=(1λ)29=0    λ=4,2\det(A - \lambda I) = (1-\lambda)^2 - 9 = 0 \implies \lambda = 4, -2.

For λ1=4\lambda_1 = 4: (A4I)v=0    v1=(11)(A-4I)\mathbf{v} = 0 \implies \mathbf{v}_1 = \begin{pmatrix}1\\1\end{pmatrix}.

For λ2=2\lambda_2 = -2: (A+2I)v=0    v2=(11)(A+2I)\mathbf{v} = 0 \implies \mathbf{v}_2 = \begin{pmatrix}1\\-1\end{pmatrix}.

General solution: x(t)=c1e4t(11)+c2e2t(11)\mathbf{x}(t) = c_1 e^{4t}\begin{pmatrix}1\\1\end{pmatrix} + c_2 e^{-2t}\begin{pmatrix}1\\-1\end{pmatrix}.

ExampleComplex eigenvalues

Solve x=(0110)x\mathbf{x}' = \begin{pmatrix}0 & -1\\1 & 0\end{pmatrix}\mathbf{x}.

Eigenvalues: λ=±i\lambda = \pm i. For λ=i\lambda = i: v=(1i)\mathbf{v} = \begin{pmatrix}1\\-i\end{pmatrix}.

Complex solution: eit(1i)=(cost+isinticost+sint)=(costsint)+i(sintcost)e^{it}\begin{pmatrix}1\\-i\end{pmatrix} = \begin{pmatrix}\cos t + i\sin t\\-i\cos t + \sin t\end{pmatrix} = \begin{pmatrix}\cos t\\\sin t\end{pmatrix} + i\begin{pmatrix}\sin t\\-\cos t\end{pmatrix}.

Real solution: x(t)=c1(costsint)+c2(sintcost)\mathbf{x}(t) = c_1\begin{pmatrix}\cos t\\\sin t\end{pmatrix} + c_2\begin{pmatrix}\sin t\\-\cos t\end{pmatrix}.


Nonhomogeneous Systems

Theorem5.2Variation of parameters for systems

The solution to x=Ax+g(t)\mathbf{x}' = A\mathbf{x} + \mathbf{g}(t), x(t0)=x0\mathbf{x}(t_0) = \mathbf{x}_0 is

x(t)=eA(tt0)x0+t0teA(ts)g(s)ds.\mathbf{x}(t) = e^{A(t-t_0)}\mathbf{x}_0 + \int_{t_0}^t e^{A(t-s)}\mathbf{g}(s)\,ds.

RemarkDuhamel's principle

The integral t0teA(ts)g(s)ds\int_{t_0}^t e^{A(t-s)}\mathbf{g}(s)\,ds is a superposition of impulse responses, each weighted by g(s)\mathbf{g}(s) and propagated from time ss to time tt by eA(ts)e^{A(t-s)}. This is Duhamel's principle.