Determinant Calculator
Calculate the determinant of any square matrix from 1×1 to 6×6 with step-by-step cofactor expansions, row reductions, and exact fractions.
How Matrix Determinants Work
The determinant is a scalar property computed from any square matrix. In linear algebra, it encodes essential information about whether the matrix can be inverted, whether a system of linear equations possesses a unique solution, and how the transformation scales n-dimensional volume.
A square matrix \(A\) is invertible if and only if \(\det(A) \ne 0\). If \(\det(A) = 0\), the matrix is singular and loses dimensional information.
Real-World Applications
Determinants are ubiquitous across computer science and engineering:
- Computer Graphics & 3D Rendering: Determinants compute surface normals and verify if a 3D transformation preserves clockwise or counter-clockwise vertex orientation. A negative determinant indicates a reflection.
- Multivariable Calculus: The Jacobian determinant computes coordinate transformation stretch factors when evaluating double or triple integrals over complex regions.
- Physics & Mechanics: Determining principal moments of inertia and solving eigenvalue problems for vibrational modes in buildings and aircraft frames.
Solved Examples with Complete Step-by-Step Working
Compute the determinant of matrix \(B\):
\(B = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix}\)
Step 1: Expand along the first row using minors and alternating signs \((+ - +)\):
\(\det(B) = 1 \cdot \begin{vmatrix} 1 & 4 \\ 6 & 0 \end{vmatrix} - 2 \cdot \begin{vmatrix} 0 & 4 \\ 5 & 0 \end{vmatrix} + 3 \cdot \begin{vmatrix} 0 & 1 \\ 5 & 6 \end{vmatrix}\)
Step 2: Evaluate each 2×2 minor using \(ad - bc\):
- \(M_{11} = (1)(0) - (4)(6) = 0 - 24 = -24\)
- \(M_{12} = (0)(0) - (4)(5) = 0 - 20 = -20\)
- \(M_{13} = (0)(6) - (1)(5) = 0 - 5 = -5\)
Step 3: Combine the evaluated terms:
\(\det(B) = 1(-24) - 2(-20) + 3(-5) = -24 + 40 - 15 = 1\)
Conclusion: Since \(\det(B) = 1 \ne 0\), matrix \(B\) is non-singular and invertible.
Compute the determinant of matrix \(C\):
\(C = \begin{bmatrix} \frac{1}{2} & 3 \\ -2 & \frac{4}{3} \end{bmatrix}\)
Step 1: Apply the 2×2 formula \(\det(C) = ad - bc\):
\(\det(C) = \left(\frac{1}{2}\right)\left(\frac{4}{3}\right) - (3)(-2)\)
Step 2: Multiply the primary and secondary diagonal components:
\(ad = \frac{4}{6} = \frac{2}{3}, \quad bc = -6\)
Step 3: Subtract the off-diagonal product:
\(\det(C) = \frac{2}{3} - (-6) = \frac{2}{3} + \frac{18}{3} = \frac{20}{3}\)
Result: \(\det(C) = \frac{20}{3}\) (or \(6.6667\)).
Deepen Your Understanding
Want to master geometric intuition and formal properties like Laplace expansion?
Read our complete student guide: What is a Determinant in Linear Algebra? →