Courses / Computer Science I
Algebra

Determinants and Invertibility

Computer Science I 342 words Free to read

One Number That Says a Lot

The determinant is a single number computed from a square matrix that captures essential information about the transformation the matrix represents. For a 2×22 \times 2 matrix (abcd)\begin{pmatrix} a & b \\ c & d \end{pmatrix}, the determinant is det=adbc.\det = ad - bc. Larger matrices have determinants too, computed by expansion, but the 2×22 \times 2 case shows the idea.

Geometrically, the determinant measures how the transformation scales area (or volume in higher dimensions). A determinant of 2 doubles areas; a determinant of 1 preserves them; a determinant of 0 collapses everything onto a line or point — the transformation flattens space. A negative determinant means the transformation also flips orientation (like a mirror).

The single most important fact ties the determinant to the previous lesson's inverse: a square matrix is invertible if and only if its determinant is nonzero. A zero determinant means the matrix squashes space, losing information that cannot be recovered — so no inverse exists (the matrix is singular). This also decides linear systems: Ax=bA\mathbf{x} = \mathbf{b} has a unique solution exactly when detA0\det A \neq 0.

The determinant thus unifies several threads: it detects invertibility, tells whether a linear system has a unique solution, and measures area/volume scaling. In computing it appears in graphics (orientation, area), solving systems, and testing whether vectors are linearly independent (a zero determinant means they are dependent).

Common pitfall: getting the sign or terms of the 2×22 \times 2 determinant wrong (adbcad - bc, not abcdab - cd or ad+bcad + bc), and mishandling the invertibility rule. The matrix is invertible when the determinant is nonzero; a zero determinant means it is singular (no inverse). Reversing this — thinking a zero determinant means invertible — is a fundamental error.

A unit square mapped by a 2x2 matrix into a parallelogram whose accent-shaded area equals the determinant; as the matrix nears singular, the parallelogram flattens to a line (determinant 0).

det(abcd)=adbc\det \begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc

Determinants and Invertibility

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

9practice questions
2interactive scenes
Start Computer Science I free

Algebra