Matrix Inverse

The inverse of a Matrix Transformation is a matrix that reverses the transformation.

For example, if our matrix transform did a 90° anticlockwise rotation, the inverse matrix would do a 90° clockwise rotation.

Inverse transformation example

We represent the inverse of a matrix A as A1.

When you multiply a matrix by its inverse, you get the Identity Matrix back: AA1=I

It's the equivalent of the reciprocal of a number in scalar math, ie 10110=1 or 10101=1

For a 2×2 matrix, we calculate the inverse as follows:

[abcd]1=1adbc[dbca]

For example:

[1324]1=11×43×2[4321]=12[4321]=[21.510.5]

We can do a matrix multiplication to confirm the identity matrix is returned:

[1324][21.510.5]=[1001]

We can also use the np.linalg.inv method in Numpy to find the inverse.

The adbc part of the expression is the Matrix Determinate.

For a larger matrix, we can use Gaussian Elimination to invert a matrix.

[@dyeMathematicsMachineLearning]

A matrix with a determinate of 0: A=0 is referred to as a Singular Matrix and has no inverse.

We can only calculate the inverse of a square matrix.

[@khanacademylabIntroMatrixInverses]


Backlinks