How to find a two-by-two matrix inverse and test invertibility

An inverse matrix reverses a matrix transformation. When an inverse exists, multiplying the matrix by its inverse gives the identity. For a two-by-two matrix, the determinant gives us a direct way to find the inverse and decide whether it exists.

Find the determinant

A=[abcd]
detA=ad-bc

Multiply the main-diagonal entries, then subtract the product from the other diagonal.

Apply the two-by-two inverse formula

If ad-bc≠0, swap the main-diagonal entries, change the signs of the other two entries, and multiply by the reciprocal of the determinant.

A-1=1ad-bc[d-b-ca]

Find and check an inverse

K=[-2430]
detK=(-2)(0)-4(3)=-12
K-1=[0131416]

To check the inverse, calculate both products. In KK-1, the first-row entries are -2(0)+4(1/4)=1 and -2(1/3)+4(1/6)=0. The second-row entries are 0 and 1. The reverse product also gives

KK-1=K-1K=I2

Distinguish invertible and singular matrices

A square matrix is invertible when its determinant is nonzero. If its determinant is zero, it is singular and has no ordinary two-sided inverse.

M=[1-335]

Here detM=1(5)-(-3)(3)=14, so M is invertible.

L=[-623-1]

Here detL=(-6)(-1)-2(3)=0, so L is singular. The determinant test also works when some entries are zero, without requiring ratios of entries.

Use an inverse in a matrix equation

For AX=B with invertible A, multiply on the left to obtain X=A-1B. For XA=B, multiply on the right to obtain X=BA-1. The side matters because matrix multiplication generally depends on order.