Resources For Teachers For Tutors For Students & Parents Pricing
Year 11 Specialist (Unit 1 & 2) Matrices

Solution of simultaneous equations using matrices

20 practice questions 0 video lessons Theory + worked examples

Learn to solve simultaneous equations using matrices for Year 11 Specialist Mathematics in Queensland (QCAA). A pair of linear equations is packaged as one matrix equation and solved using the inverse matrix.

You will find the determinant and inverse of a two-by-two matrix, solve the system in one step, and read the determinant to decide whether it has one solution, none, or infinitely many — groundwork for modelling with matrices.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A pair of simultaneous linear equations can be written in one matrix line \(AX=B\) and solved in a single step, \(X=A^{-1}B\). This is a core skill of Matrix arithmetic and algebra in Year 11 Specialist Mathematics (QCAA, Queensland). The determinant also reveals at once whether the system has one solution, none, or infinitely many.

A \(2\times2\) system such as \(ax+by=e\) and \(cx+dy=f\) can be packaged as a single matrix equation \(AX=B\).

The coefficient matrix \(A=\begin{pmatrix}a&b\\c&d\end{pmatrix}\) holds the coefficients, the variable matrix \(X=\begin{pmatrix}x\\y\end{pmatrix}\) holds the unknowns, and the constant matrix \(B=\begin{pmatrix}e\\f\end{pmatrix}\) holds the right-hand sides.

The determinant \(\det(A)=ad-bc\) decides whether \(A\) can be inverted. When \(\det(A)\neq0\), the inverse \(A^{-1}\) exists and the system has a unique solution \(X=A^{-1}B\) — the two lines cross at one point.

When \(\det(A)=0\) the matrix is singular: no inverse exists, and the lines are either parallel and distinct (no solution) or coincident (infinitely many solutions). Order matters: because matrix multiplication is not commutative, you must left-multiply, \(X=A^{-1}B\), not \(BA^{-1}\).

Unique solution: two lines meeting at one point Two straight lines crossing at a single point; the coefficient determinant is non-zero, so the system has one solution. x y solution ∴ det(A) ≠ 0
A non-zero determinant means the lines cross once: a unique solution \(X=A^{-1}B\).
No unique solution: two parallel lines Two straight parallel lines that never meet; the coefficient determinant is zero, so the system has no unique solution. x y ∴ det(A) = 0
A zero determinant means parallel (or coincident) lines: no unique solution.

Write the system as a matrix equation:

\[ \begin{pmatrix}a&b\\c&d\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}e\\f\end{pmatrix}\qquad\text{i.e.}\qquad AX=B \]
AX=B

The determinant and the inverse of a \(2\times2\) matrix:

\[ \det(A)=ad-bc,\qquad A^{-1}=\dfrac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix} \]
det(A)=adbc

Solve by left-multiplying by the inverse:

\[ X=A^{-1}B \]
X=A1B
The determinant is the test. \(\det(A)\neq0\) gives one unique solution; \(\det(A)=0\) means no inverse, so the system has either no solution or infinitely many — never exactly one.

How to solve a system with matrices

  1. Write \(AX=B\): put the coefficients in \(A\), the unknowns in \(X\), and the constants in \(B\).
  2. Find the determinant \(\det(A)=ad-bc\). If it is zero, stop: there is no unique solution — check whether the lines are parallel (none) or coincident (infinitely many).
  3. Write the inverse \(A^{-1}=\dfrac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\): swap \(a\) and \(d\), negate \(b\) and \(c\), divide by the determinant.
  4. Multiply \(X=A^{-1}B\) and read off \(x\) and \(y\). Substitute back to check.
Example 1 — Solve by the inverse
Solve \(3x+y=10\) and \(x+2y=5\) using the matrix method.
Solution

Write \(AX=B\), then find the determinant of \(A\):

\(A\)\(=\)\(\begin{pmatrix}3&1\\1&2\end{pmatrix}\)
\(\det(A)\)\(=\)\((3)(2)-(1)(1)\)
\(=\)\(5\)

Write the inverse (swap 3 and 2, negate the off-diagonal, divide by 5):

\(A^{-1}\)\(=\)\(\dfrac{1}{5}\begin{pmatrix}2&-1\\-1&3\end{pmatrix}\)

Multiply \(X=A^{-1}B\):

\(X\)\(=\)\(\dfrac{1}{5}\begin{pmatrix}2&-1\\-1&3\end{pmatrix}\begin{pmatrix}10\\5\end{pmatrix}\)
\(=\)\(\dfrac{1}{5}\begin{pmatrix}20-5\\-10+15\end{pmatrix}\)
\(=\)\(\begin{pmatrix}3\\1\end{pmatrix}\)

\(x=3,\ y=1\). Check: \(3(3)+1=10\) and \(3+2(1)=5\).

Example 2 — Inverse of a 2×2
Find the inverse of \(A=\begin{pmatrix}4&3\\2&5\end{pmatrix}\).
Solution

Find the determinant first:

\(\det(A)\)\(=\)\((4)(5)-(3)(2)\)
\(=\)\(20-6\)
\(=\)\(14\)

Swap the leading diagonal, negate the other two, then divide by the determinant:

\(A^{-1}\)\(=\)\(\dfrac{1}{14}\begin{pmatrix}5&-3\\-2&4\end{pmatrix}\)

\(A^{-1}=\dfrac{1}{14}\begin{pmatrix}5&-3\\-2&4\end{pmatrix}\).

Example 3 — A canteen system
At a canteen, \(2\) pies and \(1\) drink cost \(\$8\), while \(1\) pie and \(3\) drinks cost \(\$14\). Find the price of a pie and of a drink.
Solution

Let a pie cost \(x\) and a drink \(y\); form and solve \(AX=B\):

\(2x+y\)\(=\)\(8,\quad x+3y=14\)
\(A\)\(=\)\(\begin{pmatrix}2&1\\1&3\end{pmatrix},\ \det(A)=6-1=5\)
\(X\)\(=\)\(\dfrac{1}{5}\begin{pmatrix}3&-1\\-1&2\end{pmatrix}\begin{pmatrix}8\\14\end{pmatrix}\)
\(=\)\(\dfrac{1}{5}\begin{pmatrix}24-14\\-8+28\end{pmatrix}\)
\(=\)\(\begin{pmatrix}2\\4\end{pmatrix}\)

A pie costs \(\$2\) and a drink costs \(\$4\).

Example 4 — No unique solution
For what value of \(k\) does the system \(kx+3y=7\) and \(2x+y=4\) have no unique solution?
Solution

A unique solution fails exactly when the coefficient determinant is zero:

\(\det\begin{pmatrix}k&3\\2&1\end{pmatrix}\)\(=\)\((k)(1)-(3)(2)\)
\(=\)\(k-6\)
\(k-6\)\(=\)\(0\)
\(k\)\(=\)\(6\)

\(k=6\); then the lines are parallel, so there is no unique solution.

Common pitfalls

Multiplying in the wrong order. Matrix multiplication is not commutative, so \(X=A^{-1}B\), never \(BA^{-1}\). Always left-multiply both sides by \(A^{-1}\).
Forgetting to check the determinant. If \(\det(A)=0\) there is no inverse and no unique solution — do not push on with \(A^{-1}\).
Sign slips in the inverse. The inverse swaps the leading diagonal and negates the other two entries: \(\dfrac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\). Keep the minus signs.
Treating \(\det(A)=0\) as always "no solution". Zero determinant means parallel lines (no solution) OR coincident lines (infinitely many). Compare the equations to tell which.

Frequently asked questions

How do you solve simultaneous equations using matrices?

Write the system as \(AX=B\), find \(\det(A)\), form the inverse \(A^{-1}\), then compute \(X=A^{-1}B\) to get \(x\) and \(y\).

What does the determinant tell you about the solutions?

If \(\det(A)\neq0\) there is exactly one solution. If \(\det(A)=0\) the matrix is singular, so there is either no solution or infinitely many.

What is the inverse of a 2×2 matrix?

For \(A=\begin{pmatrix}a&b\\c&d\end{pmatrix}\), \(A^{-1}=\dfrac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\), provided \(ad-bc\neq0\).

Why must you write \(X=A^{-1}B\) and not \(BA^{-1}\)?

Matrix multiplication is not commutative. Left-multiplying \(AX=B\) by \(A^{-1}\) gives \(X=A^{-1}B\); the other order is not defined the same way and gives the wrong result.

How do you tell no solution from infinitely many when the determinant is zero?

Simplify both equations. If they reduce to the same line, there are infinitely many solutions (coincident); if they contradict, there is no solution (parallel and distinct).