Module 1 of 1 · Lesson 4 of 14

Determinants

One number per square matrix: how to compute it, and what its value and sign say.

What you will be able to do

Given a square matrix, the learner can compute its determinant by cofactor expansion or by elimination, choosing the cheaper route and justifying the choice, and can state what the value implies about invertibility, dependence of the columns, and the volume scaling of the associated map.

Orientation

Deciding whether a square matrix is invertible could be done by row reduction every time. The determinant answers it with a single number instead, and that number carries more than a yes or no.

Its magnitude is the factor by which the map stretches volume: a matrix with determinant 3 turns any region into one of three times the volume. Its sign says whether orientation survives. And it vanishing is not a failure but the informative case. It says the map has flattened space into something lower-dimensional, which is exactly the condition an eigenvalue computation searches for.

The arithmetic has two routes. Cofactor expansion is defined at any size and unusable beyond small ones; elimination is what anything larger uses. Choosing between them is part of the skill.

Definition

The sign pattern, and why any row will do

The cofactor sign is positional, not a property of the entry. ( − 1 ) i + j alternates like a chessboard:

( + − + − + − + − + )

The top-left is always + . A negative entry in a + position contributes a negative term; the sign of the entry and the sign of the position are separate factors and both apply. Conflating them is the commonest arithmetic error in a hand computation.

Any row or column gives the same answer. This is a theorem, and it has two practical consequences. First, a row or column containing zeros is the one to expand along, since a zero entry annihilates its whole term regardless of the minor. Second, det ( A T ) = det A follows immediately: transposing swaps the roles of rows and columns, and both expansions were already available.

What multilinearity actually says. The determinant is linear in each row separately, with the other rows held fixed:

det ( u + v r 2 ) = det ( u r 2 ) + det ( v r 2 ) , det ( k u r 2 ) = k det ( u r 2 ) .

This is not linearity in the matrix. Scaling the whole n × n matrix by k scales every one of its n rows, so

det ( k A ) = k n det A ,

and det ( A + B ) ≠ det A + det B in general. Both mistakes come from reading "linear" as applying to the matrix rather than to one row at a time.

Why det A = 0 characterises singularity. If the columns are dependent, some column is a combination of the others; subtracting that combination, an operation that leaves the determinant unchanged, produces a zero column, and expanding along it gives zero. Conversely a nonzero determinant makes A − 1 = 1 det A adj ⁡ ( A ) available, so the matrix is invertible. The equivalence with full rank and with a trivial kernel then follows from the earlier units.

Figure

Three determinants: area factor, orientation, and collapse

the sign carries orientation; zero carries collapse

The same unit square under three maps, each in its own coordinate frame with its own origin. The separation between frames is layout, not distance.

det A = 6 > 0 . A = ( 3 1 0 2 ) sends the square to a parallelogram of area 3 ⋅ 2 = 6 . The determinant is the factor by which every area scales, so a region of area k becomes one of area 6 k . Reading the corners in order, the image still runs counterclockwise.

det B = − 2 < 0 . B = ( 1 2 1 0 ) scales areas by | − 2 | = 2 and reverses the corner order: what was counterclockwise comes back clockwise. That sign is the part | det | discards.

det C = 0 . C = ( 1 2 0.5 1 ) has proportional columns, so the square flattens onto a segment: area zero, and the whole plane lands on one line. That is why a zero determinant and non-invertibility are the same statement.

Example

Determinants readable without computation

Several matrices give up their determinants on sight. Recognising them saves the arithmetic and, more usefully, says what the value means.

Matrix det Why
I 3 1 diagonal product; the identity changes no volume
diag ⁡ ( 2 , − 3 , 5 ) − 30 diagonal product 2 ( − 3 ) ( 5 )
( 3 7 − 1 0 − 2 5 0 0 4 ) − 24 triangular: 3 ( − 2 ) ( 4 )
( 1 2 3 0 0 0 4 5 6 ) 0 a zero row; expanding along it gives nothing
( 1 2 3 7 8 9 1 2 3 ) 0 two equal rows
( 2 4 3 6 ) 0 second row is 1.5 times the first
( 0 1 1 0 ) − 1 a single row swap applied to I
( 5 3 2 4 ) 14 5 ( 4 ) − 3 ( 2 )

Why equal rows force zero. Swapping two rows negates the determinant. Swapping two equal rows leaves the matrix unchanged, so det A = − det A , which over the reals forces det A = 0 . The same argument covers proportional rows, since scaling one row first turns the proportional case into the equal case.

Why a zero row forces zero. Expanding along it, every term carries a factor of zero. Geometrically the figure spanned by the rows has been flattened: one edge has length zero, so the volume is zero.

The permutation matrix. ( 0 1 1 0 ) swaps the two coordinates. It preserves area, the unit square maps to the unit square, so the magnitude is 1, and it reverses orientation, so the sign is negative. In general a permutation matrix has determinant + 1 for an even permutation and − 1 for an odd one, which is the sign of the permutation.

Each value is read from structure rather than computed from entries: a diagonal, a dependency among rows, a single swap. Looking for that structure before starting an expansion is the cheapest step in any determinant calculation, and on a singular matrix it is the whole calculation.

Procedure

Two routes, and when to take each

Route 1: cofactor expansion.

  1. Choose the row or column with the most zeros.
  2. For each entry a i j in it, form the minor M i j by deleting row i and column j .
  3. Compute ( − 1 ) i + j a i j det M i j , recursing until 2 × 2 .
  4. Sum the terms.

Skip any entry that is zero: its term vanishes whatever the minor is, and computing that minor is wasted work.

Route 2: elimination to triangular form.

  1. Reduce using row operations, recording the effect of each on the value.
  2. Stop at upper triangular form.
  3. Multiply the diagonal entries.
  4. Undo the recorded effects.
Operation usedCorrection to apply
swapped two rowsmultiply the result by − 1
scaled a row by k divide the result by k
added a multiple of a row to anothernone

The third row of that table is why elimination works at all: the workhorse operation costs nothing, so a whole reduction can be carried out with only swaps needing correction. Preferring it over row scaling keeps the bookkeeping trivial.

Choosing. Expansion costs about n ! multiplications, elimination about n 3 / 3 . At n = 3 they are comparable and expansion is often quicker by hand; at n = 5 expansion needs 120 terms and elimination about 40 operations; at n = 10 expansion is hopeless. Expand when the matrix is small or has a sparse row or column; eliminate otherwise.

Checks worth running.

  • A zero row or a zero column forces det = 0 ; so do two equal rows, or one row a multiple of another.
  • A triangular matrix needs no work: multiply the diagonal.
  • After computing, ask whether the verdict is plausible, if the columns visibly satisfy a dependence, the answer must be zero.

Worked example

One matrix, two routes, same answer

A = ( 2 − 1 3 1 4 − 2 3 0 1 ) .

---

Route 1: expansion along row 1.

Signs along the first row are + , − , + .

j = 1 : entry 2 , minor ( 4 − 2 0 1 ) with determinant 4 ( 1 ) − ( − 2 ) ( 0 ) = 4 . Term: + 2 ( 4 ) = 8 .

j = 2 : entry − 1 , minor ( 1 − 2 3 1 ) with determinant 1 ( 1 ) − ( − 2 ) ( 3 ) = 7 . Term: − ( − 1 ) ( 7 ) = + 7 . Both signs apply, the position's − and the entry's own − , and they cancel.

j = 3 : entry 3 , minor ( 1 4 3 0 ) with determinant 1 ( 0 ) − 4 ( 3 ) = − 12 . Term: + 3 ( − 12 ) = − 36 .

det A = 8 + 7 − 36 = − 21 .

Route 1b: expansion along column 1, as a check. Signs down column 1 are + , − , + .

i = 1 : + 2 ⋅ det ( 4 − 2 0 1 ) = 2 ( 4 ) = 8 .

i = 2 : − 1 ⋅ det ( − 1 3 0 1 ) = − 1 ( − 1 ) = + 1 .

i = 3 : + 3 ⋅ det ( − 1 3 4 − 2 ) = 3 ( 2 − 12 ) = 3 ( − 10 ) = − 30 .

8 + 1 − 30 = − 21

The agreement is the theorem, not a coincidence. Note that column 2 would have been the shrewd choice here: it contains a zero, so one of its three terms vanishes before any minor is computed.

---

Route 2: elimination.

Use only "add a multiple of a row to another", which leaves the value unchanged.

R 2 → R 2 − 1 2 R 1 : ( 1 , 4 , − 2 ) − 1 2 ( 2 , − 1 , 3 ) = ( 0 , 4.5 , − 3.5 ) .

R 3 → R 3 − 3 2 R 1 : ( 3 , 0 , 1 ) − 3 2 ( 2 , − 1 , 3 ) = ( 0 , 1.5 , − 3.5 ) .

( 2 − 1 3 0 4.5 − 3.5 0 1.5 − 3.5 ) .

R 3 → R 3 − 1 3 R 2 : ( 0 , 1.5 , − 3.5 ) − 1 3 ( 0 , 4.5 , − 3.5 ) = ( 0 , 0 , − 3.5 + 1.1 6 ― ) = ( 0 , 0 , − 7 3 ) .

Upper triangular, with no swaps and no scalings, so the value is unchanged from A :

det A = 2 × 4.5 × ( − 7 3 ) = 9 × ( − 7 3 ) = − 21

---

det A = − 21 ≠ 0 , so A is invertible, its columns are independent, its rank is 3, and the map x ↦ A x has trivial kernel and image all of R 3 .

Geometrically: the unit cube maps to a parallelepiped of volume 21 , and the negative sign says orientation is reversed. The image is a mirrored copy, not a rotated one.

What each route cost. Expansion: three 2 × 2 determinants and three multiplications. Elimination: three row operations and two multiplications. At 3 × 3 they are close. At 6 × 6 expansion would need 720 terms and elimination about 70 operations, which is the whole argument for the second route.

Principle

Row operations and multiplicativity, checked

Take A from the worked example, with det A = − 21 .

Swapping rows negates. Exchanging rows 1 and 2 gives

( 1 4 − 2 2 − 1 3 3 0 1 ) , det = + 21 .

One swap, one sign change. Two swaps return the original value, which is why an even number of exchanges costs nothing.

Scaling a row scales the value. Multiplying row 1 by 5:

( 10 − 5 15 1 4 − 2 3 0 1 ) , det = − 105 = 5 ( − 21 ) .

One row, one factor. Scaling the whole matrix by 5 would scale all three rows and give 5 3 ( − 21 ) = − 2625 , which is the det ( k A ) = k n det A rule.

Adding a multiple of a row changes nothing. Replacing row 2 by row 2 plus 3 × row 1:

( 2 − 1 3 7 1 7 3 0 1 ) , det = − 21 .

The matrix is visibly different and the determinant is identical. Geometrically the figure has been sheared: the base is unmoved and the height is unchanged, so the volume is too.

Multiplicativity. With M = ( 1 2 3 4 ) and N = ( 0 1 1 0 ) :

det M = 4 − 6 = − 2 , det N = 0 − 1 = − 1 , M N = ( 2 1 4 3 ) , det ( M N ) = 6 − 4 = 2 ,

and ( − 2 ) ( − 1 ) = 2 .

Read geometrically: N scales volume by | − 1 | = 1 and reverses orientation, M scales by 2 and reverses again, so the composition scales by 2 and preserves orientation. Two reversals make a preservation, which is the product of the signs.

Two consequences. det ( A − 1 ) = 1 / det A , since A A − 1 = I has determinant 1. And similar matrices have equal determinants: det ( P − 1 A P ) = det ( P ) − 1 det A det P = det A , so the determinant belongs to the transformation rather than to the basis it is written in, which is what makes it usable in eigentheory.

A singular check. S = ( 1 2 2 4 ) has det S = 4 − 4 = 0 , and indeed its second column is twice the first. The map collapses the plane onto a line: zero area, dependent columns, nontrivial kernel, three statements of one fact.

Non-example

Four determinant errors

Adding determinants. " det ( A + B ) = det A + det B ." Take A = I and B = − I in dimension 2: det A = 1 , det B = 1 , and A + B is the zero matrix with determinant 0, not 2. The determinant is linear in each row separately with the others fixed, which is a different statement about a different object.

Scaling the matrix as though it were one row. " det ( 3 A ) = 3 det A ." Scaling the matrix scales all n rows, so det ( 3 A ) = 3 n det A . For the worked example's 3 × 3 matrix that is 27 ( − 21 ) = − 567 , not − 63 .

Losing a sign in the expansion. Expanding along row 1 with entry a 12 = − 1 and minor determinant 7, the learner writes − 1 × 7 = − 7 , forgetting that the position also contributes ( − 1 ) 1 + 2 = − 1 . Both factors apply: ( − 1 ) ( − 1 ) ( 7 ) = + 7 . The chessboard sign and the entry's own sign are independent, and the error is invisible in the final number unless the computation is checked by a second expansion.

Treating a zero determinant as a failed calculation. " det = 0 , so I must have made a mistake." Zero is a legitimate and informative value: the columns are dependent, the rank is below n , the kernel is nontrivial, and the map flattens space. Eigenvalue computations search for the values of λ making det ( A − λ I ) = 0 , so the zero case is the one being hunted rather than an error to correct.

What separates these. The first two mistake which object the linearity applies to. The third is arithmetic with a conceptual cause, not knowing that two independent sign factors are in play. The fourth misreads an informative result as a broken one, and it is the most costly, because it leads to redoing correct work rather than acting on what it found.

Optional enrichment (1)

Application

Area, volume, and the change of variables factor

Area in the plane. The columns of a 2 × 2 matrix span a parallelogram, and | det A | is its area. For A = ( 3 1 0 2 ) the columns are ( 3 , 0 ) and ( 1 , 2 ) , giving a parallelogram of base 3 and height 2, area 6, and det A = 6 − 0 = 6 .

Shearing confirms the row-operation rule visually. Replacing the second column by ( 1 , 2 ) + t ( 3 , 0 ) slides the top edge along without moving the base or changing the height, so the area is unchanged, and the determinant computation agrees for every t .

Volume in space. In R 3 the three columns span a parallelepiped whose volume is | det A | . The unit cube has volume 1 and the columns of A are the images of e 1 , e 2 , e 3 , so | det A | is the factor by which the map scales every volume, not only the cube's, because any region can be approximated by small cubes and each is scaled the same way.

This is what makes multiplicativity geometrically inevitable: applying B then A scales volume by | det B | and then by | det A | .

Orientation. The sign distinguishes a rotation from a reflection. A rotation has determinant + 1 , a reflection − 1 ; a right-handed frame stays right-handed under the first and becomes left-handed under the second. The worked example's − 21 therefore says: volume multiplied by 21, handedness flipped.

Change of variables. In multivariable calculus, substituting x = Φ ( u ) into an integral introduces the factor | det D Φ ( u ) | , where D Φ is the Jacobian matrix of partial derivatives:

∫ Φ ( U ) f ( x ) d x = ∫ U f ( Φ ( u ) ) | det D Φ ( u ) | d u .

The factor is exactly this unit's content. Near a point, a differentiable map is approximately linear with matrix D Φ , so it scales small volumes by | det D Φ | , and the integral must compensate. Polar coordinates give | det | = r , which is where the familiar r d r d θ comes from, not a rule to memorise but a determinant.

The absolute value appears because an integral over a region does not care about orientation, while the determinant itself does.

Where the volume reading stops. It requires a square matrix over the reals. Determinants over finite fields, or of matrices of formal variables as in the characteristic polynomial, obey the same algebra with no volume to point at, so the geometry motivates the definition without being the definition.

Next step

Practice Determinants

Practice records what support you used, so the evidence reflects how you actually performed.

Practice this lessonSkip to Eigenvalues and Eigenvectors

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.