Matrices are one of the most useful mathematical tools in IB Maths AI HL Matrices.
They help represent systems of equations, organize information, model changes, and solve problems involving several variables.
However, matrix questions can become challenging when you move beyond basic addition and multiplication. You may need to calculate an inverse, solve a system of equations, find eigenvalues or diagonalise a matrix.
The key is understanding what each operation does and when to use it.
This guide covers the main matrix skills in the current IB Maths AI HL course, with worked examples and common examination mistakes.
Table of Contents
What is a IB Maths AI HL Matrices?
A matrix is a rectangular arrangement of numbers organised into rows and columns.
For example:
[
A=\begin{pmatrix}
2&3\
4&5
\end{pmatrix}
]
This matrix has two rows and two columns, so its order is:
[
2\times2
]
The individual numbers are called elements.
The element in row 1, column 2 is 3. It can be written as (a_{12}).
A matrix can have different orders:
[
B=\begin{pmatrix}
1&2&3\
4&5&6
\end{pmatrix}
]
This matrix has order (2\times3).
The number of rows always comes first, followed by the number of columns.
Quick answer: In IB Maths AI HL, you need to understand matrix notation, addition, subtraction, scalar multiplication, matrix multiplication, determinants, inverses, systems of equations, eigenvalues and diagonalisation.
1. Matrix addition and subtraction
You can add or subtract two matrices only when they have the same order.
For example:
[
A=\begin{pmatrix}
2&4\
1&3
\end{pmatrix}
]
[
B=\begin{pmatrix}
5&1\
3&2
\end{pmatrix}
]
To calculate (A+B), add corresponding elements.
[
A+B=
\begin{pmatrix}
2+5&4+1\
1+3&3+2
\end{pmatrix}
]
Therefore:
[
\boxed{
A+B=
\begin{pmatrix}
7&5\
4&5
\end{pmatrix}
}
]
Subtraction follows the same process.
[
A-B=
\begin{pmatrix}
2-5&4-1\
1-3&3-2
\end{pmatrix}
]
[
\boxed{
A-B=
\begin{pmatrix}
-3&3\
-2&1
\end{pmatrix}
}
]
Common mistake
You cannot add a (2\times3) matrix to a (3\times2) matrix.
The dimensions must match exactly.
2. Scalar multiplication
Scalar multiplication means multiplying every element of a matrix by the same number.
Suppose:
[
A=\begin{pmatrix}
2&3\
4&5
\end{pmatrix}
]
Calculate (3A).
[
3A=
3\begin{pmatrix}
2&3\
4&5
\end{pmatrix}
]
Multiply every element by 3:
[
\boxed{
3A=
\begin{pmatrix}
6&9\
12&15
\end{pmatrix}
}
]
This operation is useful when a matrix represents quantities that increase or decrease by a common factor.
For example, if a company doubles the production represented by a matrix, multiplying the matrix by 2 gives the new quantities.
3. Matrix multiplication
Matrix multiplication is more demanding because you cannot simply multiply corresponding elements.
To multiply two matrices, the number of columns in the first matrix must equal the number of rows in the second matrix.
For example:
[
A=
\begin{pmatrix}
1&2\
3&4
\end{pmatrix}
]
[
B=
\begin{pmatrix}
2&1\
0&3
\end{pmatrix}
]
Both matrices have order (2\times2), so multiplication is possible.
Calculate:
[
AB=
\begin{pmatrix}
1&2\
3&4
\end{pmatrix}
\begin{pmatrix}
2&1\
0&3
\end{pmatrix}
]
Multiply each row of the first matrix by each column of the second matrix.
First row, first column:
[
1(2)+2(0)=2
]
First row, second column:
[
1(1)+2(3)=7
]
Second row, first column:
[
3(2)+4(0)=6
]
Second row, second column:
[
3(1)+4(3)=15
]
Therefore:
[
\boxed{
AB=
\begin{pmatrix}
2&7\
6&15
\end{pmatrix}
}
]
Why multiplication order matters
Matrix multiplication is not generally commutative.
This means:
[
AB\neq BA
]
Using the same matrices:
[
BA=
\begin{pmatrix}
5&8\
9&12
\end{pmatrix}
]
Notice that:
[
AB\neq BA
]
This is an important property of matrix multiplication.
However, matrix multiplication is associative:
[
(AB)C=A(BC)
]
It is also distributive:
[
A(B+C)=AB+AC
]
Remember these properties when answering questions about matrix algebra.
4. Identity and zero matrices
Two special matrices appear regularly in matrix calculations.
The identity matrix
A (2\times2) identity matrix is:
[
I=
\begin{pmatrix}
1&0\
0&1
\end{pmatrix}
]
Multiplying a matrix by the identity matrix leaves it unchanged.
[
AI=IA=A
]
This is similar to multiplying an ordinary number by 1.
The zero matrix
A zero matrix contains only zeros.
For example:
[
O=
\begin{pmatrix}
0&0\
0&0
\end{pmatrix}
]
Adding a zero matrix does not change the original matrix:
[
A+O=A
]
Multiplying a compatible matrix by a zero matrix produces a zero matrix.
These two matrices are useful when simplifying expressions and solving matrix equations.
5. Determinants of a 2 by 2 matrix
The determinant is a number calculated from a square matrix.
For a (2\times2) matrix:
[
A=
\begin{pmatrix}
a&b\
c&d
\end{pmatrix}
]
The determinant is:
[
\boxed{\det(A)=ad-bc}
]
Consider:
[
A=
\begin{pmatrix}
4&2\
3&5
\end{pmatrix}
]
Calculate its determinant.
[
\det(A)=4(5)-2(3)
]
[
=20-6
]
[
\boxed{\det(A)=14}
]
The determinant helps determine whether a square matrix has an inverse.
If:
[
\det(A)\neq0
]
the matrix is invertible.
If:
[
\det(A)=0
]
the matrix does not have an inverse.
This distinction is important when solving systems of equations using matrices.
6. Finding the inverse of a 2 by 2 matrix
The inverse of a matrix is written as (A^{-1}).
For a (2\times2) matrix:
[
A=
\begin{pmatrix}
a&b\
c&d
\end{pmatrix}
]
the inverse is:
[
\boxed{
A^{-1}=
\frac{1}{ad-bc}
\begin{pmatrix}
d&-b\
-c&a
\end{pmatrix}
}
]
This formula applies only when the determinant is not zero.
Worked Example: Find the inverse
Let:
[
A=
\begin{pmatrix}
3&2\
1&2
\end{pmatrix}
]
First calculate the determinant:
[
\det(A)=3(2)-2(1)
]
[
=6-2=4
]
Since the determinant is not zero, the inverse exists.
Now swap the diagonal elements and change the signs of the other two elements.
[
A^{-1}=
\frac14
\begin{pmatrix}
2&-2\
-1&3
\end{pmatrix}
]
Therefore:
[
\boxed{
A^{-1}=
\begin{pmatrix}
0.5&-0.5\
-0.25&0.75
\end{pmatrix}
}
]
Checking your answer
A useful way to check an inverse is to multiply the original matrix by the inverse.
[
AA^{-1}=I
]
If the result is the identity matrix, your inverse is correct.
For matrices larger than (2\times2), the current course expects you to use technology to calculate determinants and inverses.
7. Solving simultaneous equations using matrices
One important application of matrices is solving systems of linear equations.
Consider:
[
2x+y=7
]
[
x+3y=11
]
These equations can be written in matrix form:
[
AX=B
]
where:
[
A=
\begin{pmatrix}
2&1\
1&3
\end{pmatrix}
]
[
X=
\begin{pmatrix}
x\
y
\end{pmatrix}
]
[
B=
\begin{pmatrix}
7\
11
\end{pmatrix}
]
Therefore:
\begin{pmatrix}
7\
11
\end{pmatrix}
]
If A has an inverse, multiply both sides by (A^{-1}).
[
X=A^{-1}B
]
Step 1: Find the determinant
[
\det(A)=2(3)-1(1)=5
]
Step 2: Find the inverse
[
A^{-1}=
\frac15
\begin{pmatrix}
3&-1\
-1&2
\end{pmatrix}
]
Step 3: Multiply by B
[
X=
\frac15
\begin{pmatrix}
3&-1\
-1&2
\end{pmatrix}
\begin{pmatrix}
7\
11
\end{pmatrix}
]
[
X=
\frac15
\begin{pmatrix}
21-11\
-7+22
\end{pmatrix}
]
[
X=
\frac15
\begin{pmatrix}
10\
15
\end{pmatrix}
]
Therefore:
[
\boxed{x=2,\qquad y=3}
]
Interpretation
The simultaneous equations have the solution:
[
(2,3)
]
You can check this by substituting the values into the original equations.
First equation:
[
2(2)+3=7
]
Second equation:
[
2+3(3)=11
]
Both equations are satisfied.
8. Eigenvalues and eigenvectors
Eigenvalues and eigenvectors are an important part of the higher level matrix content.
They describe special directions and scaling factors associated with a square matrix.
For a matrix A, an eigenvector is a nonzero vector that keeps its direction when multiplied by A.
The corresponding eigenvalue describes the scaling factor.
The relationship is:
[
\boxed{Av=\lambda v}
]
where:
- (A) is the square matrix.
- (v) is an eigenvector.
- (\lambda) is its eigenvalue.
How to find eigenvalues
Rearrange the equation:
[
Av=\lambda v
]
to obtain:
[
(A-\lambda I)v=0
]
For a nonzero eigenvector to exist:
[
\boxed{\det(A-\lambda I)=0}
]
This equation is called the characteristic equation.
Worked Example: Finding eigenvalues
Consider:
[
A=
\begin{pmatrix}
4&1\
2&3
\end{pmatrix}
]
Find its eigenvalues.
Start with:
[
A-\lambda I=
\begin{pmatrix}
4-\lambda&1\
2&3-\lambda
\end{pmatrix}
]
Set the determinant equal to zero:
[
(4-\lambda)(3-\lambda)-2=0
]
Expand:
[
12-7\lambda+\lambda^2-2=0
]
[
\lambda^2-7\lambda+10=0
]
Factorise:
[
(\lambda-5)(\lambda-2)=0
]
Therefore:
[
\boxed{\lambda_1=5,\qquad\lambda_2=2}
]
Finding the eigenvectors
For (\lambda=5):
[
(A-5I)v=0
]
\begin{pmatrix}
0\
0
\end{pmatrix}
]
The first equation gives:
[
-x+y=0
]
Therefore:
[
y=x
]
One suitable eigenvector is:
[
\boxed{
v_1=
\begin{pmatrix}
1\
1
\end{pmatrix}
}
]
For (\lambda=2):
[
(A-2I)v=0
]
\begin{pmatrix}
0\
0
\end{pmatrix}
]
The equation is:
[
2x+y=0
]
Therefore:
[
y=-2x
]
One suitable eigenvector is:
[
\boxed{
v_2=
\begin{pmatrix}
1\
-2
\end{pmatrix}
}
]
Any nonzero scalar multiple of an eigenvector is also a valid eigenvector.
9. Diagonalisation of a 2 by 2 matrix
Diagonalisation allows a matrix to be expressed using a diagonal matrix and a matrix of eigenvectors.
For a matrix with two distinct real eigenvalues:
[
\boxed{A=PDP^{-1}}
]
where:
- P contains the eigenvectors as its columns.
- D contains the corresponding eigenvalues along its diagonal.
- (P^{-1}) is the inverse of P.
Using the previous example, the eigenvectors are:
[
v_1=
\begin{pmatrix}
1\
1
\end{pmatrix},
\qquad
v_2=
\begin{pmatrix}
1\
-2
\end{pmatrix}
]
Therefore:
[
P=
\begin{pmatrix}
1&1\
1&-2
\end{pmatrix}
]
The diagonal matrix is:
[
D=
\begin{pmatrix}
5&0\
0&2
\end{pmatrix}
]
The inverse of P is:
[
P^{-1}=
\begin{pmatrix}
\frac23&\frac13\
\frac13&-\frac13
\end{pmatrix}
]
So:
[
\boxed{
A=PDP^{-1}
}
]
This representation is useful because calculating powers of a diagonal matrix is much easier than calculating powers of a general matrix.
Calculating powers of a matrix
If:
[
A=PDP^{-1}
]
then:
[
\boxed{A^n=PD^nP^{-1}}
]
For example:
[
D^3=
\begin{pmatrix}
5^3&0\
0&2^3
\end{pmatrix}
]
[
D^3=
\begin{pmatrix}
125&0\
0&8
\end{pmatrix}
]
This is particularly useful in applications involving repeated changes over time.
10. Real world applications of matrices
Matrices are not just abstract mathematical objects. They help solve practical problems involving several variables and repeated processes.
Population movement
Suppose a population moves between two towns.
A matrix can represent the proportion of people moving from one town to another.
Repeated matrix multiplication can model how the population distribution changes over time.
This connects directly to Markov chains, where transition matrices describe movement between different states.
Read the IB Maths AI HL Markov chains guide for a detailed explanation of transition matrices and steady states.
Business modelling
A business might track the sales of several products across different regions.
A matrix can organise the sales figures, while multiplication can calculate new totals after applying a set of changes.
Coding and decoding
Matrices can also represent transformations of numerical messages.
A message can be converted into numbers, multiplied by a suitable matrix and transformed into a different numerical sequence.
The inverse matrix can then be used to recover the original information, provided the transformation is invertible.
11. Common mistakes in IB Maths AI HL matrix questions
| Mistake | How to avoid it |
|---|---|
| Adding matrices with different orders | Check the dimensions first |
| Multiplying corresponding elements instead of rows and columns | Follow the row by column method |
| Assuming (AB=BA) | Remember multiplication is not generally commutative |
| Using the wrong determinant formula | Apply (ad-bc) for a 2 by 2 matrix |
| Forgetting to check whether the determinant is zero | Confirm the inverse exists before calculating it |
| Confusing a matrix with its inverse | Check that (AA^{-1}=I) |
| Reversing the order in (AX=B) | Multiply by the inverse on the left to obtain (X=A^{-1}B) |
| Placing eigenvalues in the wrong order in D | Match each eigenvalue to its eigenvector column in P |
| Using an eigenvector of zero | An eigenvector must be nonzero |
12. A 60 minute revision plan for matrices
Use this schedule to revise the main matrix skills.
| Time | Activity |
|---|---|
| 10 minutes | Review matrix notation, order and basic operations |
| 10 minutes | Practise matrix multiplication |
| 10 minutes | Calculate determinants and inverses |
| 10 minutes | Solve simultaneous equations using inverse matrices |
| 15 minutes | Practise eigenvalues and eigenvectors |
| 5 minutes | Review diagonalisation and common errors |
Do not spend the entire session watching worked solutions.
Try each calculation independently before checking the method.
If you make a mistake, identify whether it came from the matrix setup, the calculation or the interpretation.
Frequently asked questions about IB Maths AI HL matrices
1. Are matrices included in IB Maths AI HL?
Yes. Matrices are part of the higher level content in the current Mathematics Applications and Interpretation course.
2. Do AI HL students need to calculate matrix inverses by hand?
For a (2\times2) matrix, students should be able to calculate the inverse by hand. Technology is used for inverses of larger square matrices.
3. What is the determinant of a matrix?
The determinant is a numerical value associated with a square matrix. For a (2\times2) matrix, calculate (ad-bc).
4. What is the difference between an eigenvalue and an eigenvector?
An eigenvalue is a scaling factor associated with a matrix. An eigenvector is a nonzero vector whose direction remains unchanged when the matrix acts on it.
5. What is diagonalisation?
Diagonalisation expresses a matrix in the form (A=PDP^{-1}), where D is a diagonal matrix containing the eigenvalues and P contains the corresponding eigenvectors.
6. Why are matrix powers useful?
Matrix powers represent repeated applications of the same transformation or process. They are useful in population models, repeated transitions and other real world systems.
7. Are matrices part of the revised 2029 AI HL course?
Yes. The revised course retains matrices as higher level content, although students should follow the updated syllabus and topic codes for their examination session.
Final thoughts
Matrices become easier when you understand the purpose of each operation.
Start with the dimensions of a matrix. Practice addition, subtraction and multiplication before moving on to determinants and inverses.
Once you understand inverse matrices, solving simultaneous equations becomes more straightforward.
Eigenvalues and eigenvectors require a stronger understanding of matrix equations, but the process follows a clear sequence: form the characteristic equation, calculate the eigenvalues, find the eigenvectors and use them to diagonalise the matrix.
The most important part of revision is practising the full method, not simply memorising formulas.
Practise IB Maths with Mathzem, upload your handwritten working and use feedback to identify the steps you need to improve.




