What is a determinant?
A determinant is a single number computed from a square matrix. It encodes essential information about the matrix: whether the linear transformation it represents is invertible, how it scales volume, and whether its rows (or columns) are linearly independent. The determinant of a matrix A is written det(A) or |A|.
Determinants appear throughout linear algebra, calculus, physics, engineering, and statistics. They are used to solve systems of linear equations, compute inverses, evaluate eigenvalues, change variables in multiple integrals (the Jacobian), and test whether a set of vectors forms a basis.
How the determinant works
The determinant is defined recursively. For a 1Γ1 matrix it is just the single entry. For larger matrices, it is a signed sum of products of entries, where the signs alternate in a checkerboard pattern. Equivalent but faster methods β like cofactor expansion, row reduction (Gaussian elimination), or LU decomposition β produce the same value.
This calculator uses cofactor expansion for 2Γ2 and 3Γ3 matrices (fast and exact for small sizes), and Gaussian elimination with partial pivoting for 4Γ4 and 5Γ5 matrices (numerically stable and efficient). Both methods yield the exact determinant for integer and rational inputs.
2Γ2 determinant formula
For a 2Γ2 matrix, the determinant is the product of the main diagonal minus the product of the anti-diagonal:
where A = [[a, b], [c, d]]
Example: for A = [[3, 8], [4, 6]], det(A) = (3)(6) β (8)(4) = 18 β 32 = β14.
3Γ3 determinant concept
For a 3Γ3 matrix, the determinant can be computed by cofactor expansion along any row or column. Expanding along the first row:
The pattern of signs is + β + across the first row. Each term is a 2Γ2 determinant (a minor) multiplied by a sign factor. This generalises to any size via cofactor expansion.
Determinant and invertibility
A square matrix is invertible (non-singular) if and only if its determinant is non-zero. If det(A) β 0, the matrix has an inverse Aβ»ΒΉ and the system Ax = b has a unique solution. If det(A) = 0, the matrix is singular: it has no inverse, and the system either has no solution or infinitely many.
Geometric meaning
Geometrically, the absolute value of the determinant is the volume scaling factor of the linear transformation represented by the matrix. In 2D, |det(A)| is the area of the parallelogram formed by the transformed unit square. In 3D, it is the volume of the parallelepiped. A determinant of zero means the transformation collapses space onto a lower dimension (e.g., a plane or a line), which is why the matrix cannot be inverted.
Singular matrices
A singular matrix has determinant zero. Its rows (and columns) are linearly dependent: at least one row can be written as a combination of the others. Singular matrices are not invertible, and they map distinct vectors to the same output β information is lost.
Practical applications
- Solving linear systems: Cramer's rule expresses the solution of Ax = b using determinants.
- Inverse matrices: Aβ»ΒΉ = adj(A) / det(A), so a non-zero determinant is essential.
- Eigenvalues: The characteristic polynomial det(A β Ξ»I) = 0 defines the eigenvalues.
- Calculus: The Jacobian determinant appears in change-of-variables for multiple integrals.
- Computer graphics: Determinants test orientation and detect degenerate transformations.
- Statistics: The determinant of a covariance matrix relates to the generalised variance.
Worked example β 3Γ3 determinant
Let A = [[2, β1, 3], [0, 4, β2], [1, 5, 0]]. Expanding along the first row:
= 2Β·(0 + 10) + 1Β·(0 + 2) + 3Β·(0 β 4)
= 20 + 2 β 12 = 10
Since det(A) = 10 β 0, the matrix is non-singular and invertible. Use the calculator above to verify this result instantly.
Worked example β singular matrix
Let B = [[1, 2, 3], [2, 4, 6], [1, 1, 1]]. Notice row 2 = 2 Γ row 1, so the rows are linearly dependent. Expanding:
= 1Β·(β2) β 2Β·(β4) + 3Β·(β2)
= β2 + 8 β 6 = 0
det(B) = 0 confirms the matrix is singular and not invertible.
Related matrix tools
Explore our other free linear algebra and mathematics calculators: