BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Problem Set 2: inverses, A = LU, permutations and subspaces

Seven problems of our own on Lectures 3, 4 and 5: inverses by Gauss–Jordan elimination, the inverse of a product, the factorization A = LU and A = LDU, the elimination matrix E against L, the cost of elimination, row exchanges with PA = LU, permutation matrices, transposes and symmetric products, vector spaces, subspaces and the column space.

You need this first

Full reading path (10 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. The geometry of linear equations (18.06)
  7. Elimination with matrices (18.06)
  8. Matrix multiplication and inverse matrices (18.06)
  9. Factorization into A = LU (18.06)
  10. Transposes, permutations and vector spaces (18.06)
On this page · 9 sections
  1. How to answer
  2. What you need from the lessons
  3. Problem 1
  4. Problem 2
  5. Problem 3
  6. Problem 4
  7. Problem 5
  8. Problem 6
  9. Problem 7

This set practises three lessons: the inverse part of matrix multiplication and inverse matrices (Lecture 3), the factorization A = LU (Lecture 4) and transposes, permutations and vector spaces (Lecture 5). The ways of multiplying matrices in Lecture 3 belong to Problem Set 1.

MIT's 18.06 problem sets assign exercises from a textbook that is not openly licensed, so this set is made of our own problems on the same lectures, in MIT's lecture order. No MIT or textbook problem is used: every matrix and every number below is ours, and so are the hints and the solutions. The formulas come from the lessons and from the lecture transcripts they cite.

How to answer#

Work each problem on paper first. Then type or choose your result in the answer box and press Check.

A number box wants a decimal number, not a fraction: write 0.750.75, not 3/43/4. Every number box accepts any value within 0.010.01 of the exact one, so give at least two decimal places when the answer is not a whole number (Problem 4 says its own tolerance). Unless a box asks for more digits, give 3 significant figures and keep 4 in intermediate steps; an answer with only 2 significant figures may or may not be accepted. A matrix cannot be typed: a box asks for one of its entries, or you choose from a list. Entries are numbered by row, then column, starting from 1: the (2,3)(2, 3) entry is in the second row, third column.

A formula box takes plain typing, for example (2*t - 1)/(t + 3), and accepts every correct way of writing the answer. Type the multiplier ℓ21\ell_{21} as l21, and likewise l31 and l32.

Some parts ask you to show something. They have no answer box: write your argument, then open the solution and mark yourself. MIT gives no points for these problems: the points here (100 in all) and their split between the parts are ours. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Your score is kept in this browser only.

What you need from the lessons#

Inverses (Lecture 3). A square matrix AA is invertible when some matrix A−1A^{-1} gives

The inverse
A−1A=I=AA−1A^{-1}A = I = AA^{-1}
In words

capital A to the power minus 1 capital A equals capital I equals capital A capital A to the power minus 1

If Ax=0Ax = 0 for some nonzero xx, there is no inverse (pp. 14–16). Gauss–Jordan finds A−1A^{-1} by eliminating on the augmented matrix [A    I][A\;\; I]: downwards as usual, then upwards, then dividing each row by its pivot, until the left half is II (pp. 19–22). All the steps together are one matrix EE, and EA=IEA = I says E=A−1E = A^{-1}:

Why Gauss–Jordan works
E [A    I]=[EA    E]=[I    A−1]E\,[A\;\; I] = [EA\;\; E] = [I\;\; A^{-1}]
In words

E ( capital A capital I ) equals ( E capital A E ) equals ( capital I capital A to the power minus 1 )

Products, transposes and A = LU (Lecture 4). Inverses and transposes of a product come in reverse order, and inverting and transposing can be done in either order:

Inverse of a product
(AB)−1=B−1A−1,(A−1)T=(AT)−1(AB)^{-1} = B^{-1}A^{-1}, \qquad (A^{-1})^T = (A^T)^{-1}
In words

( capital A capital B ) to the power minus 1 equals capital B to the power minus 1 capital A to the power minus 1, ( capital A to the power minus 1 )^ capital T equals ( capital A ^ capital T ) to the power minus 1

Elimination without row exchanges is E32E31E21A=UE_{32}E_{31}E_{21}A = U, where E21E_{21} subtracts the multiplier ℓ21\ell_{21} times row 1 from row 2, E31E_{31} subtracts ℓ31\ell_{31} times row 1 from row 3, and E32E_{32} subtracts ℓ32\ell_{32} times row 2 from row 3. Taking the inverses across, in reverse order, gives

A=LUA = LU
A=E21−1E31−1E32−1 U=LUA = E_{21}^{-1}E_{31}^{-1}E_{32}^{-1}\,U = LU
In words

capital A equals E two one to the power minus 1 E three one to the power minus 1 E three two to the power minus 1 U equals L U

LL is lower triangular with ones on its diagonal and the multipliers below it, untouched; the forward product E=E32E31E21E = E_{32}E_{31}E_{21} mixes them (pp. 9–12). UU has the pivots on its diagonal; dividing each row of UU by its pivot gives A=LDUA = LDU, with the pivots in the diagonal matrix DD (pp. 6–7). Elimination on a full n×nn \times n matrix costs about

Cost of elimination
n2+(n−1)2+⋯+22+12≈13n3n^2 + (n - 1)^2 + \cdots + 2^2 + 1^2 \approx \tfrac13n^3
In words

n squared plus the quantity n minus 1, all squared plus and so on plus 2 squared plus 1 squared is approximately one third n cubed

operations (a multiply and a subtract each), and each right-hand side afterwards about n2n^2 (p. 19).

Permutations and transposes (Lecture 5). A permutation matrix PP is the identity with its rows reordered; there are n!n! of size n×nn \times n (pp. 3–4; first met at the end of Lecture 4, pp. 20–23). With row exchanges, elimination is PA=LUPA = LU, and every permutation has PTP=IP^TP = I:

Row exchanges and permutations
PA=LU,P−1=PTPA = LU, \qquad P^{-1} = P^T
In words

capital P capital A equals L U, capital P to the power minus 1 equals capital P ^ capital T

The transpose flips a matrix across its diagonal, (AT)ij=Aji(A^T)_{ij} = A_{ji}; AA is symmetric when AT=AA^T = A, and RTRR^TR is symmetric for every rectangular RR (pp. 5–9).

Vector spaces (Lecture 5). A vector space is closed under addition and under multiplication by every real number, so every linear combination stays inside; every vector space and every subspace contains the zero vector (pp. 10–16). The subspaces of R3\mathrm{R}^3 are R3\mathrm{R}^3, the planes and the lines through the origin, and the zero vector alone (p. 17). The column space C(A)C(A) is the set of all combinations of the columns of AA (pp. 18–20).

Problem 1#

Problem

Inverses by Gauss–Jordan

18 points

Take

A matrix to invert
A=(110231122)A = \begin{pmatrix} 1 & 1 & 0 \\ 2 & 3 & 1 \\ 1 & 2 & 2 \end{pmatrix}
In words

capital A equals 1 1 0; 2 3 1; 1 2 2

(a)8 points

Find A−1A^{-1} by Gauss–Jordan elimination on [A    I][A\;\; I]. Give its (1,1)(1, 1), (1,2)(1, 2) and (2,3)(2, 3) entries.

Hint

Clear the first column below the first pivot, then the second column below the second pivot. Apply every row operation to all six columns of [A    I][A\;\; I].

Hint

When the left half is upper triangular, go upwards: use row 3 to clear the entry above the third pivot, then row 2 to clear the entry above the second pivot. Here every pivot is 11, so no division is needed at the end.

Solution

The idea. Elimination that turns AA into II turns II into A−1A^{-1}, because all the steps together are E=A−1E = A^{-1}.

Downwards

Subtract 22 times row 1 from row 2 and 11 times row 1 from row 3; then subtract row 2 from row 3:

Elimination downwards
(110100231010122001)→(110100011−210012−101)→(110100011−2100011−11)\left(\begin{array}{cccccc} 1 & 1 & 0 & 1 & 0 & 0 \\ 2 & 3 & 1 & 0 & 1 & 0 \\ 1 & 2 & 2 & 0 & 0 & 1 \end{array}\right) \to \left(\begin{array}{cccccc} 1 & 1 & 0 & 1 & 0 & 0 \\ 0 & 1 & 1 & -2 & 1 & 0 \\ 0 & 1 & 2 & -1 & 0 & 1 \end{array}\right) \to \left(\begin{array}{cccccc} 1 & 1 & 0 & 1 & 0 & 0 \\ 0 & 1 & 1 & -2 & 1 & 0 \\ 0 & 0 & 1 & 1 & -1 & 1 \end{array}\right)
In words

( c c c c c c 1 1 0 1 0 0; 2 3 1 0 1 0; 1 2 2 0 0 1 ) goes to ( c c c c c c 1 1 0 1 0 0; 0 1 1 minus 2 1 0; 0 1 2 minus 1 0 1 ) goes to ( c c c c c c 1 1 0 1 0 0; 0 1 1 minus 2 1 0; 0 0 1 1 minus 1 1 )

Source: 18.06 Lecture 3 transcript (Prof. Strang), pp. 19–21 (the method; the numbers are our own)

The pivots are 11, 11 and 11.

Upwards

Subtract row 3 from row 2, then row 2 from row 1:

Elimination upwards
→(110100010−32−10011−11)→(1004−21010−32−10011−11)\to \left(\begin{array}{cccccc} 1 & 1 & 0 & 1 & 0 & 0 \\ 0 & 1 & 0 & -3 & 2 & -1 \\ 0 & 0 & 1 & 1 & -1 & 1 \end{array}\right) \to \left(\begin{array}{cccccc} 1 & 0 & 0 & 4 & -2 & 1 \\ 0 & 1 & 0 & -3 & 2 & -1 \\ 0 & 0 & 1 & 1 & -1 & 1 \end{array}\right)
In words

goes to ( c c c c c c 1 1 0 1 0 0; 0 1 0 minus 3 2 minus 1; 0 0 1 1 minus 1 1 ) goes to ( c c c c c c 1 0 0 4 minus 2 1; 0 1 0 minus 3 2 minus 1; 0 0 1 1 minus 1 1 )

Source: 18.06 Lecture 3 transcript (Prof. Strang), pp. 21–22 (the method; the numbers are our own)

So

The inverse
A−1=(4−21−32−11−11)A^{-1} = \begin{pmatrix} 4 & -2 & 1 \\ -3 & 2 & -1 \\ 1 & -1 & 1 \end{pmatrix}
In words

capital A to the power minus 1 equals 4 minus 2 1; minus 3 2 minus 1; 1 minus 1 1

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 1(a) (our own solution)

The (1,1)(1, 1) entry is 44, the (1,2)(1, 2) entry −2-2 and the (2,3)(2, 3) entry −1-1.

Check

Multiply back. Row 1 of AA times the columns of A−1A^{-1}: 4−3=14 - 3 = 1, −2+2=0-2 + 2 = 0, 1−1=01 - 1 = 0. Row 2: 8−9+1=08 - 9 + 1 = 0, −4+6−1=1-4 + 6 - 1 = 1, 2−3+1=02 - 3 + 1 = 0. Row 3: 4−6+2=04 - 6 + 2 = 0, −2+4−2=0-2 + 4 - 2 = 0, 1−2+2=11 - 2 + 2 = 1. So AA−1=IAA^{-1} = I.

(b)4 points

Use A−1A^{-1} to solve Ax=bAx = b for b=(1,0,2)b = (1, 0, 2). Give x2x_2, the second component of xx.

Hint

Multiply both sides of Ax=bAx = b by A−1A^{-1} on the left. Only row 2 of A−1A^{-1} is needed for x2x_2.

Solution

The idea. x=A−1bx = A^{-1}b: each component of xx is a row of A−1A^{-1} times bb.

Multiply

The solution by the inverse
x=A−1b=(4−21−32−11−11)(102)=(4+2−3−21+2)=(6−53)x = A^{-1}b = \begin{pmatrix} 4 & -2 & 1 \\ -3 & 2 & -1 \\ 1 & -1 & 1 \end{pmatrix}\begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix} = \begin{pmatrix} 4 + 2 \\ -3 - 2 \\ 1 + 2 \end{pmatrix} = \begin{pmatrix} 6 \\ -5 \\ 3 \end{pmatrix}
In words

x equals capital A to the power minus 1 b equals 4 minus 2 1; minus 3 2 minus 1; 1 minus 1 1 1; 0; 2 equals 4 plus 2; minus 3 minus 2; 1 plus 2 equals 6; minus 5; 3

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 1(b) (our own solution)

Check

Ax=(6−5,  12−15+3,  6−10+6)=(1,0,2)=bAx = (6 - 5,\; 12 - 15 + 3,\; 6 - 10 + 6) = (1, 0, 2) = b. For a single right-hand side, elimination on [A    b][A\;\; b] is cheaper than finding A−1A^{-1} first; the inverse pays off only when it is already known.

(c)6 points

For a number tt, take

A matrix with a parameter
B=(1t25)B = \begin{pmatrix} 1 & t \\ 2 & 5 \end{pmatrix}
In words

capital B equals 1 t; 2 5

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 1(c) (our own problem)

Run Gauss–Jordan on [B    I][B\;\; I]. For which tt does it break down, so that BB has no inverse? For the other values of tt, give the (1,1)(1, 1) entry of B−1B^{-1} as a formula in tt.

Hint

After the first step the second pivot is a formula in tt. Gauss–Jordan breaks down when it is zero.

Hint

Divide row 2 by the second pivot, then subtract tt times row 2 from row 1. Put the two terms of the (1,1)(1, 1) entry over one denominator.

Solution

The idea. The second pivot decides everything: if it is zero there is no inverse, and otherwise Gauss–Jordan runs to the end.

The second pivot

Subtract 22 times row 1 from row 2:

First step
(1t102501)→(1t1005−2t−21)\left(\begin{array}{cccc} 1 & t & 1 & 0 \\ 2 & 5 & 0 & 1 \end{array}\right) \to \left(\begin{array}{cccc} 1 & t & 1 & 0 \\ 0 & 5 - 2t & -2 & 1 \end{array}\right)
In words

( c c c c 1 t 1 0; 2 5 0 1 ) goes to the quantity c c c c 1 t 1 0; 0 5 minus 2 t minus 2 1

Source: 18.06 Lecture 3 transcript (Prof. Strang), pp. 21–22 (the method; the matrix is our own)

The second pivot 5−2t5 - 2t is zero for t=2.5t = 2.5. Then the columns (1,2)(1, 2) and (2.5,5)(2.5, 5) lie on one line, and B(2.5,−1)=(0,0)B(2.5, -1) = (0, 0): a nonzero solution of Bx=0Bx = 0, so BB has no inverse (Lecture 3 transcript, pp. 14–16).

Upwards

For t≠2.5t \neq 2.5, divide row 2 by 5−2t5 - 2t, then subtract tt times it from row 1:

The inverse with a parameter
B−1=(1+2t5−2t−t5−2t−25−2t15−2t)=15−2t(5−t−21)B^{-1} = \begin{pmatrix} 1 + \dfrac{2t}{5 - 2t} & \dfrac{-t}{5 - 2t} \\ \dfrac{-2}{5 - 2t} & \dfrac{1}{5 - 2t} \end{pmatrix} = \frac{1}{5 - 2t}\begin{pmatrix} 5 & -t \\ -2 & 1 \end{pmatrix}
In words

capital B to the power minus 1 equals 1 plus 2 t over the quantity 5 minus 2 t, minus t over the quantity 5 minus 2 t; minus 2 over the quantity 5 minus 2 t, 1 over the quantity 5 minus 2 t, equals 1 over the quantity 5 minus 2 t, 5 minus t; minus 2 1

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 1(c) (our own solution)

The (1,1)(1, 1) entry is 5/(5−2t)5/(5 - 2t).

Check

For t=0t = 0 the matrix is lower triangular and the formula gives the (1,1)(1, 1) entry 5/5=15/5 = 1, as it must. For t=2t = 2: B−1=(5−2−21)B^{-1} = \begin{pmatrix} 5 & -2 \\ -2 & 1 \end{pmatrix}, and row 1 of BB times its columns gives 5−4=15 - 4 = 1 and −2+2=0-2 + 2 = 0.

Problem 2#

Problem

The inverse of a product

14 points

Take

Two matrices
A=(2111),B=(1031)A = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}, \qquad B = \begin{pmatrix} 1 & 0 \\ 3 & 1 \end{pmatrix}
In words

capital A equals 2 1; 1 1, capital B equals 1 0; 3 1

(a)6 points

Find A−1A^{-1} and B−1B^{-1}, and from them (AB)−1(AB)^{-1}. Give its (2,1)(2, 1) and (2,2)(2, 2) entries.

Hint

BB is an elimination matrix: its inverse undoes its one row operation. A−1A^{-1} comes from Gauss–Jordan on a 2×22 \times 2 matrix.

Hint

The order of the factors matters: undo the factor that acted last first.

Solution

The idea. (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}, in reverse order.

The two inverses

BB adds 33 times row 1 to row 2, so B−1B^{-1} subtracts it: B−1=(10−31)B^{-1} = \begin{pmatrix} 1 & 0 \\ -3 & 1 \end{pmatrix}. For AA, Gauss–Jordan subtracts 12\frac12 of row 1 from row 2, which leaves the second pivot 12\frac12, and ends with

The inverse of A
A−1=(1−1−12)A^{-1} = \begin{pmatrix} 1 & -1 \\ -1 & 2 \end{pmatrix}
In words

capital A to the power minus 1 equals 1 minus 1; minus 1 2

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 2(a) (our own solution)

Check: AA−1=(2−1−2+21−1−1+2)=IAA^{-1} = \begin{pmatrix} 2 - 1 & -2 + 2 \\ 1 - 1 & -1 + 2 \end{pmatrix} = I.

Reverse order

The inverse of AB
(AB)−1=B−1A−1=(10−31)(1−1−12)=(1−1−45)(AB)^{-1} = B^{-1}A^{-1} = \begin{pmatrix} 1 & 0 \\ -3 & 1 \end{pmatrix}\begin{pmatrix} 1 & -1 \\ -1 & 2 \end{pmatrix} = \begin{pmatrix} 1 & -1 \\ -4 & 5 \end{pmatrix}
In words

( capital A capital B ) to the power minus 1 equals capital B to the power minus 1 capital A to the power minus 1 equals 1 0; minus 3 1 1 minus 1; minus 1 2 equals 1 minus 1; minus 4 5

Source: 18.06 Lecture 4 transcript (Prof. Strang), pp. 1–2 (the rule; the numbers are our own)

The (2,1)(2, 1) entry is −4-4 and the (2,2)(2, 2) entry 55.

Check

AB=(2+311+31)=(5141)AB = \begin{pmatrix} 2 + 3 & 1 \\ 1 + 3 & 1 \end{pmatrix} = \begin{pmatrix} 5 & 1 \\ 4 & 1 \end{pmatrix}, and ABAB times our answer is (5−4−5+54−4−4+5)=I\begin{pmatrix} 5 - 4 & -5 + 5 \\ 4 - 4 & -4 + 5 \end{pmatrix} = I.

(b)4 points

Now find (BA)−1(BA)^{-1}. Give its (1,1)(1, 1) and (2,1)(2, 1) entries.

Hint

Apply the same rule to BABA: whose inverse comes first?

Solution

The idea. (BA)−1=A−1B−1(BA)^{-1} = A^{-1}B^{-1}: the matrix that a wrong order would give for (AB)−1(AB)^{-1}.

Multiply

The inverse of BA
(BA)−1=A−1B−1=(1−1−12)(10−31)=(4−1−72)(BA)^{-1} = A^{-1}B^{-1} = \begin{pmatrix} 1 & -1 \\ -1 & 2 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ -3 & 1 \end{pmatrix} = \begin{pmatrix} 4 & -1 \\ -7 & 2 \end{pmatrix}
In words

( capital B capital A ) to the power minus 1 equals capital A to the power minus 1 capital B to the power minus 1 equals 1 minus 1; minus 1 2 1 0; minus 3 1 equals 4 minus 1; minus 7 2

Source: 18.06 Lecture 4 transcript (Prof. Strang), pp. 1–2 (the rule; the numbers are our own)

Check

BA=(216+13+1)=(2174)BA = \begin{pmatrix} 2 & 1 \\ 6 + 1 & 3 + 1 \end{pmatrix} = \begin{pmatrix} 2 & 1 \\ 7 & 4 \end{pmatrix}, and BABA times our answer is (8−7−2+228−28−7+8)=I\begin{pmatrix} 8 - 7 & -2 + 2 \\ 28 - 28 & -7 + 8 \end{pmatrix} = I. ABAB and BABA are different matrices, so their inverses are different too.

(c)4 points

Show that if AA, BB and CC are invertible n×nn \times n matrices, then (ABC)−1=C−1B−1A−1(ABC)^{-1} = C^{-1}B^{-1}A^{-1}. Show also that the inverse of an invertible symmetric matrix is symmetric.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

For the first claim, multiply ABCABC by the proposed inverse and move the parentheses.

Hint

For the second, use (A−1)T=(AT)−1(A^{-1})^T = (A^T)^{-1} together with AT=AA^T = A.

Solution

The idea. The inverse is checked by multiplying; the transpose rule reverses order just as the inverse rule does.

Three factors

Inverse of three factors
(ABC)(C−1B−1A−1)=AB(CC−1)B−1A−1=A(BB−1)A−1=AA−1=I(ABC)(C^{-1}B^{-1}A^{-1}) = AB(CC^{-1})B^{-1}A^{-1} = A(BB^{-1})A^{-1} = AA^{-1} = I
In words

( capital A capital B capital C )( capital C to the power minus 1 capital B to the power minus 1 capital A to the power minus 1 ) equals capital A capital B ( capital C capital C to the power minus 1 ) capital B to the power minus 1 capital A to the power minus 1 equals capital A ( capital B capital B to the power minus 1 ) capital A to the power minus 1 equals capital A capital A to the power minus 1 equals capital I

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 2(c) (our own solution)

The innermost pair cancels first, then the next. The product in the other order gives II in the same way, so C−1B−1A−1C^{-1}B^{-1}A^{-1} is the inverse.

Symmetric inverse

Let AT=AA^T = A. Then (A−1)T=(AT)−1=A−1(A^{-1})^T = (A^T)^{-1} = A^{-1} (Lecture 4 transcript, p. 3): A−1A^{-1} equals its own transpose.

Check

The AA of this problem is symmetric, and its inverse (1−1−12)\begin{pmatrix} 1 & -1 \\ -1 & 2 \end{pmatrix} from part (a) is symmetric too. BB is not symmetric, and neither is B−1B^{-1}.

Problem 3#

Problem

A = LU for a 3 × 3 matrix

20 points

Take

A matrix to factor
A=(211453−255)A = \begin{pmatrix} 2 & 1 & 1 \\ 4 & 5 & 3 \\ -2 & 5 & 5 \end{pmatrix}
In words

capital A equals 2 1 1; 4 5 3; minus 2 5 5

No row exchanges are needed.

(a)7 points

Eliminate to find UU and the multipliers ℓ21\ell_{21}, ℓ31\ell_{31} and ℓ32\ell_{32}, as in "What you need". Give ℓ31\ell_{31}, ℓ32\ell_{32} and the third pivot.

Hint

A multiplier is the entry to be cleared divided by the pivot above it. A negative multiplier means a row is added, not subtracted.

Hint

Compute ℓ32\ell_{32} from the new row 2 and the new row 3, after the first column has been cleared, not from the original rows.

Solution

The idea. Clear column 1 with the first pivot, then column 2 with the second; the multipliers go straight into LL.

Column 1

ℓ21=4/2=2\ell_{21} = 4/2 = 2: row 2 minus 22 times row 1 is (0,3,1)(0, 3, 1). ℓ31=−2/2=−1\ell_{31} = -2/2 = -1: row 3 minus (−1)(-1) times row 1, that is row 3 plus row 1, is (0,6,6)(0, 6, 6).

Column 2

ℓ32=6/3=2\ell_{32} = 6/3 = 2: (0,6,6)−2(0,3,1)=(0,0,4)(0, 6, 6) - 2(0, 3, 1) = (0, 0, 4). So

The factors
L=(100210−121),U=(211031004)L = \begin{pmatrix} 1 & 0 & 0 \\ 2 & 1 & 0 \\ -1 & 2 & 1 \end{pmatrix}, \qquad U = \begin{pmatrix} 2 & 1 & 1 \\ 0 & 3 & 1 \\ 0 & 0 & 4 \end{pmatrix}
In words

L equals 1 0 0; 2 1 0; minus 1 2 1, U equals 2 1 1; 0 3 1; 0 0 4

Source: 18.06 Lecture 4 transcript (Prof. Strang), pp. 11–12 (the multipliers go into L; the numbers are our own)

The pivots are 22, 33 and 44.

Check

Multiply back, a row at a time: row 2 of LULU is 2(2,1,1)+(0,3,1)=(4,5,3)2(2, 1, 1) + (0, 3, 1) = (4, 5, 3), and row 3 is −(2,1,1)+2(0,3,1)+(0,0,4)=(−2,5,5)-(2, 1, 1) + 2(0, 3, 1) + (0, 0, 4) = (-2, 5, 5). Both are rows of AA.

(b)5 points

The forward product E=E32E31E21E = E_{32}E_{31}E_{21} takes AA to UU. Find its (3,1)(3, 1) entry for this AA. Then find the (3,1)(3, 1) entry of EE for any multipliers ℓ21\ell_{21}, ℓ31\ell_{31}, ℓ32\ell_{32}, as a formula.

Hint

Follow what happens to row 3: first ℓ31\ell_{31} times row 1 is taken off it, then ℓ32\ell_{32} times the new row 2, which itself is row 2 minus ℓ21\ell_{21} times row 1.

Hint

The (3,1)(3, 1) entry of EE is the coefficient of the original row 1 in the final row 3.

Solution

The idea. EE is L−1L^{-1}, and in the forward order the multipliers interfere: row 1 reaches row 3 twice, directly and through row 2.

Follow row 3

After the three steps, row 3 is

The final row 3
r3−ℓ31r1−ℓ32(r2−ℓ21r1)=(ℓ21ℓ32−ℓ31) r1−ℓ32 r2+r3r_3 - \ell_{31}r_1 - \ell_{32}(r_2 - \ell_{21}r_1) = (\ell_{21}\ell_{32} - \ell_{31})\,r_1 - \ell_{32}\,r_2 + r_3
In words

r sub 3 minus ell 3 1 r one minus ell 3 2 the quantity r two minus ell 2 1 r one, equals the quantity ell 2 1 ell 3 2 minus ell 3 1, r one minus ell 3 2 r two plus r sub 3

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 3(b) (our own solution)

where r1,r2,r3r_1, r_2, r_3 are the rows of AA. Its coefficients form row 3 of EE. The (3,1)(3, 1) entry is ℓ21ℓ32−ℓ31\ell_{21}\ell_{32} - \ell_{31}, and for this AA it is 2⋅2−(−1)=52 \cdot 2 - (-1) = 5.

Check

So E=(100−2105−21)E = \begin{pmatrix} 1 & 0 & 0 \\ -2 & 1 & 0 \\ 5 & -2 & 1 \end{pmatrix}, and EL=IEL = I: row 3 of EE times the columns of LL gives 5−4−1=05 - 4 - 1 = 0, −2+2=0-2 + 2 = 0 and 11. With ℓ31=0\ell_{31} = 0 the formula gives ℓ21ℓ32\ell_{21}\ell_{32}: the 1010 that the lesson finds in EE for the multipliers 22 and 55 (Lecture 4 transcript, pp. 9–10).

(c)3 points

Write A=LDU′A = LDU', where DD is diagonal and U′U' is upper triangular with ones on its diagonal. Give the (2,3)(2, 3) entry of U′U'.

Hint

DD holds the pivots. Divide each row of UU by its pivot.

Solution

The idea. Pulling the pivots out of UU leaves ones on its diagonal.

Divide by the pivots

U=DU′U = DU'
U=(200030004)(10.50.5011/3001)=DU′U = \begin{pmatrix} 2 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 4 \end{pmatrix}\begin{pmatrix} 1 & 0.5 & 0.5 \\ 0 & 1 & 1/3 \\ 0 & 0 & 1 \end{pmatrix} = DU'
In words

U equals 2 0 0; 0 3 0; 0 0 4 1 0.5 0.5; 0 1 one third; 0 0 1 equals D U prime

Source: 18.06 Lecture 4 transcript (Prof. Strang), pp. 6–7 (the method; the numbers are our own)

The (2,3)(2, 3) entry of U′U' is 1/3≈0.33331/3 \approx 0.3333.

Check

Row 2 of DU′DU' is 3(0,1,1/3)=(0,3,1)3(0, 1, 1/3) = (0, 3, 1), row 2 of UU. AA is not symmetric, so U′U' is not LTL^T: LL has ℓ21=2\ell_{21} = 2 where U′U' has 0.50.5.

(d)5 points

Solve Ax=bAx = b for b=(3,5,3)b = (3, 5, 3) in two triangular steps: first Lc=bLc = b, then Ux=cUx = c. Give c3c_3, the third component of cc, and x2x_2.

Hint

Lc=bLc = b is solved from the top down: c1c_1 first, then c2c_2, then c3c_3. Ux=cUx = c is solved from the bottom up.

Solution

The idea. LL does to bb in reverse what elimination did to AA; after that only back substitution is left. The two steps together cost about n2n^2 operations (about 12n2\frac12n^2 each), which is why one factorization serves many right-hand sides.

Forward

c1=3c_1 = 3; c2=5−2⋅3=−1c_2 = 5 - 2 \cdot 3 = -1; c3=3−(−1)⋅3−2⋅(−1)=3+3+2=8c_3 = 3 - (-1) \cdot 3 - 2 \cdot (-1) = 3 + 3 + 2 = 8.

Back

4x3=84x_3 = 8 gives x3=2x_3 = 2; 3x2+x3=−13x_2 + x_3 = -1 gives x2=−1x_2 = -1; 2x1+x2+x3=32x_1 + x_2 + x_3 = 3 gives x1=1x_1 = 1:

The two triangular solves
c=(3−18),x=(1−12)c = \begin{pmatrix} 3 \\ -1 \\ 8 \end{pmatrix}, \qquad x = \begin{pmatrix} 1 \\ -1 \\ 2 \end{pmatrix}
In words

c equals 3; minus 1; 8, x equals 1; minus 1; 2

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 3(d) (our own solution)

Check

Ax=(2−1+2,  4−5+6,  −2−5+10)=(3,5,3)=bAx = (2 - 1 + 2,\; 4 - 5 + 6,\; -2 - 5 + 10) = (3, 5, 3) = b. And cc is what elimination does to bb: c=Ebc = Eb, whose third component is 5⋅3−2⋅5+3=85 \cdot 3 - 2 \cdot 5 + 3 = 8, with row 3 of EE from part (b).

Problem 4#

Problem

The cost of elimination

10 points

Count one operation as one multiplication together with one subtraction, as in the lecture.

(a)3 points

For n=100n = 100, add up the exact count n2+(n−1)2+⋯+12n^2 + (n - 1)^2 + \cdots + 1^2. By how many operations does it exceed the estimate 13n3\frac13n^3? Give the difference to the nearest whole number (this box accepts any value within 11).

Hint

The sum of the first nn squares is n(n+1)(2n+1)/6n(n + 1)(2n + 1)/6.

Solution

The idea. The estimate 13n3\frac13n^3 is the integral; the sum is a little larger, by a term of order n2n^2.

The sum

The exact count for n=100n = 100
∑k=1100k2=100⋅101⋅2016=338 350,13⋅1003≈333 333.3\sum_{k=1}^{100}k^2 = \frac{100 \cdot 101 \cdot 201}{6} = 338\,350, \qquad \tfrac13 \cdot 100^3 \approx 333\,333.3
In words

the sum from k equals 1 to 100 of k squared equals 100 times 101 times 201 over 6 equals 338 350, one third times 100 cubed is approximately 333 333.3

Source: 18.06 Lecture 4 transcript (Prof. Strang), pp. 17–18 (the count; the sum is our own)

The difference is 5016.75016.7, about 50175017 operations.

Check

n(n+1)(2n+1)/6=13n3+12n2+16nn(n + 1)(2n + 1)/6 = \frac13n^3 + \frac12n^2 + \frac16n, and 12⋅1002+16⋅100=5000+16.7\frac12 \cdot 100^2 + \frac16 \cdot 100 = 5000 + 16.7: the extra is only 1.51.5 per cent of the count, which is why the lecture keeps 13n3\frac13n^3.

(b)5 points

A computer does 10910^9 operations per second. Using the estimates 13n3\frac13n^3 for the factorization and n2n^2 for each right-hand side, how many seconds does it take to factor a full matrix with n=3000n = 3000, and how many right-hand sides can it solve in the time of one factorization? (The second box accepts any value within 11.)

Hint

30003=2.7×10103000^3 = 2.7 \times 10^{10}. For the second box, divide the two estimates before putting in numbers.

Solution

The idea. The factorization costs n3/3n^3/3, a right-hand side n2n^2: the ratio is n/3n/3.

Factor

13⋅2.7×1010=9×109\frac13 \cdot 2.7 \times 10^{10} = 9 \times 10^9 operations, so 99 seconds.

Right-hand sides

Right-hand sides per factorization
13n3n2=n3=30003=1000\frac{\frac13n^3}{n^2} = \frac{n}{3} = \frac{3000}{3} = 1000
In words

the quantity one third n cubed, all over n squared equals n over 3 equals 3000 over 3 equals 1000

Source: 18.06 Lecture 4 transcript (Prof. Strang), pp. 18–19 (the two costs; the ratio is our own)

Each right-hand side takes 9×1069 \times 10^6 operations, 0.0090.009 seconds.

Check

1000×0.009=91000 \times 0.009 = 9 seconds, the time of the factorization.

(c)2 points

If nn doubles, by what factor does the time for the factorization grow?

Hint

Only the leading power of nn matters.

Solution

The idea. The cost goes like n3n^3, and 23=82^3 = 8.

Check

For n=6000n = 6000, 13⋅60003=7.2×1010\frac13 \cdot 6000^3 = 7.2 \times 10^{10} operations, 7272 seconds: 88 times the 99 seconds of part (b). Each right-hand side grows only by 44.

Problem 5#

Problem

Row exchanges and permutation matrices

16 points

(a)7 points

Take

A matrix that needs a row exchange
A=(121243375)A = \begin{pmatrix} 1 & 2 & 1 \\ 2 & 4 & 3 \\ 3 & 7 & 5 \end{pmatrix}
In words

capital A equals 1 2 1; 2 4 3; 3 7 5

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 5(a) (our own problem)

Start elimination. Which row exchange is needed, and when? Then factor PA=LUPA = LU, with PP the permutation that does that exchange before elimination starts. Give the (2,1)(2, 1) entry of LL and the (2,3)(2, 3) entry of UU.

Hint

Clear the first column and look at the new (2,2)(2, 2) position.

Hint

Apply PP to AA first and eliminate PAPA from the start. The multipliers belong to the rows of PAPA, not of AA.

Solution

The idea. A zero in a pivot position is cured by exchanging with a lower row that has a nonzero entry there; PP does that exchange in advance.

Where it stops

Row 2 minus 22 times row 1 is (0,0,1)(0, 0, 1); row 3 minus 33 times row 1 is (0,1,2)(0, 1, 2). The (2,2)(2, 2) position holds 00, and row 3 has a 11 below it: exchange rows 2 and 3.

PA=LUPA = LU

With PP exchanging rows 2 and 3, PAPA has the rows (1,2,1)(1, 2, 1), (3,7,5)(3, 7, 5), (2,4,3)(2, 4, 3). Its multipliers are ℓ21=3\ell_{21} = 3 and ℓ31=2\ell_{31} = 2, after which row 2 is (0,1,2)(0, 1, 2) and row 3 is (0,0,1)(0, 0, 1), so ℓ32=0\ell_{32} = 0:

The factorization with a row exchange
PA=(100001010)(121243375)=(100310201)(121012001)=LUPA = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 2 & 1 \\ 2 & 4 & 3 \\ 3 & 7 & 5 \end{pmatrix} = \begin{pmatrix} 1 & 0 & 0 \\ 3 & 1 & 0 \\ 2 & 0 & 1 \end{pmatrix}\begin{pmatrix} 1 & 2 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{pmatrix} = LU
In words

capital P capital A equals 1 0 0; 0 0 1; 0 1 0 1 2 1; 2 4 3; 3 7 5 equals 1 0 0; 3 1 0; 2 0 1 1 2 1; 0 1 2; 0 0 1 equals L U

Source: 18.06 Lecture 5 transcript (Prof. Strang), p. 2 (PA = LU; the numbers are our own)

The (2,1)(2, 1) entry of LL is 33, and the (2,3)(2, 3) entry of UU is 22. The multipliers 22 and 33 of the first attempt have changed places along with their rows.

Check

Row 2 of LULU is 3(1,2,1)+(0,1,2)=(3,7,5)3(1, 2, 1) + (0, 1, 2) = (3, 7, 5), row 3 is 2(1,2,1)+(0,0,1)=(2,4,3)2(1, 2, 1) + (0, 0, 1) = (2, 4, 3): the rows of PAPA. The pivots 1,1,11, 1, 1 are all nonzero, so AA is invertible.

(b)6 points

Let QQ be the 3×33 \times 3 permutation matrix that moves row 1 to row 3, row 3 to row 2 and row 2 to row 1:

A cyclic permutation
Q=(010001100)Q = \begin{pmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 1 & 0 & 0 \end{pmatrix}
In words

Q equals 0 1 0; 0 0 1; 1 0 0

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 5(b) (our own problem)

What is the smallest power k≥1k \geq 1 with Qk=IQ^k = I? And how many of the 4×44 \times 4 permutation matrices are their own inverse?

Hint

Follow one row: where is row 1 after one, two, three applications of QQ?

Hint

P−1=PP^{-1} = P means that doing PP twice changes nothing. Such a permutation can only swap rows in pairs, or leave them alone. Count those of size 4 by how many pairs they swap.

Solution

The idea. A cycle of three rows returns after three steps; a permutation that is its own inverse is made of swaps that do not overlap.

The cycle

QQ takes row 1 to position 3, Q2Q^2 to position 2, Q3Q^3 back to position 1, and the same for every row. So Q3=IQ^3 = I and no smaller power works: Q2Q^2 moves row 1 to row 2. So Q−1=Q2Q^{-1} = Q^2, which equals QTQ^T, as P−1=PTP^{-1} = P^T requires (Lecture 5 transcript, pp. 3–4).

Counting

Of the 4!=244! = 24 permutations of four rows, those equal to their own inverse are the identity, the single swaps and the double swaps:

Permutations that are their own inverse
1+6+3=101 + 6 + 3 = 10
In words

1 plus 6 plus 3 equals 10

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 5(b) (our own solution)

One swap: choose 22 of the 44 rows, 66 ways. Two swaps: row 1 is paired with one of the other 33 rows, and the last two rows pair with each other, 33 ways.

Check

The other 1414 are the 88 cycles of three rows (choose the row left alone, 44 ways, and one of 22 directions) and the 66 cycles of four rows; 10+8+6=2410 + 8 + 6 = 24. For 3×33 \times 3 the same count gives 1+3=41 + 3 = 4 of the 66, leaving the two cycles, QQ and Q2Q^2; the lecture lists all six (Lecture 4 transcript, pp. 20–22).

(c)3 points

Show that a permutation matrix PP is its own inverse exactly when it is symmetric.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

You know a second formula for P−1P^{-1}.

Solution

The idea. For a permutation P−1=PTP^{-1} = P^T, so P−1=PP^{-1} = P and PT=PP^T = P say the same thing.

Both directions

Own inverse means symmetric
P−1=P  ⟺  PT=P,since P−1=PTP^{-1} = P \iff P^T = P, \qquad \text{since } P^{-1} = P^T
In words

capital P to the power minus 1 equals capital P is equivalent to capital P ^ capital T equals capital P, since capital P to the power minus 1 equals capital P ^ capital T

Source: 18.06 Lecture 5 transcript (Prof. Strang), pp. 3–4 (P⁻¹ = Pᵀ; the rest is our own)

Check

The exchange of rows 2 and 3 in part (a) is symmetric and is its own inverse. The cycle QQ of part (b) is not symmetric, and Q−1=Q2≠QQ^{-1} = Q^2 \neq Q.

Problem 6#

Problem

Transposes and symmetric matrices

10 points

Take the 2×32 \times 3 matrix

A rectangular matrix
R=(102211)R = \begin{pmatrix} 1 & 0 & 2 \\ 2 & 1 & 1 \end{pmatrix}
In words

capital R equals 1 0 2; 2 1 1

(a)5 points

Compute RRTRR^T and RTRR^TR. Give the (1,2)(1, 2) entry of RRTRR^T, the (2,3)(2, 3) entry of RTRR^TR and the sum of the diagonal entries of RTRR^TR.

Hint

The (i,j)(i, j) entry of RRTRR^T is row ii of RR times row jj of RR. The (i,j)(i, j) entry of RTRR^TR is column ii of RR times column jj of RR.

Solution

The idea. Both products are made of inner products: of rows for RRTRR^T, of columns for RTRR^TR.

The two products

Two symmetric products
RRT=(1+0+42+0+22+0+24+1+1)=(5446),RTR=(524211415)RR^T = \begin{pmatrix} 1 + 0 + 4 & 2 + 0 + 2 \\ 2 + 0 + 2 & 4 + 1 + 1 \end{pmatrix} = \begin{pmatrix} 5 & 4 \\ 4 & 6 \end{pmatrix}, \qquad R^TR = \begin{pmatrix} 5 & 2 & 4 \\ 2 & 1 & 1 \\ 4 & 1 & 5 \end{pmatrix}
In words

capital R capital R ^ capital T equals 1 plus 0 plus 4 2 plus 0 plus 2; 2 plus 0 plus 2 4 plus 1 plus 1 equals 5 4; 4 6, capital R ^ capital T capital R equals 5 2 4; 2 1 1; 4 1 5

Source: 18.06 Lecture 5 transcript (Prof. Strang), pp. 6–7 (the products; the numbers are our own)

In RTRR^TR, the (2,3)(2, 3) entry is column 2 times column 3, 0⋅2+1⋅1=10 \cdot 2 + 1 \cdot 1 = 1, and the diagonal adds up to 5+1+5=115 + 1 + 5 = 11.

Check

Both products are symmetric, as the lecture proves. The diagonal sums agree, 5+6=115 + 6 = 11: each is the sum of the squares of all six entries of RR, 1+0+4+4+1+1=111 + 0 + 4 + 4 + 1 + 1 = 11.

(b)2 points

For every square matrix AA, which of these matrices is always symmetric?

Hint

Transpose each candidate, using (AT)T=A(A^T)^T = A and the reverse-order rule, and see whether it comes back unchanged.

Solution

The idea. Transposing a sum transposes each term; transposing a product reverses it.

Transpose each

(A+AT)T=AT+A(A + A^T)^T = A^T + A, the same matrix. (A−AT)T=AT−A=−(A−AT)(A - A^T)^T = A^T - A = -(A - A^T), which changes sign. (A2)T=(AT)2(A^2)^T = (A^T)^2 and (ATA2)T=(AT)2A(A^TA^2)^T = (A^T)^2A, which are new matrices when AA is not symmetric.

Check

For A=(0100)A = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}: A+AT=(0110)A + A^T = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} is symmetric, A−AT=(01−10)A - A^T = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} is not, and A2=0A^2 = 0 is symmetric here only by accident: for A=(1101)A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}, A2=(1201)A^2 = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix} is not.

(c)3 points

Show that if SS is a symmetric n×nn \times n matrix and AA is any n×mn \times m matrix, then ATSAA^TSA is symmetric.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

Transpose the product of three factors: reverse the order and transpose each.

Solution

The idea. The same argument as for RTRR^TR, with SS in the middle.

Transpose

A symmetric product of three
(ATSA)T=ATST(AT)T=ATSA(A^TSA)^T = A^TS^T(A^T)^T = A^TSA
In words

( capital A ^ capital T capital S capital A )^ capital T equals capital A ^ capital T capital S ^ capital T ( capital A ^ capital T )^ capital T equals capital A ^ capital T capital S capital A

Source: 18.06 Lecture 5 transcript (Prof. Strang), pp. 8–9 (the argument for RᵀR; this product is our own)

using ST=SS^T = S and (AT)T=A(A^T)^T = A. The product is m×mm \times m.

Check

With S=IS = I this is the lecture's ATAA^TA. With S=(2001)S = \begin{pmatrix} 2 & 0 \\ 0 & 1 \end{pmatrix} and A=RA = R: RTSRR^TSR has the (1,2)(1, 2) entry 2⋅1⋅0+1⋅2⋅1=22 \cdot 1 \cdot 0 + 1 \cdot 2 \cdot 1 = 2 and the (2,1)(2, 1) entry 2⋅0⋅1+1⋅1⋅2=22 \cdot 0 \cdot 1 + 1 \cdot 1 \cdot 2 = 2.

Problem 7#

Problem

Vector spaces and subspaces

12 points

(a)4 points

Which of these sets of vectors x=(x1,x2,x3)x = (x_1, x_2, x_3) in R3\mathrm{R}^3 are subspaces?

  • S1S_1: all xx with x1+2x2−x3=0x_1 + 2x_2 - x_3 = 0.
  • S2S_2: all xx with x1+x2+x3=1x_1 + x_2 + x_3 = 1.
  • S3S_3: all xx with x1x2=0x_1x_2 = 0.
  • S4S_4: all xx with x1=2x2x_1 = 2x_2 and x3=0x_3 = 0.
Hint

First test whether the zero vector is in the set. If it is, try adding two vectors of the set, and multiplying one by −1-1 or by 22.

Hint

x1x2=0x_1x_2 = 0 means that x1=0x_1 = 0 or x2=0x_2 = 0: two planes together.

Solution

The idea. A subspace must contain zero and keep every sum and every multiple inside.

Each set

S1S_1: if xx and yy satisfy the equation, so do x+yx + y and every multiple of xx, because the left side is linear: a plane through the origin. S2S_2 does not contain (0,0,0)(0, 0, 0), since 0≠10 \neq 1: a plane that misses the origin. S3S_3 contains zero and all multiples, but (1,0,0)+(0,1,0)=(1,1,0)(1, 0, 0) + (0, 1, 0) = (1, 1, 0) has x1x2=1x_1x_2 = 1: not closed under addition. S4S_4: two linear equations, both kept by sums and multiples; it is the line through (2,1,0)(2, 1, 0).

Check

The two subspaces are a plane and a line through the origin, two of the four kinds of subspace of R3\mathrm{R}^3 (Lecture 5 transcript, p. 17). S3S_3 is like two lines through the origin in R2\mathrm{R}^2 taken together (the lesson's quiz): multiples stay inside, sums do not.

(b)5 points

Let AA have the columns (1,0,2)(1, 0, 2) and (0,1,−1)(0, 1, -1). For which number ss is b=(2,3,s)b = (2, 3, s) in the column space C(A)C(A)? And what is the column space of the matrix with columns (1,0,2)(1, 0, 2) and (2,0,4)(2, 0, 4)?

Hint

bb is in C(A)C(A) when b=x1(1,0,2)+x2(0,1,−1)b = x_1(1, 0, 2) + x_2(0, 1, -1) for some numbers x1,x2x_1, x_2. The first two components fix x1x_1 and x2x_2.

Hint

For the second matrix, compare the two columns.

Solution

The idea. bb is in C(A)C(A) exactly when Ax=bAx = b can be solved.

Solve for the combination

The first components give x1=2x_1 = 2, the second x2=3x_2 = 3. Then the third component must be

The third component
2⋅2+3⋅(−1)=12 \cdot 2 + 3 \cdot (-1) = 1
In words

2 times 2 plus 3 times (-1) equals 1

Source: MIT 18.06 Lecture 5: Transposes, permutations, spaces Rⁿ, Problem 7(b) (our own solution)

so bb is in C(A)C(A) only for s=1s = 1. C(A)C(A) is a plane through the origin, and for any other ss the point bb is off it.

The second matrix

(2,0,4)=2(1,0,2)(2, 0, 4) = 2(1, 0, 2): the columns lie on one line, so all their combinations are the multiples of (1,0,2)(1, 0, 2), a line through the origin (Lecture 5 transcript, p. 20).

Check

2(1,0,2)+3(0,1,−1)=(2,3,4−3)=(2,3,1)2(1, 0, 2) + 3(0, 1, -1) = (2, 3, 4 - 3) = (2, 3, 1).

(c)3 points

Let VV and WW be subspaces of R3\mathrm{R}^3. Show that their intersection (the vectors in both) is a subspace. Then give an example where their union (the vectors in at least one of them) is not.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

Take xx and yy in both VV and WW. Where are x+yx + y and the multiples of xx?

Hint

For the union, try two different lines through the origin.

Solution

The idea. Closure is tested separately in each subspace; a union breaks when a sum leaves both.

The intersection

If xx and yy are in VV and in WW, then x+yx + y and every multiple of xx are in VV (a subspace) and in WW (a subspace), so in both. The zero vector is in both too. So the intersection is a subspace.

The union

Let VV be the line of multiples of (1,0,0)(1, 0, 0) and WW the line of multiples of (0,1,0)(0, 1, 0). Both vectors are in the union, but their sum (1,1,0)(1, 1, 0) is on neither line. This is the set S3S_3 of part (a) cut down to two lines.

Check

Two planes through the origin meet in a line through the origin or are the same plane: a subspace either way. In part (a), S4S_4 is the intersection of the plane x3=0x_3 = 0 with the plane x1=2x2x_1 = 2x_2.

Symbols on this page

Show the 56 symbols used here
ℓ\ell script l.
A length or distance; ℓ_p is a physical distance and ℓ_c a comoving one. Unit: m (a comoving ℓ_c is in notches, Guth's units). Say it: “ell”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal to”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⟺\Longleftrightarrow if and only if.
If and only if: each statement implies the other. Say it: “is equivalent to”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∑\sum sum.
Sum: add up the terms over the range written below and above. Say it: “the sum of”.
cc c.
The vector found from Lc = b, the right-hand side after elimination. Say it: “c”.
kk k.
A power, as in Qᵏ; in a sum, the counting index. Say it: “k”.
TT T.
As a superscript: the transpose (rows become columns). Say it: “capital T”.
xx x.
The vector of unknowns in Ax = b; in Problem 7 a vector of R³. Say it: “x”.
yy y.
A second vector of R³. Say it: “y”.
tt t.
A number in the matrix B of Problem 1(c). Say it: “t”.
ii i.
A row number. Say it: “i”.
jj j.
A column number. Say it: “j”.
nn n.
The size of a square matrix (n × n), or the number of components in Rⁿ. Say it: “n”.
mm m.
The number of columns of A in Problem 6(c). Say it: “m”.
PP P.
A permutation matrix: the identity with its rows reordered; in PA = LU it puts the rows in a workable order. Say it: “capital P”.
QQ Q.
A 3 × 3 permutation matrix that moves the rows round in a cycle. Say it: “Q”.
DD D.
The diagonal matrix of pivots, in A = LDU′. Say it: “D”.
AA A.
A matrix: in each problem the matrix given there (square in Problems 1 to 5 and 6(b), 3 × 2 with the given columns in 7(b), any n × m matrix in 6(c)). Say it: “capital A”.
BB B.
A second matrix: in Problem 1 a 2 × 2 matrix with the parameter t, in Problem 2 the factor in AB and BA. Say it: “capital B”.
CC C.
As in C(A): the column space of A, all combinations of its columns. Say it: “capital C”.
bb b.
The right-hand side vector in Ax = b. Say it: “b”.
ss s.
A number, the third component of the vector b in Problem 7(b). Say it: “s”.
LL L.
The lower triangular factor in A = LU or PA = LU, with ones on its diagonal and the multipliers below it. Say it: “L”.
RR R.
A rectangular 2 × 3 matrix. Say it: “capital R”.
SS S.
A symmetric matrix, Sᵀ = S. Say it: “capital S”.
S1S_{1} S one.
The first of four sets of vectors in R³ in Problem 7. Say it: “capital S one”.
S2S_{2} S two.
The second of four sets of vectors in R³ in Problem 7. Say it: “capital S two”.
r1r_{1} r one.
The first row of A, in Problem 3(b). Say it: “r one”.
r2r_{2} r two.
The second row of A, in Problem 3(b). Say it: “r two”.
EE E.
The product of the elimination steps: in Gauss–Jordan EA = I, in A = LU the forward product E₃₂E₃₁E₂₁. Say it: “E”.
x1x_{1} x 1.
The first component of x; in a combination of columns, the number multiplying column 1. Say it: “x one”.
x2x_{2} x 2.
The second component of x; in a combination of columns, the number multiplying column 2. Say it: “x two”.
UU U.
The upper triangular matrix that elimination produces, with the pivots on its diagonal. Say it: “U”.
VV V.
A subspace of R³. Say it: “V”.
WW W.
A second subspace of R³. Say it: “W”.
r3r_{3} r three.
The third row of A, in Problem 3(b). Say it: “r sub 3”.
x3x_{3} x three.
The third component of x. Say it: “x three”.
II I.
The identity matrix. Say it: “capital I”.
c1c_{1} c one.
The first component of c. Say it: “c one”.
c2c_{2} c two.
The second component of c. Say it: “c two”.
c3c_{3} c 3.
The third component of c. Say it: “c three”.
E21E_{21} E two one.
The elimination matrix that subtracts ℓ₂₁ times row 1 from row 2. Say it: “E two one”.
E31E_{31} E three one.
The elimination matrix that subtracts ℓ₃₁ times row 1 from row 3. Say it: “E three one”.
E32E_{32} E three two.
The elimination matrix that subtracts ℓ₃₂ times row 2 from row 3. Say it: “E three two”.
ℓ21\ell_{21} ell 2 1.
The multiplier for position (2, 1): ℓ₂₁ times row 1 is subtracted from row 2. Say it: “ell 2 1”.
ℓ31\ell_{31} ell 3 1.
The multiplier for position (3, 1): ℓ₃₁ times row 1 is subtracted from row 3. Say it: “ell 3 1”.
ℓ32\ell_{32} ell 3 2.
The multiplier for position (3, 2): ℓ₃₂ times the new row 2 is subtracted from row 3. Say it: “ell 3 2”.
AjiA_{\text{ji}} A j i.
The entry of A in row j and column i. Say it: “capital A sub j i”.
S3S_{3} S 3.
The third of four sets of vectors in R³ in Problem 7. Say it: “capital S sub 3”.
U′U' U prime.
The upper triangular factor with ones on its diagonal, in A = LDU′. Say it: “U prime”.
S4S_{4} S four.
The fourth of four sets of vectors in R³ in Problem 7. Say it: “capital S four”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 40 words used here

Also used

inverse.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
matrix.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
factorization.
Writing something, such as a number, a matrix or an operator, as a product of simpler pieces. Explained in Factorization into A = LU.
LU.
The factorization A = LU of a matrix into a lower triangular L, which records the elimination steps, times the upper triangular U it produces. Explained in Factorization into A = LU.
transpose.
The matrix made by writing the rows of a matrix as columns, flipping it across its main diagonal. Explained in Planes through three points, and matrices.
permutation.
A rearrangement of a list of things into a new order. Explained in Elimination with matrices.
vector space.
A collection of objects, called vectors, that can be added together and multiplied by numbers, with the results staying in the collection. Explained in Transposes, permutations and vector spaces.
MIT.
Massachusetts Institute of Technology: the university in Cambridge, USA, whose free courses this site rewrites.
invertible.
Of a square matrix or operator: having an inverse that undoes it; for a matrix this happens exactly when its determinant is not zero. Explained in The geometry of linear equations.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
Gauss–Jordan.
A method that continues elimination upwards as well as downwards until the matrix becomes the identity, which finds the inverse. Explained in The four fundamental subspaces.
augmented matrix.
A matrix with an extra column, the right-hand side b, added to it, so that elimination works on the equations and b together. Explained in Elimination with matrices.
pivot.
In elimination, the first nonzero number in a row, used to clear out the entries below it. Explained in Positive definite matrices and minima.
elimination.
Solving equations by subtracting multiples of one from another until each unknown can be found in turn. Explained in The geometry of linear equations.
row exchange.
Swapping two rows of a matrix, needed in elimination when a zero sits where a pivot should be.
triangular matrix.
A square matrix with only zeros below its diagonal (upper triangular) or only zeros above it (lower triangular). Explained in Elimination with matrices.
diagonal.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
permutation matrix.
A matrix made by reordering the rows of the identity matrix; multiplying by it reorders the rows of another matrix the same way. Explained in Elimination with matrices.
symmetric.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
linear combination.
A sum of vectors, each first multiplied by a number, such as 3u + 2v. Explained in The geometry of linear equations.
subspace.
A set of vectors inside a larger space that is a space itself: sums and multiples of its vectors stay inside it. Explained in Transposes, permutations and vector spaces.
zero vector.
The vector whose components are all zero; adding it to any vector changes nothing. Explained in Transposes, permutations and vector spaces.
column space.
All the vectors made by combining the columns of a matrix; Ax = b can be solved exactly when b lies in it. Explained in Matrix multiplication and inverse matrices.
elimination matrix.
A matrix that carries out one step of elimination, subtracting a multiple of one row from another, when it multiplies a matrix. Explained in Elimination with matrices.
back substitution.
Solving a triangular system from the bottom up: the last equation gives the last unknown, which is put into the one above, and so on.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
inner product.
A rule that gives a number from two vectors, generalising the dot product, from which lengths and angles are defined. Explained in Complex matrices and the fast Fourier transform.
vector.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
linear.
Of a map, operator or equation: respecting sums and multiples, so that L(au + bv) = aL(u) + bL(v). Explained in The geometry of linear equations.
intersection.
The part common to two or more sets or shapes: everything that belongs to all of them. Explained in Column space and nullspace.
union.
The set made of everything that is in one set or the other, or both. Explained in Column space and nullspace.

Academic

problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
citation.
A note saying exactly where a statement, number or formula comes from, so readers can check it.
on paper.
In theory or in a calculation, as opposed to in a real experiment or in reality.
significant.
Large enough to matter or to be noticed; in statistics, too large to put down to chance.
likewise.
In the same way; similarly.
argument.
A chain of reasoning that leads to a conclusion; in maths also the input of a function, such as x in sin x.
of order.
Roughly equal to, within a factor of a few; of order one means neither much bigger nor much smaller than one.
satisfy.
To make an equation or condition true.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).