Linear System of ODEs Solver (3x3) Notes

Published on: September 29, 2026

These Linear System of ODEs Solver (3x3) Notes explain how to solve three differential equations that feed into each other, with the working shown 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, and the three combine into the general solution. 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 three such solutions 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?

Three coupled equations appear whenever three quantities affect each other, such as three connected tanks, three masses joined by springs or a chain of radioactive decays. In chemistry they model reactions where one substance turns into another and then a third. The eigenvalues decide how fast each part settles, which matters in control and stability problems.

  • Radioactive decay chains
  • Three connected tanks
  • Chains of chemical reactions
  • Three masses joined by springs
  • Compartment models in medicine

Linear System 3×3 ODE Practice Problems

Example 1 uses a diagonal matrix, where each equation can be solved on its own, and Example 2 uses an upper triangular matrix. Examples 3 and 4 give you two more problems of the same kind to try. Find the eigenvalues and eigenvectors, then build the solution.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them 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 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 4 \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}' \\ x_{3}' \end{bmatrix} = \begin{bmatrix} 2 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 4 \end{bmatrix}\begin{bmatrix} x_{1} \\ x_{2} \\ x_{3} \end{bmatrix}\), where each \(x_{i}\) is a function of \(t\).

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 2 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 4 \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} + C_{3}\mathbf{v}_{3}e^{\lambda_{3}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 3×3 Matrix Calculator, give the building blocks of the solution.

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

Step 4

Step 4 - Build a solution from each eigenvalue.

In this problem: Each eigenvalue gives its own solutions.

\(\lambda = 2,\; 3,\; 4\)

Step 4a

Step 4a - Build solution 1.

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

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

Step 4b

Step 4b - Build solution 2.

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

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

Step 4c

Step 4c - Build solution 3.

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

\(\begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}e^{4 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} \\ x_{2}(t) = C_{2} e^{3 t} \\ x_{3}(t) = C_{3} e^{4 t} \end{gathered}\)

Final Answer

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

Problem

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 1 & 1 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 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}' \\ x_{3}' \end{bmatrix} = \begin{bmatrix} 1 & 1 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 3 \end{bmatrix}\begin{bmatrix} x_{1} \\ x_{2} \\ x_{3} \end{bmatrix}\), where each \(x_{i}\) is a function of \(t\).

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 1 & 1 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 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} + C_{3}\mathbf{v}_{3}e^{\lambda_{3}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 3×3 Matrix Calculator, give the building blocks of the solution.

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

Step 4

Step 4 - Build a solution from each eigenvalue.

In this problem: Each eigenvalue gives its own solutions.

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

Step 4a

Step 4a - Build solution 1.

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

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

Step 4b

Step 4b - Build solution 2.

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

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

Step 4c

Step 4c - Build solution 3.

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

\(\begin{bmatrix} 0 \\ 0 \\ 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^{2 t} \\ x_{2}(t) = C_{2} e^{2 t} \\ x_{3}(t) = C_{3} e^{3 t} \end{gathered}\)

Final Answer

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

Problem

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 1 & 0 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & 5 \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}' \\ x_{3}' \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & 5 \end{bmatrix}\begin{bmatrix} x_{1} \\ x_{2} \\ x_{3} \end{bmatrix}\), where each \(x_{i}\) is a function of \(t\).

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 1 & 0 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & 5 \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} + C_{3}\mathbf{v}_{3}e^{\lambda_{3}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 3×3 Matrix Calculator, give the building blocks of the solution.

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

Step 4

Step 4 - Build a solution from each eigenvalue.

In this problem: Each eigenvalue gives its own solutions.

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

Step 4a

Step 4a - Build solution 1.

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

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

Step 4b

Step 4b - Build solution 2.

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

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

Step 4c

Step 4c - Build solution 3.

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

\(\begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}e^{5 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_{2} e^{t} \\ x_{2}(t) = C_{1} e^{- 2 t} \\ x_{3}(t) = C_{3} e^{5 t} \end{gathered}\)

Final Answer

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

Problem

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 2 & 1 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 1 \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}' \\ x_{3}' \end{bmatrix} = \begin{bmatrix} 2 & 1 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 1 \end{bmatrix}\begin{bmatrix} x_{1} \\ x_{2} \\ x_{3} \end{bmatrix}\), where each \(x_{i}\) is a function of \(t\).

\(\mathbf{x}' = A\mathbf{x},\quad A = \begin{bmatrix} 2 & 1 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 1 \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} + C_{3}\mathbf{v}_{3}e^{\lambda_{3}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 3×3 Matrix Calculator, give the building blocks of the solution.

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

Step 4

Step 4 - Build a solution from each eigenvalue.

In this problem: Each eigenvalue gives its own solutions.

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

Step 4a

Step 4a - Build solution 1.

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

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

Step 4b

Step 4b - Build solution 2.

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

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

Step 4c

Step 4c - Build solution 3.

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

\(\begin{bmatrix} 1 \\ 1 \\ 0 \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_{2} e^{2 t} + C_{3} e^{3 t} \\ x_{2}(t) = C_{3} e^{3 t} \\ x_{3}(t) = C_{1} e^{t} \end{gathered}\)

Final Answer

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

Calculator and Practice Mode