A matrix is a rectangular array of numbers. The determinant tells you whether the matrix has an inverse, and the inverse undoes the transformation the matrix describes.
Closely related topics: Simultaneous equations, Vectors, Complex numbers.
What is it used for?
A matrix is a rectangular array of numbers. Matrices represent transformations and systems of equations, and can be added, multiplied, inverted and have determinants.
Solving simultaneous equations.
Describing rotations, reflections and enlargements.
Storing and transforming data.
How to solve it
Enter a matrix as rows inside square brackets, for example [[1,2],[3,4]].
2 by 2 determinant: ad - bc.
A matrix has an inverse only if its determinant is not zero.
2 by 2 inverse: swap a and d, change the signs of b and c, and divide by the determinant.
Multiply row by column; the number of columns in the first matrix must equal the rows in the second.
Worked examples
The examples marked with a button were worked out by the solver on this page. You can try each one yourself.
Example 1: inverse of [[2,1],[5,3]]
Worked out by the solver on this page. Press the button to try it yourself.
MatricesAnswer checked
Answer
(3−5−12)
For a 2 by 2 matrix, det=ad−bc
det(2513)=(2)(3)−(1)(5)=1
Swap the diagonal, change the signs of the other two, and divide by the determinant
A−1=11(3−5−12)
Simplify
A−1=(3−5−12)
Check: AA−1 gives the identity matrix
(2513)(3−5−12)=(1001)
Example 2: determinant of [[1,2],[3,4]]
Worked out by the solver on this page. Press the button to try it yourself.
MatricesAnswer checked
Answer
det=−2
For a 2 by 2 matrix, det=ad−bc
det(1324)=(1)(4)−(2)(3)=−2
Check: the determinant also equals the product from expanding down the first column
−2=−2
Example 3: determinant of [[1,2,3],[0,1,4],[5,6,0]]
Worked out by the solver on this page. Press the button to try it yourself.
MatricesAnswer checked
Answer
det=1
Expand along the first row, using the 2 by 2 minors with signs +−+
det=(1)(−24)−(2)(−20)+(3)(−5)=1
Check: the determinant also equals the product from expanding down the first column
1=1
Example 4: [[1,2],[3,4]]*[[5,6],[7,8]]
Worked out by the solver on this page. Press the button to try it yourself.
MatricesAnswer checked
Answer
(19432250)
Multiply each row of the first matrix by each column of the second