Matrix Form of Systems of Differential Equations
students, systems of differential equations are a powerful way to describe situations where several quantities change together over time 📈. Instead of tracking just one unknown function, we track two or more at the same time. In this lesson, you will learn how to write a system in matrix form, why that is useful, and how it connects to the bigger topic of linear systems, eigenvalues, and eigenvectors.
What you will learn
By the end of this lesson, students, you should be able to:
- explain the main ideas and terminology behind matrix form,
- rewrite a system of differential equations using matrices,
- connect matrix form to linear systems and later methods such as eigenvalues and eigenvectors,
- interpret what the matrix tells us about the system,
- use matrix form as a compact and organized way to study several linked equations.
A lot of real-world problems naturally involve multiple changing quantities. For example, populations of two species, circuits with several currents, or interacting chemicals can all be modeled with systems. Matrix form gives us a clean way to write those systems and makes advanced solution methods possible.
From a system to a matrix
A system of differential equations is a set of differential equations that involve multiple unknown functions. For example, suppose we have two functions $x(t)$ and $y(t)$:
$$
$\begin{cases}$
$\dfrac{dx}{dt} = 2x + 3y \\$
$\dfrac{dy}{dt} = -x + 4y$
$\end{cases}$
$$
This system says that the rate of change of $x$ depends on both $x$ and $y$, and the rate of change of $y$ also depends on both $x$ and $y$. That “depends on both” part is exactly what makes systems important.
To write this in matrix form, we collect the variables into a vector:
$$
$\mathbf{x}$(t) = $\begin{bmatrix}$ x(t) \ y(t) $\end{bmatrix}$
$$
Then we collect the coefficients into a matrix:
$$
A = $\begin{bmatrix} 2$ & 3 \ -1 & $4 \end{bmatrix}$
$$
The system can now be written as:
$$
$\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$
$$
This is the standard form of a linear system of differential equations. Here, the derivative of the vector function is equal to a matrix times the vector function itself. That compact notation is one of the main reasons matrix form is so useful ✨.
Understanding the pieces of matrix form
Let’s break down the notation carefully, students.
The vector of unknowns
The vector $\mathbf{x}(t)$ groups the unknown functions together. In a two-variable system, it often looks like
$$
$\mathbf{x}$(t) = $\begin{bmatrix}$ x_1(t) \ x_2(t) $\end{bmatrix}$
$$
For a three-variable system, it could be
$$
$\mathbf{x}$(t) = $\begin{bmatrix}$ x_1(t) \ x_2(t) \ x_3(t) $\end{bmatrix}$
$$
Using vector notation helps us treat many equations as one object.
The derivative of a vector
The derivative is taken component by component:
$$
$\dfrac{d\mathbf{x}}{dt}$ = $\begin{bmatrix}$ $\dfrac{dx_1}{dt}$ \ $\dfrac{dx_2}{dt}$ \ $\dfrac{dx_3}{dt}$ $\end{bmatrix}$
$$
So when we write $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$, we are saying that each component of the derivative is determined by a linear combination of the components of $\mathbf{x}$.
The coefficient matrix
The matrix $A$ contains the constants that connect the variables. For a two-variable system,
$$
A = $\begin{bmatrix}$ a & b \ c & d $\end{bmatrix}$
$$
then the matrix equation
$$
$\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$
$$
means
$$
$\begin{cases}$
$\dfrac{dx_1}{dt} = ax_1 + bx_2 \\$
$\dfrac{dx_2}{dt} = cx_1 + dx_2$
$\end{cases}$
$$
So the matrix simply stores the coefficients from the system in organized form.
Why matrix form matters
Matrix form is not just a shorter way to write equations. It gives us a structure that can be studied using linear algebra and differential equations together.
Here are three major reasons it matters:
1. It simplifies notation
Instead of writing many equations, we can write one compact equation:
$$
$\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$
$$
This is easier to read when systems have many variables.
2. It reveals patterns
The matrix shows how each variable affects the others. A large positive entry in $A$ means one variable strongly increases another rate of change, while a negative entry means it may decrease it. In a model of two competing species, the matrix can show how one population influences the other.
3. It leads to solution methods
Many important methods for solving linear systems depend on matrix ideas, especially eigenvalues and eigenvectors. These help us understand long-term behavior such as whether solutions grow, decay, oscillate, or remain stable.
Example: rewriting a system in matrix form
Suppose students is given the system
$$
$\begin{cases}$
$\dfrac{dx}{dt} = 5x - 2y \\$
$\dfrac{dy}{dt} = 3x + y$
$\end{cases}$
$$
To write it in matrix form, first define the vector of unknowns:
$$
$\mathbf{x}$(t) = $\begin{bmatrix}$ x(t) \ y(t) $\end{bmatrix}$
$$
Next, place the coefficients into a matrix:
$$
A = $\begin{bmatrix} 5$ & -2 \ 3 & $1 \end{bmatrix}$
$$
Now the system becomes:
$$
$\dfrac{d\mathbf{x}}{dt}$ = $\begin{bmatrix} 5$ & -2 \ 3 & $1 \end{bmatrix}$$\mathbf{x}$
$$
To check that this works, multiply the matrix by the vector:
$$
$\begin{bmatrix} 5$ & -2 \ 3 & $1 \end{bmatrix}$$\begin{bmatrix}$ x \ y $\end{bmatrix}$ = $\begin{bmatrix} 5$x - 2y \ 3x + y $\end{bmatrix}$
$$
This matches the original system exactly. That check is important because it shows that matrix form is not a new problem, just a new way to organize the same information ✅.
Example with three variables
Matrix form becomes even more useful when there are more than two equations. Consider a three-variable system:
$$
$\begin{cases}$
$\dfrac{dx_1}{dt}$ = x_1 + 2x_2 - x_3 \\
$\dfrac{dx_2}{dt}$ = 3x_1 - x_2 + 4x_3 \\
$\dfrac{dx_3}{dt}$ = -2x_1 + x_2 + 5x_3
$\end{cases}$
$$
We write the vector of unknowns as
$$
$\mathbf{x}$(t) = $\begin{bmatrix}$ x_1(t) \ x_2(t) \ x_3(t) $\end{bmatrix}$
$$
and the coefficient matrix as
$$
$A = \begin{bmatrix}$
1 & 2 & -1 \\
3 & -1 & 4 \\
-2 & 1 & 5
$\end{bmatrix}$
$$
Then the system becomes
$$
$\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$
$$
This form is especially helpful because writing all three equations separately takes more space and makes patterns harder to see. The matrix groups all of the coefficients in one place.
How matrix form connects to eigenvalues and eigenvectors
Matrix form is the doorway to one of the most important ideas in this topic: eigenvalues and eigenvectors.
An eigenvector of a matrix $A$ is a nonzero vector $\mathbf{v}$ such that
$$
$A\mathbf{v} = \lambda \mathbf{v}$
$$
for some number $\lambda$, called the eigenvalue.
Why does this matter for systems? If a solution vector points in an eigenvector direction, then applying the matrix only scales it. In differential equations, that often leads to solutions of the form
$$
$\mathbf{x}(t) = e^{\lambda t}\mathbf{v}$
$$
This is a key reason matrix form is so important. It lets us look for special directions in which the system behaves in a simple way. Those directions help us build the full solution.
For example, if $\lambda > 0$, then $e^{\lambda t}$ grows over time, so the solution expands. If $\lambda < 0$, the solution decays toward zero. This is how matrix form helps us understand the behavior of the system, not just write it down.
Interpreting matrix entries in real life
Matrix form also helps in real-world modeling 🌍.
Imagine a two-species model where $x(t)$ is rabbits and $y(t)$ is foxes. The system
$$
$\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$
$$
with
$$
A = $\begin{bmatrix}$ a & b \ c & d $\end{bmatrix}$
$$
might represent how the rabbit population and fox population affect each other. The values in the matrix are not random; they represent rates of interaction.
For instance:
- $a$ might represent the rabbit population’s own growth rate,
- $b$ might represent the effect of foxes on rabbits,
- $c$ might represent the effect of rabbits on foxes,
- $d$ might represent the fox population’s own change rate.
Even if the exact meaning depends on the model, the matrix always organizes how one quantity influences another.
Conclusion
Matrix form is a central idea in systems of differential equations. It turns a set of linked differential equations into one compact equation:
$$
$\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$
$$
This format is useful because it is concise, reveals the structure of the system, and connects directly to linear algebra tools such as eigenvalues and eigenvectors. students, whenever you see a linear system with constant coefficients, think about the matrix behind it. That matrix is the key to understanding the whole system.
Study Notes
- A system of differential equations has more than one unknown function.
- In matrix form, a linear system is written as $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$.
- The vector $\mathbf{x}(t)$ contains the unknown functions.
- The matrix $A$ contains the coefficients from the system.
- Matrix form is especially useful for linear systems with constant coefficients.
- It makes large systems easier to write and study.
- Matrix form connects directly to eigenvalues and eigenvectors.
- Eigenvalues and eigenvectors help describe the long-term behavior of solutions.
- Positive eigenvalues often lead to growth, while negative eigenvalues often lead to decay.
- Matrix form is a bridge between differential equations and linear algebra.
