With ordinary numbers, you solve 5x=15 by dividing by 5, which is the same as multiplying by 5−1. Matrices have no division, but many square matrices have an inverse that does the same job. The determinant, a single number worked out from a square matrix, tells you whether that inverse exists. Together they let you solve whole systems of equations in one step, and they’re the key to codes, transformations and much more.
For a 2×2 matrix, the determinant is “leading diagonal minus the other diagonal”:
A=(acbd)⇒detA=∣A∣=ad−bc
For example, det(4235)=4(5)−3(2)=14.
Only square matrices have determinants. For 3×3 and larger matrices, use your GDC’s det function: in this course you find those with technology, not by hand.
If detA=0, the formula would divide by zero, and A has no inverse. Such a matrix is called singular. A matrix with a non-zero determinant is non-singular (or invertible). For a 2×2 matrix, detA=0 means one row is a multiple of the other: for example, (63−4−2) has determinant −12−(−12)=0.
Any system of linear equations can be written as one matrix equation. For example,
4x+3y2x+5y=1=11⟺A(4235)X(xy)=B(111)
A is the coefficient matrix. If A is invertible, multiply both sides on the left by A−1:
A−1AX=A−1B⇒IX=A−1B⇒X=A−1B
Order matters. A−1 must go on the left of both sides, so the answer is A−1B, never BA−1. (If instead the equation is XA=B, multiply on the right: X=BA−1.) In IB exams, A will always be invertible in these questions, so each system has a unique solution.
One classic use: turn letters into numbers (A=1, B=2, …, Z=26), arrange them in columns of a matrix M, and multiply by a key matrix K to get the coded matrix C=KM. Anyone who knows K decodes with M=K−1C. The key must be invertible, or the message could never be recovered.
A message is coded by writing letters as numbers (A=1, …, Z=26) in the columns of a 2×2 matrix M, then finding C=KM with key K=(2312). The coded matrix received is C=(27414876). Decode it. (Read the message down the first column, then down the second.)
Forgetting to divide by the determinant.(d−c−ba) on its own is not the inverse unless detA=1. Always multiply by ad−bc1.
Swapping and negating the wrong entries. The leading-diagonal entries (a and d) swap places; the other two (b and c) stay where they are but change sign. Check by multiplying: AA−1 should be I.
Writing BA⁻¹ instead of A⁻¹B. From AX=B, the inverse goes on the left: X=A−1B. Usually BA−1 isn’t even defined (a 2×1 times a 2×2), and when it is, it’s a different answer.
Trying to invert a singular matrix. If detA=0 there is no inverse; your GDC will say “singular matrix”. In a system of equations, that means there’s no unique solution.
Finding the determinant of a non-square matrix. Only square matrices have determinants and inverses. A 2×3 matrix has neither.
Entering a system with the variables out of order. Each column of A belongs to one variable. If an equation is written 3z+x=5, its row is (103) when the variables are in the order x,y,z.
7. (Core) A four-letter word was coded as in Example 4 (A=1, …, Z=26, letters in the columns of M, C=KM), but with key K=(3512). The coded matrix is C=(24451730). Find the word.
Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Do 2×2 determinants and inverses by hand; use your GDC for 3×3 matrices, but always write down the matrix equation you are solving.
H3. (Core) By hand, write this system as AX=B and solve it using A−1.
5x−2y3x+4y=16=20
H4. (Core) Write this system as a matrix equation, with the variables in the order x,y,z. Use your GDC to find detA and to solve the system with the inverse matrix.
2x+y−z2z−3y+x4x+z+2y=−1=19=13
H5. (Core) A community pool in Dryden sells adult, youth and senior day passes. Over three days its (hypothetical) sales were:
Day
Adult
Youth
Senior
Total sales
Monday
40
25
15
$827.50
Tuesday
30
40
20
$860.00
Wednesday
25
10
35
$726.25
Each pass type has the same price every day.
(a) Write this information as a matrix equation AX=B, saying what each variable represents.
(b) Use your GDC to show that A is non-singular.
(c) Use the inverse matrix to find the price of each pass.
H6. (Core)(IB style) Let A=(3152), C=(120−1) and D=(9541).
(a) Find A−1.
(b) The matrix X satisfies AX+C=D. Write X in terms of A−1, C and D, taking care with the order.
H7. (Challenge) Let A=(2111) and B=(1031). Priya is asked for (AB)−1. She writes:
(AB)−1=A−1B−1=(1−1−12)(10−31)=(1−1−45)
Answer these:
(a) Find AB, then find (AB)−1 directly with the 2×2 formula.
(b) Show that Priya’s answer is not the inverse of AB by multiplying.
(c) Calculate B−1A−1 and compare it with (a).
(d) Explain why (AB)(B−1A−1)=I for any invertible 2×2 matrices A and B, and say what this tells you about (AB)−1.
H8. (Challenge) Consider the system
kx+3y4x+(k+4)y=6=8
(a) Find all values of k for which the coefficient matrix has no inverse.
(b) Solve the system by hand using an inverse matrix when k=1. Give exact answers.
(c) For each value of k in (a), write out the two equations and explain what happens to the system.
H9. (Challenge) A café in Orillia records three (hypothetical) orders of muffins, coffees and sandwiches:
Order 1: 1 muffin, 2 coffees and 1 sandwich for $13.25
Order 2: 2 muffins, 1 coffee and 3 sandwiches for $26.00
Order 3: 3 muffins, 3 coffees and 4 sandwiches for $39.25
Answer these:
(a) Write the orders as a matrix equation AX=B.
(b) Your GDC gives “singular matrix” when you try to find A−1. Find detA, and explain why the inverse method can’t give the prices.
(c) Look at the three orders. Explain why Order 3 gives no new information.
(d) The manager tells you a sandwich costs $6.25. Use this to write a 2×2 system for the other two prices, and solve it by hand using an inverse matrix.
H10. (Challenge) Letters are coded as on this page (A=1, …, Z=26, letters in the columns of M, coded matrix C=KM).
(a) Use the key K=(3121) to code the word SNOW.
(b) Find K−1 and decode your answer to (a) to check it.
(c) Ali suggests the key L=(2142). Find detL. Then show that L codes the letter pair C, E and the letter pair E, D as the same column, and explain why L is a bad key.