Linear System of ODEs Solver (2x2)

Published on: July 18, 2026
Final Answer: Free | Full Steps: Pro

This Linear System ODE Solver Calculator solves a pair of differential equations that feed into each other, and shows the working line by line. Written in matrix form the system asks which directions keep their shape as time passes, and those directions are exactly the eigenvectors of the matrix. Each eigenvalue supplies the exponential that rides along its own eigenvector. Following the same pattern every time keeps each eigenvector paired with the right eigenvalue.

Step-by-step method

  1. Set up the problem.
  2. Write the method.
  3. Find the eigenvalues and eigenvectors.
  4. Build a solution from each eigenvalue.
  5. Write the general solution.

Formula: Eigenvector Solution

Each eigenvalue λ and eigenvector v of A gives a solution v e^(λt). Adding them with constants gives the general solution.

\(\mathbf{x}' = A\mathbf{x} \;\Rightarrow\; \mathbf{x}(t) = \sum C_{i}\mathbf{v}_{i}e^{\lambda_{i}t}\)

Useful Tips to Remember

Every eigenvalue gives a solution of the form \(\mathbf{v}e^{\lambda t}\), where \(\mathbf{v}\) is its eigenvector. Complex eigenvalues come in pairs, and the real and imaginary parts of one solution give two real solutions, so the other eigenvalue adds nothing new. A repeated eigenvalue with too few eigenvectors needs a generalized eigenvector \(\mathbf{w}\) with \((A - \lambda I)\mathbf{w} = \mathbf{v}\). The general solution has one constant for each unknown function.

Required knowledge

Where Are Linear Systems of Differential Equations Used?

Systems of differential equations describe several quantities that affect each other. Predator and prey populations, two tanks of liquid feeding each other and coupled springs all lead to them. The eigenvalues show whether the system settles, grows or oscillates, which is how engineers check the stability of circuits, aircraft and control systems.

  • Predator and prey populations
  • Coupled springs and masses
  • Connected tanks in mixing problems
  • Stability of control systems
  • Electrical networks with several loops

Linear System ODE Practice Problems

Example 1 solves the system with \(A = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\), and Example 2 uses \(A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}\). Find the eigenvalues and eigenvectors, then build the solution. For two more free worked examples, check out the Linear System of ODEs Solver (2x2) Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the method.
  3. Find the eigenvalues and eigenvectors.
  4. Build a solution from each eigenvalue.
  5. Write the general solution.

Formula

Formula: Eigenvector Solution

Each eigenvalue λ and eigenvector v of A gives a solution v e^(λt). Adding them with constants gives the general solution.

\(\mathbf{x}' = A\mathbf{x} \;\Rightarrow\; \mathbf{x}(t) = \sum C_{i}\mathbf{v}_{i}e^{\lambda_{i}t}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are solving the system \(\begin{bmatrix} x_{1}' \\ x_{2}' \end{bmatrix} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\begin{bmatrix} x_{1} \\ x_{2} \end{bmatrix}\), where each \(x_{i}\) is a function of \(t\).

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\)

Step 2

Step 2 - Write the method.

In this problem: If \(\mathbf{v}\) is an eigenvector of A with eigenvalue \(\lambda\), then \(\mathbf{v}e^{\lambda t}\) solves the system, because differentiating it multiplies it by \(\lambda\), and so does multiplying by A. Adding one such solution for each independent eigenvector, each times a constant, gives the general solution.

\(\mathbf{x}(t) = C_{1}\mathbf{v}_{1}e^{\lambda_{1}t} + C_{2}\mathbf{v}_{2}e^{\lambda_{2}t}\)

Step 3

Step 3 - Find the eigenvalues and eigenvectors.

In this problem: The eigenvalues and eigenvectors of A, covered in the Eigenvector of a 2×2 Matrix Calculator, give the building blocks of the solution.

\(\lambda_{1} = 1,\; \lambda_{2} = 3\)

Step 4

Step 4 - Build a solution from each eigenvalue.

In this problem: Each eigenvalue gives its own solutions.

\(\lambda = 1,\; 3\)

Step 4a

Step 4a - Build solution 1.

In this problem: The eigenvalue \(\lambda = 1\) has eigenvector \(\begin{bmatrix} 1 \\ -1 \end{bmatrix}\), which gives the solution \(\begin{bmatrix} 1 \\ -1 \end{bmatrix}e^{t}\).

\(\begin{bmatrix} 1 \\ -1 \end{bmatrix}e^{t}\)

Step 4b

Step 4b - Build solution 2.

In this problem: The eigenvalue \(\lambda = 3\) has eigenvector \(\begin{bmatrix} 1 \\ 1 \end{bmatrix}\), which gives the solution \(\begin{bmatrix} 1 \\ 1 \end{bmatrix}e^{3 t}\).

\(\begin{bmatrix} 1 \\ 1 \end{bmatrix}e^{3 t}\)

Step 5

Step 5 - Write the general solution.

In this problem: Adding the solutions, each times its own constant, and reading off each component gives the general solution.

\(\begin{gathered} x_{1}(t) = C_{1} e^{t} + C_{2} e^{3 t} \\ x_{2}(t) = - C_{1} e^{t} + C_{2} e^{3 t} \end{gathered}\)

Final Answer

\(\begin{gathered} x_{1}(t) = C_{1} e^{t} + C_{2} e^{3 t} \\ x_{2}(t) = - C_{1} e^{t} + C_{2} e^{3 t} \end{gathered}\)
See Example 2 Hide Example 2

Problem

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the method.
  3. Find the eigenvalues and eigenvectors.
  4. Build a solution from each eigenvalue.
  5. Write the general solution.

Formula

Formula: Eigenvector Solution

Each eigenvalue λ and eigenvector v of A gives a solution v e^(λt). Adding them with constants gives the general solution.

\(\mathbf{x}' = A\mathbf{x} \;\Rightarrow\; \mathbf{x}(t) = \sum C_{i}\mathbf{v}_{i}e^{\lambda_{i}t}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are solving the system \(\begin{bmatrix} x_{1}' \\ x_{2}' \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}\begin{bmatrix} x_{1} \\ x_{2} \end{bmatrix}\), where each \(x_{i}\) is a function of \(t\).

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}\)

Step 2

Step 2 - Write the method.

In this problem: If \(\mathbf{v}\) is an eigenvector of A with eigenvalue \(\lambda\), then \(\mathbf{v}e^{\lambda t}\) solves the system, because differentiating it multiplies it by \(\lambda\), and so does multiplying by A. Adding one such solution for each independent eigenvector, each times a constant, gives the general solution.

\(\mathbf{x}(t) = C_{1}\mathbf{v}_{1}e^{\lambda_{1}t} + C_{2}\mathbf{v}_{2}e^{\lambda_{2}t}\)

Step 3

Step 3 - Find the eigenvalues and eigenvectors.

In this problem: The eigenvalues and eigenvectors of A, covered in the Eigenvector of a 2×2 Matrix Calculator, give the building blocks of the solution.

\(\lambda_{1} = -2,\; \lambda_{2} = -1\)

Step 4

Step 4 - Build a solution from each eigenvalue.

In this problem: Each eigenvalue gives its own solutions.

\(\lambda = -2,\; -1\)

Step 4a

Step 4a - Build solution 1.

In this problem: The eigenvalue \(\lambda = -2\) has eigenvector \(\begin{bmatrix} 1 \\ -2 \end{bmatrix}\), which gives the solution \(\begin{bmatrix} 1 \\ -2 \end{bmatrix}e^{- 2 t}\).

\(\begin{bmatrix} 1 \\ -2 \end{bmatrix}e^{- 2 t}\)

Step 4b

Step 4b - Build solution 2.

In this problem: The eigenvalue \(\lambda = -1\) has eigenvector \(\begin{bmatrix} 1 \\ -1 \end{bmatrix}\), which gives the solution \(\begin{bmatrix} 1 \\ -1 \end{bmatrix}e^{- t}\).

\(\begin{bmatrix} 1 \\ -1 \end{bmatrix}e^{- t}\)

Step 5

Step 5 - Write the general solution.

In this problem: Adding the solutions, each times its own constant, and reading off each component gives the general solution.

\(\begin{gathered} x_{1}(t) = C_{1} e^{- 2 t} + C_{2} e^{- t} \\ x_{2}(t) = - 2 C_{1} e^{- 2 t} - C_{2} e^{- t} \end{gathered}\)

Final Answer

\(\begin{gathered} x_{1}(t) = C_{1} e^{- 2 t} + C_{2} e^{- t} \\ x_{2}(t) = - 2 C_{1} e^{- 2 t} - C_{2} e^{- t} \end{gathered}\)

Notes and Practice Mode

Coefficient matrix A

Example Problems

Click one to load it into the box and solve it.