Matrix Calculator

Choose a matrix operation, enter the matrices and see it worked out.

Matrix A
Size
2

Write rows separated by semicolons, like 1, 2; 3, 4.

Try

Result

You entered(1234)−1\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}^{-1}

(−2132−12)\displaystyle \begin{pmatrix} -2 & 1 \\ \frac{3}{2} & -\frac{1}{2} \end{pmatrix}

Check

(1234)(−2132−12)=(1001)\displaystyle \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} \begin{pmatrix} -2 & 1 \\ \frac{3}{2} & -\frac{1}{2} \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}

Determinant

−2\displaystyle -2
Show the work
  1. Determinant of a 2 by 2 matrix

    Here a=1a = 1, b=2b = 2, c=3c = 3 and d=4d = 4. The determinant decides whether the inverse exists.

    det⁡A=ad−bc=1×4−2×3=4−6=−2\begin{aligned} \det A &= ad - bc \\ &= 1 \times 4 - 2 \times 3 \\ &= 4 - 6 \\ &= -2 \end{aligned}
  2. Existence of the inverse

    An inverse exists exactly when the determinant is not 0. Here the determinant is −2-2, which is not 0, so AA has an inverse.

  3. Inverse of a 2 by 2 matrix

    Swap aa and dd, change the signs of bb and cc, and divide every entry by the determinant.

    Using A−1=1ad−bc(d−b−ca)A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}

    A−1=1−2(4−2−31)=(−2132−12)A^{-1} = \frac{1}{-2}\begin{pmatrix} 4 & -2 \\ -3 & 1 \end{pmatrix} = \begin{pmatrix} -2 & 1 \\ \frac{3}{2} & -\frac{1}{2} \end{pmatrix}
  4. Result

    So A−1=(−2132−12)A^{-1} = \begin{pmatrix} -2 & 1 \\ \frac{3}{2} & -\frac{1}{2} \end{pmatrix}.

Worked examples