II.12 · Linear Algebra
One signed number records area scaling, collapse, and orientation.
Drag the image columns and watch the unit square become a parallelogram. Its ordinary area is |det A|; the sign remembers whether the ordered frame was reversed.
Watch a unit square become signed area
The unit square becomes a parallelogram of area 2. The positive sign records preserved orientation.
- matrix A
- 2×2 [2, 1; 0, 1]
- signed area scale
- 2
- ordinary area scale
- 2
- orientation
- preserved
- basis independence test
- independent
Exact expressions use =. Rounded computations use ≈. Every view uses this same state.
The unit square becomes a parallelogram of area 2. The positive sign records preserved orientation.
from −4 to 4, up to 2 decimal places
from −4 to 4, up to 2 decimal places
from −4 to 4, up to 2 decimal places
from −4 to 4, up to 2 decimal places
Choose Area-one shear and move the slanted column horizontally; explain why base and height stay fixed. Choose Negative reflection and locate the orientation reversal. Finish with Zero collapse, then drag one column off the shared line.
Intuition: measure the image of one standard tile
The unit square has sides and area one. A matrix sends those sides to its two columns, so the square becomes the parallelogram spanned by those columns. Its area tells how every planar area scales under the transformation.
Ordinary area cannot be negative, but geometry also has an ordered orientation. The determinant combines both ideas in one signed number.
Definition
For
the determinant is
Its magnitude is the area scale. A positive sign preserves the orientation of the ordered standard basis; a negative sign reverses it. A zero determinant means the image has zero planar area.
Mechanics: read magnitude, sign, and zero separately
Three questions prevent common confusion:
- Is zero? Then the columns are dependent and the plane collapses to fewer dimensions.
- If nonzero, what is ? This is the area multiplier.
- What is its sign? This records whether orientation is preserved or reversed.
A determinant of scales ordinary area by and reverses orientation. A determinant of preserves orientation while shrinking area.
Derivation: signed parallelogram area
For columns and , the signed area is
One way to see the subtraction is to place the parallelogram inside a surrounding rectangle and remove the corner triangles. Algebraically, the expression is linear in either column while the other is fixed, changes sign when columns swap, and equals one on the standard basis. Those properties exactly match signed area.
Zero determinant and basis independence
If the columns are collinear, the parallelogram has no height and hence no area. Conversely, nonzero area requires two distinct directions. Therefore, in two dimensions,
This completes the geometric interpretation previewed in II.7. It does not yet introduce general rank or inverse algorithms.
Reflections and singular maps
A reflection has negative determinant because it reverses the ordered frame. A projection of the plane onto a line has determinant zero because it destroys one independent direction. A shear can have determinant one even while changing lengths and angles: area preservation does not imply orthogonality.
Worked examples
For
the determinant is . The transformed unit square is a parallelogram of area with preserved orientation. Swapping its columns gives determinant and the same ordinary area.
Inspect the worked calculation
Transform the two sides of the unit square.
- matrix A
- 2×2 [2, 1; 0, 1]
- signed area scale
- 2
- ordinary area scale
- 2
- orientation
- preserved
- basis independence test
- independent
For , the determinant is zero. The second column is twice the first, so the square collapses onto a line—exactly the dependence witnessed in II.7.
Higher-dimensional meaning
In higher dimensions, the determinant’s magnitude scales oriented volume rather than planar area. A zero determinant still signals collapse into a lower-dimensional set, and a negative sign still records an orientation reversal. This chapter keeps the derivation and interactive geometry in two dimensions; later linear algebra can reuse the interpretation without pretending a 3D or higher-dimensional object fits this plane.
Executable reference code
The Python reference computes the exact 2D determinant and verifies the parallelogram area by the shoelace formula. The NumPy version compares signed determinant values for scaling, reflection, shear, and singular examples.
from fractions import Fraction as F
def det2(a):
return a[0][0] * a[1][1] - a[0][1] * a[1][0]
assert det2(((F(2), F(1)), (F(0), F(3)))) == 6
assert det2(((F(0), F(1)), (F(1), F(0)))) == -1
assert det2(((F(1), F(2)), (F(2), F(4)))) == 0import numpy as np
A = np.array([[2.0, 1.0], [0.0, 3.0]])
reflection = np.array([[0.0, 1.0], [1.0, 0.0]])
singular = np.array([[1.0, 2.0], [2.0, 4.0]])
assert np.isclose(np.linalg.det(A), 6.0)
assert np.isclose(np.linalg.det(reflection), -1.0)
assert np.isclose(np.linalg.det(singular), 0.0)Explore
Hold the first column fixed and slide the second parallel to it; identify the zero crossing. Reverse one column and watch only the sign change. Double one column and confirm that the determinant doubles. Add a multiple of the first column to the second and observe that the determinant stays fixed.
Common mistakes
The determinant is not the sum or product of all entries. Its sign is not ordinary area, and a negative determinant does not mean “negative size.” Determinant one does not imply a rigid motion. Zero determinant does not mean the matrix is the zero matrix; it means its columns fail to provide all independent directions.
Numerical considerations
The lesson classifies zero exactly for entered decimal rationals. Floating-point determinants near zero can be poor standalone singularity tests because scale and conditioning matter. Numerical libraries use factorizations and problem-aware tolerances. The exact sign here describes the entered matrix, while measured coefficients may carry uncertainty beyond arithmetic roundoff.
Engineering and ML connections
Determinants track volume change in coordinate transforms, density corrections, and invertible models. The absolute value controls scale; the sign carries orientation. Direct determinant computation is rarely the best numerical way to solve a system, and a small determinant alone does not summarize all conditioning behavior.
Exercises
Summary and checkpoints
In two dimensions, is signed area scale. Check that you can separate zero, magnitude, and sign; connect zero to dependent columns; distinguish reflection from collapse; and explain the higher-dimensional volume interpretation without relying on a misleading 2D picture.