Matrix Operations (AI HL)

A matrix is just a rectangular array of numbers, but the rules for combining two of them are stricter than ordinary arithmetic - addition needs matching dimensions, and multiplication needs the first matrix's columns to match the second's rows. This page covers those operations, plus the \(2\times2\) determinant and inverse, with worked examples and the errors that cost marks. It's part of the broader Matrices topic.

13 questions on this sub-topic.

Practise matrix operations → Try exam-style questions

Determinant, inverse and multiplication

Covered under IB syllabus reference AHL1.14: the algebra of matrices (equality, addition, subtraction, scalar multiplication), multiplication of matrices and its properties, and determinants and inverses of \(2\times2\) matrices by hand.

Determinant of a 2×2 matrix

\(\det A = ad-bc\)

For \(A=\begin{pmatrix}a&b\\c&d\end{pmatrix}\). In the formula booklet - a zero determinant means \(A\) has no inverse.

Inverse of a 2×2 matrix

\(A^{-1}=\dfrac{1}{\det A}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\)

Also in the formula booklet. For larger matrices, find the inverse with your GDC.

Matrix multiplication

Only defined when the number of columns in the first matrix equals the number of rows in the second. Associative and distributive, but \(AB\neq BA\) in general - the order you multiply in matters.

Not in the formula booklet - definition

Need the full syllabus wording and formula-booklet reference table? See Matrices.

Worked examples

1
Medium
GDC
[3 marks]

With \(T = \begin{pmatrix} 0.7 & 0.4 \\ 0.3 & 0.6 \end{pmatrix}\) and initial state \(\begin{pmatrix}600\\400\end{pmatrix}\), find the distribution after 1 week.

Worked solution

\(T\begin{pmatrix}600\\400\end{pmatrix} = \begin{pmatrix}0.7(600)+0.4(400)\\0.3(600)+0.6(400)\end{pmatrix}\) M1
\(= \begin{pmatrix}580\\420\end{pmatrix}.\) A1 A1

GDC: Compute \(T\mathbf{v}\) directly in matrix mode.

M1 Multiply A1 Correct value A: 580 A1 Correct value B: 420
2
Hard
GDC
[4 marks]

Find \(AB\) where \(A = \begin{pmatrix}1 & 0 & 2\\0 & 1 & 0\\3 & 0 & 1\end{pmatrix}\) and \(B = \begin{pmatrix}1 & 2\\0 & 1\\4 & 0\end{pmatrix}.\)

Worked solution

\(AB\) is \(3\times2\). Computing row by row: M1
Row 1: \((1(1)+0(0)+2(4),\ 1(2)+0(1)+2(0)) = (9,\ 2).\) Row 2: \((0+0+0,\ 0+1+0) = (0,\ 1).\) Row 3: \((3+0+4,\ 6+0+0)\) A1
\(= (7,\ 6).\) A1
\(AB = \begin{pmatrix}9&2\\0&1\\7&6\end{pmatrix}.\) A1

GDC: Enter \(A\) as a \(3\times3\) matrix and \(B\) as \(3\times2\), then compute \([A][B]\).

M1 Row-by-column method A1 Rows 1 and 2 A1 Row 3 A1 Complete answer

Common mistakes

Ready to practise properly?

14 matrix-operations questions, marked instantly like the real exam.

Quick answers

How do you multiply two matrices together?

Multiply each row of the first matrix by each column of the second, summing the products, so entry \((i,j)\) of the result is row \(i\) of \(A\) dotted with column \(j\) of \(B\). This only works when the columns of \(A\) match the rows of \(B\).

How do you find the determinant and inverse of a 2×2 matrix?

For \(A=\begin{pmatrix}a&b\\c&d\end{pmatrix}\), \(\det A = ad-bc\). If \(\det A \neq 0\), the inverse is \(A^{-1}=\tfrac{1}{\det A}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\). Also check using your GDC for larger matrices.

← Back to Applications & Interpretation HL topics