Matrix Calculator: Determinant and Inverse

Type the entries in the grid or write the matrix, then choose determinant or inverse.

Answer

Inverse matrix
A−1=(−2418520−15−4−541)A^{-1} = \begin{pmatrix}-24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1\end{pmatrix}

Checked numerically before it is shown

Step-by-step solution

Solve by

Gauss–Jordan

  1. Augmented matrix

    Write A next to the identity matrix:

    (123100014010560001)\left(\begin{array}{ccc|ccc}1 & 2 & 3 & 1 & 0 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 5 & 6 & 0 & 0 & 0 & 1\end{array}\right)
  2. Row operation

    Row operation R3→R3−5R1R_{3} \to R_{3} - 5R_{1}:

    (1231000140100−4−15−501)\left(\begin{array}{ccc|ccc}1 & 2 & 3 & 1 & 0 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & -4 & -15 & -5 & 0 & 1\end{array}\right)
  3. Row operation

    Row operation R1→R1−2R2R_{1} \to R_{1} - 2R_{2}:

    (10−51−200140100−4−15−501)\left(\begin{array}{ccc|ccc}1 & 0 & -5 & 1 & -2 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & -4 & -15 & -5 & 0 & 1\end{array}\right)
  4. Row operation

    Row operation R3→R3+4R2R_{3} \to R_{3} + 4R_{2}:

    (10−51−20014010001−541)\left(\begin{array}{ccc|ccc}1 & 0 & -5 & 1 & -2 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & 0 & 1 & -5 & 4 & 1\end{array}\right)
  5. Row operation

    Row operation R1→R1+5R3R_{1} \to R_{1} + 5R_{3}:

    (100−24185014010001−541)\left(\begin{array}{ccc|ccc}1 & 0 & 0 & -24 & 18 & 5 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & 0 & 1 & -5 & 4 & 1\end{array}\right)
  6. Row operation

    Row operation R2→R2−4R3R_{2} \to R_{2} - 4R_{3}:

    (100−2418501020−15−4001−541)\left(\begin{array}{ccc|ccc}1 & 0 & 0 & -24 & 18 & 5 \\ 0 & 1 & 0 & 20 & -15 & -4 \\ 0 & 0 & 1 & -5 & 4 & 1\end{array}\right)
  7. Inverse

    The left side is now the identity, so the right side is the inverse:

    A−1=(−2418520−15−4−541)A^{-1} = \begin{pmatrix}-24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1\end{pmatrix}

Try an example

About this solver

How to use

  1. Fill the grid, or type the matrix as [[1, 2], [3, 4]] or [1 2; 3 4].
  2. Entries can be integers, decimals or fractions such as 1/2.
  3. Add the word inverse, or ^-1, to get the inverse instead of the determinant.

How to type math

To enterType
Powerx^2 x^(n+1)
Rootsqrt(x) \sqrt[3]{x}
Fraction(x+1)/(x-1) \frac{1}{x}
Functionssin(x) ln(x) log_2(x) exp(x)
Absolute value|x| abs(x)
Derivatived/dx x^2 sin x (x^2+x)'
Integral\int x^2 dx \int_0^1 x^2 dx
Limitlim x->0 sin(x)/x \lim_{x\to\infty} 1/x
Degreessin(30°)
System of equations2x+y=5, x-y=1

How it works

A determinant is found by expanding along the row or column with the most zeros, by the rule of Sarrus for 3×3, or by row reduction to a triangular matrix.

An inverse is found with the adjugate (the transposed cofactor matrix divided by the determinant) or by Gauss–Jordan elimination on [A | I]. A matrix with determinant 0 has no inverse.

Frequently asked questions

Which methods are shown?

For a determinant: the ad − bc formula or cofactor expansion, the rule of Sarrus and row reduction. For an inverse: the adjugate and Gauss–Jordan elimination. Every method ends with the same exact answer.

Why does my matrix have no inverse?

A square matrix is invertible only when its determinant is not 0. When the determinant is 0 the solver says so and shows how the determinant was found.

Which sizes are supported?

2×2 and 3×3 matrices with numeric entries. Entries with letters are not supported yet.