Linear Algebra I · Determinants and invertibility
Prerequisites: square matrices, matrix products, Gaussian elimination, pivots, independent columns, and inverse matrices. Review the earlier systems and transformations lessons if these are unfamiliar. All matrices here have real entries. Goals: define and compute determinants, track row-operation changes, connect nonzero determinant to invertibility, interpret signed area, and distinguish a singular matrix from an inconsistent system. Work through the examples, download the lab, then attempt the practice and open-book assessment independently.
A scalar attached to a square matrix
The determinant det(A), also written |A|, is a scalar defined for a square n×n matrix. It is not the matrix itself, its inverse, or an element-by-element absolute value. For [a] it is a. One recursive definition expands along the first row: det(A)=∑ⱼ₌₁ⁿ a₁ⱼ(−1)^(1+j)det(M₁ⱼ), where M₁ⱼ deletes row 1 and column j. Each term has exactly one selected entry and the determinant of the remaining smaller square matrix. In size 2 this gives det([a b;c d])=ad−bc.
The cofactor is Cᵢⱼ=(−1)^(i+j)det(Mᵢⱼ); its signs form a +,−,+ / −,+,− checkerboard beginning at (1,1). The cofactor-expansion theorem allows det(A)=∑ⱼaᵢⱼCᵢⱼ along any one fixed row, or ∑ᵢaᵢⱼCᵢⱼ along any one fixed column. Choose a sparse row or column to reduce work. A 3×3 first-row expansion is a(ei−fh)−b(di−fg)+c(dh−eg) for rows (a,b,c),(d,e,f),(g,h,i). Do not extend diagonal shortcut patterns to general sizes. The linked textbook proves why the recursive definition gives the same value for every choice of row or column.
Elimination rules and why singularity matters
- Swap two different rows: negate the determinant. Multiply one row by s: multiply the determinant by s. Add s times a different row to a row: leave the determinant unchanged. In an invertible row operation the scaling factor must be nonzero. Scaling a row by zero is not reversible.
- A triangular matrix has determinant equal to the product of its diagonal entries; det(Iₙ)=1. A zero row or dependent rows or columns give determinant zero. These rules follow from the determinant being linear in each individual row, zero when two rows coincide, and normalized to 1 at the identity. For example, row replacement adds a term with two proportional rows, whose determinant is zero.
- If elimination produces upper-triangular U using s row swaps and row scalings whose product is p≠0, then det(A)=(−1)^s·∏ᵢuᵢᵢ/p. Row replacements contribute no factor. If no scalings are used, p=1. Track operations instead of silently taking the diagonal product of the reduced matrix.
For a square A, det(A)≠0 if and only if A is invertible, equivalently it has n pivots and independent columns. Proof using elimination: invertible row operations multiply the determinant by nonzero factors, so they preserve whether it is zero. Full rank reduces to I, with determinant 1; deficient rank reduces to a matrix with a zero row, with determinant 0. Thus a nonzero determinant gives exactly one solution of Ax=b for every b. If det(A)=0, Ax=b may have no solution or infinitely many, depending on whether b is in the column space; it never has exactly one solution.
Products, scaling, and inverse formulas
For square matrices of the same size, det(AB)=det(A)det(B) and det(Aᵀ)=det(A). Consequently det(A⁻¹)=1/det(A) when A is invertible. Multiplying every entry of an n×n matrix by s scales all n rows, so det(sA)=sⁿdet(A), not generally s·det(A). Determinants are not additive: det(I₂+I₂)=det(2I₂)=4, whereas det(I₂)+det(I₂)=2.
Reason for the product rule: when A is invertible, reduce A to I with elementary row operations whose combined determinant multiplier is c. Applying exactly the same operations to AB gives B. Hence c·det(A)=1 and c·det(AB)=det(B), yielding the rule. If A is singular, rank(AB)≤rank(A)
For A=[a b;c d] with Δ=ad−bc≠0, A⁻¹=(1/Δ)[d −b;−c a]. Check by multiplication: A[d −b;−c a]=ΔI₂. Dividing by Δ=0 is forbidden. For larger systems, elimination remains a practical way to solve Ax=b; the determinant test alone does not supply the solution or all entries of the inverse.
Signed area and information loss
In ℝ², the columns u=(a,c), v=(b,d) form the sides of a parallelogram. Its unsigned area is |ad−bc|. The sign records orientation of the ordered pair: positive is counterclockwise from u to v through an angle below 180°, negative reverses that orientation. Zero means the parallelogram collapses to a line or point. In ℝⁿ the absolute determinant similarly scales n-dimensional volume. A zero determinant does not mean the transformation maps every vector to zero; it means at least one nonzero input direction is lost.
Worked examples
- Area, inverse, and a solve: A=[2 1;0 2] has Δ=4 and A⁻¹=[1/2 −1/4;0 1/2]. For b=(5,2), x=A⁻¹b=(2,1); check A(2,1)=(5,2). The diagram’s area is 4. Neither determinant 4 nor area 4 is the solution vector.
- Elimination with a swap: B=[0 2 1;1 0 3;2 1 1]. Swap rows 1 and 2; then replace R₃ by R₃−2R₁ to get (0,1,−5), and by R₃−(1/2)R₂ to get (0,0,−11/2). The diagonal product is 1·2·(−11/2)=−11. One swap means det(B)=11. Independent cofactor check along the original first row: −2(1−6)+(1−0)=11.
- A singular matrix can still have solutions: A(k)=[1 2;1 k] has Δ=k−2. At k=2, the equations are x+2y=b and x+2y=c. If b=c=5, every (x,y)=(5−2t,t) works, t real. If b=5,c=4, subtracting gives 0=−1, so there is no solution. For k≠2, y=(c−b)/(k−2), x=b−2y is unique.
- Keep scaling factors straight: D=diag(−1/2,2,3) has det(D)=−3. Swapping two rows gives determinant 3. Multiplying just one row by 2 gives −6. Multiplying the whole 3×3 matrix by 2 gives det(2D)=2³(−3)=−24. Its volume factor is 3 before these changes; the negative sign records reversed orientation.
Common mistakes and limits of the test
Use ad−bc, not ad+bc. The diagonal-product rule needs a triangular matrix. Track swaps and row scaling during reduction. A rectangular matrix has no ordinary determinant; its rank is still meaningful. A negative determinant is not a negative geometric area. Singular does not mean every right-hand side is inconsistent. A tiny nonzero determinant in exact arithmetic is still nonzero; rounded measurements require numerical error analysis rather than an arbitrary determinant cutoff. For example diag(ε,ε) has determinant ε² and an inverse for every ε≠0. Determinant magnitude alone does not measure numerical conditioning.
Practice
- For A=[3 2;1 1], find its determinant and inverse, then solve Ax=(7,3).
- For C=[1 2 0;0 3 4;0 0 −2], find det(C). What happens after R₁←R₁+5R₃? What if you then swap rows 1 and 2?
- If A and B are 3×3 with det(A)=−2 and det(B)=3, find det(AB), det(A⁻¹), and det(2A).
- Challenge: solve A(k)(x,y)=(5,3) at k=1, and classify it at k=2. Change the right-hand side to (5,5) at k=2 and give the full solution set.
Fully worked solutions
- Δ=3·1−2·1=1, so A⁻¹=[1 −2;−1 3]. Multiplication by (7,3) gives (7−6,−7+9)=(1,2). Check (3+4,1+2)=(7,3).
- C is triangular: det(C)=1·3·(−2)=−6. Row replacement leaves it −6 even if the result is no longer triangular. The subsequent swap negates it to 6.
- Multiplicativity gives −2·3=−6. The inverse determinant is −1/2. Three rows are scaled in 2A, so its determinant is 2³(−2)=−16.
- At k=1, Δ=−1, y=(3−5)/(1−2)=2, x=5−4=1. At k=2 the subtraction gives 0=−2, so none. For right-hand side (5,5) the equations coincide and every (5−2t,t), t∈ℝ, is a solution.
Assessment · Open book · 18 points
Open book: use books, lesson notes, cited readings, calculators, and relevant free software. Explain your own reasoning, assumptions, units, and checks; identify references or software you use. Attempt the questions before opening the answer key. Suggested study time: 40–60 minutes; this is a self-study guide, not a timed restriction.
Use notes; keep the answer key closed until after your attempt. Show the determinant method and justify each conclusion; a final number alone earns only the arithmetic marks.
- Compute det(C) for C=[2 0 1;0 3 0;1 0 2] by a cofactor expansion. Decide invertibility and give its volume scale. (4)
- For A(k)=[1 2;1 k], take k=3 and right-hand side (4,5). Give the determinant, inverse, and unique solution; check both equations. Then set k=2 with the same right-hand side and classify the system. (5)
- For a 2×2 A with det(A)=−2, find det(3A) and det(A⁻¹). Does determinant zero always imply no solution? Give a counterexample. (3)
Application and reasoning · 6 points
For 0<ε<1 compare A=diag(ε,ε) and B=diag(1,ε²). Find determinants and inverses (2). For the same right-hand-side perturbation δb=(0,ε²), compute the change of solution for each (2). Explain why determinant magnitude alone does not summarize sensitivity (2).
Complete answer key and scoring rubric
- Expand row 2, whose only nonzero entry has sign (+): 3·det([2 1;1 2]) (1). This is 3(4−1)=9 (1). Nonzero means invertible (1); unsigned volume scale is |9|=9 (1).
- Δ=3−2=1 (1). A⁻¹=[3 −2;−1 1] (1). Multiply by (4,5): (12−10,−4+5)=(2,1) (1). Check 2+2·1=4 and 2+3·1=5 (1). At k=2 subtracting the equations requires 0=1, so there is no solution (1).
- det(3A)=3²(−2)=−18 (1). det(A⁻¹)=−1/2 (1). No: the zero 2×2 matrix with right-hand side (0,0) has every vector as a solution despite determinant 0 (1).
Application and reasoning · 6 points
Both determinants are ε²; inverses are diag(1/ε,1/ε) and diag(1,1/ε²) (1 each group). Changes are A⁻¹δb=(0,ε) and B⁻¹δb=(0,1) (1 each). Equal nonzero determinants coexist with different responses to the same perturbation (1); neither a rounded small value nor this scalar alone establishes exact singularity or numerical conditioning (1).
Scoring: existing questions 12 + application problem 6 = 18 points. Award the stated method and reasoning marks, not only final answers.
Download the determinant and singular-system lab
Download the exact-arithmetic Python lab
Objective: vary A(k)=[1 2;1 k], compare signed determinant and unsigned area, test row-operation rules, and classify Ax=(b,c). Install free Python 3 for Windows, macOS, or Linux from the official link below. Save the file and open a terminal in its folder. Run the commands; Windows can use py -3 instead of python3. No account or extra packages are needed, and the file works offline after installation. Inputs k,b,c are from −4 to 6 in half-unit steps; negative fractions such as −1/2 are accepted.
python3 ee-determinants.py 3 5 4
python3 ee-determinants.py 1 5 4
python3 ee-determinants.py 2 5 5
python3 ee-determinants.py 2 5 4
Procedure: predict Δ=k−2 and solve (k−2)y=c−b before running. Record the determinant, area, orientation, solution classification, and the three changed determinants. Compare every case with the browser alternative. Expected: k=3 gives Δ=1 and solution (7,−1); k=1 gives Δ=−1 and solution (3,1). Both areas are 1. At k=2, (5,5) gives all (5−2t,t), but (5,4) gives none. A row swap changes Δ to −Δ, R₂←R₂−R₁ leaves Δ, and doubling row 1 gives 2Δ. The download checks inverse multiplication, solved equations, and these row identities exactly using fractions. Browser results are rounded to six decimals.
Questions: why does changing only the right-hand side at k=2 change consistency but not invertibility? A stays rank 1 while the right-hand side enters or leaves its column space. Does Δ=0 mean area is negative? No, area is zero. Does this lab decide whether a measured physical system is exactly singular? No: its coefficients are exact synthetic values; measurement uncertainty and numerical conditioning need separate analysis. This fixed 2×2 activity is not a general matrix solver or a substitute for physical instrument work.
Free primary readings and the next step
Read the open textbook in order: §4.1 definitions, row-operation recipe, and invertibility/product/transpose properties; §4.2 cofactor expansions; §4.3.1–4.3.2 area, volume, and orientation. MIT provides an alternative lecture, summary, and exercises. These readings and the lab require no university login or paid book. In the next unit, a nonzero vector solving (A−λI)x=0 will require det(A−λI)=0; this is the determinant preparation, not yet a complete treatment of eigenvalues.
- Georgia Tech · Interactive Linear Algebra §4.1: determinants, row operations, invertibility
- Georgia Tech · Interactive Linear Algebra §4.2: cofactor expansions
- Georgia Tech · Interactive Linear Algebra §4.3.1–4.3.2: determinants and volumes
- MIT 18.06SC · Properties of Determinants: lecture, summary, exercises
- Python Software Foundation · Free Python 3 for Windows, macOS, and Linux
- Python documentation · Exact rational arithmetic
Determinant lab · Area, inverse, and consistency
For A=[1 2;1 k], compare determinant, area, row rules, and solutions to Ax=(b,c).
Free tool built into this page. Use it in your browser without an account or download.
Procedure
Try (k,b,c)=(3,5,4),(1,5,4),(2,5,5),(2,5,4). Predict k−2 and solve (k−2)y=c−b first. Compare each output with the downloaded Python lab.
Expected results and answer check
The first two cases have determinant 1 and −1, area 1, and solutions (7,−1) and (3,1). At k=2, determinant and area are zero; equal right-hand sides give all (5−2t,t), unequal ones give no solution. The changed determinants are −Δ, Δ, 2Δ.
This fixed 2×2 family uses exact half-unit inputs; displayed browser divisions are rounded, while Python uses exact fractions. It does not infer exact singularity from noisy measurements or replace physical lab training.