Inverse of a Square Matrix

Learn about invertibility, the properties of inverse matrices, and how to create an algorithm to generate the inverse of a matrix.

Definition

The inverse of a square matrix AA is another matrix, A1A^{-1} of the same size that converts AA to identity, II, upon multiplication. Mathematically,

A1A=AA1=IA^{-1}A = AA^{-1}= I

The matrix, A1A^{-1}, has an opposite effect to that of AA. Whatever AA does, A1A^{-1} undoes.

The Python code to calculate the inverse of a square matrix is as follows:

Get hands-on with 1400+ tech skills courses.