MATH 133 Linear Algebra and Geometry • McGill University, Montreal
Corrected exercises: determinants, inverses and Cramer's rule (MATH 133)
This is the corrected exercise set for the chapter of MATH 133, Linear Algebra and Geometry at McGill University, that turns the determinant from a computation into a tool (Nicholson, section 3.2).Computing a determinant was the previous chapter.
What the set covers, the traps it targets
Computing a determinant was the previous chapter.
Here you use det(AB)=detAdetB, det(AT)=detA, det(A−1)=1/detA and det(kA)=kndetA to evaluate a determinant without its entries, decide for which values of a parameter a matrix is invertible, build the inverse from the adjugate, and extract one unknown of a system by Cramer's rule. No calculator, as on the exam: every number reduces by hand.
The thread running through the whole set: the determinant is a MULTIPLICATIVE volume factor. Products multiply, inverses divide, the transpose changes nothing, and a scalar k in front of an n×n matrix scales each of its n edges, hence kn. The same number sits in the denominator of every entry of A−1 and of every unknown given by Cramer's rule, which is why detA=0 is the single place where all of them stop at once, without that meaning the system has no solution.
The traps named explicitly in the solutions: writing kdetA for det(kA), confusing (3A)−1 with 3A−1, keeping one branch when det(A)2 is known, dividing by detA before knowing it is not zero, forgetting the transpose in the adjugate and so swapping the indices of a single entry of A−1, proving a statement about (−1)n without ever mentioning n, and reading detA=0 as no solution when Cramer's rule has simply stopped applying.
•det(AB)=detAdetB in any order, det(AT)=detA, det(Am)=(detA)m.
•A is invertible if and only if detA=0, and then det(A−1)=detA1.
•det(kA)=kndetA for an n×n matrix; ONE row times k gives only kdetA.
•Cofactor Cij=(−1)i+jMij; adj(A)=[Cij]T and Aadj(A)=det(A)I.
•A−1=detA1adj(A), so (A−1)ij=detACji, indices swapped.
•Cramer: if detA=0, the solution of Ax=b has xj=detAdetAj(b), column j replaced by b.
•det(adjA)=(detA)n−1; an integer matrix has an integer inverse if and only if detA=±1.
Part A: the basics (/50)
Exercise 1: One number per matrix: a composite determinant without a single entry
8 answers to check
The determinant turns every square matrix into one number, and it turns products into products: det(AB)=detAdetB. Three companions follow from it: det(AT)=detA, det(A−1)=1/detA, and det(kA)=kndetA for an n×n matrix. With those four rules, a determinant built from five factors is five small numbers multiplied together, and the entries of the matrices are never needed.
The figure shows the product rule in the plane: P doubles every area, Q triples every area, so doing P and then Q multiplies areas by 6, whatever the shapes look like.
In parts a) to e), A and B are 3×3 matrices with detA=2 and detB=−3.
a) Compute det(AB) and det(BA). Does it follow that AB=BA?
b) Compute det(ATB−1).
c) Compute det(2A−1BTA3).
d) Compute det(B−1AB) and explain why the answer does not depend on B.
e) Compute det((3A)−1) and det(3A−1), and say why they differ.
Show the solution
Answers
a)det(AB)=det(BA)=−6; no, equal determinants do not make equal matrices.
b)−32
c)−96
d)2, for every invertible B
e)541 and 227
a)
det(AB)=detAdetB=2×(−3)=−6, and det(BA)=detBdetA=−6 as well, because the two determinants are real NUMBERS and numbers commute even when matrices do not. Nothing follows about AB and BA themselves: two different matrices can share a determinant exactly as two different parallelograms can share an area. Writing AB=BA here costs the part. The determinant forgets almost everything about a matrix and keeps one number, which is precisely why it is so easy to compute with and so dangerous to over-read.
b)
Take the factors one at a time and write one line for each. det(AT)=detA=2: transposing swaps rows and columns, and expanding AT along a row is expanding A along a column. det(B−1)=detB1=−31: from BB−1=I you get detBdet(B−1)=detI=1. So det(ATB−1)=2×(−31)=−32. The inverse DIVIDES by detB, it does not change its sign: writing det(B−1)=3 is the second most common slip of the chapter.
c)
One line per factor before multiplying, it is what earns the method marks. The scalar 2 multiplies a 3×3 matrix, so it contributes 23=8, not 2. Then det(A−1)=21, det(BT)=−3 and det(A3)=(detA)3=8. Multiply: 8×21×(−3)×8=−96. Two traps sit in this single line. Writing 2 instead of 23 gives −24. Reading A3 as 3A gives det(3A)=27×2=54 instead of 8. Notice also what you did NOT need: the order of the factors. The matrix A−1BTA3 cannot be simplified to BTA2, since the factors do not commute, but its determinant is a product of four numbers and those do.
d)
det(B−1AB)=det(B−1)detAdetB=detB1×2×detB=2. The matrices B−1 and B cannot be cancelled inside the product, because B−1AB is in general a different matrix from A; their DETERMINANTS are numbers and do cancel. So every matrix of the form B−1AB has the determinant of A, whichever invertible B is chosen. Geometrically, B−1AB is the transformation A described in another coordinate system, and changing the coordinates does not change the factor by which volumes are scaled.
e)
det(3A)=33×2=54, so det((3A)−1)=541. On the other side, det(3A−1)=33×det(A−1)=27×21=227. The two expressions look alike and differ by a factor of 729=272. In (3A)−1 the scalar is INSIDE the inverse and gets inverted with the matrix, since (3A)−1=31A−1; in 3A−1 it is outside and is not. Reading the parentheses is part of the question, and a marker reads them too.
Points are earned before the solution; after it, you can keep practising.
For you:
Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.
Exercise 2: Scaling a matrix scales every edge: the power n
10 answers to check
Multiplying ONE row of a matrix by k multiplies the determinant by k. Multiplying the whole MATRIX by k multiplies each of its n rows by k, so the determinant is multiplied by kn. The rule det(kA)=kndetA is where most marks are lost in this chapter, because kdetA looks so natural.
The figure shows why the power is the dimension: doubling every edge of a square gives four copies of it, doubling every edge of a cube gives eight.
a) A is 3×3 with detA=5. Compute det(2A), det(−A) and det(−2AT).
b) Redo a) with A of size 4×4, still with detA=5. Which answers change, and why?
c) B is 3×3 and det(2B−1)=4. Find detB, then det((2B)−1).
d) D is 3×3 with detD=−4, and E is obtained from D by multiplying its first row by 2. Compare detE with det(2D).
e) Prove det(kA)=kndetA in one line, using the product rule.
Show the solution
Answers
a)40, −5 and −40
b)80, 5 and 80: every answer changes, because n is an input of each rule
c)detB=2 and det((2B)−1)=161
d)detE=−8 and det(2D)=−32
e)kA=(kI)A and det(kI)=kn
a)
For a 3×3 matrix, det(2A)=23detA=8×5=40. For −A the scalar is −1, so det(−A)=(−1)3×5=−5. For −2AT, transposing changes nothing and the scalar −2 contributes (−2)3=−8, so det(−2AT)=−8×5=−40. The answer det(2A)=10, that is 2detA, is the single most common wrong line on this topic: it treats the scalar as if it multiplied one row only.
b)
With n=4: det(2A)=24×5=80, det(−A)=(−1)4×5=5 and det(−2AT)=(−2)4×5=80. The determinant of A is still 5 and yet every answer changed, because the size of the matrix is a hidden input of every scalar rule. The sign of det(−A) is the sharpest symptom: negating a matrix reverses the sign of its determinant when n is odd and leaves it alone when n is even. So never apply a scalar rule before writing n on the line.
c)
det(2B−1)=23det(B−1)=detB8. Setting this equal to 4 gives detB=2. Then det(2B)=8×2=16 and its inverse has determinant 161. A student who forgets the cube writes detB2=4 and finds detB=21, wrong by a factor of 4, and the second answer inherits the error. Substituting back is a five-second check: 8/2=4.
d)
Multiplying ONE row by 2 is an elementary row operation and it multiplies the determinant by 2: detE=2×(−4)=−8. Multiplying the whole matrix multiplies all three rows: det(2D)=23×(−4)=−32. Both operations are described as multiplying by 2, and they differ by a factor of 22=4, one factor of 2 for each row the row operation did not touch. In the language of the figure: stretching a cube in one direction doubles its volume, stretching it in all three directions multiplies it by 8.
e)
kA=(kI)A, where kI is the diagonal matrix with k in every diagonal position. The product rule gives det(kA)=det(kI)detA, and the determinant of a diagonal matrix is the product of its diagonal entries, so det(kI)=k⋅k⋯k=kn. Hence det(kA)=kndetA. The proof is worth keeping because it also says what n is: the number of diagonal entries of kI, that is the SIZE of the matrix, never the number of times k is written in the expression.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 3: A parameter that switches the determinant off
9 answers to check
A square matrix is invertible if and only if its determinant is not zero. When the matrix depends on a parameter, its determinant is a polynomial in that parameter, and the matrix fails to be invertible exactly at the roots. The work is to compute that polynomial with as little effort as possible, keep it FACTORED, and read it.
For every real k, let Ak=1−111k1k12.
a) Compute det(Ak) as a factored polynomial in k, naming each operation you use.
b) For which values of k is Ak invertible?
c) Find every k for which det(AkTAk)=16.
d) For k=0, compute det(A0−1) and det(2A0−1A0T).
e) Show that for k=2 the product A2B is singular for every 3×3 matrix B.
Show the solution
Answers
a)det(Ak)=(2−k)(k+1)
b)Invertible for every real k except k=−1 and k=2
c)k=−2 or k=3; the branch det(Ak)=4 has no real solution
d)21 and 8
e)det(A2B)=0×detB=0
a)
Rows 1 and 3 share their first two entries, so R3→R3−R1 creates two zeros, and adding a multiple of one row to another leaves the determinant unchanged. The new third row is (0,0,2−k). Expand along that row, where only the last entry survives, with sign (−1)3+3=+1: det(Ak)=(2−k)det(1−11k)=(2−k)(k+1). Keeping the factored form is the whole point: expanding to −k2+k+2 and factoring again wastes a line and invites a sign error. Check with k=0 on the ORIGINAL matrix, expanded along its first row: 1(0⋅2−1⋅1)−1((−1)⋅2−1⋅1)+0=−1+3=2, and (2−0)(0+1)=2.
b)
Ak is invertible if and only if det(Ak)=0, that is k=2 and k=−1. At those two values the columns are dependent and the matrix is singular; at k=2 you can even see it, since rows 1 and 3 both become (1,1,2). State the answer as a condition on k, every real k except 2 and −1. Listing the two bad values without saying what they mean loses the conclusion mark, because the question asked where Ak IS invertible.
c)
det(AkTAk)=det(AkT)det(Ak)=det(Ak)2, so the condition is det(Ak)2=16, that is det(Ak)=4 OR det(Ak)=−4. First branch: (2−k)(k+1)=4 becomes k2−k+2=0, whose discriminant 1−8=−7 is negative, so no real k. Second branch: (2−k)(k+1)=−4 becomes k2−k−6=0, that is (k−3)(k+2)=0, so k=3 or k=−2. The classic loss is to keep only det(Ak)=4, find no solution and conclude that no k works, the exact opposite of the truth. The figure of the solution shows both branches: the parabola never reaches height 4 and crosses height −4 twice.
d)
For k=0, det(A0)=2=0, so A0−1 exists, and det(A0−1)=21. Then det(2A0−1A0T)=23×21×2=8: the inverse and the transpose cancel in the determinant, and only the 23 of the scalar is left. The sentence that says k=0 is not a forbidden value comes BEFORE any use of A0−1; without it, the inverse is used before it is known to exist.
e)
For k=2, det(A2)=0. For any 3×3 matrix B, det(A2B)=det(A2)detB=0×detB=0, so A2B is singular however well behaved B is, and the same argument covers BA2 and A25. In words: once one factor has flattened space onto a plane, nothing applied before or after it can restore the lost dimension, and the determinant, being a product, records this as a factor of zero.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 4: The adjugate: every entry of the inverse is a cofactor over det A
16 answers to check
Each entry of A−1 is a 2×2 determinant divided by detA. Precisely, with Cij=(−1)i+jMij the cofactor of the entry in row i and column j, the adjugate is the TRANSPOSE of the matrix of cofactors, adj(A)=[Cij]T, and Aadj(A)=det(A)I. When detA=0, this gives A−1=detA1adj(A).
Throughout, A=1111020−1−1.
a) Compute detA by cofactor expansion along a row you choose, and say why you chose it.
b) Compute the nine cofactors and write the matrix of cofactors.
c) Write adj(A) and check the first row of Aadj(A)=det(A)I.
d) Deduce A−1.
e) A student forgets the transpose and offers the matrix of cofactors divided by detA as the inverse. Show with a single entry of a product that it cannot be A−1.
Show the solution
Answers
a)detA=2, along row 1 because of its zero
b)21−10−112−1−1
c)adj(A)=2021−1−1−11−1; first row of the product (2,0,0)
d)A−1=10121−21−21−2121−21
e)Entry (1,1) of the product is 23, not 1
a)
Row 1, (1,1,0), has a zero, so its third term vanishes: detA=1⋅C11+1⋅C12+0. With C11=+det(02−1−1)=0+2=2 and C12=−det(11−1−1)=−(−1+1)=0, we get detA=2. Choosing the row with a zero saves one 2×2 determinant; here it also produces two cofactors needed in b), so nothing is computed twice. The determinant is not zero, so A is invertible and the adjugate formula applies.
b)
The signs follow the checkerboard +−+−+−+−+, and each minor deletes the row and column of its entry. Row 1: C11=2, C12=0, C13=+det(1102)=2. Row 2: C21=−det(120−1)=1, C22=+det(110−1)=−1, C23=−det(1112)=−1. Row 3: C31=+det(100−1)=−1, C32=−det(110−1)=1, C33=+det(1110)=−1. The matrix of cofactors is 21−10−112−1−1. The minus signs of the checkerboard are where the marks go: C21 is MINUS a determinant that equals −1.
c)
Transpose: row i of adj(A) is column i of the cofactor matrix, adj(A)=2021−1−1−11−1. Row 1 of A, (1,1,0), against the three columns of adj(A): 2+0+0=2, 1−1+0=0, −1+1+0=0. That is (2,0,0), the first row of 2I. The zeros are not luck: a row of A against the cofactors of ANOTHER row is the expansion of a matrix with two equal rows, hence zero. This check costs three dot products and catches almost every sign error.
d)
A−1=21adj(A)=10121−21−21−2121−21. Every entry has denominator 2=detA or a divisor of it, which is the adjugate formula made visible: the only division in the whole computation is by the determinant. On a copy, leave the answer as 21 times an integer matrix if the question allows it; it is shorter and easier to check.
e)
With the matrix of cofactors C instead of its transpose, entry (1,1) of A⋅21C is row 1 of A against column 1 of C: 21(1⋅2+1⋅1+0⋅(−1))=23, not 1. One wrong entry is enough to reject a proposed inverse. The transpose is not a convention: the product Aadj(A) pairs row i of A with the cofactors of row i, which is the expansion of detA along row i, and that pairing only happens when those cofactors sit in COLUMN i of the adjugate.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 5: One entry of the inverse, one unknown of the system
7 answers to check
Two questions come back on every MATH 133 paper, and neither needs the full inverse. One entry of A−1: (A−1)ij=detACji, with the indices SWAPPED because of the transpose in the adjugate. One unknown of Ax=b: Cramer's rule, xj=detAdetAj(b), where Aj(b) is A with column j replaced by b, valid when detA=0.
In parts a) to c), M=211130−121 and the system is Mx=b with x=(x,y,z) and b=(−3,1,4).
a) Compute detM.
b) Compute only the entry in row 2, column 3 of M−1.
c) Find y alone by Cramer's rule, then z alone, and finish with a check by substitution.
d) In the plane, a1=(2,1), a2=(1,2) and b=(5,4), as drawn. Find x and y in xa1+ya2=b by Cramer's rule, and explain with the figure why x is a ratio of two determinants.
Show the solution
Answers
a)detM=10
b)(M−1)23=10C32=−21
c)y=−2, z=3, then x=1
d)x=2, y=1: b=2a1+a2
a)
Expand along row 3, (1,0,1), which has a zero. The signs in row 3 are +,−,+: detM=+1⋅det(13−12)+0+1⋅det(2113)=(2+3)+(6−1)=10. Since detM=0, M is invertible and Cramer's rule applies: say it in one sentence, it is the hypothesis of everything that follows.
b)
The entry in row 2, column 3 of M−1 is the cofactor of position (3,2) of M, divided by detM. Delete row 3 and column 2: the minor is det(21−12)=4+1=5, and the sign is (−1)3+2=−1, so C32=−5 and (M−1)23=−105=−21. The trap is to take C23 instead: deleting row 2 and column 3 gives det(2110)=−1, so C23=1 and the wrong answer 101. The two differ here, and in general they differ whenever M is not symmetric. The swap comes from the transpose in adj(M), nothing else.
c)
Replace column 2 by b: det211−314−121, expanded along row 1, is 2(1−8)+3(1−2)−1(4−1)=−14−3−3=−20, so y=10−20=−2. Replace column 3 by b: det211130−314, expanded along row 3, is 1⋅(1+9)+4⋅(6−1)=30, so z=3. The third equation, x+z=4, then gives x=1, and all three equations check: 2−2−3=−3, 1−6+6=1, 1+3=4. The column that is replaced is the column of the unknown you want, and b goes in as a COLUMN, never as a row.
d)
det(2112)=3, with a1 and a2 as columns. Cramer: x=31det(5412)=310−4=2 and y=31det(2154)=38−5=1. Check: 2(2,1)+(1,2)=(5,4). The figure of the solution says why. The numerator is the signed area of the parallelogram built on b and a2. Sliding b parallel to a2, to b−ya2=xa1, changes neither the base nor the height, so that area is the area built on xa1 and a2, which is x times the shaded one. Here 6=2×3. Cramer's rule is that sentence, written with determinants.
Points are earned before the solution; after it, you can keep practising.
For you:
Part B: problems and reasoning (/50)
Exercise 6: Short proofs: take the determinant of both sides
3 answers to check
A determinant identity turns a matrix equation into an equation between NUMBERS, and number equations are easy. Every proof below has the same shape: take the determinant of both sides, use the product, transpose and scalar rules, then solve for detA, keeping every root.
The figure shows the two answers of part b): a quarter turn, which keeps the counterclockwise order of the columns, and a reflection, which reverses it. Both keep areas.
a) A is n×n with A2=A. Prove that detA=0 or detA=1, and give a 2×2 example, other than the zero matrix, with A2=A and detA=0.
b) Q is n×n with QTQ=I. Prove that detQ=±1, and check both signs on the two matrices of the figure.
c) S is 3×3 with ST=−S. Prove that detS=0, then show with a 2×2 example that the conclusion fails for even sizes.
d) A is 3×3 with A3=2I. Find detA exactly.
e) A and B are n×n with AB=−BA and n odd. Prove that A or B is singular.
Show the solution
Answers
a)det(A)2=detA, so detA∈{0,1}; example (1010)
b)det(Q)2=1; the rotation has det=1, the reflection det=−1
c)detS=(−1)3detS, so detS=0; (0−110) has determinant 1
d)detA=2
e)detAdetB=−detAdetB, so detAdetB=0
a)
Take determinants: det(A2)=det(A)2 by the product rule, so det(A)2=detA, that is detA(detA−1)=0, and detA=0 or detA=1. Nothing more follows: the number equation has two roots and both are reached. For the example, A=(1010) gives A2=(1⋅1+1⋅001⋅1+1⋅00)=A and detA=0, while I reaches det=1. The trap is to divide by detA and announce detA=1 alone: dividing by a number is allowed only once you know it is not zero, and zero is the TYPICAL case here, since a matrix with A2=A projects space onto a subspace.
b)
det(QTQ)=det(QT)detQ=det(Q)2 and detI=1, so det(Q)2=1 and detQ=1 or −1. On the figure, the quarter turn is (01−10), with determinant 0⋅0−(−1)⋅1=1, and the reflection in the horizontal axis is (100−1), with determinant −1. Both satisfy QTQ=I, since their columns are perpendicular unit vectors. The absolute value 1 says that areas are kept; the SIGN says whether the turn from the first column to the second is still counterclockwise. A matrix with QTQ=I never stretches: it can only turn, or flip.
c)
Take determinants of ST=−S. The left side is det(ST)=detS. The right side is the scalar −1 times a 3×3 matrix, so det(−S)=(−1)3detS=−detS. Hence detS=−detS, 2detS=0 and detS=0. The size was used exactly once, in (−1)3=−1, and that is the step that fails for even n: with n=2, (−1)2=1 and the equation reduces to detS=detS, which says nothing. Indeed S=(0−110) satisfies ST=−S and has determinant 0−(−1)=1. A proof that never mentions n is wrong, because the statement is false for half of the sizes.
d)
det(A3)=det(A)3, and det(2I)=23=8 for a 3×3 matrix. So det(A)3=8 and, since a real number has exactly one real cube root, detA=2. The trap is det(2I)=2, which leads to detA=32, a wrong answer that LOOKS sophisticated. Such matrices exist: A=32I satisfies A3=2I, its entries are cube roots, and its determinant is (32)3=2, as found.
e)
Take determinants of AB=−BA: detAdetB=(−1)ndetBdetA. With n odd, (−1)n=−1, so detAdetB=−detAdetB, hence detAdetB=0 and one of the two factors is zero: A or B is singular. It is the shape of c) again, a sign coming from (−1)n that forces a number to equal its own opposite. For even n the conclusion fails: A=(100−1) and B=(0110) give AB=(0−110)=−BA, with both determinants equal to −1.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 7: The adjugate identity, used as a tool
9 answers to check
Everything about the adjugate follows from one identity, valid for every square matrix, invertible or not: Aadj(A)=adj(A)A=det(A)I. Taking determinants of it, or multiplying it by something well chosen, answers questions that would otherwise cost nine cofactors.
a) Prove that det(adjA)=det(A)n−1 when A is an invertible n×n matrix.
b) Prove that if A is singular and n≥2, then adj(A) is singular too, so the formula of a) still holds.
c) A is 3×3 with detA=3. Compute det(adjA), det(2adjA) and det(adj(2A)).
d) A 3×3 matrix B has adj(B)=11111−1−202. Show that detB=±2, and explain why the adjugate alone cannot decide the sign.
e) You are also told that the top-left entry of B is 1. Find detB, B−1 and B.
Show the solution
Answers
a)detAdet(adjA)=det(A)n, then divide by detA=0
b)Otherwise A=0, whose adjugate is 0: a contradiction
c)9, 72 and 576
d)det(B)2=4; B and −B have the same adjugate
e)detB=2, B−1=21adj(B), B=1−1−10211−10
a)
Take determinants of Aadj(A)=det(A)I. The left side is detAdet(adjA). The right side is the NUMBER detA times the n×n identity, so its determinant is det(A)n, by the scalar rule. Hence detAdet(adjA)=det(A)n, and dividing by detA, which is allowed because A is invertible, gives det(adjA)=det(A)n−1. The usual slip is to read det(det(A)I) as detA, forgetting that the scalar sits in front of all n rows, and to conclude det(adjA)=1.
b)
Suppose A is singular and adj(A) is invertible. The identity gives Aadj(A)=0⋅I=0; multiply on the right by adj(A)−1 to get A=0. But every cofactor of the zero matrix is a determinant of a zero block, so adj(0)=0, which is not invertible: contradiction. Hence adj(A) is singular, det(adjA)=0=det(A)n−1, and the formula holds for every square matrix of size at least 2. The hypothesis n≥2 is used in 0n−1=0 and in the cofactors being determinants of non-empty blocks.
c)
det(adjA)=32=9. Then 2adjA is a scalar times a 3×3 matrix: det(2adjA)=23×9=72. For adj(2A), apply a) to the matrix 2A, whose determinant is 23×3=24: det(adj(2A))=242=576. The two expressions differ because adj(2A)=22adj(A): each cofactor is a 2×2 determinant and picks up 22, not 2. Check: det(4adjA)=43×9=576.
d)
Expand det(adjB) along row 1: 1(2−0)−1(2−0)+(−2)(−1−1)=2−2+4=4. By a), det(adjB)=det(B)2, so det(B)2=4 and detB=2 or −2. The adjugate cannot tell: each cofactor of a 3×3 is a 2×2 determinant, and negating the matrix multiplies each of them by (−1)2=1. So adj(−B)=adj(B) while det(−B)=−detB: the two candidates B and −B have the same adjugate and opposite determinants, and no computation on adj(B) alone can separate them.
e)
For an invertible M, adj(M)=det(M)M−1. Apply it to M=adj(B): adj(adjB)=det(B)2⋅detBB=det(B)B, using (det(B)B−1)−1=detBB. The nine cofactors of adj(B), transposed, give adj(adjB)=2−2−20422−20. Its top-left entry is 2=det(B)×1, so detB=2, and B=212−2−20422−20=1−1−10211−10. Finally B−1=21adj(B)=2121212121−21−101. Check one entry of BB−1: row 1 of B against column 1 of B−1 gives 21+0+21=1.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 8: Five statements to correct
7 answers to check
Each statement below was written by a student in a MATH 133 tutorial. Say whether it is TRUE or FALSE, correct every false statement with the smallest counterexample that settles it, and state the correct rule.
a) det(A+B)=detA+detB.
b) det(−A)=−detA for every square matrix A.
c) Since det(AB)=det(BA), the matrices AB and BA are equal.
d) When detA=0, Cramer's rule shows that the system Ax=b has no solution.
e) det(A−1BA)=detB holds only when A and B commute.
Show the solution
Answers
a)False: det(I2+I2)=4, not 2; no rule for a sum
b)False for even n: det(−I2)=1; the rule is (−1)ndetA
c)False: equal determinants, different matrices
d)False: Cramer does not apply; there may be none or infinitely many
e)False: it holds for every invertible A
a)
FALSE. Take A=B=I2: det(A+B)=det(2I2)=22=4, while detA+detB=1+1=2. The determinant is MULTIPLICATIVE, not additive: there is no formula for det(A+B) in terms of detA and detB. Correct statement: to find det(A+B), compute the matrix A+B first, then its determinant. Even when both determinants are zero, the sum can be invertible: (1000)+(0001)=I2.
b)
FALSE for even sizes. −A is the scalar −1 times an n×n matrix, so det(−A)=(−1)ndetA. For n=2, det(−I2)=(−1)(−1)−0=1=detI2, not −1. Correct statement: det(−A)=−detA when n is odd, and det(−A)=detA when n is even. This is the kn rule with k=−1, and it is the reason proofs about skew-symmetric matrices need n odd.
c)
FALSE. The first half is true, det(AB)=detAdetB=det(BA), and the conclusion does not follow: equal determinants do not make equal matrices. With A=(0010) and B=(0100), AB=(1000) and BA=(0001): both determinants are 0 and the matrices differ. Correct statement: AB and BA always have the same determinant, and are in general different matrices.
d)
FALSE. Cramer's rule has the hypothesis detA=0; when detA=0 it says nothing at all, because its formula would divide by zero. The system x+y=2, 2x+2y=4 has determinant 1⋅2−1⋅2=0 and infinitely many solutions, while x+y=2, 2x+2y=5 has the same determinant and none. Correct statement: when detA=0, the system has either no solution or infinitely many, and row reduction of the augmented matrix decides which.
e)
FALSE: it holds for every invertible A. det(A−1BA)=detA1detBdetA=detB, because the determinants are numbers and numbers commute even when the matrices do not. With A=(1011) and B=(1002), which do not commute, A−1BA=(10−12), a matrix different from B whose determinant is still 2. Correct statement: A−1BA and B always have the same determinant, whether or not A and B commute.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 9: Undoing a voxel remap exactly, without rounding
13 answers to check
A medical scanner stores a 3D image as a grid of voxels, each one at a position with INTEGER coordinates (i,j,k). A registration tool realigns two scans by moving every voxel from position v to position Kv, where K is a 3×3 matrix with integer entries, and it must be able to undo the move EXACTLY: sending Kv back to v with no rounding, since a rounded position is a different voxel. That requires K−1 to have integer entries too, and the adjugate formula says exactly when it does.
The remap is K=101212112, and two voxels flagged by a radiologist sit at positions (44,23,58) and (25,19,43) after the remap. The figure shows the same question in the plane.
a) Compute detK, naming the row operation you use, and explain why K−1 has integer entries before computing it.
b) Compute K−1 by the adjugate.
c) Find the original positions of the two flagged voxels, and check one of them.
d) A colleague proposes the remap L=1101−10001. Compute detL and the entry in row 1, column 2 of L−1, and say what this remap does to the voxel grid.
e) Prove that if a matrix with integer entries has an inverse with integer entries, its determinant is 1 or −1.
Show the solution
Answers
a)detK=1, so K−1=adj(K), an integer matrix
b)K−1=01−1−2101−11
c)(12,9,14) and (5,1,18)
d)detL=−2 and (L−1)12=21: some positions come back as half-voxels
e)detKdet(K−1)=1 with two integers, so detK=±1
a)
R3→R3−R1 does not change the determinant and turns row 3 into (0,0,1). Expanding along that row, with sign (−1)3+3=+1: detK=1⋅det(1021)=1. Now K−1=detK1adj(K)=adj(K), and every entry of the adjugate is a signed 2×2 determinant of INTEGERS, hence an integer. So K−1 is an integer matrix, and we know it before computing a single entry. That is the entire reason a remap with determinant ±1 is chosen: it can be undone in integer arithmetic, exactly.
b)
Cofactors, with the checkerboard signs. Row 1: C11=+(1⋅2−1⋅2)=0, C12=−(0⋅2−1⋅1)=1, C13=+(0⋅2−1⋅1)=−1. Row 2: C21=−(2⋅2−1⋅2)=−2, C22=+(1⋅2−1⋅1)=1, C23=−(1⋅2−2⋅1)=0. Row 3: C31=+(2⋅1−1⋅1)=1, C32=−(1⋅1−1⋅0)=−1, C33=+(1⋅1−2⋅0)=1. Transposing the matrix of cofactors: K−1=adj(K)=01−1−2101−11. Check row 1 of K against column 1 of K−1: 0+2−1=1.
c)
K−1(44,23,58)=(0−46+58,44+23−58,−44+0+58)=(12,9,14) and K−1(25,19,43)=(0−38+43,25+19−43,−25+0+43)=(5,1,18). Both are integer positions, as a) promised, so they are genuine voxels of the original scan and no rounding was needed. Re-applying the remap is the check: K(12,9,14)=(12+18+14,9+14,12+18+28)=(44,23,58), the flagged position. Had one of the two results come out as a fraction, the error would be in K−1, not in the scan: an integer matrix with determinant 1 cannot produce one.
d)
L is block diagonal: detL=det(111−1)×1=(−1−1)×1=−2. The entry in row 1, column 2 of L−1 is detLC21, indices swapped: deleting row 2 and column 1 leaves det(1001)=1, so C21=−1 and (L−1)12=−2−1=21. Now undo the remap on the voxel at (1,0,0): L−1(1,0,0) is the first column of L−1, (21,21,0), a HALF-voxel. So no voxel of the original grid is sent to (1,0,0): L leaves holes in the new grid, one position out of two in every plane, since (a+b,a−b) always has an even sum. The figure shows it in the plane: the shaded cell of the det −2 map has area 2 and a grid point at its centre that nothing reaches.
e)
Let K have integer entries and suppose K−1 does too. Every determinant of an integer matrix is an integer, since the cofactor expansion only adds and multiplies integers. From KK−1=I, detK×det(K−1)=1: two INTEGERS whose product is 1, so both are 1 or both are −1. Conversely, part a) showed that detK=±1 makes K−1=±adj(K) an integer matrix. So an integer matrix has an integer inverse exactly when its determinant is ±1.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 10: One current is all you need: Cramer's rule on a circuit
6 answers to check
In an electrical network, the loop currents I1, I2, I3, in amperes, satisfy one linear equation per loop. An engineer rarely needs all of them: often one branch carries a sensor or a fuse, and only its current matters. That is the situation where Cramer's rule beats elimination, since one unknown costs two determinants and nothing else.
In the network studied here, a 12 volt battery sits in loop 1 and a second source of E volts in loop 3. The loop equations are ⎩⎨⎧2I1−I2=12−I1+3I2−I3=0−I2+4I3=−E, and the sensor is in loop 2.
a) Compute the determinant of the coefficient matrix N, and explain why the system has exactly one solution whatever the value of E.
b) For E=6, find I2 alone by Cramer's rule.
c) Keep E as a letter and express I2 as a function of E. For which E does the sensor read zero?
d) For E=6, find I3 by Cramer's rule and interpret its sign.
e) Using one entry of N−1, say by how much I2 changes when E increases by one volt, and check against c).
Show the solution
Answers
a)detN=18=0, and N does not depend on E
b)I2=1836=2 A
c)I2=924−E; zero for E=24 V
d)I3=−1 A: 1 A flowing against the chosen direction
e)(N−1)23=91, so I2 drops by 91 A per volt
a)
N=2−10−13−10−14. Expand along row 1, which has a zero: detN=2det(3−1−14)−(−1)det(−10−14)+0=2(12−1)+(−4−0)=22−4=18. The source E appears only on the right-hand side, never in N, so detN=18=0 for every E: the matrix is invertible, the system has exactly one solution, and Cramer's rule applies whatever the sources are. That is a physical statement too: a network of resistors always settles into one set of currents.
b)
Replace column 2 by the right-hand side (12,0,−6) and expand along the new column 2, whose middle entry is 0: 12C12+(−6)C32. Here C12=−det(−10−14)=−(−4)=4 and C32=−det(2−10−1)=−(−2)=2, so the numerator is 48−12=36 and I2=1836=2 A. The cofactors of column 2 were taken from N itself, not from the modified matrix, since deleting column 2 removes exactly the column that was replaced.
c)
The same expansion with −E in place of −6 gives a numerator of 12×4+(−E)×2=48−2E, so I2=1848−2E=924−E. The sensor reads zero when E=24 volts. For E=6 this gives 918=2, as in b). Keeping E as a letter costs nothing with Cramer's rule, because the letter enters only through one column; with elimination it would travel through every row operation.
d)
Replace column 3 by (12,0,−6) and expand along it: 12C13+(−6)C33, with C13=+det(−103−1)=1 and C33=+det(2−1−13)=5. The numerator is 12−30=−18, so I3=−1 A. The negative sign is not an error: a current of 1 ampere flows in loop 3 in the direction OPPOSITE to the one chosen when the equations were written. Checking in the three equations with I1=7: 14−2=12, −7+6+1=0, −2−4=−6.
e)
Since I=N−1(12,0,−E), the current I2 is row 2 of N−1 against the right-hand side, and E enters through the entry in row 2, column 3: (N−1)23=detNC32=182=91, indices swapped. With −E in the third position, each extra volt changes I2 by −91 ampere. This is the slope of c), I2=924−9E, and the same row gives (N−1)21=18C12=92, the 924 coming from 12×92. One entry of the inverse is a sensitivity, and it costs one cofactor.
Points are earned before the solution; after it, you can keep practising.
Something missing from this set?A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.
Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space.
Rather not create an account? Write to me directly.