Matrix Calculator

🌐 English
A (3×3)
Rows: 3
Cols: 3
B (3×3)
Rows: 3
Cols: 3
Supports: fractions (1/2), decimals (0.5), constants (pi, e). Empty cells are treated as 0.

Calculation Results

Augmented Matrix: Definition, Formula, Examples and Practice Problems

An augmented matrix is a compact matrix representation of a system of linear equations. It combines the coefficient matrix and the constant vector into one matrix, which is very useful for solving systems using Gaussian elimination or Gauss–Jordan elimination.


1. Definition and Formula

The augmented matrix of a linear system:

\[ \begin{cases} a_{11}x_1 + a_{12}x_2 + \cdots + a_{1n}x_n = b_1 \\ a_{21}x_1 + a_{22}x_2 + \cdots + a_{2n}x_n = b_2 \\ \vdots \\ a_{m1}x_1 + a_{m2}x_2 + \cdots + a_{mn}x_n = b_m \end{cases} \]

Its augmented matrix is:

\[ \left[ \, A \mid b \, \right] = \left[ \begin{array}{cccc|c} a_{11} & a_{12} & \cdots & a_{1n} & b_1 \\ a_{21} & a_{22} & \cdots & a_{2n} & b_2 \\ \vdots & \vdots & & \vdots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} & b_m \end{array} \right] \]

This form allows easy computation of solutions by performing row operations.


2. Example Problems

Example 1

Construct the augmented matrix for the system:

\[ \begin{cases} x + 2y = 5 \\ 3x - y = 4 \end{cases} \]

Show Answer

\[ \left[ \begin{array}{cc|c} 1 & 2 & 5 \\ 3 & -1 & 4 \end{array} \right] \]


Example 2

Construct the augmented matrix for the system:

\[ \begin{cases} 2x - y + 3z = 7 \\ 4x + 5y - z = 2 \\ -x + 2y + z = 3 \end{cases} \]

Show Answer

\[ \left[ \begin{array}{ccc|c} 2 & -1 & 3 & 7 \\ 4 & 5 & -1 & 2 \\ -1 & 2 & 1 & 3 \end{array} \right] \]


3. Common Mistakes (Easy Pitfalls)

  • Mixing the order of variables — Ensure each row follows the same variable order \( (x, y, z, \ldots) \).
  • Forgetting zero coefficients — Missing a term means the coefficient is 0, not “empty”. Example: \(x + z = 5\) → row is \([1, 0, 1 \mid 5]\).
  • Incorrectly performing row operations — Only row operations are allowed; you cannot swap columns.
  • Confusing augmented matrix with coefficient matrix — The vertical bar is important; don’t leave out the constant vector.

4. Practice Problems

Try these augmented matrix problems. Answers are included below each question.

Practice 1

Write the augmented matrix for:

\[ \begin{cases} 2x + y = 8 \\ -x + 4y = 3 \end{cases} \]

Show Answer

\[ \left[ \begin{array}{cc|c} 2 & 1 & 8 \\ -1 & 4 & 3 \end{array} \right] \]


Practice 2

Write the augmented matrix for:

\[ \begin{cases} 3x - 2y + z = 1 \\ 4x + y - 3z = 7 \\ -x + 5y + 2z = 4 \end{cases} \]

Show Answer

\[ \left[ \begin{array}{ccc|c} 3 & -2 & 1 & 1 \\ 4 & 1 & -3 & 7 \\ -1 & 5 & 2 & 4 \end{array} \right] \]


Practice 3

Write the augmented matrix for the system:

\[ \begin{cases} x - y + 4z = 9 \\ 2x + 3y = 5 \end{cases} \]

Show Answer

Missing \(z\)-term in 2nd equation → coefficient is 0.

\[ \left[ \begin{array}{ccc|c} 1 & -1 & 4 & 9 \\ 2 & 3 & 0 & 5 \end{array} \right] \]


Practice 4

Write the augmented matrix for:

\[ \begin{cases} 5x + y - z = 6 \\ 3x - 4y + 2z = 1 \\ -x + 2y + z = 4 \end{cases} \]

Show Answer

\[ \left[ \begin{array}{ccc|c} 5 & 1 & -1 & 6 \\ 3 & -4 & 2 & 1 \\ -1 & 2 & 1 & 4 \end{array} \right] \]


Learn matrix multiplication more easily in just 2 minutes with this free game.

Matrix Multiplication Game