Inverses & rank
Invert a matrix, solve with it, and measure its rank.
Pen and paper is fine · no calculator needed why?
Opens at level 48. You're level 1. You can read and practice here now.
the idea
The inverse A⁻¹ undoes A, the way dividing undoes multiplying. A 2 × 2 matrix has one exactly when its determinant is not 0.
Cramer's rule solves two equations in x and y with three 2 × 2 determinants. The rank of a matrix is the most rows you can keep with none built from the others by multiplying and adding.
techniques
2 × 2 inverse: swap, flip, divide
- Find the determinant, ad − bc.
- Swap a and d, and change the signs of b and c: [[d, −b], [−c, a]].
- Divide the entry you need by the determinant, and reduce the fraction.
worked example
A = [[2, 3], [4, 8]] (rows listed). What is the top-right entry of A⁻¹? Enter a fraction or a whole number.
- det = 2 × 8 − 3 × 4 = 16 − 12 = 4.
- Swap and flip: [[8, −3], [−4, 2]].
- Top-right: −3 ÷ 4 = −3/4.
Answer: −3/4
Cramer’s rule for two equations
- D = ad − bc, from the numbers in front of x and y.
- x = (ed − bf) ÷ D, with the right-hand sides in the x-column.
- y = (af − ec) ÷ D, with them in the y-column.
- Check both values in both equations. Give x first.
worked example
Solve 3x + 2y = 7 and x − y = −1. What is x?
- D = 3 × (−1) − 2 × 1 = −5.
- x = (7 × (−1) − 2 × (−1)) ÷ (−5) = −5 ÷ (−5) = 1.
- y = (3 × (−1) − 7 × 1) ÷ (−5) = 2. Both equations check.
Answer: 1
Rank: count the independent rows
- Set aside any row that is a multiple of another, or a sum of multiples of the others.
- Repeat until no row left is built from the others. The rows left give the rank.
- None set aside: the rank is 3. For a 3 × 3, a nonzero determinant confirms it.
worked example
What is the rank of [[1, 2, 0], [0, 1, 3], [2, 5, 3]]?
- Row 3 is twice row 1 plus row 2, so it adds nothing new.
- Rows 1 and 2 are not multiples of each other.
- So the rank is 2.
Answer: 2
watch out for
- Skipping a step of the inverse: swap a and d, change the signs of b and c, and divide by the determinant, sign included.
- Giving y before x. Enter x first.
- Answering 3 for the rank without checking whether a row is built from the others.
practice
Inverse entry
worked example
A = [[7, 7], [−5, 2]] (rows listed). What is the bottom-left entry of A⁻¹? Enter a fraction or a whole number.
Answer: 5/49
- det = ad − bc = 7 × 2 − 7 × (−5) = 49.
- A⁻¹ = (1/49)[[2, −7], [5, 7]]: swap a and d, change the signs of b and c.
- So the bottom-left entry is 5/49.
Solve a system
worked example
Solve −4x − y = −19 and 2x − 4y = 50. Enter x, y.
Answer: (7, -9)
- Cramer’s rule. det = (−4) × (−4) − (−1) × 2 = 18.
- x = ((−19) × (−4) − (−1) × 50) ÷ 18 = 126 ÷ 18 = 7.
- y = ((−4) × 50 − (−19) × 2) ÷ 18 = −162 ÷ 18 = −9.
Rank
worked example
What is the rank of [[0, 0, 2], [−1, 5, 6], [2, 4, 4]]?
Answer: 3
- det = −28, not 0, so no row is a combination of the others.
- The rank is 3.