# Inverse of Matrix Calculator

The calculator will find the inverse (if it exists) of the square matrix using the Gaussian elimination method or the adjugate method, with steps shown.

Related calculator: Gauss-Jordan Elimination Calculator

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please write it in the comments below.

Calculate $\left[\begin{array}{cc}2 & 1\\1 & 3\end{array}\right]^{-1}$ using the Gauss-Jordan elimination.

## Solution

To find the inverse matrix, augment it with the identity matrix and perform row operations trying to make the identity matrix to the left. Then to the right will be the inverse matrix.

So, augment the matrix with the identity matrix:

$\left[\begin{array}{cc|cc}2 & 1 & 1 & 0\\1 & 3 & 0 & 1\end{array}\right]$

Divide row $1$ by $2$: $R_{1} = \frac{R_{1}}{2}$.

$\left[\begin{array}{cc|cc}1 & \frac{1}{2} & \frac{1}{2} & 0\\1 & 3 & 0 & 1\end{array}\right]$

Subtract row $1$ from row $2$: $R_{2} = R_{2} - R_{1}$.

$\left[\begin{array}{cc|cc}1 & \frac{1}{2} & \frac{1}{2} & 0\\0 & \frac{5}{2} & - \frac{1}{2} & 1\end{array}\right]$

Multiply row $2$ by $\frac{2}{5}$: $R_{2} = \frac{2 R_{2}}{5}$.

$\left[\begin{array}{cc|cc}1 & \frac{1}{2} & \frac{1}{2} & 0\\0 & 1 & - \frac{1}{5} & \frac{2}{5}\end{array}\right]$

Subtract row $2$ multiplied by $\frac{1}{2}$ from row $1$: $R_{1} = R_{1} - \frac{R_{2}}{2}$.

$\left[\begin{array}{cc|cc}1 & 0 & \frac{3}{5} & - \frac{1}{5}\\0 & 1 & - \frac{1}{5} & \frac{2}{5}\end{array}\right]$

We are done. On the left is the identity matrix. On the right is the inverse matrix.

The inverse matrix is $\left[\begin{array}{cc}\frac{3}{5} & - \frac{1}{5}\\- \frac{1}{5} & \frac{2}{5}\end{array}\right] = \left[\begin{array}{cc}0.6 & -0.2\\-0.2 & 0.4\end{array}\right].$A