Matrices & Vectors · How-to

Solving Simultaneous Equations With Matrices

The inverse-matrix method from first principles — write AX = B, find A⁻¹, read off X — plus when to reach for the dedicated equation solver instead.

fx-991ES Web TeamUpdated 23 June 20267 min read

Any linear system can be packed into a single matrix equation and solved in one move. This is the matrix view of solving simultaneous equations, and once you see it, three-variable systems stop being intimidating.

On this page

  1. Writing the system as AX = B
  2. The inverse-matrix method
  3. Worked 2-variable example
  4. The faster route: EQN mode
  5. When it fails
  6. FAQ

Writing the system as AX = B

Take the system:

x + 2y = 5
3x + 4y = 6

Separate coefficients, unknowns and constants into three matrices:

A = 1 2     X = x     B = 5
    3 4         y         6

Then the whole system is simply A X = B.

The inverse-matrix method

If A has an inverse, multiply both sides on the left by A⁻¹:

A⁻¹ A X = A⁻¹ B   →   X = A⁻¹ B

So the unknowns are just A⁻¹ times B. That's the entire method.

Worked 2-variable example

From the matrix pillar we know A = [[1, 2], [3, 4]] has A⁻¹ = [[−2, 1], [1.5, −0.5]]. Multiply by B = [5, 6]:

Check

x + 2y = −4 + 9 = 5 ✔ and 3x + 4y = −12 + 18 = 6 ✔

To do this on the calculator, enter A in MATRIX mode to get A⁻¹, then apply it to B.

The faster route: EQN mode

For most homework, you don't even need the inverse. Switch to EQN mode, choose simultaneous equations, and enter the coefficients and constants directly — the calculator returns x and y (and z for three unknowns) in one step. See systems of equations with 2–3 unknowns for that workflow, and the equation solver pillar for the full picture.

When it fails

det(A) = 0

If the coefficient matrix is singular, there's no unique solution — the equations are either contradictory (no solution) or dependent (infinitely many). The inverse method only works when det(A) ≠ 0.

Frequently asked questions

How do matrices solve simultaneous equations?

Write AX = B; if A is invertible, X = A⁻¹B gives the unknowns directly.

What if A isn't invertible?

det(A) = 0 means no unique solution — either none or infinitely many.

Can it solve 3-variable systems?

Yes — EQN mode handles 2–3 unknowns directly, or use a 3×3 inverse in MATRIX mode.

Solve your system now

Use MATRIX mode for the inverse method, or EQN mode to enter coefficients directly.

Open the equation solver →