Worked solution: solve x+y+z=6, 2x-y+z=3, x+2y-z=2 using matrices

Step-by-step working for this solve linear systems with matrices problem, produced and checked by the solver.

Solve using matrices Answer checked
Answer
x=1,;y=2,;z=3x = 1,; y = 2,; z = 3
  1. Write the equations as a matrix equation AX = B
  2. Find the determinant of A
  3. Find the inverse matrix A⁻¹ (swap and negate for 2×2, or use cofactors for 3×3, then divide by the determinant)
  4. Multiply: X = A⁻¹B
  5. Check by substituting the answer into every equation

Change the numbers and solve your own

The method in brief

  1. Write the coefficients as matrix A, the unknowns as X and the right-hand sides as B.
  2. Find det A. If it is 0 there is no unique solution.
  3. Find A⁻¹: for 2×2 swap, negate and divide by det; for 3×3 use cofactors.
  4. Multiply A⁻¹ by B.

Full guide: Solving simultaneous equations with matrices.

More A-level examples on this topic