Solving Systems of Equations with Matrices Formula

Systems of linear equations can be represented as the matrix equation Ax = b and solved using augmented matrices with row reduction (Gaussian elimination), matrix inverses (x = A^(-1)b), or Cramer's rule (using determinants).

The Formula

Matrix equation: Ax=b⇒x=A−1b. Cramer's rule: xi=det⁡(Ai)det⁡(A) where Ai replaces column i of A with b.

Ask yourself: Can I write the system as Ax=b and solve mechanically by row ops, inverse, or determinants?

Quick example

{2x+y=5x−y=1→[21∣51−1∣1]→row reduce[10∣201∣1]
Solution: x=2, y=1.

Notation

Augmented matrix: [A∣b]. Row operations: Ri↔Rj (swap), kRi (scale), Ri+kRj (add). Goal: reduced row echelon form.

What this formula means

Systems of linear equations can be represented as the matrix equation Ax=b and solved using augmented matrices with row reduction (Gaussian elimination), matrix inverses (x=A−1b), or Cramer's rule (using determinants).

An augmented matrix is a spreadsheet of the system with the letters deleted, and row operations are elimination moves applied to whole rows at once. Like tidying a spreadsheet, you work toward a clean layout, ones on the diagonal and zeros elsewhere, where the answers can be read straight off the last column.

Formal view

The system Ax=b with A∈Rm×n is solved by Gaussian elimination on [A∣b] to RREF. If det⁡(A)≠0 (m=n), the unique solution is x=A−1b. By Cramer's rule: xi=det⁡(Ai)det⁡(A).

Worked examples

Example 1

medium
Solve using the inverse matrix: {2x+y=5x−y=1
Show solution

Answer

x=2,y=1

First step

1.
Step 1: Write as Ax=b: [211−1][xy]=[51].

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

hard
Use Cramer's rule to solve: {3x+2y=7x−y=1

Example 3

easy
Solve by inspection: (100010001)(xyz)=(4−27).

Common mistakes

  • Using x=A−1b when det⁡A=0 — there is no unique solution; switch to row reduction to classify it.
  • Setting up the augmented matrix in the wrong order — align coefficients column by variable and put constants after the bar.
  • Mishandling a row operation — only swap rows, scale a row, or add a multiple of one row to another.

Why this formula matters

Writing a system as Ax=b turns juggling equations into a routine that works the same way for 2 unknowns or 200, which is how calculators, spreadsheets and engineering software solve them. Row reduction also tells you plainly when a system has no solution or infinitely many. Without the matrix view, three equations become a page of substitutions where one sign slip spoils everything.

Frequently asked questions

What is the Solving Systems of Equations with Matrices formula?

Systems of linear equations can be represented as the matrix equation Ax=b and solved using augmented matrices with row reduction (Gaussian elimination), matrix inverses (x=A−1b), or Cramer's rule (using determinants).

How do you use the Solving Systems of Equations with Matrices formula?

Use it for several linear equations in the same unknowns, particularly three or more, or when one coefficient matrix appears with many different right-hand sides. Row reduction handles any such system and classifies it. Use x=A−1b or Cramer's rule only when A is square and det⁡A≠0. For two small equations where one variable is already isolated, substitution is quicker by hand. If any equation contains x2, xy or a variable in a denominator, the system is not linear and these methods do not apply.

What do the symbols mean in the Solving Systems of Equations with Matrices formula?

Augmented matrix: [A∣b]. Row operations: Ri↔Rj (swap), kRi (scale), Ri+kRj (add). Goal: reduced row echelon form.

Why is the Solving Systems of Equations with Matrices formula important in Math?

Writing a system as Ax=b turns juggling equations into a routine that works the same way for 2 unknowns or 200, which is how calculators, spreadsheets and engineering software solve them. Row reduction also tells you plainly when a system has no solution or infinitely many. Without the matrix view, three equations become a page of substitutions where one sign slip spoils everything.

What do students get wrong about Solving Systems of Equations with Matrices?

The procedure for solving systems of equations with matrices is the easy part; the trap is using x=A−1b when det⁡A=0. Asking "Can I write the system as Ax=b and solve mechanically by row ops, inverse, or determinants?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Solving Systems of Equations with Matrices formula?

Before studying the Solving Systems of Equations with Matrices formula, you should understand: systems of equations, inverse matrix, determinant.

The full guide

This formula is covered in depth in Solving Systems of Equations: Substitution, Elimination, and Matrices.