Euler Hall — free maths guides

Invert a 2 by 2 matrix with the ad-bc formula

Swap the diagonal, negate the off-diagonal, and divide by the determinant. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

The one-line rule

ForA=[abcd]A=\begin{bmatrix}a&b\\c&d\end{bmatrix} withad−bc≠0ad-bc\ne0,

A−1=1ad−bc[d−b−ca].\def\arraystretch{1.6}A^{-1}=\frac{1}{ad-bc}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}.

Three moves, in this order:

  1. 1. swap the two diagonal entriesaa anddd;
  2. 2. negate the two off-diagonal entriesbb andcc;
  3. 3. divide every entry byad−bcad-bc.

Ifad−bc=0ad-bc=0, there is no inverse. Not a different formula — no inverse at all.

Why swapping the diagonal is the right move

The adjugate[d−b−ca]\begin{bmatrix}d&-b\\-c&a\end{bmatrix} is built so that

Work through the top-left entry:ad+b(−c)=ad−bcad+b(-c)=ad-bc. Top-right:a(−b)+ba=0a(-b)+ba=0. The two off-diagonal entries cancel because the signs were chosen for exactly that, and the diagonal entries are equal because subtraction is symmetric in the way addition is not.

So the adjugate lands on(ad−bc)I(ad-bc)I, and dividing byad−bcad-bc turns it intoII. The division is not decoration — it is the step that converts a multiple ofII intoII.

A worked example in the exam's shape

FindA−1A^{-1} forA=[4321]A=\begin{bmatrix}4&3\\2&1\end{bmatrix}.

Determinant:4⋅1−3⋅2=4−6=−24\cdot1-3\cdot2=4-6=-2.

Swap the diagonal:[1324]\begin{bmatrix}1&3\\2&4\end{bmatrix}. Negate the off-diagonal:[1−3−24]\begin{bmatrix}1&-3\\-2&4\end{bmatrix}. Divide by−2-2:

A−1=[−12321−2].\def\arraystretch{1.6}A^{-1}=\begin{bmatrix}-\frac12&\frac32\\1&-2\end{bmatrix}.

Check the top-left entry ofAA−1AA^{-1}:4⋅(−12)+3⋅1=−2+3=14\cdot(-\frac12)+3\cdot1=-2+3=1. ✓ Top-right:4⋅32+3⋅(−2)=6−6=04\cdot\frac32+3\cdot(-2)=6-6=0. ✓ Bottom-left:2⋅(−12)+1⋅1=02\cdot(-\frac12)+1\cdot1=0. ✓ Bottom-right:2⋅32+1⋅(−2)=12\cdot\frac32+1\cdot(-2)=1. ✓

All four entries right, so the matrix is the inverse.

By the end you can
  • Swap the diagonal, negate the off-diagonal, and divide by the determinant
  • Recognize a zero determinant as the signal that no inverse exists
  • Check a computed inverse by multiplying it back to I
Check yourself

1. Invert[1237]\begin{bmatrix}1&2\\3&7\end{bmatrix} and verify one entry of the product. 2. For whichkk is[2k46]\begin{bmatrix}2&k\\4&6\end{bmatrix} singular? 3. Explain in one sentence why dividing byad−bcad-bc is necessary.

Answers

1.det⁡=7−6=1\det=7-6=1, soA−1=[7−2−31]A^{-1}=\begin{bmatrix}7&-2\\-3&1\end{bmatrix}. Check the top-left:1⋅7+2⋅(−3)=11\cdot7+2\cdot(-3)=1 ✓. 2.det⁡=12−4k\det=12-4k, which is zero atk=3k=3 — then row 1 is half of row 2 and there is no inverse. 3. BecauseA⋅adj(A)=(ad−bc)IA\cdot\text{adj}(A)=(ad-bc)I; the division is what turns that multiple of the identity into the identity itself.

Work out where to start — free, no accountAnswer six real questions — free, no account