Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Blog › Explore in 3D

25 November 2026 · 4 min readInteractive 3D

Abstract artwork of the inside of an AI chip
Photo by Google DeepMind on Unsplash

What is a determinant? How a matrix grows a shape

The determinant is one number that tells you how much a matrix stretches volume, and whether it flattens space completely.

Textbooks give a recipe for the determinant: multiply diagonals, subtract, repeat. The recipe works, but it hides the meaning, which is simple. The determinant is the factor by which a matrix changes volume.

The “volume ×” number is the determinant. Stretch and squash the cube and watch it change.

Three things the determinant tells you

  • Bigger than 1: the matrix grows shapes. A determinant of 2 doubles every volume.
  • Between 0 and 1: the matrix shrinks shapes.
  • Exactly 0: the matrix flattens space onto a plane or a line. Information is lost, and the move cannot be undone.

Why zero matters so much

If a matrix squashes a cube flat, many different starting points end up on top of each other. There is no way to tell them apart afterwards, so there is no way back. That is why a matrix with determinant 0 has no inverse.

  1. Stretch sideways by 2: volume × 2
  2. Then stretch upwards by 0.5: volume × 0.5
  3. Together: 2 × 0.5 = 1, so the volume is unchanged even though the shape is different

Shearing never changes the determinant. Push the shear slider and the volume factor stays put: the box leans, but it does not get bigger.

Computing a 2 × 2 determinant

For the matrix with rows (a, b) and (c, d), the determinant is ad − bc. It tells you how much the matrix scales areas.

  1. Rows (3, 1) and (2, 4)
  2. ad = 3 × 4 = 12
  3. bc = 1 × 2 = 2
  4. Determinant = 12 − 2 = 10: every area becomes 10 times bigger

A unit square becomes a parallelogram of area 10. If the determinant were −10, the area would still grow 10 times, but the shape would also be flipped over, like a mirror image.

The 3 × 3 case

In three dimensions the determinant measures how a matrix scales volumes. A cube of volume 1 becomes a slanted box (a parallelepiped) whose volume is the determinant. Expanding along the first row gives a formula with three 2 × 2 determinants inside it.

Why zero matters

A determinant of zero means space has been squashed flat: a square becomes a line, or a cube becomes a sheet. Information is lost, so no inverse exists. In equations this means the system has either no solution or infinitely many. In AI it signals redundant features that carry the same information.

det(AB) = det(A) × det(B): scaling twice multiplies the scale factors.

Determinants and equations

Cramer’s rule solves small systems using determinants. For 2x + y = 5 and x − y = 1, the main determinant is 2 × (−1) − 1 × 1 = −3. Replacing the x column with [5, 1] gives 5 × (−1) − 1 × 1 = −6, so x = −6 ÷ −3 = 2. Replacing the y column gives 2 × 1 − 5 × 1 = −3, so y = 1.

Area of a triangle

The area of a triangle with corners (0, 0), (a, b) and (c, d) is half the size of ad − bc. For (0, 0), (4, 1) and (1, 3): ½ × |12 − 1| = 5.5 square units.

Glossary

  • Parallelogram: a four-sided shape with opposite sides parallel.
  • Parallelepiped: its 3D version, a slanted box.
  • Singular matrix: one with determinant zero.
  • Orientation: whether a shape is flipped.

Try these yourself

  1. Q1. Rows (2, 0), (0, 5): 10
  2. Q2. Rows (1, 2), (2, 4): 4 − 4 = 0, squashed flat
  3. Q3. Rows (0, 1), (1, 0): −1, a reflection
  4. Q4. Find k if rows (k, 2), (3, 6) give 0: 6k − 6 = 0, k = 1
  5. Q5. det A = 3 and det B = −2: det(AB) = −6

Common mistakes

  • Computing ad + bc instead of ad − bc.
  • Forgetting that a negative determinant still scales by its size.
  • Thinking det(A + B) = det A + det B; that is false in general.

In short

The determinant is the area or volume scale factor of a matrix, with a sign for flipping. Zero means space collapses and no inverse exists.

Keep going

  • Glossary: determinant
  • What does a matrix do?
  • Lesson: transpose, identity and inverse
  • What is gradient descent? How AI learns downhill
  • What is a local minimum? Why AI can get stuck
  • What is a saddle point? Flat spots that slow AI

Read and listen in

Indian languages

World languages

Questions people ask

What does a determinant tell you?

How much a matrix scales area (in 2D) or volume (in 3D), and whether it flips the space over (negative sign).

What does a zero determinant mean?

The matrix squashes space flat, so it has no inverse and the related equations do not have a unique solution.

How do you find a 2 × 2 determinant?

Multiply the diagonals and subtract: for rows (a, b) and (c, d) it is ad − bc.

More articles

  • What is gradient descent? How AI learns downhill
  • What is a local minimum? Why AI can get stuck
  • What is a saddle point? Flat spots that slow AI