Determinant and inverse
For a $2\times 2$ matrix $A=\begin{pmatrix}a&b\\c&d\end{pmatrix}$, the determinant is $\det A=ad-bc$. If $\det A\neq 0$ the matrix has an inverse. When $ad-bc=0$ the matrix is singular and has no inverse.
Key formula
$A^{-1}=\dfrac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}$. Swap $a$ and $d$, negate $b$ and $c$, then divide by the determinant.
Solving simultaneous equations
Write the pair of equations as $A\mathbf{x}=\mathbf{b}$, where $A$ holds the coefficients, $\mathbf{x}=\begin{pmatrix}x\\y\end{pmatrix}$ and $\mathbf{b}$ the constants. Multiply both sides by $A^{-1}$ to get $\mathbf{x}=A^{-1}\mathbf{b}$, which gives $x$ and $y$ at once.
Worked example
Solve $2x+3y=8$ and $x+2y=5$. Here $A=\begin{pmatrix}2&3\\1&2\end{pmatrix}$, $\det A=2(2)-3(1)=1$. So $A^{-1}=\dfrac{1}{1}\begin{pmatrix}2&-3\\-1&2\end{pmatrix}$. Then $\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}2&-3\\-1&2\end{pmatrix}\begin{pmatrix}8\\5\end{pmatrix}=\begin{pmatrix}16-15\\-8+10\end{pmatrix}=\begin{pmatrix}1\\2\end{pmatrix}$. So $x=1,\ y=2$.
Remember
- $\det A=ad-bc$; if it is $0$ there is no inverse.
- Inverse: swap the leading diagonal, negate the other diagonal, divide by $\det A$.
- $\mathbf{x}=A^{-1}\mathbf{b}$ solves $A\mathbf{x}=\mathbf{b}$.