Mathwords logoMathwords

Solving Systems of Linear Equations Using Matrices — Definition, Formula & Examples

Solving systems of linear equations using matrices means rewriting a system of equations in matrix form and then applying matrix operations—such as row reduction or finding an inverse—to determine the values of the unknowns.

Given a system Ax=bA\mathbf{x} = \mathbf{b}, where AA is the coefficient matrix, x\mathbf{x} is the column vector of unknowns, and b\mathbf{b} is the constant vector, the solution is obtained either by row-reducing the augmented matrix [Ab][A \mid \mathbf{b}] to reduced row-echelon form or, when AA is invertible, by computing x=A1b\mathbf{x} = A^{-1}\mathbf{b}.

Key Formula

x=A1b\mathbf{x} = A^{-1}\mathbf{b}
Where:
  • AA = The coefficient matrix of the system
  • x\mathbf{x} = The column vector of unknowns
  • b\mathbf{b} = The column vector of constants on the right-hand side
  • A1A^{-1} = The inverse of the coefficient matrix (exists only when det(A) ≠ 0)

How It Works

Start by identifying the coefficient matrix AA, the variable vector x\mathbf{x}, and the constant vector b\mathbf{b} from your system. Form the augmented matrix [Ab][A \mid \mathbf{b}]. Apply elementary row operations (swap rows, multiply a row by a nonzero scalar, add a multiple of one row to another) until the left side becomes the identity matrix. The right side then gives the solution. Alternatively, if you can find A1A^{-1}, simply multiply both sides on the left by A1A^{-1} to get x=A1b\mathbf{x} = A^{-1}\mathbf{b} directly.

Worked Example

Problem: Solve the system: 2x + y = 5 and 4x + 3y = 13 using the augmented matrix method.
Step 1: Write the augmented matrix from the system.
[2154313]\left[\begin{array}{cc|c} 2 & 1 & 5 \\ 4 & 3 & 13 \end{array}\right]
Step 2: Replace R₂ with R₂ − 2R₁ to eliminate the first entry in row 2.
[215013]\left[\begin{array}{cc|c} 2 & 1 & 5 \\ 0 & 1 & 3 \end{array}\right]
Step 3: Replace R₁ with R₁ − R₂ to eliminate the second entry in row 1, then divide R₁ by 2.
[202013][101013]\left[\begin{array}{cc|c} 2 & 0 & 2 \\ 0 & 1 & 3 \end{array}\right] \rightarrow \left[\begin{array}{cc|c} 1 & 0 & 1 \\ 0 & 1 & 3 \end{array}\right]
Answer: x = 1, y = 3

Why It Matters

This technique scales to systems with many variables where substitution or elimination by hand becomes impractical. Engineers use it to analyze electrical circuits, economists use it for equilibrium models, and computer graphics rely on it for coordinate transformations. Mastering matrix methods in Algebra 2 or Precalculus prepares you for linear algebra courses in college.

Common Mistakes

Mistake: Attempting to use the inverse method when the determinant of A is zero.
Correction: If det(A) = 0, the matrix is not invertible and the system has either no solution or infinitely many solutions. Use row reduction on the augmented matrix instead.