Mathwords logoMathwords

Systems of Differential Equations — Definition, Formula & Example

A system of differential equations is a set of differential equations with two or more unknown functions, where the rate of change of each function depends on the others. Because the equations are coupled, you must solve them together rather than one at a time.

A first-order system of nn ordinary differential equations in unknown functions x1(t),…,xn(t)x_1(t), \dots, x_n(t) has the form xi′=fi(t,x1,…,xn)x_i' = f_i(t, x_1, \dots, x_n) for i=1,…,ni = 1, \dots, n. The system is linear when every fif_i is a linear function of x1,…,xnx_1, \dots, x_n. A linear system can then be written as x′=A(t)x+g(t)\mathbf{x}' = A(t)\mathbf{x} + \mathbf{g}(t). It is homogeneous when g(t)=0\mathbf{g}(t) = \mathbf{0}.

Key Formula

x′(t)=A x(t)⟹x(t)=c1eλ1tv1+c2eλ2tv2\mathbf{x}'(t) = A\,\mathbf{x}(t) \quad\Longrightarrow\quad \mathbf{x}(t) = c_1 e^{\lambda_1 t}\mathbf{v}_1 + c_2 e^{\lambda_2 t}\mathbf{v}_2
Where:
  • x(t)\mathbf{x}(t) = Vector of unknown functions, such as (x(t), y(t))
  • AA = Constant 2 × 2 coefficient matrix
  • λ1,λ2\lambda_1, \lambda_2 = Eigenvalues of A (the solution shown assumes they are real and distinct)
  • v1,v2\mathbf{v}_1, \mathbf{v}_2 = Eigenvectors matching each eigenvalue
  • c1,c2c_1, c_2 = Constants fixed by the initial conditions

Worked Example

Problem: Solve the initial value problem x′=x+2yx' = x + 2y, y′=2x+yy' = 2x + y with x(0)=4x(0) = 4 and y(0)=2y(0) = 2.
Step 1: Write the system as x′=Ax\mathbf{x}' = A\mathbf{x} with A=(1221)A = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix}. Find the eigenvalues from det⁡(A−λI)=0\det(A - \lambda I) = 0.
(1−λ)2−4=0  ⟹  1−λ=±2  ⟹  λ1=3, λ2=−1(1-\lambda)^2 - 4 = 0 \implies 1 - \lambda = \pm 2 \implies \lambda_1 = 3,\ \lambda_2 = -1
Step 2: Find an eigenvector for each eigenvalue. For λ=3\lambda = 3, the equation −2v1+2v2=0-2v_1 + 2v_2 = 0 gives v1=v2v_1 = v_2. For λ=−1\lambda = -1, the equation 2v1+2v2=02v_1 + 2v_2 = 0 gives v2=−v1v_2 = -v_1.
v1=(11),v2=(1−1)\mathbf{v}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}, \quad \mathbf{v}_2 = \begin{pmatrix} 1 \\ -1 \end{pmatrix}
Step 3: Write the general solution. Set t=0t = 0 to get c1+c2=4c_1 + c_2 = 4 and c1−c2=2c_1 - c_2 = 2. Adding these gives 2c1=62c_1 = 6, so c1=3c_1 = 3 and c2=1c_2 = 1.
(xy)=c1e3t(11)+c2e−t(1−1)\begin{pmatrix} x \\ y \end{pmatrix} = c_1 e^{3t}\begin{pmatrix} 1 \\ 1 \end{pmatrix} + c_2 e^{-t}\begin{pmatrix} 1 \\ -1 \end{pmatrix}
Answer: x(t)=3e3t+e−tx(t) = 3e^{3t} + e^{-t} and y(t)=3e3t−e−ty(t) = 3e^{3t} - e^{-t}. Check: x′=9e3t−e−tx' = 9e^{3t} - e^{-t}, which equals x+2yx + 2y.

Why It Matters

Coupled spring-mass systems, electrical circuits with several loops, and predator-prey population models are all systems of differential equations. Numerical solvers such as Runge–Kutta expect first-order systems, so engineers routinely rewrite a second-order equation like y′′+y=0y'' + y = 0 as the system y′=vy' = v, v′=−yv' = -y. This is a core unit in a college Differential Equations course, and it is where eigenvalues from linear algebra pay off.

Common Mistakes

Mistake: Solving each equation separately, treating the other unknown function as a constant (for example, integrating x′=x+2yx' = x + 2y as if yy were fixed).
Correction: In a coupled system, yy changes with tt too. Either decouple the system with eigenvalues and eigenvectors, or eliminate one function to get a single higher-order equation. Then check your answer in both original equations.

Related Terms