Figuro.net

Matrix Calculator

Determinant and inverse of a 2×2 matrix. Free, private, and runs entirely in your browser.

Enter values and press Calculate to see the result here.

How this is calculated

The determinant is ad − bc. If it is non-zero, the inverse is 1 ÷ det times the matrix with a and d swapped and b and c negated.

Formula

det = ad − bc
A⁻¹ = (1 ÷ det) × [d −b; −c a]

Frequently asked questions

When is a matrix singular? When its determinant is zero; it has no inverse.

Larger matrices? This tool covers 2×2 only.

Worked example

For the matrix [[4, 7], [2, 6]], the determinant is 4 × 6 − 7 × 2 = 10. The inverse is (1 ÷ 10) × [[6, −7], [−2, 4]] = [[0.6, −0.7], [−0.2, 0.4]]. Multiplying the matrix by its inverse gives the identity matrix.

Common mistakes

Tips

More questions

What is the geometric meaning of a determinant? For a 2×2 matrix it is the factor by which the transformation scales area, with a negative sign meaning a flip.

How do I solve a system of equations with an inverse? If AX = B, then X = A⁻¹B, as long as A has an inverse.

History and background

The word matrix, from the Latin for womb or source, was introduced to mathematics by James Joseph Sylvester in 1850, and in 1858 Arthur Cayley published the first systematic treatment of matrix algebra. The determinant is older: the Japanese mathematician Seki Takakazu described it in 1683, and Gottfried Leibniz found the idea independently around 1693 while solving systems of linear equations. Matrices now power computer graphics, statistics, engineering and machine learning.

Putting it to use

Use this calculator for the determinant and inverse of a 2 by 2 matrix. For [[2, 1], [5, 3]], the determinant is 2 × 3 − 1 × 5 = 1, and the inverse is [[3, −1], [−5, 2]]. A matrix with a determinant of zero is called singular and has no inverse. The determinant also tells you how the matrix scales areas: a determinant of 3 means shapes become three times larger, and a negative value means the orientation is flipped.

Further questions

What is the inverse used for? The inverse lets you solve systems of linear equations: if Ax = b, then x = A⁻¹b. It also undoes a transformation such as a rotation or scaling.

How do I multiply two matrices? Each entry is the dot product of a row from the first matrix and a column from the second. Order matters: AB is usually not equal to BA. For example, [[1, 2], [3, 4]] times [[0, 1], [1, 0]] gives [[2, 1], [4, 3]].

← Browse all calculators and tools