MATH 133 Linear Algebra and Geometry • McGill University, Montreal

Corrected exercises: determinants, cofactor expansion and row operations (MATH 133)

This is the corrected exercise set for the determinant chapter of MATH 133, Linear Algebra and Geometry, the first-year course at McGill University (Nicholson, section 3.1). It covers minors and cofactors, the checkerboard of signs, cofactor expansion along any row or column, triangular matrices, the effect of the three elementary row operations, the rules det⁡(kA)=kndet⁡A\det(kA) = k^{n}\det A and det⁡(AT)=det⁡A\det(A^{T}) = \det A, determinants depending on a parameter, and the Vandermonde determinant. Every number is chosen to be computed by hand, as on the exam.

The thread running through the whole set: a determinant is never computed by brute force. Either you expand along the line that already has the zeros, or you MAKE the zeros with row operations and keep a ledger of what each operation did to the determinant: a sign for a swap, a factor for a scaling, nothing for a replacement. The sign of a cofactor belongs to the POSITION of the entry, never to its value. A student who chooses the line before computing and writes the ledger line by line loses no marks on this chapter.

The traps named explicitly in the solutions: reciting +,−,++, -, + on row 22, answering with the minor where the cofactor was asked, expanding along a full row when a column holds three zeros, forgetting the sign of a swap, pulling a factor out of a row and then losing it, treating R2→3R2−R1R_2 \to 3R_2 - R_1 as a harmless replacement, writing det⁡(2A)=2det⁡A\det(2A) = 2\det A, and cancelling a factor x−1x - 1 that could be zero.

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 133 chapter →

Course recap

  • • Minor MijM_{ij}: the determinant left after deleting row ii and column jj. Cofactor Cij=(−1)i+jMijC_{ij} = (-1)^{i+j}M_{ij}.
  • • Expansion along row ii: det⁡A=∑jaijCij\det A = \sum_{j} a_{ij}C_{ij}; the same along any column, with the same result. Choose the line with the most zeros.
  • • Triangular matrix (upper or lower): the determinant is the product of the diagonal entries.
  • • Row operations: Ri↔RjR_i \leftrightarrow R_j multiplies det⁡\det by −1-1; Ri→cRiR_i \to cR_i multiplies it by cc; Ri→Ri+cRjR_i \to R_i + cR_j with j≠ij \neq i leaves it unchanged.
  • • A zero row, a zero column, or two equal rows give det⁡=0\det = 0. All row rules hold for columns, since det⁡(AT)=det⁡A\det(A^{T}) = \det A.
  • • det⁡(kA)=kndet⁡A\det(kA) = k^{n}\det A for AA of size n×nn \times n.
  • • Vandermonde: det⁡(1aa21bb21cc2)=(b−a)(c−a)(c−b)\det\begin{pmatrix} 1 & a & a^{2} \\ 1 & b & b^{2} \\ 1 & c & c^{2} \end{pmatrix} = (b - a)(c - a)(c - b).

Part A: the basics (/50)

Exercise 1: The sign checkerboard, and the minor that is not the cofactor

Every entry aija_{ij} of a square matrix owns two numbers. Its MINOR MijM_{ij} is the determinant of what is left once row ii and column jj are deleted. Its COFACTOR is Cij=(−1)i+jMijC_{ij} = (-1)^{i+j}M_{ij}: the same number, with a sign fixed by the POSITION of the entry, never by its value. The figure is the pattern of those signs for a 4×44 \times 4 matrix. It starts with ++ in the top left corner and alternates like a checkerboard.

Cofactor expansion along row ii reads det⁡A=ai1Ci1+ai2Ci2+⋯+ainCin\det A = a_{i1}C_{i1} + a_{i2}C_{i2} + \dots + a_{in}C_{in}, and the same formula holds down any column. Throughout, A=(2−1304150−2)A = \begin{pmatrix} 2 & -1 & 3 \\ 0 & 4 & 1 \\ 5 & 0 & -2 \end{pmatrix}.

+−+−−+−++−+−−+−+j = 1j = 2j = 3j = 4i = 1i = 2i = 3i = 4sign of C(i, j) = (−1) to the power i + ji + j even: +i + j odd: −the sign belongs to the POSITION,never to the entry sitting there
  • a) Using (−1)i+j(-1)^{i+j}, give the sign attached to positions (2,3)(2,3), (3,2)(3,2), (4,1)(4,1) and (4,4)(4,4) of a 4×44 \times 4 matrix, and check each one on the figure.
  • b) For AA, compute the minors M12M_{12} and M21M_{21}, then the cofactors C12C_{12} and C21C_{21}.
  • c) Compute det⁡A\det A by cofactor expansion along the first row.
  • d) Compute det⁡A\det A again along the second column, which contains a zero. Name every line of AA that would be as cheap, and the ones that would cost the most.
  • e) A student writes det⁡A=2M11+(−1)M12+3M13\det A = 2M_{11} + (-1)M_{12} + 3M_{13}, using the minors with no signs. What does he get, how far is he from the truth, and where exactly does the gap come from?
Show the solution

Answers

  • a) −-, −-, −-, ++
  • b) M12=−5M_{12} = -5, C12=5C_{12} = 5; M21=2M_{21} = 2, C21=−2C_{21} = -2
  • c) det⁡A=−81\det A = -81
  • d) −5−76=−81-5 - 76 = -81; row 2, row 3 and column 1 also hold one zero; row 1 and column 3 hold none
  • e) −71-71, off by 10=2×510 = 2 \times 5 : the middle term needed C12=+5C_{12} = +5, not M12=−5M_{12} = -5

a) (−1)2+3=(−1)5=−1(-1)^{2+3} = (-1)^{5} = -1, (−1)3+2=−1(-1)^{3+2} = -1, (−1)4+1=−1(-1)^{4+1} = -1 and (−1)4+4=+1(-1)^{4+4} = +1. On the figure, the cell in row 22 and column 33 carries a minus, and so does its mirror image in row 33 and column 22: positions symmetric about the diagonal always share their sign, since i+j=j+ii + j = j + i. The whole diagonal is ++, because i+ii + i is even. The practical consequence is the one that costs marks: row 22 of ANY matrix starts with a minus, so the chant +,−,++, -, + is only right on rows 11 and 33 of a 3×33 \times 3. Before expanding along a line, write its signs above it from the checkerboard, never from memory.

b) Delete row 11 and column 22: M12=det⁡(015−2)=0×(−2)−1×5=−5M_{12} = \det\begin{pmatrix} 0 & 1 \\ 5 & -2 \end{pmatrix} = 0 \times (-2) - 1 \times 5 = -5. Position (1,2)(1,2) is odd, so C12=−M12=5C_{12} = -M_{12} = 5. Delete row 22 and column 11: M21=det⁡(−130−2)=(−1)(−2)−3×0=2M_{21} = \det\begin{pmatrix} -1 & 3 \\ 0 & -2 \end{pmatrix} = (-1)(-2) - 3 \times 0 = 2, and C21=−2C_{21} = -2. The minor and the cofactor are never two different computations, they are one determinant and one sign. But a question that asks for a cofactor and gets the minor back is marked wrong, and so is every expansion built on it.

c) Along row 11, signs +,−,++, -, +: C11=+det⁡(410−2)=−8C_{11} = +\det\begin{pmatrix} 4 & 1 \\ 0 & -2 \end{pmatrix} = -8, C12=5C_{12} = 5 from b), C13=+det⁡(0450)=0−20=−20C_{13} = +\det\begin{pmatrix} 0 & 4 \\ 5 & 0 \end{pmatrix} = 0 - 20 = -20. Then det⁡A=2(−8)+(−1)(5)+3(−20)=−16−5−60=−81\det A = 2(-8) + (-1)(5) + 3(-20) = -16 - 5 - 60 = -81. Write the three products with their brackets before adding: the entry −1-1 and the cofactor 55 carry one sign each, and doing both in your head is where the slip happens.

d) Column 22 holds −1-1, 44, 00 with signs −,+,−-, +, -. The zero kills its whole term, so only two 2×22 \times 2 determinants remain: C22=+det⁡(235−2)=−4−15=−19C_{22} = +\det\begin{pmatrix} 2 & 3 \\ 5 & -2 \end{pmatrix} = -4 - 15 = -19, and det⁡A=(−1)C12+4C22+0=(−1)(5)+4(−19)=−5−76=−81\det A = (-1)C_{12} + 4C_{22} + 0 = (-1)(5) + 4(-19) = -5 - 76 = -81. Same value, as the expansion theorem guarantees: every row and every column gives the same determinant. Row 22, row 33 and column 11 also contain exactly one zero and would cost the same two 2×22 \times 2 determinants. Row 11 and column 33 contain none and cost three. On a 3×33 \times 3 the saving is one small determinant; on a 4×44 \times 4 it is a whole 3×33 \times 3, which is the point of the next exercise.

e) He gets 2(−8)+(−1)(−5)+3(−20)=−16+5−60=−712(-8) + (-1)(-5) + 3(-20) = -16 + 5 - 60 = -71, which is 1010 above the true −81-81. The first and third terms are right by luck: positions (1,1)(1,1) and (1,3)(1,3) carry a plus, so there the minor IS the cofactor. The middle term is wrong: it should be (−1)×C12=(−1)(+5)=−5(-1) \times C_{12} = (-1)(+5) = -5, and he wrote (−1)×M12=+5(-1) \times M_{12} = +5. The gap is exactly twice that term, 2×5=102 \times 5 = 10. The error is invisible from inside the computation, which is why the only reliable check is a second expansion along another line, as in d): two different answers mean a sign was lost somewhere.

Exercise 2: A 4 by 4 with a nearly empty column: choose before you compute

On a 4×44 \times 4 matrix, expanding along a line with no zero costs four 3×33 \times 3 determinants, each of which costs three 2×22 \times 2 determinants: up to twelve small computations, and twelve chances to drop a sign. Expanding along a line with three zeros costs ONE 3×33 \times 3. The choice is made before the first product is written, and it is worth more time than any other step.

Let A=(302−1100425100032)A = \begin{pmatrix} 3 & 0 & 2 & -1 \\ 1 & 0 & 0 & 4 \\ 2 & 5 & 1 & 0 \\ 0 & 0 & 3 & 2 \end{pmatrix}.

  • a) Count the zeros in each row and in each column of AA. Which line gives the cheapest expansion, and how many 3×33 \times 3 determinants does row 11 cost by comparison?
  • b) Expand along the line chosen in a). Give the sign of the one surviving cofactor from (−1)i+j(-1)^{i+j}, and write det⁡A\det A as a number times a single 3×33 \times 3 determinant.
  • c) Compute that 3×33 \times 3 determinant along one of its lines that contains a zero, and conclude.
  • d) Check the value found in c) by expanding the same 3×33 \times 3 along a different line.
  • e) Without computing anything, give the determinant of a 4×44 \times 4 matrix whose third column is entirely made of zeros, and justify it with one cofactor expansion.
Show the solution

Answers

  • a) Rows: 1,2,1,21, 2, 1, 2 zeros; columns: 1,3,1,11, 3, 1, 1; column 22, one 3×33 \times 3 against three for row 11
  • b) det⁡A=5 C32=−5 M32\det A = 5 \, C_{32} = -5 \, M_{32} with M32=det⁡(32−1104032)M_{32} = \det\begin{pmatrix} 3 & 2 & -1 \\ 1 & 0 & 4 \\ 0 & 3 & 2 \end{pmatrix}
  • c) M32=−43M_{32} = -43, so det⁡A=215\det A = 215
  • d) Along column 11: 3(−12)−1(7)+0=−433(-12) - 1(7) + 0 = -43
  • e) 00

a) Rows 11 to 44 contain 11, 22, 11 and 22 zeros. Columns 11 to 44 contain 11, 33, 11 and 11. Column 22 has a single non-zero entry, the 55 in position (3,2)(3,2), so its expansion has ONE term. Row 11 has three non-zero entries, so it would need three 3×33 \times 3 determinants, that is up to nine 2×22 \times 2 ones. Rows 22 and 44, with two zeros each, would need two. The count takes ten seconds and decides whether the question takes three minutes or fifteen.

b) Position (3,2)(3,2): 3+2=53 + 2 = 5 is odd, so C32=−M32C_{32} = -M_{32}. Hence det⁡A=0⋅C12+0⋅C22+5 C32+0⋅C42=−5 M32\det A = 0 \cdot C_{12} + 0 \cdot C_{22} + 5 \, C_{32} + 0 \cdot C_{42} = -5 \, M_{32}, where M32M_{32} is the determinant of AA with row 33 and column 22 removed: M32=det⁡(32−1104032)M_{32} = \det\begin{pmatrix} 3 & 2 & -1 \\ 1 & 0 & 4 \\ 0 & 3 & 2 \end{pmatrix}. Write the minus sign on this line, next to the 55, before touching the 3×33 \times 3: it is the sign most often lost, because the entry 55 is positive and nothing in it warns you.

c) Row 22 of the 3×33 \times 3 is (1,0,4)(1, 0, 4), with signs −,+,−-, +, -. C21=−det⁡(2−132)=−(4+3)=−7C_{21} = -\det\begin{pmatrix} 2 & -1 \\ 3 & 2 \end{pmatrix} = -(4 + 3) = -7 and C23=−det⁡(3203)=−(9−0)=−9C_{23} = -\det\begin{pmatrix} 3 & 2 \\ 0 & 3 \end{pmatrix} = -(9 - 0) = -9. So M32=1(−7)+0+4(−9)=−7−36=−43M_{32} = 1(-7) + 0 + 4(-9) = -7 - 36 = -43 and det⁡A=−5×(−43)=215\det A = -5 \times (-43) = 215. Two minus signs meet here, one from the checkerboard at (3,2)(3,2) and one from the value of the minor. Dropping either gives −215-215, and the marker sees a right method with a wrong sign, which usually costs half the question.

d) Column 11 of the 3×33 \times 3 is (3,1,0)(3, 1, 0), signs +,−,++, -, +: 3det⁡(0432)−1det⁡(2−132)+0=3(0−12)−(4+3)=−36−7=−433\det\begin{pmatrix} 0 & 4 \\ 3 & 2 \end{pmatrix} - 1\det\begin{pmatrix} 2 & -1 \\ 3 & 2 \end{pmatrix} + 0 = 3(0 - 12) - (4 + 3) = -36 - 7 = -43. The two expansions agree. On an exam this check costs two 2×22 \times 2 determinants, one of which you already computed in c), and it catches the sign errors that no amount of re-reading finds.

e) The determinant is 00. Expand along the zero column: every term is 0×Ci30 \times C_{i3}, so the sum is 00, whatever the other twelve entries are. The same argument applies to a row of zeros. It is the first case of a general fact that the rest of the chapter will use constantly: as soon as row operations produce a zero row, the determinant is known to be 00 and the computation stops.

302-11004251000321311zeros1212zeroscolumn 2: three zeros,one term survives: 5 × C(3, 2)sign at (3, 2): 3 + 2 = 5 is odd,so C(3, 2) = − M(3, 2)

Exercise 3: Reduce to a triangle, and count the swaps

A triangular matrix, upper or lower, carries its determinant on its diagonal. Row reduction is therefore the practical way to compute a large determinant: it manufactures a triangular matrix, and the only work left is to record what each operation did along the way. A replacement Ri→Ri+cRjR_i \to R_i + cR_j with i≠ji \neq j leaves the determinant unchanged; a swap of two rows changes its sign.

Let T=(27−350−1480036000−2)T = \begin{pmatrix} 2 & 7 & -3 & 5 \\ 0 & -1 & 4 & 8 \\ 0 & 0 & 3 & 6 \\ 0 & 0 & 0 & -2 \end{pmatrix} and B=(12−102413−10323415)B = \begin{pmatrix} 1 & 2 & -1 & 0 \\ 2 & 4 & 1 & 3 \\ -1 & 0 & 3 & 2 \\ 3 & 4 & 1 & 5 \end{pmatrix}.

  • a) Give det⁡T\det T at once, then justify the rule with cofactor expansions.
  • b) Start reducing BB: clear the first column below the pivot with three replacements. Name each operation and say what it does to the determinant.
  • c) The entry in position (2,2)(2,2) is now 00. Explain why it cannot serve as a pivot, perform the swap that fixes it, and record its effect.
  • d) Finish the reduction to upper triangular form and give det⁡B\det B.
  • e) A full cofactor expansion of an n×nn \times n determinant, with no zero anywhere, is a sum of n!n! products. Compare with row reduction for n=4n = 4 and n=10n = 10.
Show the solution

Answers

  • a) det⁡T=2×(−1)×3×(−2)=12\det T = 2 \times (-1) \times 3 \times (-2) = 12
  • b) R2→R2−2R1R_2 \to R_2 - 2R_1, R3→R3+R1R_3 \to R_3 + R_1, R4→R4−3R1R_4 \to R_4 - 3R_1; determinant unchanged
  • c) R2↔R3R_2 \leftrightarrow R_3, determinant multiplied by −1-1
  • d) Diagonal 1,2,3,11, 2, 3, 1, product 66, one swap: det⁡B=−6\det B = -6
  • e) 2424 products against about 2020 operations at n=4n = 4; 3 628 8003\,628\,800 against a few hundred at n=10n = 10

a) det⁡T=2×(−1)×3×(−2)=12\det T = 2 \times (-1) \times 3 \times (-2) = 12. Justification: expand along column 11, whose only non-zero entry is the 22 at position (1,1)(1,1), sign ++. That gives 2det⁡(−14803600−2)2\det\begin{pmatrix} -1 & 4 & 8 \\ 0 & 3 & 6 \\ 0 & 0 & -2 \end{pmatrix}, and the new matrix is again triangular. Expanding along its first column gives 2×(−1)×det⁡(360−2)=2×(−1)×(−6)=122 \times (-1) \times \det\begin{pmatrix} 3 & 6 \\ 0 & -2 \end{pmatrix} = 2 \times (-1) \times (-6) = 12. The entries above the diagonal, 77, −3-3, 55, 44, 88, 66, never enter the answer: each time they sit in a row that is deleted before they could be used.

b) R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0,0,3,3)(0, 0, 3, 3). R3→R3+R1R_3 \to R_3 + R_1 gives (0,2,2,2)(0, 2, 2, 2). R4→R4−3R1R_4 \to R_4 - 3R_1 gives (0,−2,4,5)(0, -2, 4, 5). Each is a replacement, a row minus a multiple of ANOTHER row, so the determinant does not move: det⁡B=det⁡(12−10003302220−245)\det B = \det\begin{pmatrix} 1 & 2 & -1 & 0 \\ 0 & 0 & 3 & 3 \\ 0 & 2 & 2 & 2 \\ 0 & -2 & 4 & 5 \end{pmatrix}. Write the equality sign between the two determinants on the copy. A chain of matrices joined by arrows, with no equality and no factor, is exactly what the marker cannot give method marks for.

c) A pivot is used to clear the entries below it, by subtracting multiples of its row. A 00 cannot clear a 22 or a −2-2, whatever multiple you take. So the rows are exchanged: R2↔R3R_2 \leftrightarrow R_3, and the ledger records ×(−1)\times(-1). Now det⁡B=−det⁡(12−10022200330−245)\det B = -\det\begin{pmatrix} 1 & 2 & -1 & 0 \\ 0 & 2 & 2 & 2 \\ 0 & 0 & 3 & 3 \\ 0 & -2 & 4 & 5 \end{pmatrix}. A swap is never the mistake; forgetting to record it is, and it produces +6+6 instead of −6-6 with every line of arithmetic correct.

d) R4→R4+R2R_4 \to R_4 + R_2 gives (0,0,6,7)(0, 0, 6, 7), then R4→R4−2R3R_4 \to R_4 - 2R_3 gives (0,0,0,1)(0, 0, 0, 1). Both are replacements. The matrix is now upper triangular with diagonal 1,2,3,11, 2, 3, 1, whose product is 66. With the single swap of c), det⁡B=−6\det B = -6. The whole computation used integers only because the pivot 22 divides the entry −2-2 below it and the pivot 33 divides the 66: choosing the swap that brings a convenient pivot up is part of the method, not luck.

e) For n=4n = 4 the full expansion has 4!=244! = 24 products of four entries, about 7070 multiplications; the reduction above took about twenty. The gap then explodes: at n=10n = 10, 10!=3 628 80010! = 3\,628\,800 products, while elimination needs roughly n3/3n^{3}/3, a few hundred operations. That is why a computer never expands a large determinant along a row, and why on paper you expand only along a line that the zeros have already made cheap.

Exercise 4: The ledger of factors: what you pull out, what you multiply in

Multiplying one row by a constant cc multiplies the determinant by cc. Read backwards, the same rule says that a common factor of a ROW can be pulled out in front of the determinant. Both directions are used all the time, and each one must be written into the ledger: a factor pulled out and then forgotten is the most frequent wrong answer on this chapter.

Let M=(4−81231−210515)M = \begin{pmatrix} 4 & -8 & 12 \\ 3 & 1 & -2 \\ 10 & 5 & 15 \end{pmatrix} and K=(31016−529154)K = \begin{pmatrix} 3 & 10 & 1 \\ 6 & -5 & 2 \\ 9 & 15 & 4 \end{pmatrix}.

  • a) Pull a common factor out of row 11 and out of row 33 of MM, and write det⁡M\det M as a number times a simpler determinant.
  • b) Compute that simpler determinant by row reduction, naming each operation, and conclude det⁡M\det M.
  • c) To avoid fractions, a student reduces MM with R2→4R2−3R1R_2 \to 4R_2 - 3R_1 and R3→2R3−5R1R_3 \to 2R_3 - 5R_1, expands the result along column 11 and announces det⁡M=5440\det M = 5440. Find the flaw, and recover the correct value from his own number.
  • d) The same rules hold for COLUMNS, because det⁡(KT)=det⁡K\det(K^{T}) = \det K. Pull common factors out of the columns of KK and compute det⁡K\det K.
Show the solution

Answers

  • a) det⁡M=4×5×det⁡(1−2331−2213)\det M = 4 \times 5 \times \det\begin{pmatrix} 1 & -2 & 3 \\ 3 & 1 & -2 \\ 2 & 1 & 3 \end{pmatrix}
  • b) The small determinant is 3434, so det⁡M=20×34=680\det M = 20 \times 34 = 680
  • c) Each of his operations scales a row, by 44 then by 22; 5440/8=6805440 / 8 = 680
  • d) det⁡K=3×5×(−5)=−75\det K = 3 \times 5 \times (-5) = -75

a) Row 11 is 4(1,−2,3)4(1, -2, 3) and row 33 is 5(2,1,3)5(2, 1, 3). Pulling each factor out multiplies the outside by it: det⁡M=4×5×det⁡(1−2331−2213)=20det⁡M′\det M = 4 \times 5 \times \det\begin{pmatrix} 1 & -2 & 3 \\ 3 & 1 & -2 \\ 2 & 1 & 3 \end{pmatrix} = 20\det M'. Write the 2020 on the same line as the new determinant and keep it there until the last line. Pulling 44 out of row 11 does not allow pulling a second 44 out of another row unless that row also has it: each factor belongs to one row.

b) In M′M', R2→R2−3R1R_2 \to R_2 - 3R_1 gives (0,7,−11)(0, 7, -11) and R3→R3−2R1R_3 \to R_3 - 2R_1 gives (0,5,−3)(0, 5, -3): two replacements, no change. Expanding along column 11, whose only non-zero entry is the pivot 11: det⁡M′=1×det⁡(7−115−3)=−21+55=34\det M' = 1 \times \det\begin{pmatrix} 7 & -11 \\ 5 & -3 \end{pmatrix} = -21 + 55 = 34. So det⁡M=20×34=680\det M = 20 \times 34 = 680. The factor 2020 was the whole difficulty; the arithmetic after it was on small integers precisely because the factors were removed first.

c) R2→4R2−3R1R_2 \to 4R_2 - 3R_1 is NOT a replacement. A replacement changes a row by adding a multiple of another row to it, and keeps the row itself with coefficient 11. Here R2R_2 is first multiplied by 44, which multiplies the determinant by 44, and only then is −3R1-3R_1 added, which changes nothing. Likewise R3→2R3−5R1R_3 \to 2R_3 - 5R_1 multiplies it by 22. His matrix is (4−812028−44050−30)\begin{pmatrix} 4 & -8 & 12 \\ 0 & 28 & -44 \\ 0 & 50 & -30 \end{pmatrix}, whose determinant is 4(28×(−30)−(−44)×50)=4×1360=54404(28 \times (-30) - (-44) \times 50) = 4 \times 1360 = 5440, correctly computed, and equal to 8det⁡M8\det M. So det⁡M=5440/8=680\det M = 5440 / 8 = 680. The fraction-free trick is perfectly legitimate, provided the ledger says ×4\times 4 and ×2\times 2 on the lines where it is used.

d) The columns of KK are 3(1,2,3)3(1, 2, 3), 5(2,−1,3)5(2, -1, 3) and (1,2,4)(1, 2, 4). Since det⁡(KT)=det⁡K\det(K^{T}) = \det K and the columns of KK are the rows of KTK^{T}, every row rule is also a column rule: det⁡K=15det⁡(1212−12334)\det K = 15\det\begin{pmatrix} 1 & 2 & 1 \\ 2 & -1 & 2 \\ 3 & 3 & 4 \end{pmatrix}. In this matrix R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0,−5,0)(0, -5, 0) and R3→R3−3R1R_3 \to R_3 - 3R_1 gives (0,−3,1)(0, -3, 1); expanding along column 11, det⁡=det⁡(−50−31)=−5\det = \det\begin{pmatrix} -5 & 0 \\ -3 & 1 \end{pmatrix} = -5. Hence det⁡K=15×(−5)=−75\det K = 15 \times (-5) = -75. Rows are not special: a factor, a swap or a replacement on columns affects the determinant exactly as it does on rows.

Exercise 5: A known determinant, and everything that follows from it

The classic midterm question gives you one determinant and no entries: A=(abcdefghi)A = \begin{pmatrix} a & b & c \\ d & e & f \\ g & h & i \end{pmatrix} with det⁡A=4\det A = 4. Every other determinant asked for is AA after a few row operations, and the answer comes from the ledger in the figure, applied one operation at a time, in order. Expanding anything is impossible here, which is exactly the point.

swap two rowsR1 ↔ R2det × (−1)scale one rowR2 → c R2det × cadd a multipleR2 → R2 + c R1det unchangedevery line of a reduction goes into this ledger, in order
  • a) Compute det⁡(defabcghi)\det\begin{pmatrix} d & e & f \\ a & b & c \\ g & h & i \end{pmatrix}.
  • b) Compute det⁡(abc3d3e3fghi)\det\begin{pmatrix} a & b & c \\ 3d & 3e & 3f \\ g & h & i \end{pmatrix}.
  • c) Compute det⁡(abcd+2ae+2bf+2cghi)\det\begin{pmatrix} a & b & c \\ d + 2a & e + 2b & f + 2c \\ g & h & i \end{pmatrix}.
  • d) Compute det⁡(g−3ah−3bi−3c2d2e2fabc)\det\begin{pmatrix} g - 3a & h - 3b & i - 3c \\ 2d & 2e & 2f \\ a & b & c \end{pmatrix}, writing the chain of operations from AA.
  • e) Compute det⁡(2A)\det(2A), det⁡(−A)\det(-A) and det⁡(2AT)\det(2A^{T}). What would det⁡(−A)\det(-A) be if AA were 4×44 \times 4 with the same determinant?
Show the solution

Answers

  • a) −4-4
  • b) 1212
  • c) 44
  • d) −8-8
  • e) 3232, −4-4, 3232; for a 4×44 \times 4, det⁡(−A)=4\det(-A) = 4

a) This is AA with rows 11 and 22 exchanged: one swap, ×(−1)\times(-1), so the determinant is −4-4. Nothing else changed, and nothing else needs to be said.

b) Row 22 has been multiplied by 33: ×3\times 3, so the determinant is 3×4=123 \times 4 = 12. The factor 33 appears once, because it multiplies ONE row. The answer 33×4=1083^{3} \times 4 = 108 confuses this matrix with 3A3A, where every row is multiplied by 33.

c) Row 22 has been replaced by R2+2R1R_2 + 2R_1: a replacement, so the determinant is still 44. The row that changed kept its coefficient 11, which is the test that separates a replacement from part b). Writing 2×4=82 \times 4 = 8 is the typical slip: the 22 multiplies the OTHER row, and adding a multiple of another row never scales anything.

d) Build it from AA in three steps. Swap R1↔R3R_1 \leftrightarrow R_3: the rows are now (g,h,i)(g, h, i), (d,e,f)(d, e, f), (a,b,c)(a, b, c) and the ledger reads ×(−1)\times(-1), so −4-4. Multiply the new R2R_2 by 22: ×2\times 2, so −8-8. Replace R1→R1−3R3R_1 \to R_1 - 3R_3, which turns (g,h,i)(g, h, i) into (g−3a,h−3b,i−3c)(g - 3a, h - 3b, i - 3c) since R3R_3 is now (a,b,c)(a, b, c): replacement, ×1\times 1. The determinant is −8-8. The order of the chain matters only for the bookkeeping, not for the result: any order of the same operations gives (−1)×2×1×4(-1) \times 2 \times 1 \times 4. What matters is that each operation is named and each factor is written.

e) 2A2A multiplies EVERY row by 22: three rows, so det⁡(2A)=23×4=32\det(2A) = 2^{3} \times 4 = 32, never 2×42 \times 4. Likewise det⁡(−A)=(−1)3×4=−4\det(-A) = (-1)^{3} \times 4 = -4. Transposing changes nothing, det⁡(AT)=det⁡A=4\det(A^{T}) = \det A = 4, so det⁡(2AT)=23×4=32\det(2A^{T}) = 2^{3} \times 4 = 32. The general rule is det⁡(kA)=kndet⁡A\det(kA) = k^{n}\det A for an n×nn \times n matrix, and the exponent is the size: for a 4×44 \times 4, det⁡(−A)=(−1)4det⁡A=+4\det(-A) = (-1)^{4}\det A = +4. Negating a matrix changes the sign of its determinant only in odd size, a fact that is asked every year as a true or false question.

Part B: problems and reasoning (/50)

Exercise 6: A determinant with a parameter: factor it before you expand it

Let M(x)=(x111x111x)M(x) = \begin{pmatrix} x & 1 & 1 \\ 1 & x & 1 \\ 1 & 1 & x \end{pmatrix} and d(x)=det⁡M(x)d(x) = \det M(x). The figure shows the graph of dd. It suggests that the determinant vanishes for two values of xx only, and that it behaves differently at each of them. The exam question is always the same: find every xx for which the determinant is zero, and prove that there are no others.

Expanding first and factoring afterwards leaves you with a cubic to solve. Using row operations first hands you the factors directly.

-4-3-2-1123-6-4-22468crossestouchesd(x) = det M(x)
  • a) Apply R1→R1+R2+R3R_1 \to R_1 + R_2 + R_3 and show that x+2x + 2 can be pulled out of the determinant.
  • b) Finish with two more replacements and obtain d(x)d(x) in factored form.
  • c) Check the result by a direct cofactor expansion along row 11.
  • d) Give every value of xx for which d(x)=0d(x) = 0. For each one, show on the matrix itself, without any determinant, why a row operation produces a zero row.
  • e) Explain from the factored form why the graph crosses the axis at one root and only touches it at the other. A student solves x3−3x+2=0x^{3} - 3x + 2 = 0, spots the root 11, divides by x−1x - 1 and lists the roots of the quotient. Does he lose anything?
Show the solution

Answers

  • a) R1R_1 becomes (x+2)(1,1,1)(x + 2)(1, 1, 1), so d(x)=(x+2)det⁡(1111x111x)d(x) = (x + 2)\det\begin{pmatrix} 1 & 1 & 1 \\ 1 & x & 1 \\ 1 & 1 & x \end{pmatrix}
  • b) d(x)=(x+2)(x−1)2d(x) = (x + 2)(x - 1)^{2}
  • c) x(x2−1)−(x−1)+(1−x)=x3−3x+2x(x^{2} - 1) - (x - 1) + (1 - x) = x^{3} - 3x + 2
  • d) x=1x = 1 (three equal rows) and x=−2x = -2 (the rows add up to zero)
  • e) Crosses at −2-2 (simple factor), touches at 11 (squared factor); nothing is lost, the quotient x2+x−2x^{2} + x - 2 still has the root 11

a) R1→R1+R2+R3R_1 \to R_1 + R_2 + R_3 is two replacements in a row, so the determinant does not change. The new first row is (x+2,x+2,x+2)(x + 2, x + 2, x + 2), because each column of M(x)M(x) contains one xx and two 11s. Pulling the common factor out of that row gives d(x)=(x+2)det⁡(1111x111x)d(x) = (x + 2)\det\begin{pmatrix} 1 & 1 & 1 \\ 1 & x & 1 \\ 1 & 1 & x \end{pmatrix}. This is the gesture to look for on any matrix whose rows or columns all have the same sum: summing them first extracts that sum as a factor.

b) In the remaining determinant, R2→R2−R1R_2 \to R_2 - R_1 gives (0,x−1,0)(0, x - 1, 0) and R3→R3−R1R_3 \to R_3 - R_1 gives (0,0,x−1)(0, 0, x - 1). The matrix is upper triangular with diagonal 11, x−1x - 1, x−1x - 1. Hence d(x)=(x+2)(x−1)2d(x) = (x + 2)(x - 1)^{2}. No cubic was ever solved: the row operations delivered the factors one by one, and each factor came with its reason.

c) Along row 11, signs +,−,++, -, +: d(x)=xdet⁡(x11x)−1det⁡(111x)+1det⁡(1x11)d(x) = x\det\begin{pmatrix} x & 1 \\ 1 & x \end{pmatrix} - 1\det\begin{pmatrix} 1 & 1 \\ 1 & x \end{pmatrix} + 1\det\begin{pmatrix} 1 & x \\ 1 & 1 \end{pmatrix} =x(x2−1)−(x−1)+(1−x)=x3−3x+2= x(x^{2} - 1) - (x - 1) + (1 - x) = x^{3} - 3x + 2. And (x+2)(x−1)2=(x+2)(x2−2x+1)=x3−3x+2(x + 2)(x - 1)^{2} = (x + 2)(x^{2} - 2x + 1) = x^{3} - 3x + 2. The two routes agree. A quick numerical check is also available: at x=0x = 0, d(0)=2d(0) = 2 and (0+2)(0−1)2=2(0 + 2)(0 - 1)^{2} = 2.

d) d(x)=0d(x) = 0 exactly when x=1x = 1 or x=−2x = -2. At x=1x = 1 the three rows are all (1,1,1)(1, 1, 1), so R2→R2−R1R_2 \to R_2 - R_1 gives a zero row. At x=−2x = -2 the rows are (−2,1,1)(-2, 1, 1), (1,−2,1)(1, -2, 1), (1,1,−2)(1, 1, -2), which add up to (0,0,0)(0, 0, 0), so R1→R1+R2+R3R_1 \to R_1 + R_2 + R_3 gives a zero row. In both cases the determinant is 00 because a replacement, which does not change it, produced a row of zeros. The question said every value: listing 11 and −2-2 without saying that dd is non-zero everywhere else is half an answer, and the factored form is the proof that there is nothing else.

e) Near x=−2x = -2 the factor x+2x + 2 changes sign while (x−1)2(x - 1)^{2} stays positive, so dd changes sign and the graph crosses. Near x=1x = 1, (x−1)2(x - 1)^{2} is never negative, so dd keeps the sign of x+2=3>0x + 2 = 3 > 0 on both sides and the graph only touches. The student's division is harmless: x3−3x+2=(x−1)(x2+x−2)x^{3} - 3x + 2 = (x - 1)(x^{2} + x - 2) and x2+x−2=(x−1)(x+2)x^{2} + x - 2 = (x - 1)(x + 2) still has 11 as a root, so he finds 11 twice and −2-2. The real danger is the other slip, CANCELLING x−1x - 1 from an equation such as (x−1)2(x+2)=0(x - 1)^{2}(x + 2) = 0 as if it were non-zero, which deletes the root x=1x = 1 altogether.

Exercise 7: An exam-sized 4 by 4: make one column empty, then expand

On a real exam the 4×44 \times 4 has no convenient column of zeros. The efficient route mixes the two tools of the chapter: a few row operations to empty one column, then a cofactor expansion along it, then the same idea again on the 3×33 \times 3 that is left. Neither tool alone is as fast.

Let N=(26−48130539210214)N = \begin{pmatrix} 2 & 6 & -4 & 8 \\ 1 & 3 & 0 & 5 \\ 3 & 9 & 2 & 1 \\ 0 & 2 & 1 & 4 \end{pmatrix}.

  • a) Row 11 has a common factor. Pull it out and write the ledger.
  • b) Use the new row 11 to clear column 11 below it. Name the operations.
  • c) Expand along column 11, then expand the resulting 3×33 \times 3 along its best line, and give det⁡N\det N.
  • d) Check the value by a second route: reduce the matrix of b) all the way to triangular form, recording the swaps.
  • e) Deduce det⁡(NT)\det(N^{T}), det⁡(−2N)\det(-2N) and det⁡(12N)\det(\frac{1}{2}N).
Show the solution

Answers

  • a) det⁡N=2det⁡N′\det N = 2\det N', with N′N' having row 11 equal to (1,3,−2,4)(1, 3, -2, 4)
  • b) R2→R2−R1R_2 \to R_2 - R_1, R3→R3−3R1R_3 \to R_3 - 3R_1; rows become (0,0,2,1)(0, 0, 2, 1) and (0,0,8,−11)(0, 0, 8, -11)
  • c) det⁡N′=−60\det N' = -60, so det⁡N=−120\det N = -120
  • d) Two swaps, diagonal 1,2,2,−151, 2, 2, -15, product −60-60; same result
  • e) −120-120, −1920-1920, −7.5-7.5

a) Row 11 is 2(1,3,−2,4)2(1, 3, -2, 4). Pulling the 22 out: det⁡N=2det⁡N′\det N = 2\det N' with N′=(13−24130539210214)N' = \begin{pmatrix} 1 & 3 & -2 & 4 \\ 1 & 3 & 0 & 5 \\ 3 & 9 & 2 & 1 \\ 0 & 2 & 1 & 4 \end{pmatrix}. Besides halving the numbers, this gives a pivot equal to 11, which clears the column below it with integer multipliers.

b) R2→R2−R1R_2 \to R_2 - R_1 gives (0,0,2,1)(0, 0, 2, 1) and R3→R3−3R1R_3 \to R_3 - 3R_1 gives (0,0,8,−11)(0, 0, 8, -11); row 44 already starts with 00. Two replacements, so the determinant is unchanged: det⁡N′=det⁡(13−240021008−110214)\det N' = \det\begin{pmatrix} 1 & 3 & -2 & 4 \\ 0 & 0 & 2 & 1 \\ 0 & 0 & 8 & -11 \\ 0 & 2 & 1 & 4 \end{pmatrix}. Notice that column 22 has also become almost empty, a bonus of the fact that the second column of NN was nearly three times the first.

c) Column 11 now holds a single 11 at position (1,1)(1,1), sign ++: det⁡N′=1×det⁡(02108−11214)\det N' = 1 \times \det\begin{pmatrix} 0 & 2 & 1 \\ 0 & 8 & -11 \\ 2 & 1 & 4 \end{pmatrix}. In that 3×33 \times 3, column 11 has two zeros and a 22 at position (3,1)(3,1), where 3+1=43 + 1 = 4 is even, sign ++: its determinant is 2det⁡(218−11)=2(−22−8)=−602\det\begin{pmatrix} 2 & 1 \\ 8 & -11 \end{pmatrix} = 2(-22 - 8) = -60. So det⁡N′=−60\det N' = -60 and det⁡N=2×(−60)=−120\det N = 2 \times (-60) = -120. Two expansions, each along a line with a single survivor, and one 2×22 \times 2 in total: that is what the operations of b) bought.

d) Starting from the matrix of b), swap R2↔R4R_2 \leftrightarrow R_4 to bring the 22 into pivot position, ×(−1)\times(-1): the rows are (1,3,−2,4)(1, 3, -2, 4), (0,2,1,4)(0, 2, 1, 4), (0,0,8,−11)(0, 0, 8, -11), (0,0,2,1)(0, 0, 2, 1). Swap R3↔R4R_3 \leftrightarrow R_4 to put the smaller pivot 22 first, ×(−1)\times(-1) again. Then R4→R4−4R3R_4 \to R_4 - 4R_3 turns (0,0,8,−11)(0, 0, 8, -11) into (0,0,0,−15)(0, 0, 0, -15). The diagonal is 1,2,2,−151, 2, 2, -15, product −60-60, and the two swaps cancel: det⁡N′=(−1)2×(−60)=−60\det N' = (-1)^{2} \times (-60) = -60. Same value, so det⁡N=−120\det N = -120 is confirmed by two independent routes.

e) det⁡(NT)=det⁡N=−120\det(N^{T}) = \det N = -120. For −2N-2N, every one of the four rows is multiplied by −2-2: det⁡(−2N)=(−2)4det⁡N=16×(−120)=−1920\det(-2N) = (-2)^{4}\det N = 16 \times (-120) = -1920; the sign does not flip because the size is even. For 12N\frac{1}{2}N, det⁡=(12)4×(−120)=−120/16=−7.5\det = (\frac{1}{2})^{4} \times (-120) = -120/16 = -7.5. Writing −2×(−120)=240-2 \times (-120) = 240 or 12×(−120)=−60\frac{1}{2} \times (-120) = -60 is the det⁡(kA)=kdet⁡A\det(kA) = k\det A slip, and it is wrong for every size except 1×11 \times 1.

Exercise 8: Five statements to correct

Each statement below was written by a student in a MATH 133 tutorial. Each one is false. Say what is wrong, give the correct statement, and settle it with the smallest counterexample you can find.

  • a) “The determinant is additive: det⁡(A+B)=det⁡A+det⁡B\det(A + B) = \det A + \det B.”
  • b) “AA is 3×33 \times 3 with det⁡A=5\det A = 5, so det⁡(2A)=10\det(2A) = 10.”
  • c) “R2→3R2−R1R_2 \to 3R_2 - R_1 adds a multiple of a row, so it does not change the determinant.”
  • d) “When I expand a 3×33 \times 3 along row 22, the signs are +,−,++, -, +.”
  • e) “The row rules do not apply to columns: swapping two columns leaves the determinant unchanged.”
Show the solution

Answers

  • a) False: A=B=I2A = B = I_2 gives det⁡(2I2)=4\det(2I_2) = 4, not 22; there is no rule for a sum
  • b) False: det⁡(2A)=23×5=40\det(2A) = 2^{3} \times 5 = 40
  • c) False: it multiplies the determinant by 33
  • d) False: row 22 carries −,+,−-, +, -
  • e) False: a column swap also changes the sign, since det⁡(AT)=det⁡A\det(A^{T}) = \det A

a) FALSE. Take A=B=I2A = B = I_2: det⁡(A+B)=det⁡(2I2)=4\det(A + B) = \det(2I_2) = 4, while det⁡A+det⁡B=1+1=2\det A + \det B = 1 + 1 = 2. Correct statement: the determinant has NO rule for a sum of matrices. It is linear in each row separately, which means that if two matrices differ in ONE row only, the determinant of the matrix whose row is the sum of those two rows is the sum of the two determinants; that is a statement about one row, never about whole matrices.

b) FALSE. 2A2A multiplies each of the three rows by 22, and each row contributes its own factor: det⁡(2A)=23det⁡A=8×5=40\det(2A) = 2^{3}\det A = 8 \times 5 = 40. Correct statement: det⁡(kA)=kndet⁡A\det(kA) = k^{n}\det A for an n×nn \times n matrix. The student applied the rule for scaling ONE row to a matrix in which every row was scaled.

c) FALSE. The row being replaced is multiplied by 33 before anything is added to it, and that multiplies the determinant by 33. Counterexample: det⁡(1234)=−2\det\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} = -2, and after R2→3R2−R1R_2 \to 3R_2 - R_1 the matrix is (12810)\begin{pmatrix} 1 & 2 \\ 8 & 10 \end{pmatrix} with determinant 10−16=−6=3×(−2)10 - 16 = -6 = 3 \times (-2). Correct statement: Ri→Ri+cRjR_i \to R_i + cR_j with j≠ij \neq i leaves the determinant unchanged, and Ri→aRi+cRjR_i \to aR_i + cR_j multiplies it by aa. Only the coefficient of the row being replaced counts.

d) FALSE. The sign at (i,j)(i, j) is (−1)i+j(-1)^{i+j}, so row 22 reads (−1)3,(−1)4,(−1)5(-1)^{3}, (-1)^{4}, (-1)^{5}, that is −,+,−-, +, -. Counterexample: P=(010100001)P = \begin{pmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix} has det⁡P=−1\det P = -1, being the identity with rows 11 and 22 swapped. Along row 22, the only non-zero entry is the 11 at (2,1)(2,1), and C21=−det⁡(1001)=−1C_{21} = -\det\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = -1, giving −1-1. With the student's signs he gets +1+1. Correct statement: row 22 and column 22 of every matrix start with a minus.

e) FALSE. Since det⁡(AT)=det⁡A\det(A^{T}) = \det A and the columns of AA are the rows of ATA^{T}, every row rule holds for columns. Counterexample: det⁡(1234)=−2\det\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} = -2, and with the two columns swapped det⁡(2143)=6−4=2\det\begin{pmatrix} 2 & 1 \\ 4 & 3 \end{pmatrix} = 6 - 4 = 2. Correct statement: swapping two columns changes the sign, scaling a column by cc multiplies the determinant by cc, and adding a multiple of one column to another changes nothing. That is what made the column factors of exercise 4 legitimate.

Exercise 9: Three measurements, one parabola, and the Vandermonde determinant

A lab records three measurements (x,y)=(1,3)(x, y) = (1, 3), (2,7)(2, 7) and (4,21)(4, 21) and fits the quadratic model y=p+qx+rx2y = p + qx + rx^{2} through them. Each measurement gives one linear equation in the unknown coefficients p,q,rp, q, r, and the coefficient matrix has a structure that returns every time a polynomial is fitted through data points: row kk is (1,xk,xk2)(1, x_k, x_k^{2}).

The determinant of that matrix, called a VANDERMONDE determinant, factors completely, and its factors are the gaps between the xx values marked on the figure.

123454812162024(1, 3)(2, 7)(4, 21)xy
  • a) Write the system in p,q,rp, q, r and its coefficient matrix VV. Check that p=q=r=1p = q = r = 1 satisfies it.
  • b) For three numbers a,b,ca, b, c, prove by row operations that det⁡(1aa21bb21cc2)=(b−a)(c−a)(c−b)\det\begin{pmatrix} 1 & a & a^{2} \\ 1 & b & b^{2} \\ 1 & c & c^{2} \end{pmatrix} = (b - a)(c - a)(c - b).
  • c) Compute det⁡V\det V from this formula, then again by cofactor expansion along row 11.
  • d) The second measurement is replaced by a repeated one at x=1x = 1. What does the formula give, and what does the matrix itself show?
  • e) The measurements are listed in the order x=4,2,1x = 4, 2, 1 instead. Give the new determinant from the formula, and explain the change with the ledger.
Show the solution

Answers

  • a) p+q+r=3p + q + r = 3, p+2q+4r=7p + 2q + 4r = 7, p+4q+16r=21p + 4q + 16r = 21; V=(1111241416)V = \begin{pmatrix} 1 & 1 & 1 \\ 1 & 2 & 4 \\ 1 & 4 & 16 \end{pmatrix}; (1,1,1)(1, 1, 1) works
  • b) (b−a)(c−a)(c−b)(b - a)(c - a)(c - b) after R2−R1R_2 - R_1, R3−R1R_3 - R_1 and two extracted factors
  • c) det⁡V=1×3×2=6\det V = 1 \times 3 \times 2 = 6, and 16−12+2=616 - 12 + 2 = 6
  • d) 00; two rows of the matrix are equal
  • e) −6-6; the reordering is one swap R1↔R3R_1 \leftrightarrow R_3

a) Substituting each measurement into y=p+qx+rx2y = p + qx + rx^{2}: p+q+r=3p + q + r = 3, p+2q+4r=7p + 2q + 4r = 7, p+4q+16r=21p + 4q + 16r = 21. The coefficient matrix is V=(1111241416)V = \begin{pmatrix} 1 & 1 & 1 \\ 1 & 2 & 4 \\ 1 & 4 & 16 \end{pmatrix}. With p=q=r=1p = q = r = 1: 1+1+1=31 + 1 + 1 = 3, 1+2+4=71 + 2 + 4 = 7, 1+4+16=211 + 4 + 16 = 21. So the curve on the figure is y=1+x+x2y = 1 + x + x^{2}. Row kk of VV depends only on xkx_k, never on yky_k: the determinant is a property of WHERE the measurements were taken, not of what they read.

b) R2→R2−R1R_2 \to R_2 - R_1 and R3→R3−R1R_3 \to R_3 - R_1, two replacements, give the rows (0,b−a,b2−a2)(0, b - a, b^{2} - a^{2}) and (0,c−a,c2−a2)(0, c - a, c^{2} - a^{2}). Since b2−a2=(b−a)(b+a)b^{2} - a^{2} = (b - a)(b + a), row 22 is (b−a)(0,1,b+a)(b - a)(0, 1, b + a) and row 33 is (c−a)(0,1,c+a)(c - a)(0, 1, c + a); pull both factors out. Expanding along column 11, whose only non-zero entry is the 11 at the top, leaves (b−a)(c−a)det⁡(1b+a1c+a)=(b−a)(c−a)((c+a)−(b+a))=(b−a)(c−a)(c−b)(b - a)(c - a)\det\begin{pmatrix} 1 & b + a \\ 1 & c + a \end{pmatrix} = (b - a)(c - a)\big((c + a) - (b + a)\big) = (b - a)(c - a)(c - b). Each factor is produced by a named operation; none is guessed.

c) With a=1a = 1, b=2b = 2, c=4c = 4: det⁡V=(2−1)(4−1)(4−2)=1×3×2=6\det V = (2 - 1)(4 - 1)(4 - 2) = 1 \times 3 \times 2 = 6. By cofactor expansion along row 11, signs +,−,++, -, +: 1(2×16−4×4)−1(1×16−4×1)+1(1×4−2×1)=16−12+2=61(2 \times 16 - 4 \times 4) - 1(1 \times 16 - 4 \times 1) + 1(1 \times 4 - 2 \times 1) = 16 - 12 + 2 = 6. The factored form wins twice: it is faster, and it is correct for every choice of nodes at once.

d) With nodes 1,1,41, 1, 4 the factor b−a=1−1=0b - a = 1 - 1 = 0 kills the product: the determinant is 00. On the matrix, the first two rows are both (1,1,1)(1, 1, 1), and R2→R2−R1R_2 \to R_2 - R_1 produces a zero row. The formula says more than the zero, though: the determinant vanishes EXACTLY when two nodes coincide, since a product of numbers is zero only if one factor is. As long as the three measurements are taken at three different values of xx, the determinant is non-zero.

e) With a=4a = 4, b=2b = 2, c=1c = 1: (2−4)(1−4)(1−2)=(−2)(−3)(−1)=−6(2 - 4)(1 - 4)(1 - 2) = (-2)(-3)(-1) = -6. Listing the rows in the order 4,2,14, 2, 1 is the matrix VV with R1↔R3R_1 \leftrightarrow R_3, a single swap, so the ledger predicts −6-6 before any computation. The size of a Vandermonde determinant depends only on the gaps between the nodes; its sign depends on the order in which they are listed.

Exercise 10: A chain of springs and the determinant of a band matrix

When nn identical masses are joined by identical springs in a line between two fixed walls, the linear system describing their equilibrium has the coefficient matrix TnT_n shown for n=5n = 5 on the figure: 22 on the diagonal, −1-1 immediately beside it, and 00 everywhere else. The same matrix appears when a taut string or a heated rod is cut into nn pieces. Let Dn=det⁡TnD_n = \det T_n.

No single expansion computes DnD_n for every nn at once. One expansion, however, relates DnD_n to the two previous determinants, and that is enough.

2−1000−12−1000−12−1000−12−1000−12row 1: only two non-zero entries,so two cofactors to compute2 on the diagonal, −1 beside it,0 everywhere elseT5 shown; Tn has the same band
  • a) Compute D1D_1, D2D_2 and D3D_3 directly.
  • b) Expand DnD_n along row 11. Compute the minor M12M_{12} by expanding it along its own first column, and deduce Dn=2Dn−1−Dn−2D_n = 2D_{n-1} - D_{n-2} for n≥3n \ge 3.
  • c) Prove that Dn=n+1D_n = n + 1 for every n≥1n \ge 1.
  • d) Give D10D_{10}, and check D4D_4 by the recurrence and by a row reduction of T4T_4.
  • e) If the last mass is attached to the wall at one end only, the last diagonal entry becomes 11 instead of 22. Call the new determinant EnE_n. Expand along the last row and show that En=1E_n = 1 for every n≥2n \ge 2.
Show the solution

Answers

  • a) D1=2D_1 = 2, D2=3D_2 = 3, D3=4D_3 = 4
  • b) Dn=2Dn−1+(−1)C12D_n = 2D_{n-1} + (-1)C_{12} with C12=Dn−2C_{12} = D_{n-2}, so Dn=2Dn−1−Dn−2D_n = 2D_{n-1} - D_{n-2}
  • c) By induction: 2n−(n−1)=n+12n - (n - 1) = n + 1
  • d) D10=11D_{10} = 11; D4=2×4−3=5D_4 = 2 \times 4 - 3 = 5, and the pivots 2,32,43,542, \frac{3}{2}, \frac{4}{3}, \frac{5}{4} multiply to 55
  • e) En=Dn−1−Dn−2=n−(n−1)=1E_n = D_{n-1} - D_{n-2} = n - (n - 1) = 1

a) D1=det⁡(2)=2D_1 = \det(2) = 2. D2=det⁡(2−1−12)=4−1=3D_2 = \det\begin{pmatrix} 2 & -1 \\ -1 & 2 \end{pmatrix} = 4 - 1 = 3. For D3=det⁡(2−10−12−10−12)D_3 = \det\begin{pmatrix} 2 & -1 & 0 \\ -1 & 2 & -1 \\ 0 & -1 & 2 \end{pmatrix}, expand along row 11, whose third entry is 00: 2(4−1)−(−1)(−2−0)=6−2=42(4 - 1) - (-1)(-2 - 0) = 6 - 2 = 4. The pattern 2,3,42, 3, 4 is suggestive, but three values prove nothing; b) and c) do the proving.

b) Row 11 of TnT_n has two non-zero entries, so Dn=2C11+(−1)C12D_n = 2C_{11} + (-1)C_{12}. Deleting row 11 and column 11 leaves Tn−1T_{n-1}, so C11=Dn−1C_{11} = D_{n-1}. Deleting row 11 and column 22 leaves a matrix whose first column is (−1,0,…,0)(-1, 0, \dots, 0), and whose block after removing that row and column is Tn−2T_{n-2}. Expanding along that first column: M12=(−1)Dn−2M_{12} = (-1)D_{n-2}. Position (1,2)(1,2) is odd, so C12=−M12=Dn−2C_{12} = -M_{12} = D_{n-2}. Hence Dn=2Dn−1+(−1)Dn−2=2Dn−1−Dn−2D_n = 2D_{n-1} + (-1)D_{n-2} = 2D_{n-1} - D_{n-2}. Two signs meet in C12C_{12}, the checkerboard and the entry −1-1 inside the minor, and each must be written separately.

c) Induction. The formula holds for n=1n = 1 and n=2n = 2 by a). Suppose Dn−1=nD_{n-1} = n and Dn−2=n−1D_{n-2} = n - 1 for some n≥3n \ge 3. Then Dn=2n−(n−1)=n+1D_n = 2n - (n - 1) = n + 1. So Dn=n+1D_n = n + 1 for every nn. The recurrence needs TWO starting values because it looks two steps back, which is why a) computed both D1D_1 and D2D_2 before anything else.

d) D10=11D_{10} = 11. By the recurrence, D4=2D3−D2=8−3=5D_4 = 2D_3 - D_2 = 8 - 3 = 5. By reduction: R2→R2+12R1R_2 \to R_2 + \frac{1}{2}R_1 leaves the pivot 32\frac{3}{2}, then R3→R3+23R2R_3 \to R_3 + \frac{2}{3}R_2 leaves 43\frac{4}{3}, then R4→R4+34R3R_4 \to R_4 + \frac{3}{4}R_3 leaves 54\frac{5}{4}, all replacements. The product of the pivots is 2×32×43×54=52 \times \frac{3}{2} \times \frac{4}{3} \times \frac{5}{4} = 5, and it telescopes: the reduction explains the formula n+1n + 1 as well as the recurrence does.

e) The last row of the new matrix is (0,…,0,−1,1)(0, \dots, 0, -1, 1). Along it: En=1×Cnn+(−1)Cn,n−1E_n = 1 \times C_{nn} + (-1)C_{n,n-1}. Deleting row nn and column nn leaves Tn−1T_{n-1}, so Cnn=Dn−1C_{nn} = D_{n-1}. Deleting row nn and column n−1n-1 leaves a matrix whose last column is (0,…,0,−1)(0, \dots, 0, -1); expanding along it gives Mn,n−1=(−1)Dn−2M_{n,n-1} = (-1)D_{n-2}, and since n+(n−1)n + (n - 1) is odd, Cn,n−1=Dn−2C_{n,n-1} = D_{n-2}. So En=Dn−1−Dn−2=n−(n−1)=1E_n = D_{n-1} - D_{n-2} = n - (n - 1) = 1, with D0=1D_0 = 1 for n=2n = 2, which agrees with det⁡(2−1−11)=1\det\begin{pmatrix} 2 & -1 \\ -1 & 1 \end{pmatrix} = 1. However long the chain, freeing one end drops the determinant to 11: it is the same recurrence, run with different starting values.

See also

Struggling with MATH 133?

I tutor first-year linear algebra at McGill and Concordia, in English or in French, in Montreal or online. Get in touch for a first session.

Site by Studio Squalli