Matrices: algebra, determinant and inverse
IB Mathematics Applications and Interpretation HLΒ· Topic 1.7: Matrices, their operations, determinants and inverses up to 3x3Β· 45 min read
1. Basic Matrix Algebra Operationsβ β βββHL onlyβ± 10 min
β Calculator OK
Matrices are rectangular arrays of numbers used to store and manipulate structured data, from survey results to geometric transformation coordinates. All operations follow strict dimension rules that you must verify before performing calculations.
Matrix Dimension
A matrix with rows and columns. Operations like addition and subtraction can only be performed on matrices of identical dimensions.
Scalar multiplication multiplies every element in the matrix by a constant scalar value
Matrix addition adds corresponding elements of two equal-dimension matrices
To multiply matrix (size ) by matrix (size ), the inner dimensions must match, and the output is size
Given and , calculate
- 1
First calculate scalar multiple 2A:
- 2
- 3
Next calculate matrix product AB using dot products:
- 4
- 5
Sum the two resulting matrices:
- 6
Confirm your understanding of matrix operation rules:
What is the required dimension of the second matrix to multiply a 3x2 matrix by it?
2x3
3x2
2x2
3x3
Reveal answer
2x3 βThe inner dimensions (columns of first matrix, rows of second) must match, so 2 rows for the second matrix is required.
Exam tip:
IB exam mark schemes almost always award 1 method mark for correctly verifying matrix dimensions before attempting multiplication.
2. Calculating Determinants of 2x2 and 3x3 Matricesβ β β ββHL onlyβ± 12 min
β Calculator OK
The determinant is a single scalar value calculated for any square matrix, that describes the scaling factor of a geometric transformation, and tells you whether the matrix has a valid inverse.
Derive the 2x2 determinant formula
2x2 matrix
- 1
The determinant is defined as the difference between the product of the main diagonal elements and the product of the off-diagonal elements
- 2
A 2x2 matrix is singular if .
Calculate the determinant of
- 1
Use the 3x3 shortcut rule: sum of products of down-right diagonals minus sum of products of down-left diagonals
- 2
- 3
- 4
This matrix is singular, so no inverse exists.
3. Finding the Inverse of Non-Singular Matricesβ β β β βHL onlyβ± 13 min
π Graphing only
Matrix Inverse
The unique matrix such that multiplying by returns the identity matrix:
Find the inverse of 2x2 matrix
- 1
First calculate the determinant:
- 2
- 3
Swap the main diagonal elements, negate the off-diagonal elements:
- 4
- 5
Multiply the adjugate by 1/det(A):
- 6
- 7
Verify:
4. Solving Linear Systems Using Inverse Matricesβ β β ββHL onlyβ± 10 min
β Calculator OK
You can rewrite any 3-variable linear system in the matrix form , where is the coefficient matrix, is the variable vector, and is the constant term vector. Left-multiplying both sides by gives the solution directly as .
Solve the system , using inverse matrices
- 1
Write the system in form:
- 2
- 3
Calculate det(A) = (2*-2) - (1*3) = -4 -3 = -7
- 4
Find
- 5
Calculate :
- 6
- 7
Final solution:
5. Common Pitfalls
Wrong move:
Multiplying matrices element-wise instead of using the dot product rule
Why:
Confusing matrix multiplication with scalar multiplication, leading to completely incorrect outputs
Correct move:
Always calculate each output element as the dot product of the corresponding row from the first matrix and column from the second
Wrong move:
Forgetting to swap top-left and bottom-right elements when calculating 2x2 inverse
Why:
Mixing up the adjugate step for 2x2 matrices, leading to an inverse that does not produce the identity when multiplied by the original
Correct move:
For 2x2 matrix , inverse is
Wrong move:
Attempting to invert a singular matrix with determinant zero
Why:
Assuming all square matrices have an inverse, leading to division by zero errors
Correct move:
First calculate the determinant; if it equals zero, state the matrix is singular and no inverse exists
Wrong move:
Mixing up the order of matrices when solving as
Why:
Matrix multiplication is not commutative, so order of operations cannot be swapped
Correct move:
Left-multiply both sides by to get the valid solution
Wrong move:
Ignoring sign rules for cofactors when calculating 3x3 determinant
Why:
Cofactor signs alternate in a checkerboard pattern, so skipping negative signs gives a wrong determinant value
Correct move:
Follow the sign matrix for all cofactor expansion steps
6. Quick Reference Cheatsheet
Operation | 2x2 Rule | 3x3 Shortcut | Key Note |
|---|---|---|---|
Matrix Addition | Add corresponding elements, same dimensions required | Add corresponding elements, same dimensions required | Commutative |
Matrix Multiplication | Dot product of rows and columns | Dot product of rows and columns | Not commutative |
Determinant | Sum of down diagonals minus sum of up diagonals | Zero = singular | |
Inverse | Only exists if |
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2025 Β· 2
3x3 inverse for linear system
- 2024 Β· 1
Matrix multiplication for data totals
- 2023 Β· 3
Determinant for transformation scaling
What's Next
Mastering matrix algebra, determinants and inverses is the foundational skill you will rely on for upcoming AI HL topics including transformation matrices, Markov chain modelling, and network analysis, all of which are heavily weighted in Paper 3 data-focused questions. You will be able to use these tools to solve real-world problems ranging from population flow modelling to cost optimization for business datasets, which are common contexts for IB AI HL exam questions. Before moving on, ensure you can quickly verify your inverse calculations by multiplying the original matrix with its calculated inverse to confirm you get the identity matrix.
