Skip to main content
ScotlandMathsSyllabus dot point

How do you compute with matrices and use them to solve a system of linear equations?

Add, subtract and multiply matrices, find the determinant and inverse of 2x2 and 3x3 matrices, and solve systems of linear equations using the inverse matrix and Gaussian elimination, identifying unique, no, and infinitely many solutions.

A focused answer to the SQA Advanced Higher Mathematics matrices and systems of equations content, covering matrix addition, subtraction and multiplication, the determinant and inverse of 2x2 and 3x3 matrices, solving systems by the inverse matrix and by Gaussian elimination, and recognising unique, no, and infinitely many solutions.

Generated by Claude Opus 4.812 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Matrix arithmetic
  3. Determinant and inverse
  4. Solving systems of equations
  5. The three outcomes
  6. Try this

What this dot point is asking

The SQA wants you to compute with matrices, find determinants and inverses of 2×22\times 2 and 3×33\times 3 matrices, and use both the inverse-matrix method and Gaussian elimination to solve systems of linear equations, recognising when a system has a unique solution, no solution, or infinitely many.

Matrix arithmetic

Addition and subtraction act entry by entry on matrices of the same size. Multiplication combines the rows of the first matrix with the columns of the second, so the number of columns of the first must equal the number of rows of the second. Order matters: in general ABBAAB \ne BA.

Determinant and inverse

The determinant decides whether a matrix is invertible: a matrix with determinant zero is singular and has no inverse. For a 2×22\times 2 matrix the inverse follows a swap-and-negate pattern; for a 3×33\times 3 matrix the determinant is expanded along a row using cofactors.

Solving systems of equations

Two methods solve a linear system. The inverse-matrix method writes the system as Ax=bA\mathbf{x} = \mathbf{b} and computes x=A1b\mathbf{x} = A^{-1}\mathbf{b}, which works only when detA0\det A \ne 0. Gaussian elimination is more general: form the augmented matrix and use row operations to reach upper-triangular form, then back-substitute.

The three outcomes

After elimination, read off the type of solution from the final rows. A full set of leading entries gives a unique solution. A row reading 0=0 = (non-zero), such as 00040\,0\,0 \mid 4, is a contradiction, so there is no solution. A row of all zeros, 00000\,0\,0 \mid 0, removes one equation, leaving a free variable and infinitely many solutions, which you express in terms of a parameter.

Geometrically a 3×33\times 3 system is the question of how three planes sit in space. A unique solution is a single common point; no solution means the planes have no point in common, as with three planes forming a triangular prism; and infinitely many solutions means the three planes share a whole line. This is exactly the connection to the vectors topic, where a plane is described by a point and a normal, so the algebra of elimination and the geometry of intersecting planes are two views of one problem. Recognising the geometric meaning is often the quickest way to interpret an unexpected row of zeros.

Try this

Q1. Find the determinant of (3524)\begin{pmatrix} 3 & 5 \\ 2 & 4 \end{pmatrix}. [1 mark]

  • Cue. 3(4)5(2)=1210=23(4) - 5(2) = 12 - 10 = 2.

Q2. What does a final row 00000\,0\,0 \mid 0 tell you about a 3×33\times 3 system? [1 mark]

  • Cue. One equation is redundant, so there are infinitely many solutions (a parameter is needed).

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AH style: 2x2 inverse4 marksFind the inverse of A=(2134)A = \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix} and hence solve 2x+y=52x + y = 5, 3x+4y=103x + 4y = 10.
Show worked answer →

Determinant detA=(2)(4)(1)(3)=5\det A = (2)(4) - (1)(3) = 5 (1 mark).

Inverse A1=15(4132)A^{-1} = \dfrac{1}{5}\begin{pmatrix} 4 & -1 \\ -3 & 2 \end{pmatrix} (1 mark).

Solution (xy)=A1(510)=15(201015+20)=15(105)\begin{pmatrix} x \\ y \end{pmatrix} = A^{-1}\begin{pmatrix} 5 \\ 10 \end{pmatrix} = \dfrac{1}{5}\begin{pmatrix} 20 - 10 \\ -15 + 20 \end{pmatrix} = \dfrac{1}{5}\begin{pmatrix} 10 \\ 5 \end{pmatrix} (1 mark).

So x=2x = 2, y=1y = 1 (1 mark). Markers reward the determinant, the inverse with the swap-and-negate pattern, the matrix product, and the solution.

AH style: Gaussian elimination5 marksUse Gaussian elimination to solve x+y+z=6x + y + z = 6, 2xy+z=32x - y + z = 3, x+2yz=2x + 2y - z = 2.
Show worked answer →

Form the augmented matrix and eliminate xx from rows 2 and 3 using row 1: R22R1R_2 - 2R_1 gives 3yz=9-3y - z = -9; R3R1R_3 - R_1 gives y2z=4y - 2z = -4 (2 marks).

Eliminate yy: from 3yz=9-3y - z = -9 and y2z=4y - 2z = -4, use 3(y2z)+(3yz)3(y - 2z) + (-3y - z) to get 7z=21-7z = -21, so z=3z = 3 (1 mark).

Back-substitute: y2(3)=4y - 2(3) = -4 gives y=2y = 2; then x+2+3=6x + 2 + 3 = 6 gives x=1x = 1 (1 mark).

Solution x=1x = 1, y=2y = 2, z=3z = 3 (1 mark). Markers reward the elimination of xx, the elimination of yy, the value of zz, and the back-substitution.

Related dot points

Sources & how we know this