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=(−2132−12)A^{-1} = \begin{pmatrix}-2 & 1 \\ \frac{3}{2} & - \frac{1}{2}\end{pmatrix}

Checked numerically before it is shown

Step-by-step solution

Solve by

Adjugate

  1. Determinant

    First the determinant, which must not be 0: det A = −2-2.

  2. Determinant formula

    For a 2×2 matrix, the determinant is ad − bc:

    det⁡A=ad−bc=1⋅4−2⋅3=−2\det A = ad - bc = 1 \cdot 4 - 2 \cdot 3 = -2
  3. 2×2 inverse

    Swap the diagonal entries, change the signs of the others and divide by the determinant:

    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}

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.