CalcPath
ProgressProblem setsFeedback
← Question sheet

Linear Algebra · Solutions

Matrices

12 questions · about 107 minutes

Work this sheet on paper, showing every step — the method is what is being marked, and the solutions are written so you can check your route rather than just your answer. Check shapes before every product, say “on the left” or “on the right” every time you multiply by an inverse, and name every result you use (“by the reversal rule”, “by the Invertible Matrix Theorem, statement (d)”, “by the one-sided inverse corollary”). No calculator is needed anywhere: every answer is an integer or a small fraction. Full worked solutions are on a separate page; each question also has its own reveal, so you can check one answer without seeing the rest.

  1. 1.Computation

    Let A=(24​−13​) and B=(10​5−2​). State the size of every intermediate matrix you form.

    1. (a)Compute 3A−2BT.
    2. (b)Write A=S+K with S symmetric and K skew-symmetric, and check both types by inspecting entries.
    3. (c)Compute AB and BA. Confirm that tr(AB)=tr(BA) even though AB=BA, and check whether either equals tr(A)tr(B).

    Solution

    (a) Transpose, scale, then subtract. Transposing swaps the off-diagonal entries: BT=(15​0−2​), still 2×2, so the combination is defined. Then

    3A=(612​−39​),2BT=(210​0−4​),3A−2BT=(42​−313​).

    (b) Use the formulas S=21​(A+AT) and K=21​(A−AT). With AT=(2−1​43​),

    A+AT=(43​36​),S=(223​​23​3​),A−AT=(05​−50​),K=(025​​−25​0​).

    S is symmetric because S12​=S21​=23​. K is skew-symmetric because K12​=−25​=−K21​ and its diagonal is zero, as skew-symmetry forces. Sanity check: S+K=(223​+25​​23​−25​3​)=(24​−13​)=A.

    (c) Row–column rule, four entries each. Both products are 2×2:

    AB=(2⋅1+(−1)⋅04⋅1+3⋅0​2⋅5+(−1)(−2)4⋅5+3(−2)​)=(24​1214​),BA=(1⋅2+5⋅40⋅2+(−2)4​1(−1)+5⋅30(−1)+(−2)3​)=(22−8​14−6​).

    The two products differ in three of their four entries, so AB=BA. Their traces are tr(AB)=2+14=16 and tr(BA)=22−6=16: equal, exactly as tr(XY)=tr(YX) guarantees. By contrast tr(A)tr(B)=5⋅(−1)=−5, which matches neither — the trace is linear, not multiplicative.

  2. 2.Proof

    Throughout, A is an n×n matrix and A=S+K is its symmetric–skew decomposition, S=21​(A+AT) and K=21​(A−AT). Argue from the definitions and the transpose and trace laws; testing on examples earns nothing.

    1. (a)Prove that a matrix which is both symmetric and skew-symmetric must be the zero matrix.
    2. (b)Prove that tr(K)=0 and hence tr(S)=tr(A). Give two different proofs that tr(K)=0: one entrywise, one using only the trace laws.
    3. (c)Prove that tr(SK)=0. (Write tr(SK) as a double sum using the row–column rule and swap the names of the two summation indices.) Deduce that tr(A2)=tr(S2)+tr(K2).

    Solution

    (a) Compare the two conditions entry by entry. Symmetric means Aij​=Aji​ for all i,j; skew-symmetric means Aij​=−Aji​. If both hold then Aji​=Aij​=−Aji​, so 2Aji​=0 and Aji​=0. Every entry is zero, so A=0. ■

    (This is the reason the decomposition is unique: two decompositions S+K=S′+K′ give S−S′=K′−K, a matrix that is symmetric by the left side and skew-symmetric by the right side, hence zero.)

    (b) Entrywise proof. Setting i=j in Kij​=−Kji​ gives Kii​=−Kii​, so every diagonal entry of K is 0 and tr(K)=∑i​Kii​=0.

    Proof from the trace laws. The trace is linear and tr(AT)=tr(A), so

    tr(K)=21​(tr(A)−tr(AT))=21​(tr(A)−tr(A))=0.

    Either way, linearity then gives tr(A)=tr(S+K)=tr(S)+tr(K)=tr(S). ■

    (c) Write the trace as a double sum. By the row–column rule, (SK)ii​=∑j​Sij​Kji​, so

    tr(SK)=i=1∑n​j=1∑n​Sij​Kji​.

    The names of the summation indices are arbitrary, so rename i↔j: the same number is ∑j​∑i​Sji​Kij​. Now use Sji​=Sij​ and Kij​=−Kji​:

    tr(SK)=i,j∑​Sji​Kij​=i,j∑​Sij​(−Kji​)=−tr(SK).

    Hence 2tr(SK)=0, so tr(SK)=0. ■ (A second route: tr(SK)=tr((SK)T)=tr(KTST)=tr(−KS)=−tr(KS)=−tr(SK), using tr(MT)=tr(M), the reversal rule, and tr(XY)=tr(YX).)

    Deduction. Expand without assuming anything commutes: A2=(S+K)(S+K)=S2+SK+KS+K2. Taking traces and using linearity, tr(A2)=tr(S2)+tr(SK)+tr(KS)+tr(K2). The middle terms are tr(SK)=0 and tr(KS)=tr(SK)=0, leaving tr(A2)=tr(S2)+tr(K2). ■

  3. 3.Computation

    Let A=(1−1​03​21​) and B=​201​1−14​​.

    1. (a)For each of AB, BA, A2, AAT, ATBT and BTAT, decide from the shapes alone whether it is defined, and give the size of each one that is.
    2. (b)Compute AB and BA, and verify that their traces agree.
    3. (c)Compute BTAT directly and compare it with (AB)T. Then, without multiplying anything out, say which transpose ATBT is equal to, and why.

    Solution

    (a) Match inner dimensions. A is 2×3 and B is 3×2, so AT is 3×2 and BT is 2×3.

    AB: (2×3​)(3​×2), defined, size 2×2. BA: (3×2​)(2​×3), defined, size 3×3. A2=AA: (2×3)(2×3), inner dimensions 3=2, undefined — only square matrices have powers. AAT: (2×3)(3×2), defined, 2×2. ATBT: (3×2)(2×3), defined, 3×3. BTAT: (2×3)(3×2), defined, 2×2.

    Note that ATBT is defined here only because A and B have reversed shapes, and it cannot be (AB)T, which is 2×2.

    (b) Row–column rule. For AB, row 1 of A is (1,0,2) and row 2 is (−1,3,1):

    AB=(1⋅2+0⋅0+2⋅1−1⋅2+3⋅0+1⋅1​1⋅1+0(−1)+2⋅4−1⋅1+3(−1)+1⋅4​)=(4−1​90​).

    For BA use the row rule: row i of BA is row i of B times A, a combination of the two rows of A. Row 1 of B is (2,1), giving 2(1,0,2)+1(−1,3,1)=(1,3,5); row 2 is (0,−1), giving −(−1,3,1)=(1,−3,−1); row 3 is (1,4), giving (1,0,2)+4(−1,3,1)=(−3,12,6). So

    BA=​11−3​3−312​5−16​​.

    Traces: tr(AB)=4+0=4 and tr(BA)=1−3+6=4. A 2×2 and a 3×3 matrix with the same trace, exactly as tr(XY)=tr(YX) promises for any compatible pair.

    (c) Compute, then compare. BT=(21​0−1​14​) and AT=​102​−131​​, so

    BTAT=(2⋅1+0⋅0+1⋅21⋅1+(−1)0+4⋅2​2(−1)+0⋅3+1⋅11(−1)+(−1)3+4⋅1​)=(49​−10​).

    Transposing the answer to (b) gives (AB)T=(49​−10​) — the same, confirming the reversal rule (AB)T=BTAT.

    For ATBT, apply the reversal rule to the other product: (BA)T=ATBT. So ATBT is the transpose of BA, namely the 3×3 matrix ​135​1−3−1​−3126​​. Nothing new needs multiplying; the rule tells you which product to transpose.

  4. 4.Proof

    Let A=(30​13​).

    1. (a)Compute A2 and A3.
    2. (b)Conjecture a formula for An valid for every integer n≥1 and prove it by induction on n.
    3. (c)Write A=3I+N and compute N2. Explain exactly why the binomial theorem may be applied to (3I+N)n even though matrix multiplication is not commutative, and use it to rederive your formula.

    Solution

    (a) Multiply directly.

    A2=(3⋅3+1⋅00​3⋅1+1⋅33⋅3​)=(90​69​),A3=A2A=(270​9⋅1+6⋅327​)=(270​2727​).

    (b) Conjecture. The diagonal is 3n; the corner runs 1,6,27, which is 1⋅30, 2⋅31, 3⋅32. So conjecture

    An=(3n0​n3n−13n​).

    Proof by induction. Base case n=1: the formula gives (30​13​)=A. Inductive step: suppose the formula holds for some n≥1. Since An+1=AnA by the definition of powers (associativity makes the bracketing irrelevant),

    An+1=(3n0​n3n−13n​)(30​13​)=(3n+10​3n+3n3n−13n+1​)=(3n+10​(n+1)3n3n+1​),

    because 3n+n3n=(n+1)3n. This is the formula with n+1 in place of n, so it holds for every n≥1. ■

    (c) Split off the identity. N=A−3I=(00​10​), and N2=(0⋅0+1⋅00​0⋅1+1⋅00​)=0. So N is nilpotent and every power Nk with k≥2 is zero.

    The binomial expansion of (X+Y)n is obtained by multiplying out n brackets and collecting terms, and collecting XYX together with XXY requires XY=YX. So the theorem is valid for matrices exactly when the two summands commute. Here X=3I and Y=N, and 3I commutes with everything: (3I)N=3N=N(3I) by the product laws r(AB)=(rA)B=A(rB) and IN=N=NI. Hence

    (3I+N)n=k=0∑n​(kn​)(3I)n−kNk=3nI+n3n−1N,

    since every term with k≥2 contains Nk=0. That is (3n0​03n​)+(00​n3n−10​), the formula from (b). Sanity check at n=3: 27I+3⋅9N=(270​2727​), matching (a).

  5. 5.Computation

    Let A=(41​72​) and B=(12​01​). Every time you multiply by an inverse, say whether it is on the left or on the right.

    1. (a)Show that A is invertible, find A−1, and verify A−1A=I before using it.
    2. (b)Solve AX=B and XA=B for the unknown 2×2 matrix X. Check each answer by substitution, and explain why the two solutions differ.
    3. (c)Now let P and Q be invertible n×n matrices. Solve (PXQ−1)T=Q for X, and verify your answer by substituting back.

    Solution

    (a) Determinant, then swap-and-negate. ad−bc=4⋅2−7⋅1=1=0, so A is invertible and

    A−1=11​(2−1​−74​)=(2−1​−74​).

    Verify: A−1A=(2⋅4−7⋅1−1⋅4+4⋅1​2⋅7−7⋅2−1⋅7+4⋅2​)=(10​01​).

    (b) Strip A from the correct side. For AX=B, multiply on the left by A−1: A−1AX=A−1B, so X=A−1B:

    X1​=(2−1​−74​)(12​01​)=(2−14−1+8​−74​)=(−127​−74​).

    Check: AX1​=(−48+49−12+14​−28+28−7+8​)=(12​01​)=B.

    For XA=B, multiply on the right by A−1: XAA−1=BA−1, so X=BA−1:

    X2​=(12​01​)(2−1​−74​)=(24−1​−7−14+4​)=(23​−7−10​).

    Check: X2​A=(8−712−10​14−1421−20​)=(12​01​)=B.

    The solutions differ because A−1B=BA−1: multiplication is not commutative, so “divide by A” is meaningless until you say which side. Each solution is unique, by the same left- or right-multiplication that produced it.

    (c) Undo the operations in reverse order. The outermost operation is the transpose, so remove it first: transposing both sides and using (MT)T=M gives PXQ−1=QT. Next multiply on the left by P−1: XQ−1=P−1QT. Finally multiply on the right by Q: X=P−1QTQ.

    Verify: PXQ−1=P(P−1QTQ)Q−1=(PP−1)QT(QQ−1)=QT, regrouping by associativity, and transposing gives (QT)T=Q. The order QTQ cannot be swapped to QQT: those are different matrices in general.

  6. 6.Computation

    Let A=​121​011​232​​.

    1. (a)Compute A−1 by row-reducing [A∣I]. Name every row operation, and say at which point you can already be certain that A is invertible.
    2. (b)Write each row operation you used as an elementary matrix E1​,E2​,… in the order performed. State the identity relating Ep​⋯E1​, A and I, explain from it why A−1=Ep​⋯E1​, and hence express A itself as a product of elementary matrices (you need not multiply that product out). Write E1−1​ explicitly.
    3. (c)Use A−1 to solve Ax=(1,0,1)T, and check the answer in the original system.

    Solution

    (a) Reduce, carrying I along.

    ​121​011​232​100​010​001​​R2​−2R1​, R3​−R1​​​100​011​2−10​1−2−1​010​001​​R3​−R2​​​100​010​2−11​1−21​01−1​001​​.

    The left block is now upper triangular with three nonzero pivots, so it has 3 pivot positions and the reduction can never produce a zero row: A is invertible (Invertible Matrix Theorem, statement (c)), before the upward sweep is even started. Now clear upward: R2​+R3​ and R1​−2R3​ give

    ​100​010​001​−1−11​20−1​−211​​,soA−1=​−1−11​20−1​−211​​.

    Sanity check two entries of AA−1: row 2 of A times column 1 of A−1 is 2(−1)+1(−1)+3(1)=0; row 3 times column 3 is 1(−2)+1(1)+2(1)=1.

    (b) One elementary matrix per operation, first operation nearest A. In the order performed,

    E1​=L21​(−2)=​1−20​010​001​​,E2​=L31​(−1),E3​=L32​(−1),E4​=L23​(1),E5​=L13​(−2),

    where Lij​(k) is I with k placed in position (i,j). Because a row operation is left multiplication by its elementary matrix, the reduction says

    E5​E4​E3​E2​E1​A=I.

    So M=E5​E4​E3​E2​E1​ satisfies MA=I. Multiplying this on the right by A−1, which exists by (a), gives M=A−1; alternatively, the one-sided inverse corollary says a left inverse of a square matrix is the inverse. That is exactly what the right block computed: it is MI=M.

    Inverting the product with the reversal rule and Lij​(k)−1=Lij​(−k),

    A=E1−1​E2−1​E3−1​E4−1​E5−1​=L21​(2)L31​(1)L32​(1)L23​(−1)L13​(2),E1−1​=​120​010​001​​.

    (Multiplying the five factors out does return A; the first factor alone already restores the 2 in position (2,1).)

    (c) Multiply on the left by A−1.

    x=A−1​101​​=​−1+0−2−1+0+11+0+1​​=​−302​​.

    Check: Ax=(−3+0+4, −6+0+6, −3+0+4)=(1,0,1), and this is the only solution because A is invertible.

  7. 7.Critique

    Three short arguments follow. Each contains an error. For each one, quote the exact sentence that is wrong, name the theorem or hypothesis being abused, and then give a correct treatment — which may or may not reach the same conclusion.

    1. (a)“Let A be a square matrix with A2=A. Then AA=AI. Cancelling the factor A on the left gives A=I. So the identity is the only idempotent matrix.”
    2. (b)“Let A=(10​01​11​) and B=​100​010​​. A direct computation gives AB=I2​. By the corollary that a one-sided inverse suffices, B=A−1, and therefore BA=I3​ as well.”
    3. (c)“Let A be 3×3 and suppose that the system Ax=(1,2,3)T has exactly one solution. Since Ax=b has a solution, statement (g) of the Invertible Matrix Theorem holds, so A is invertible.”

    Solution

    (a) The wrong sentence is “Cancelling the factor A on the left gives A=I.” There is no cancellation law for matrices: from AA=AI one may conclude A=I only by multiplying on the left by A−1, which requires A to be invertible — and nothing in the hypothesis says it is. The argument silently assumes the very thing that decides the question.

    Correct treatment: the deduction is valid if A is invertible, so the true statement is “an invertible idempotent matrix is the identity”. A singular idempotent need not be: A=(10​00​) satisfies A2=A and A=I. (It is singular, as it must be: Ax=0 has the nontrivial solution (0,1)T, so statement (d) fails.) The conclusion of the argument is false.

    (b) The wrong sentence is “By the corollary that a one-sided inverse suffices, B=A−1.” That corollary is a statement about n×n matrices — it is a consequence of the Invertible Matrix Theorem, which is a square-matrix theorem. Here A is 2×3 and B is 3×2; neither is square, so neither can be invertible in the first place (the definition AC=CA=I needs both products to have the same size), and the symbol A−1 has no meaning. The computation AB=I2​ is correct; the inference from it is not.

    Correct treatment: compute BA directly. Row i of BA is row i of B times A, so rows 1 and 2 of BA are rows 1 and 2 of A and row 3 is zero:

    BA=​100​010​110​​=I3​.

    Indeed BA could never be I3​: Ax=0 has the nonzero solution x=(1,1,−1)T (three unknowns, two equations), and then BAx=B0=0, whereas I3​x=x=0.

    (c) The wrong sentence is “Since Ax=b has a solution, statement (g) of the Invertible Matrix Theorem holds.” Statement (g) says Ax=b is solvable for every b∈R3; solvability for one particular b establishes nothing. (The matrix A=diag(1,1,0) with b=(1,2,0)T is a solvable system on a singular matrix.) The argument quotes the wrong statement — but its conclusion happens to be true, and the unused word “exactly” is what saves it.

    Correct treatment: use the uniqueness. Let x0​ be the unique solution and suppose Av=0. Then A(x0​+v)=Ax0​+Av=b+0=b, so x0​+v is also a solution, and uniqueness forces x0​+v=x0​, that is v=0. Hence Ax=0 has only the trivial solution, which is statement (d), and by the Invertible Matrix Theorem A is invertible. In words: a unique solution to any one consistent square system already certifies invertibility; a merely existing one does not.

  8. 8.Computation

    Let M=​1000​1100​2111​0323​​.

    1. (a)Partition M into four 2×2 blocks (A0​BD​), write down A, B and D, and explain — without row-reducing M — why M is invertible.
    2. (b)Compute M−1 using the block formula for a block upper triangular matrix. Keep the factors in the order the formula prescribes, and check one full row of MM−1.
    3. (c)Replace the zero block by C=(00​01​) to obtain N=(AC​BD​). Compute the Schur complement N/A=D−CA−1B and decide whether N is invertible, stating the criterion you use.

    Solution

    (a) Read off the blocks.

    A=(10​11​),B=(21​03​),D=(11​23​),

    and the lower-left block is 0. A block upper triangular matrix with square diagonal blocks is invertible if and only if its diagonal blocks are. Here detA=1⋅1−1⋅0=1=0 and detD=1⋅3−2⋅1=1=0, so both are invertible by the 2×2 criterion, and therefore M is invertible.

    (b) Assemble the formula M−1=(A−10​−A−1BD−1D−1​). Swap-and-negate (both determinants are 1):

    A−1=(10​−11​),D−1=(3−1​−21​).

    The corner block, left to right:

    A−1B=(10​−11​)(21​03​)=(11​−33​),A−1BD−1=(11​−33​)(3−1​−21​)=(60​−51​),

    so −A−1BD−1=(−60​5−1​) and

    M−1=​1000​−1100​−603−1​5−1−21​​.

    Check row 1 of MM−1: row 1 of M is (1,1,2,0), and against the four columns of M−1 it gives 1, −1+1=0, −6+0+6=0, 5−1−4=0. That is (1,0,0,0), the first row of I4​. (Row 2, (0,1,1,3), gives 0, 1, 0+3−3=0, −1−2+3=0 as well.)

    (c) Block elimination. From (b), A−1B=(11​−33​), so

    CA−1B=(00​01​)(11​−33​)=(01​03​),N/A=D−CA−1B=(11​23​)−(01​03​)=(10​20​).

    The criterion: since A is invertible, N=(ICA−1​0I​)(A0​BN/A​). The first factor is block triangular with identity diagonal blocks, hence invertible, so N is invertible exactly when the second factor is — that is, exactly when A and N/A are both invertible. Here N/A has a zero row, so it is singular, and therefore N is not invertible.

    Sanity check on N itself: the change put a single 1 in position (4,2), so row 4 of N is (0,1,1,3), identical to row 2. Two equal rows means R4​−R2​ produces a zero row, so N has fewer than 4 pivots — singular by the Invertible Matrix Theorem, exactly as the Schur complement predicted.

  9. 9.Critique

    Each argument below reaches a false conclusion. For each: identify the exact step that fails and name the law of numbers that is being applied to matrices without justification; produce an explicit counterexample to the conclusion, with the verifying computation; and state the correct theorem that survives, with proof.

    1. (a)“Suppose Q is both symmetric and orthogonal. Then QT=Q and QT=Q−1, so Q=Q−1, hence Q2=I. Taking square roots, Q=I. So the identity is the only symmetric orthogonal matrix.”
    2. (b)“Let N be nilpotent, say Nk=0. Taking k-th roots of both sides gives N=0. So the only nilpotent matrix is the zero matrix.”
    3. (c)“If P and Q are idempotent n×n matrices then so is PQ, because (PQ)2=P2Q2=PQ.”

    Solution

    (a) The failing step is “Taking square roots, Q=I.” Even for real numbers x2=1 has two solutions, and for matrices X2=I has infinitely many: there is no square-root law. Everything before that step is correct, so what has actually been proved is that a symmetric orthogonal matrix satisfies Q2=I.

    Counterexample: Q=(01​10​). It is symmetric by inspection, and QTQ=Q2=(0⋅0+1⋅11⋅0+0⋅1​0⋅1+1⋅01⋅1+0⋅0​)=I, so it is orthogonal — yet Q=I. (It is the reflection in the line y=x.)

    Correct theorem: a symmetric matrix is orthogonal if and only if Q2=I. Proof. If QT=Q and QTQ=I then Q2=QTQ=I. Conversely if QT=Q and Q2=I then QTQ=Q2=I, which is the definition of orthogonal. ■

    (b) The failing step is “Taking k-th roots of both sides gives N=0.” For numbers, xk=0 forces x=0 because there are no zero divisors; matrices have zero divisors, so a power of a nonzero matrix can vanish and no root-extraction is available.

    Counterexample: N=(00​10​)=0, and N2=(0⋅0+1⋅00​0⋅1+1⋅00​)=0.

    Correct theorem: nilpotent matrices are far from being zero in general, but they are always singular — a nilpotent matrix is never invertible. Proof. If Nk=0 and N were invertible, multiplying Nk=0 on the left by (N−1)k gives I=0, which is false for n≥1. ■

    (c) The failing step is “(PQ)2=P2Q2.” By definition (PQ)2=PQPQ, and rearranging the middle factors to PPQQ uses commutativity, QP=PQ, which is not given. This is the same error as writing (AB)2=A2B2.

    Counterexample: P=(10​00​) and Q=21​(11​11​). Both are idempotent (P2=P by inspection; Q2=41​(22​22​)=Q). Their product is PQ=21​(10​10​), and

    (PQ)2=41​(10​10​)(10​10​)=41​(10​10​)=21​PQ=PQ.

    So PQ is not idempotent.

    Correct theorem: if P and Q are idempotent and commute, then PQ is idempotent. Proof. (PQ)2=PQPQ=P(QP)Q=P(PQ)Q=P2Q2=PQ, where the third equality is exactly the commuting hypothesis and the last uses idempotence. ■

  10. 10.Proof

    Let A be an m×n matrix, so that ATA is square of size n×n. You may use that vTv=v12​+⋯+vm2​ for any v∈Rm.

    1. (a)Prove that the equations Ax=0 and ATAx=0 have exactly the same solutions x∈Rn.
    2. (b)Deduce that ATA is invertible if and only if the columns of A are linearly independent. Say which statements of the Invertible Matrix Theorem you use and to which matrix you apply them.
    3. (c)Let A=​101​210​​. Verify (b) in both directions for this A. Then show that AAT is not invertible by exhibiting a nonzero y with AATy=0, and explain why the same must happen for every 3×2 matrix.

    Solution

    (a) Two inclusions. If Ax=0, then multiplying on the left by AT gives ATAx=AT0=0. So every solution of the first equation solves the second.

    Conversely suppose ATAx=0. Multiply on the left by the 1×n row xT: xTATAx=0. By the reversal rule xTAT=(Ax)T, so with v=Ax∈Rm this reads

    vTv=v12​+v22​+⋯+vm2​=0.

    A sum of squares of real numbers is zero only when every term is zero, so v=0, that is Ax=0. The two solution sets coincide. ■

    (b) Apply the theorem to the square matrix ATA. Statements (a) and (d) of the Invertible Matrix Theorem, applied to the n×n matrix ATA, say: ATA is invertible if and only if ATAx=0 has only the trivial solution. By part (a) that is the same as Ax=0 having only the trivial solution. Finally, Ax=x1​a1​+⋯+xn​an​, so “Ax=0 only for x=0” is word for word the definition of the columns a1​,…,an​ being linearly independent — the (d)⇔(e) rewrite, which is valid for any shape of A because it is a rewrite, not a theorem about square matrices. Chaining the three equivalences: ATA invertible ⇔ columns of A independent. ■

    Note that the theorem is applied only to ATA, which is square; A itself may be any shape, and for m=n it is never invertible.

    (c) Both directions, then the other product. The columns (1,0,1)T and (2,1,0)T are independent: neither is a multiple of the other (the second has a nonzero middle entry, the first does not). And

    ATA=(12​01​10​)​101​210​​=(1+0+12+0+0​2+0+04+1+0​)=(22​25​),

    with det=2⋅5−2⋅2=6=0, so it is invertible — independent columns and invertible ATA, as (b) requires.

    For AAT (size 3×3), first find y=0 with ATy=0: the equations are y1​+y3​=0 and 2y1​+y2​=0. Taking y1​=1 gives y=(1,−2,−1)T. Then AATy=A(ATy)=A0=0 with y=0, so statement (d) fails for AAT and it is singular. As a direct check,

    AAT=​521​210​101​​,AATy=​5−4−12−2+01+0−1​​=0.

    This is forced for every 3×2 matrix A: AT is 2×3, so ATy=0 is a homogeneous system of 2 equations in 3 unknowns. Its echelon form has at most 2 pivots, hence at least one free variable, hence a nonzero solution y; and then AATy=A(ATy)=A0=0 by the same two-step argument. So AAT is always singular when A has more rows than columns, while ATA is invertible exactly when the columns are independent — which is why least squares works with ATA and never with AAT.

  11. 11.Proof

    Let A be an invertible n×n matrix and N a nilpotent n×n matrix with Nk=0, and suppose A and N commute: AN=NA.

    1. (a)Prove that A−1 also commutes with N: A−1N=NA−1.
    2. (b)Let M=A−1N. Prove by induction that Mj=(A−1)jNj for every j≥1, and conclude that M is nilpotent.
    3. (c)Prove that A−N is invertible, with (A−N)−1=(I+M+M2+⋯+Mk−1)A−1.
    4. (d)Apply this with A=2I3​ and N=​000​100​010​​ to compute (2I−N)−1 exactly, and check the first row of the product (2I−N)(2I−N)−1.

    Solution

    (a) Multiply the commuting relation by A−1 on both sides. Start from AN=NA. Multiplying on the left by A−1 gives N=A−1NA. Now multiply on the right by A−1: NA−1=A−1N(AA−1)=A−1N. ■

    (b) Induction on j. The case j=1 is the definition of M. Suppose Mj=(A−1)jNj. Then

    Mj+1=MjM=(A−1)jNjA−1N.

    By (a), A−1 commutes with N, hence with Nj (move A−1 past one factor of N at a time, j times): NjA−1=A−1Nj. So

    Mj+1=(A−1)jA−1NjN=(A−1)j+1Nj+1,

    which completes the induction. In particular Mk=(A−1)kNk=(A−1)k⋅0=0, so M is nilpotent. ■ (Without the commuting hypothesis this fails: M2=A−1NA−1N cannot be regrouped.)

    (c) Factor out A and use the finite geometric series. Since A is invertible, A−N=A(I−A−1N)=A(I−M). Let S=I+M+M2+⋯+Mk−1. Multiplying out, the sum telescopes:

    (I−M)S=(I+M+⋯+Mk−1)−(M+M2+⋯+Mk)=I−Mk=I,

    and the same computation in the other order gives S(I−M)=I (every factor here is a power of M, and powers of one matrix commute with each other). So I−M is invertible with inverse S. Then A−N=A(I−M) is a product of two invertible matrices, hence invertible, and by the reversal rule for inverses

    (A−N)−1=(I−M)−1A−1=(I+M+M2+⋯+Mk−1)A−1.■

    (d) Specialise. A=2I commutes with everything and A−1=21​I, so M=21​N. Powers of N: N2=​000​000​100​​ (the single 1 moves one place further from the diagonal) and N3=0, so k=3 and M2=41​N2. Therefore

    (2I−N)−1=(I+21​N+41​N2)21​I=21​​100​21​10​41​21​1​​=​21​00​41​21​0​81​41​21​​​.

    Check: 2I−N=​200​−120​0−12​​, and its first row (2,−1,0) against the three columns of the candidate inverse gives 2⋅21​=1, 2⋅41​−21​=0, 2⋅81​−41​=0: the first row of I, as required.

  12. 12.Sketch

    Work in homogeneous coordinates, writing the point (x,y) as (x,y,1)T. Let R be the 3×3 matrix of the counterclockwise rotation by 90∘ about the origin, and T the 3×3 matrix of the translation by (2,0).

    1. (a)Write down R and T, and compute both products TR and RT. State in words which motion each product performs, in which order.
    2. (b)Let U be the unit square with vertices O=(0,0), P=(1,0), Q=(1,1), S=(0,1). Compute the image of each vertex under TR and under RT, then draw one set of axes showing U and both image squares, labelling each image vertex with the name of the vertex it came from.
    3. (c)Each of TR and RT is a rotation by 90∘ about some point. Find the fixed point of each by solving a linear system, and mark both centres on your sketch. Explain what the sketch shows about TR versus RT.
    4. (d)Compute (TR)−1 by the reversal rule, without row reduction, and verify that it fixes the centre you found for TR.

    Solution

    (a) The two matrices and their products. In homogeneous coordinates a linear map sits in the top-left 2×2 block and a translation in the last column:

    R=​010​−100​001​​,T=​100​010​201​​.

    Multiplying (the rightmost factor acts first):

    TR=​010​−100​201​​,RT=​010​−100​021​​.

    For TR the only new work is the last column: row 1 of T times column 3 of R is 1⋅0+0⋅0+2⋅1=2. For RT, row 2 of R times column 3 of T is 1⋅2+0+0=2. So TR is “rotate, then translate”: (x,y)↦(2−y,x). And RT is “translate, then rotate”: (x,y)↦(−y,x+2). The products differ, so the two orders are different motions.

    (b) Images of the vertices. Under TR, (x,y)↦(2−y,x):

    O=(0,0)↦(2,0),P=(1,0)↦(2,1),Q=(1,1)↦(1,1),S=(0,1)↦(1,0).

    Under RT, (x,y)↦(−y,x+2):

    O↦(0,2),P↦(0,3),Q↦(−1,3),S↦(−1,2).

    The sketch must show three unit squares on one grid. The original U occupies [0,1]×[0,1]. The TR-image occupies [1,2]×[0,1], immediately to the right of U and sharing the edge x=1; its corner labels read S at (1,0), O at (2,0), P at (2,1), Q at (1,1) — the labels go round in the same counterclockwise sense as on U, because a rotation preserves orientation, but they have been turned a quarter turn. The RT-image occupies [−1,0]×[2,3], up and to the left, with O at (0,2), P at (0,3), Q at (−1,3), S at (−1,2). The two image squares do not overlap; the gap between them is the whole content of TR=RT.

    (c) Fixed points. A fixed point of TR satisfies (2−y,x)=(x,y), i.e. x=2−y and y=x, so x=y=1: the centre is (1,1), which is the vertex Q — consistent with (b), where Q stayed put. So TR is the rotation by 90∘ about (1,1); the image square is U spun a quarter turn about its top-right corner.

    A fixed point of RT satisfies (−y,x+2)=(x,y), i.e. x=−y and y=x+2, so y=−y+2, y=1, x=−1: the centre is (−1,1). Check: RT sends (−1,1) to (−1,−1+2)=(−1,1). So RT is the rotation by 90∘ about (−1,1), a point outside U, which is why the image landed far away.

    Mark both centres. The sketch shows that the two composites are the same kind of motion — a quarter turn — about different centres, two units apart. That is the geometry behind non-commutativity here: which operation runs first changes where the rotation centre ends up, not the amount of rotation.

    (d) Reverse the order and invert each factor. By the reversal rule (TR)−1=R−1T−1. Undoing a translation by (2,0) is translating by (−2,0), and undoing a 90∘ rotation is rotating by −90∘:

    T−1=​100​010​−201​​,R−1=RT=​0−10​100​001​​

    (the columns of R are orthonormal, so R is orthogonal and its inverse is its transpose), and

    (TR)−1=R−1T−1=​0−10​100​021​​,

    the (2,3) entry being −1⋅(−2)+0+0=2. Check that it is the inverse: (TR)(R−1T−1) has first row (0,−1,2) times the columns (0,−1,0)T, (1,0,0)T, (0,2,1)T, giving (1,0,−2+2)=(1,0,0); the other rows work the same way, so the product is I3​. As a map, (TR)−1 sends (x,y)↦(y,2−x), and at the centre (1,1) this gives (1,2−1)=(1,1): the inverse fixes the same point, as it must — undoing a rotation about (1,1) is rotating the other way about (1,1).

← Back to the question sheet

CalcPath·Free university mathematics

SubjectsProblem setsProgressFeedbackAbout