Determinants and inverses
Learn to undo a matrix in Year 12 VCE General Mathematics. There is no division of matrices, but the inverse does the same job. If two ticket orders at a Warrnambool fun run are written as a matrix equation, the inverse unlocks both prices at once. A single number, the determinant, tells you straight away whether an inverse exists.
You will practise finding determinants with \(ad - bc\), building the inverse of a \(2 \times 2\) matrix and checking that a matrix times its inverse gives the identity. You will find values that make a matrix singular and solve equations like \(AX = B\) and \(XA = B\), ready for binary and permutation matrices next.
Theory
The determinant and the inverse are the tools for "dividing" by a matrix. This Year 12 General Mathematics guide for students in Victoria shows how to find the determinant ad β bc, find the inverse of a 2 Γ 2 matrix, recognise a singular matrix, and solve matrix equations such as \(AX = B\).
Every square matrix has a number called its determinant, written \(\det(A)\). For a \(2 \times 2\) matrix it is the product of the leading diagonal minus the product of the other diagonal, \(ad - bc\). Determinants of larger matrices are found with CAS.
The inverse of a square matrix \(A\), written \(A^{-1}\), is the matrix that multiplies with \(A\) to give the identity: \(AA^{-1} = A^{-1}A = I\). It plays the part of a reciprocal, because there is no division of matrices. For a \(2 \times 2\) matrix, swap the elements on the leading diagonal, change the signs of the other two, and multiply by \(\frac{1}{ad - bc}\). The answer can be left as \(\frac{1}{\det(A)}\) times a matrix, or each element can be divided out (as decimals or fractions).
A matrix with determinant \(0\) is singular: it has no inverse, because \(\frac{1}{0}\) is undefined. Any non-zero determinant, positive or negative, means the inverse exists.
Inverses solve matrix equations. If \(AX = B\), multiply both sides on the left by \(A^{-1}\) to get \(X = A^{-1}B\). If \(XA = B\), multiply on the right: \(X = BA^{-1}\). This is how two linked facts, such as two ticket orders, give two unknown prices.
Determinant of a \(2 \times 2\) matrix:
Inverse (only when \(ad - bc \ne 0\)):
Defining property, and singular matrices:
Solving matrix equations:
Two more facts:
Finding a \(2 \times 2\) inverse
- Find \(\det(A) = ad - bc\). If it is \(0\), the matrix is singular and has no inverse.
- Swap \(a\) and \(d\); change the signs of \(b\) and \(c\).
- Multiply by \(\frac{1}{\det(A)}\), dividing every element (keep the minus sign of a negative determinant).
- Check: \(AA^{-1}\) should be \(I\).
Solving a matrix equation
- In a context, write the unknowns as a column matrix \(X\) and the facts as \(AX = B\).
- Find \(A^{-1}\) (by hand or with CAS).
- If \(A\) is on the left of \(X\), find \(X = A^{-1}B\); if \(A\) is on the right, find \(X = BA^{-1}\).
- Answer in context and check by substituting back.
Unknown elements
- Write \(ad - bc\) in terms of the unknown.
- Set it equal to \(0\) (singular) or to the given determinant, and solve. A squared unknown can give two answers.
Use \(\det = ad - bc\): the leading diagonal product minus the other diagonal product.
| \(\det(A)\) | \(=\) | \(5 \times 2 - 3 \times 4\) |
| \(\) | \(=\) | \(10 - 12\) |
| \(\) | \(=\) | \(-2\) |
| \(\det(B)\) | \(=\) | \(6 \times 2 - 4 \times 3\) |
| \(\) | \(=\) | \(12 - 12\) |
| \(\) | \(=\) | \(0\) |
\(\det(A) = -2\) and \(\det(B) = 0\). A negative determinant is fine, so \(A\) has an inverse. \(B\) is singular: its determinant is \(0\), so it has no inverse. (Notice row 1 of \(B\) is exactly \(2\) times row 2.)
Find the determinant first. Then swap \(a\) and \(d\), change the signs of \(b\) and \(c\), and divide by the determinant.
| \(\det(A)\) | \(=\) | \(4 \times 2 - 6 \times 1\) |
| \(\) | \(=\) | \(8 - 6\) |
| \(\) | \(=\) | \(2\) |
| \(A^{-1}\) | \(=\) | \(\dfrac{1}{2}\begin{bmatrix}2 & -6\\ -1 & 4\end{bmatrix}\) |
| \(\) | \(=\) | \(\begin{bmatrix}1 & -3\\ -0.5 & 2\end{bmatrix}\) |
| \(AA^{-1}\) | \(=\) | \(\begin{bmatrix}4 & 6\\ 1 & 2\end{bmatrix}\begin{bmatrix}1 & -3\\ -0.5 & 2\end{bmatrix}\) |
| \(\) | \(=\) | \(\begin{bmatrix}4 - 3 & -12 + 12\\ 1 - 1 & -3 + 4\end{bmatrix}\) |
| \(\) | \(=\) | \(\begin{bmatrix}1 & 0\\ 0 & 1\end{bmatrix}\) |
\(A^{-1} = \begin{bmatrix}1 & -3\\ -0.5 & 2\end{bmatrix}\). Multiplying gives the identity matrix \(I\), so the inverse is correct.
No inverse means the determinant is \(0\). Write \(ad - bc\) with the unknown and solve.
| \(\det(M)\) | \(=\) | \(k(k - 1) - 3 \times 2\) |
| \(\) | \(=\) | \(k^2 - k - 6\) |
| \(k^2 - k - 6\) | \(=\) | \(0\) |
| \((k - 3)(k + 2)\) | \(=\) | \(0\) |
| \(k\) | \(=\) | \(3 \text{ or } k = -2\) |
\(M\) is singular, with no inverse, when \(k = 3\) or \(k = -2\). Check \(k = 3\): \(\det = 3 \times 2 - 3 \times 2 = 0\). For every other value of \(k\), \(M\) has an inverse.
Multiply both sides on the left by \(A^{-1}\): \(A^{-1}AX = A^{-1}B\), so \(X = A^{-1}B\).
| \(\begin{bmatrix}3 & 4\\ 5 & 2\end{bmatrix}\begin{bmatrix}a\\ c\end{bmatrix}\) | \(=\) | \(\begin{bmatrix}123\\ 149\end{bmatrix}\) |
| \(\det(A)\) | \(=\) | \(3 \times 2 - 4 \times 5 = -14\) |
| \(X = A^{-1}B\) | \(=\) | \(\dfrac{1}{-14}\begin{bmatrix}2 & -4\\ -5 & 3\end{bmatrix}\begin{bmatrix}123\\ 149\end{bmatrix}\) |
| \(\) | \(=\) | \(\dfrac{1}{-14}\begin{bmatrix}-350\\ -168\end{bmatrix}\) |
| \(\) | \(=\) | \(\begin{bmatrix}25\\ 12\end{bmatrix}\) |
(i) \(A = \begin{bmatrix}3 & 4\\ 5 & 2\end{bmatrix}\), \(X = \begin{bmatrix}a\\ c\end{bmatrix}\), \(B = \begin{bmatrix}123\\ 149\end{bmatrix}\). (ii) \(a = 25\) and \(c = 12\): an adult entry costs \(\$25\) and a child entry \(\$12\). Check: \(3 \times 25 + 4 \times 12 = 123\).
Common pitfalls
Frequently asked questions
How do you find the determinant of a 2 x 2 matrix?
Multiply the numbers on the leading diagonal (top left times bottom right) and subtract the product of the other diagonal (top right times bottom left). The determinant is ad - bc.
How do you find the inverse of a 2 x 2 matrix?
Find the determinant ad - bc. Swap the top-left and bottom-right elements, change the signs of the other two, then divide every element by the determinant.
When does a matrix not have an inverse?
When its determinant is 0. Such a matrix is called singular. A negative determinant is fine: the inverse still exists.
What do you get when you multiply a matrix by its inverse?
The identity matrix I, which has 1s on the leading diagonal and 0s elsewhere. This is true in either order: A times its inverse, or the inverse times A.
How do you solve AX = B using matrices?
Find the inverse of A and multiply both sides on the left by it, so X equals the inverse of A times B. If the equation is XA = B instead, multiply on the right: X equals B times the inverse of A.
How do you find a matrix if you are given its inverse?
Find the inverse of the inverse. Swap, change signs and divide by the determinant as usual, and you get back the original matrix A.