Problem Set 5: matrix spaces, graphs and orthogonal subspaces
Six problems of our own on Lectures 11, 12 and 14: subspaces of the space of 3 × 3 matrices with their dimensions, intersections and sums, solution spaces of differential equations, rank-one matrices and the rank of a sum, the incidence matrix of a graph with its potentials, currents, loops and trees, the network equation AᵀCAx = f, orthogonal vectors and Pythagoras, orthogonal subspaces, the nullspace as the orthogonal complement of the row space, and the nullspace of AᵀA.
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, every graph 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. The transcripts have no printed page numbers, so "p." means the page of the transcript PDF.
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.5, not 1/2. Every number box accepts any value within 0.01 of the exact one, so give at least two decimal places when the answer is not a whole number. A matrix, a vector or a subspace cannot be typed: a box asks for one of its entries or components, or for a dimension or a rank, or you choose from a list. Entries of a matrix are numbered by row, then column, starting from 1. On a graph, the potentials x1,x2,… belong to the nodes1,2,… and the currents y1,y2,… to the edges 1,2,….
A formula box takes plain typing, for example (k + 2)/(k - 3), and accepts every correct way of writing the answer.
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.
Rank one (Lecture 11). Every matrix of rank one is a column times a row, and ranks of sums obey an inequality:
Rank one and the rank of a sum
A=uvT,rank(A+B)≤rank(A)+rank(B)
In words
capital A equals u v^ capital T, r a n k the quantity capital A plus capital B, is less than or equal to r a n k ( capital A ) plus r a n k ( capital B )
Graphs (Lecture 12). A graph has nnodes and m edges, each with a direction. Its m×nincidence matrixA has one row per edge: −1 in the column of the node the edge leaves and +1 in the column of the node it enters (transcript, pp. 3–5). For potentials x at the nodes, Ax lists the potential differences along the edges (p. 7), so for a connected graphN(A) is the line of constant vectorsc(1,1,…,1) and the rank is n−1 (pp. 8–10). For currents y on the edges, ATy=0 is Kirchhoff's current law: at every node the current in equals the current out (pp. 14–15). Its solutions are the currents around loops, and
Loops and Euler's formula
loops=dimN(AT)=m−r,nodes−edges+loops=1
In words
loops equals dim capital N ( capital A ^ capital T ) equals m minus r, nodes minus edges plus loops equals 1
Independent rows of A belong to edges that form a tree: a graph with no loop (pp. 19–20). With conductances on the diagonal of C and current sources f at the nodes, the three steps of a network combine into one equation (pp. 22–23), whose matrix is symmetric (p. 24):
The network equation
e=Ax,y=Ce,ATy=f⇒ATCAx=f
In words
e equals capital A x, y equals capital C e, capital A ^ capital T y equals f which gives capital A ^ capital T capital C capital A x equals f
Orthogonality (Lecture 14). Two vectors are orthogonal when their dot product is zero, and Pythagoras says the same thing:
Orthogonal vectors
xTy=x1y1+⋯+xnyn=0⟺∥x∥2+∥y∥2=∥x+y∥2,∥x∥2=xTx
In words
x^ capital T y equals x one y one plus and so on plus x sub n y sub n equals 0 is equivalent to the norm of x squared plus the norm of y squared equals the norm of x plus y squared, the norm of x squared equals x^ capital T x
The three matrices on the right are a basis, so dimK=3.
Rows adding to zero
In each row the first two entries are free and the third is minus their sum: 2 free entries per row, 3⋅2=6 in all. So dimZ=6.
Check
Z is the set of matrices with A(1,1,1)=0: nine entries with three conditions, 9−3=6. And K together with the symmetric matrices, which have 3+3=6 free entries, fills M: 3+6=9=dimM, since every matrix is half of A+AT plus half of A−AT.
Write a general upper triangular matrix and ask each of its rows to add up to zero. Start from the last row.
Solution
The idea. Find the intersection by putting both conditions together; then the dimension formula gives the sum.
The intersection
An upper triangular matrix has rows (a11,a12,a13), (0,a22,a23) and (0,0,a33). Row sums zero: a33=0; a23=−a22 with a22 free; a13=−a11−a12 with a11, a12 free. Three free entries:
Upper triangular with zero row sums
a1100a12a220−a11−a12−a220
In words
a one one a one two minus a one one minus a one two; 0 a two two minus a two two; 0 0 0
Directly: any matrix of M is its lower part (below the diagonal) plus the rest. The lower part with suitable diagonal entries has zero row sums: for example 0410−4200−3 is in Z, and what is left over is upper triangular. So every matrix is in Z+U.
(c)4 points
Find the dimension of K intersect U. Is the union of K and U (the matrices that are in K, in U, or in both) a subspace of M?
Hint
A skew-symmetric matrix that is upper triangular has zeros below the diagonal. What does skew-symmetry then say about the entries above it, and about the diagonal?
Hint
A subspace must contain the sum of any two of its members. Try one matrix from K and one from U.
Solution
The idea. The two conditions together leave nothing free; a union fails the test of sums.
The intersection
Upper triangular means aij=0 below the diagonal. Skew-symmetry then gives aij=−aji=0 above it as well, and the diagonal of a skew-symmetric matrix is zero anyway. Only the zero matrix is left: K intersect U is the zero subspace, of dimension 0 (its basis is empty).
The union
Take k=0−10100000 in K and the identity I in U. Their sum k+I=1−10110001 has a nonzero entry below the diagonal, so it is not in U, and a nonzero diagonal, so it is not in K. The union is not closed under addition and is not a subspace, like two lines in a plane (Lecture 11 transcript, p. 5). It does contain the zero matrix and all multiples of its matrices; that is not enough.
Check
The formula of "What you need" gives dim(K+U)=3+6−0=9: every matrix is a skew-symmetric matrix plus an upper triangular one, in exactly one way, since a second split would differ by a matrix in K intersect U.
(d)4 points
Functions y(x) can be added and multiplied by numbers too. Find the dimension of the space of solutions of y′′+4y=0 and of the space of solutions of dx3d3y=0. Then decide whether the solutions of y′′+4y=8 form a vector space.
Hint
Look for solutions of y′′+4y=0 among sines and cosines. Which functions have a third derivative that is zero?
Hint
Every vector space contains a zero vector. Here that is the function that is zero for every x.
Solution
The idea. A linear equation with zero on the right has a nullspace of solutions; with a nonzero right-hand side it does not, just as for Ax=b.
y'' + 4y = 0
cos2x and sin2x are solutions: their second derivatives are −4cos2x and −4sin2x. Every solution is a combination of the two, and neither is a multiple of the other, so they are a basis:
The dimension is 2, as for every linear second-order equation of this kind (Lecture 11 transcript, pp. 8–9).
The third derivative zero
Integrating three times: y′′=c3, y′=c3x+c2, y=21c3x2+c2x+c1. The solutions are the polynomials of degree at most 2, with basis 1, x, x2: dimension 3.
y'' + 4y = 8
The constant y=2 is a solution (0+8=8), so there are solutions. But the zero function gives 0+0=0=8, so it is not one, and the solutions are not a vector space. Indeed 2+2=4 gives 0+16=16=8: sums of solutions are not solutions. The solutions are 2+c1cos2x+c2sin2x, a shifted copy of the first space, like the solutions of Ax=b.
Check
y=3cos2x−sin2x: y′′=−12cos2x+4sin2x=−4y. And y=x2 has dx3d3y=0.
Multiply back entry by entry: aij=uivj, for example a23=4⋅(−2)=−8 and a32=(−1)⋅1=−1. Read by columns instead, every column of A is a multiple of u: column 3 is −2u.
Row 2 is row 1 plus row 3, and rows 1 and 3 are independent (look at their first two entries). So the rank is 2, the most the inequality allows.
Check
Every column of B2 is a combination of (1,1,0) and (0,1,1), so its column space is the plane they span: dimension 2. The two sums also show that the matrices of rank at most 1 are not a subspace: B2 is a sum of two of them and has rank 2.
(c)5 points
A and B are 4×6matrices with rank(A)=2 and rank(B)=3. What is the largest possible rank of A+B, and what is the smallest possible rank?
Hint
The inequality of "What you need" is one limit for the largest rank. The shape of the matrix is another.
Hint
For the smallest rank, apply the same inequality to B=(A+B)+(−A).
Solution
The idea. Two inequalities bound the rank; then an example shows that each bound is reached.
Largest
The inequality allows rank(A+B)≤2+3=5. But a 4×6 matrix has only 4 rows, so its rank is at most 4. The largest possible rank is 4, if an example reaches it.
r a n k ( capital B ) equals r a n k the quantity the quantity capital A plus capital B, all plus (- capital A ), is less than or equal to r a n k the quantity capital A plus capital B, all plus r a n k ( capital A ) which gives r a n k the quantity capital A plus capital B, is greater than or equal to 3 minus 2 equals 1
(−A has the same rank as A.) The smallest possible rank is 1, if an example reaches it.
Two examples
Write Eij for the 4×6 matrix with a single 1 in row i, column j. Take A=E11+E22, of rank 2. With B=−E11−E22+E33, of rank 3, the sum A+B=E33 has rank 1. With B=E33+E44+E15, of rank 3, the sum A+B=E11+E15+E22+E33+E44 has a nonzero entry in a new column of each of its 4 rows, so its rank is 4.
Check
Between the bounds every rank occurs too: B=−E11+E33+E44 gives A+B=E22+E33+E44, of rank 3. In Lecture 11 Strang asks whether the matrices of rank at most 4 among the 5×17 matrices form a subspace: no, because the sum of two of them can have rank 5; the inequality only caps that sum at 8, and the shape caps it at 5 (transcript, pp. 12–13).
Write down A (this has no box). For the potentials x=(0,2,5,3,4) at the five nodes, find entry 5 and entry 7 of Ax.
Hint
Row 5 of A belongs to edge 5. It has −1 in the column of the node the edge leaves and +1 in the column of the node it enters, so row 5 times x is a difference of two potentials.
Solution
The idea. Each row of A has one −1 and one +1, so each entry of Ax is the potential at the end of an edge minus the potential at its start.
capital A x equals x two minus x one; x three minus x one; x three minus x two; x four minus x two; x five minus x three; x five minus x four; x five minus x two equals 2 minus 0; 5 minus 0; 5 minus 2; 3 minus 2; 4 minus 5; 4 minus 3; 4 minus 2 equals 2; 5; 3; 1; minus 1; 1; 2
Two paths from node 1 to node 5 must give the same total rise x5−x1=4: along edges 1 and 7, 2+2=4; along edges 2 and 5, 5+(−1)=4. Adding the same constant to every potential would leave Ax unchanged.
(b)5 points
Which set of four edges forms a tree, that is, connects all five nodes without a loop?
Hint
Draw the graph and the four edges of each set. Look for a loop, and for a node that no edge of the set reaches.
Solution
The idea. Four edges on five nodes form a tree exactly when they contain no loop; then they reach every node.
Each set
Edges 1, 2, 3 and 5 contain the loop of nodes 1, 2, 3. Edges 3, 5, 6 and 7 contain the loop of nodes 2, 3, 5, and never reach node 1. Edges 2, 4, 6 and 7 contain the loop of nodes 2, 4, 5, and leave nodes 1 and 3 cut off from the rest. Edges 1, 3, 4 and 7 all start or end at node 2 and reach nodes 1, 3, 4 and 5 once each: a star, with no loop. That is the tree.
Independent rows
The four rows of A for edges 1, 3, 4 and 7 are independent: each of them is the only one of the four with a nonzero entry in the column of node 1, 3, 4 or 5 respectively. For a set with a loop the rows around the loop are dependent, for example row 1 plus row 3 minus row 2 is zero (Lecture 12 transcript, pp. 5, 19–20).
Check
A tree on n nodes has n−1 edges and no loop, and Euler's formula agrees: 5−4+0=1.
(c)5 points
Currents y=(y1,…,y7) on the edges obey Kirchhoff's current lawATy=0, with y1=2, y2=−2, y3=1, y4=2 and y6=2. Find y5 and y7.
Hint
Row j of ATy=0 belongs to node j: the currents on the edges entering node j, minus the currents on the edges leaving it, add up to zero.
Hint
Find a node where only one of the two unknown currents appears.
Solution
The idea. Write the current law node by node and solve the equations that hold a single unknown.
minus y one minus y two equals 0, y one minus y three minus y four minus y seven equals 0, y two plus y three minus y five equals 0, y four minus y six equals 0, y five plus y six plus y seven equals 0
The graph is connected: you can walk from any node to any other along edges. What is N(A) then?
Solution
The idea. For a connected graph the nullspace is the line of constant potentials, and the left nullspace counts the independent loops.
The rank
Ax=0 means equal potentials at the two ends of every edge, so, walking along edges, equal potentials everywhere: N(A) is the line through (1,1,1,1,1), of dimension 1. Then r=n−1=5−1=4 (Lecture 12 transcript, pp. 8–10).
The left nullspace
dimN(AT)=m−r=7−4=3. Three independent loops carry the currents that solve the current law:
Three loop currents
1−110000,000101−1,001010−1
In words
1; minus 1; 1; 0; 0; 0; 0, 0; 0; 0; 1; 0; 1; minus 1, 0; 0; 1; 0; 1; 0; minus 1
The first goes round node 1, 2, 3 (against edge 2 on the way back), the second round 2, 4, 5 and the third round 2, 3, 5 (both against edge 7).
Euler's formula
nodes−edges+loops=5−7+3=1, as it must be.
Check
The currents of part (c) are a combination of the three loops: twice the first, plus twice the second, minus the third gives (2,−2,2−1,2,−1,2,−2+1)=(2,−2,1,2,−1,2,−1).
A network has three nodes and three edges: edge 1 from node 2 to node 1, edge 2 from node 2 to node 3, edge 3 from node 3 to node 1. The conductances are 1, 2 and 3 on edges 1, 2 and 3, so C=diag(1,2,3). Let A be the 3×3incidence matrix.
(a)5 points
Compute the matrixATCA. Give its entry in row 1, column 1 and its entry in row 2, column 3. Then show that ATCA is symmetric and that ATCA(1,1,1)=0 (these have no box).
Hint
Compute CA first: it multiplies each row of A by the conductance of that edge. Then multiply by AT on the left.
Solution
The idea. Write A by the rule, scale its rows by C, and multiply.
A and CA
The incidence matrix and CA
A=101−1−1001−1,CA=103−1−2002−3
In words
capital A equals 1 minus 1 0; 0 minus 1 1; 1 0 minus 1, capital C capital A equals 1 minus 1 0; 0 minus 2 2; 3 0 minus 3
For example, entry (1,1) is 1⋅1+0⋅0+1⋅3=4 and entry (2,3) is (−1)⋅0+(−1)⋅2+0⋅(−3)=−2.
Symmetric, with constants in its nullspace
(ATCA)T=ATCTA=ATCA, since the diagonal C equals its transpose (Lecture 12 transcript, p. 24). Each row of the matrix adds up to zero (4−1−3=0, −1+3−2=0, −3−2+5=0), so (1,1,1) goes to zero: already A(1,1,1)=0, since equal potentials give no differences.
Check
Each diagonal entry is the total conductance of the edges at that node: node 1 has edges 1 and 3, 1+3=4; node 3 has edges 2 and 3, 2+3=5. Each off-diagonal entry is minus the conductance of the edge between the two nodes: edge 2 joins nodes 2 and 3, with conductance 2.
(b)4 points
A current source of 1 is fed in at node 1, none at node 2, and f3 at node 3, so f=(1,0,f3). For which f3 does ATCAx=f have a solution?
Hint
ATCA is symmetric, so its column space is orthogonal to its own nullspace. Which vector of part (a) lies in that nullspace?
Solution
The idea. A right-hand side is in the column space exactly when it is orthogonal to the left nullspace, and for a symmetric matrix the left nullspace is the nullspace.
The condition
Since (ATCA)T=ATCA, the left nullspace of ATCA is its nullspace, which contains (1,1,1). The column space is orthogonal to it (Lecture 14 transcript, p. 12), so a solvable f needs
The sources must add up to zero
(1,1,1)⋅f=1+0+f3=0⇒f3=−1
In words
(1, 1, 1) times f equals 1 plus 0 plus f three equals 0 which gives f three equals minus 1
The rank of ATCA is 2 (rows 1 and 2 are independent, and the three rows add to zero), so the left nullspace is only the line through (1,1,1) and the column space is the whole plane orthogonal to it. So f3=−1 is enough as well as needed. Physically: the current fed in at node 1 must leave again somewhere, here at node 3.
Check
Adding the three equations of ATCAx=f gives 0=1+0+f3 for every x, because the columns of ATCA add up to zero.
(c)5 points
Take the sources of part (b) and ground node 3, that is, set x3=0. Find the potential x1, and the current y3 on edge 3, from y=CAx.
Hint
With x3=0, the third column of ATCA drops out. Keep the first two equations: two equations for x1 and x2.
Hint
Entry 3 of Ax is the potential difference along edge 3; multiply it by the conductance of that edge.
Solution
The idea. Grounding a node removes the constant vectors from the nullspace; the reduced 2×2 system is invertible.
The grounded system
With x3=0 the first two equations are
Two equations for two potentials
4x1−x2=1,−x1+3x2=0
In words
4 x one minus x two equals 1, minus x one plus 3 x two equals 0
The second gives x1=3x2; then 12x2−x2=1, so x2=111 and x1=113≈0.2727.
The current
Entry 3 of Ax is x1−x3=113, and the conductance of edge 3 is 3, so y3=119≈0.8182.
Check
All currents: y1=1⋅(x1−x2)=112, y2=2⋅(x3−x2)=−112, y3=119. Then ATy=(y1+y3,−y1−y2,y2−y3)=(1,0,−1), the sources f, and the third equation −3x1−2x2=−1111=−1 holds too.
Take u=(2,−1,3,1) and w=(1,4,1,−1) in R4. Check that they are orthogonal (no box). Find ∥u∥2 and ∥u+w∥2, and find the number c for which (1,c,2,−3) is orthogonal to u.
Hint
The length squared is uTu, the sum of the squares of the components. Pythagoras gives a second way to find ∥u+w∥2.
Solution
The idea. Every question here is a dot product.
Orthogonal
uTw=2⋅1+(−1)⋅4+3⋅1+1⋅(−1)=2−4+3−1=0.
The lengths
∥u∥2=4+1+9+1=15 and ∥w∥2=1+16+1+1=19. With u+w=(3,3,4,0):
Pythagoras in R⁴
∥u+w∥2=9+9+16+0=34=15+19=∥u∥2+∥w∥2
In words
the norm of u plus w squared equals 9 plus 9 plus 16 plus 0 equals 34 equals 15 plus 19 equals the norm of u squared plus the norm of w squared
4t−4=0 for t=1: then x=(1,1,2) and y=(1,1,−1), with xTy=1+1−2=0.
Check
For t=2: x+y=(3,3,1) with ∥x+y∥2=19, ∥x∥2=1+4+4=9 and ∥y∥2=4+1+1=6; the gap is 19−15=4=4⋅2−4.
(c)6 points
Decide for each pair of subspaces of R3 whether they are orthogonal. Pair 1: the line through (1,1,0) and the line through (1,−1,5). Pair 2: the plane x3=0 and the plane x1=0. Pair 3: the line through (1,2,0) and the plane spanned by (2,−1,0) and (0,1,1). Pair 4: the plane spanned by (1,0,1) and (0,1,0), and the line through (1,0,−1).
Hint
It is enough to test the vectors that span each subspace: if every spanning vector of one is orthogonal to every spanning vector of the other, so are all their combinations.
Hint
If two subspaces have a nonzero vector in common, can they be orthogonal?
Solution
The idea. Test spanning vectors against spanning vectors; one nonzero dot product is enough to say no.
Pair 1
(1,1,0)⋅(1,−1,5)=1−1+0=0: the lines are orthogonal.
Pair 2
Both planes contain the x2-axis, for example (0,1,0), which is not orthogonal to itself. Not orthogonal: this is the wall and the floor of the lecture (Lecture 14 transcript, pp. 8–9).
Pair 3
(1,2,0)⋅(2,−1,0)=0, but (1,2,0)⋅(0,1,1)=2=0. Not orthogonal: one spanning vector is not enough.
Pair 4
(1,0,1)⋅(1,0,−1)=1+0−1=0 and (0,1,0)⋅(1,0,−1)=0: orthogonal. So every combination of (1,0,1) and (0,1,0), the whole plane, is orthogonal to the line.
Check
In Pair 4 the dimensions are 2+1=3: the line is the orthogonal complement of the plane, all of the plane's perpendicular directions. In Pair 1 two lines, 1+1=2, are orthogonal without being complements.
∥v∥2 is the sum of the squares of the components of v, and a sum of squares is zero only when every term is zero. So v=0.
Check
This is why the wall and the floor of Pair 2 in part (c) are not orthogonal: they share a whole line. The converse fails, as Pair 3 shows: the line and the plane there meet only at zero (the line's direction (1,2,0) is not a combination of (2,−1,0) and (0,1,1), because of the third components) and yet are not orthogonal (Lecture 14 transcript, p. 9).
Without elimination, decide for each of the vectorsv1=(−2,1,0,0), v2=(1,1,1,1) and v3=(3,−1,−3,1) whether it is in N(B).
Hint
Bv=0 says that v is orthogonal to each row of B. Take the dot products.
Solution
The idea. A vector is in the nullspace exactly when it is orthogonal to every row.
The dot products
For v1: −2+2+0+0=0, −4+4+0+0=0, −6+6+0+0=0. In N(B).
For v2: the first row gives 1+2+0−1=2=0. Not in N(B); one row is enough to say no.
For v3: 3−2+0−1=0, 6−4−3+1=0, 9−6−3+0=0. In N(B).
Check
v1 and v3 are independent, and N(B) has dimension n−r=4−2=2, so they are a basis of N(B): the whole orthogonal complement of the row space in R4. By elimination the special solutions are (−2,1,0,0) and (1,0,−3,1), and indeed v3 is minus the first plus the second.
(b)6 points
Find the number c for which (1,1,c) is in the left nullspaceN(BT). Then use orthogonality to decide whether b=(1,0,2) and whether b=(2,1,3) is in the column spaceC(B).
Hint
BTy=0 says that y is orthogonal to every column of B. Write that out for the first and the third column.
Hint
N(BT) has dimension m−r. With that, the column space is exactly the set of vectors orthogonal to the left nullspace.
Solution
The idea. The left nullspace and the column space are orthogonal complements in R3, so a single vector y of N(BT) decides membership in C(B).
The left nullspace
The first column (1,2,3) gives 1+2+3c=0, so c=−1. The other columns agree: (2,4,6) gives 2+4−6=0, (0,1,1) gives 0+1−1=0, (−1,1,0) gives −1+1+0=0. So y=(1,1,−1) is in N(BT): row 1 plus row 2 minus row 3 is the zero row.
The column space
dimN(BT)=m−r=3−2=1, so N(BT) is the line through y, and its orthogonal complement in R3 is the column space (Lecture 14 transcript, pp. 12–15):
The test for the column space
b in C(B)⟺yTb=b1+b2−b3=0
In words
b in capital C ( capital B ) is equivalent to y^ capital T b equals b one plus b two minus b three equals 0
For (1,0,2): 1+0−2=−1=0, not in C(B). For (2,1,3): 2+1−3=0, in C(B).
Check
(2,1,3) is 2 times column 1 minus 3 times column 3: (2,4,6)−(0,3,3)=(2,1,3). And Bx=(1,0,2) has no solution: row 1 plus row 2 minus row 3 of the equations gives 0=1+0−2.
(c)3 points
In R4, let P be the plane spanned by (1,1,1,1) and (1,−1,1,−1). The vectorw=(2,3,w3,w4) is in the orthogonal complement of P. Find w3 and w4.
Hint
The orthogonal complement of the row space of a matrix is its nullspace. Put the two spanning vectors into the rows of a 2×4 matrix.
Solution
The idea.w must be orthogonal to both spanning vectors: two equations.
Two equations
Orthogonal to the plane
2+3+w3+w4=0,2−3+w3−w4=0
In words
2 plus 3 plus w three plus w four equals 0, 2 minus 3 plus w three minus w four equals 0
Adding them: 4+2w3=0, so w3=−2. Subtracting: 6+2w4=0, so w4=−3.
Check
w=(2,3,−2,−3): 2+3−2−3=0 and 2−3−2+3=0. The complement has dimension 4−2=2, and it lies inside the space of Lecture 11 whose components add up to zero, which is the orthogonal complement of the line through (1,1,1,1) alone.
(d)3 points
For A=121363, find the entry of ATA in row 1, column 2, and the nonzero vectorx with ATAx=0 whose first component is 3: give its second component.
Hint
Entry (i,j) of ATA is column i of A times column j. For the second question, use N(ATA)=N(A): look at the columns of A.
Solution
The idea.A has rank one, so ATA has rank one too, with the same nullspace.
The product
The columns of A are (1,2,1) and (3,6,3):
AᵀA for a rank-one matrix
ATA=(1+4+13+12+33+12+39+36+9)=(6181854)
In words
capital A ^ capital T capital A equals 1 plus 4 plus 1 3 plus 12 plus 3; 3 plus 12 plus 3 9 plus 36 plus 9 equals 6 18; 18 54
A constant in c(1, 1, …, 1); in Problem 5(a), the unknown second component of (1, c, 2, −3); in Problem 6(b), the unknown third component of (1, 1, c). Say it: “c”.
As a superscript: the transpose (Aᵀ has the rows of A as its columns). Alone, in Problem 5 and What you need: a second subspace, orthogonal or not to S. Say it: “capital T”.
A vector: the potentials at the nodes in Problems 3 and 4; the vector (1, t, 2) in Problem 5(b); a nullspace vector in Problem 6(d); as the variable of a function y(x) in Problem 1(d). Say it: “x”.
A vector: the currents on the edges in Problems 3 and 4; the vector (t, 1, −1) in Problem 5(b); a vector of the left nullspace in Problem 6(b). In Problem 1(d), a function y(x). Say it: “y”.
A matrix: in Problem 1 any 3 × 3 matrix of M; in Problems 2, 3, 4 and 6(d) the matrix given there (in Problems 3 and 4 the incidence matrix of the graph); in the rules of What you need, any matrix. Say it: “capital A”.
A second matrix in rank(A + B) ≤ rank(A) + rank(B) (a 4 × 6 matrix of rank 3 in Problem 2(c)); in Problem 6, the 3 × 4 matrix of rank 2 given there. Say it: “capital B”.
The diagonal matrix of conductances in y = Ce (diag(1, 2, 3) in Problem 4); as in C(B), the column space, all combinations of the columns. Say it: “capital C”.
A vector: in the sum V + W, a vector of W; in Problem 5(a), the vector (1, 4, 1, −1); in Problem 6(c), a vector orthogonal to the plane P. Say it: “w”.
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.
The matrix of a graph, with one row for each edge and one column for each node, recording where each edge starts and ends. Explained in Graphs, networks and incidence matrices.
At right angles; more generally, of two vectors or functions, having a dot product, or an integral of their product, of zero. Explained in Introduction to Fourier series.
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.
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.
A way to fit a model to data by choosing it to make the sum of the squared errors as small as possible. Explained in Projection matrices and least squares.
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.
A set of independent vectors from which every vector in a space can be built, in exactly one way, as a combination. Explained in Independence, basis and dimension.
A square matrix with only zeros below its diagonal (upper triangular) or only zeros above it (lower triangular). Explained in Elimination with matrices.
The rule that at any junction of a circuit or network, the total current flowing in equals the total flowing out. Explained in Graphs, networks and incidence matrices.
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.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
A way of multiplying two vectors that gives a number: multiply matching components and add, or lengths times the cosine of the angle between them. Explained in Vectors and the dot product.
Changing sign when two things are swapped, or when a shape or function is reflected; an antisymmetric matrix equals minus its transpose. Explained in Eigenvalues and eigenvectors.
The span of some vectors is everything that can be made by combining them; vectors span a space when they fill all of it. Explained in Independence, basis and dimension.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
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.
Of a square matrix: having no inverse, because its determinant is zero and some nonzero vector is sent to zero. Explained in The geometry of linear equations.
The statement made by swapping the 'if' and 'then' parts of another statement.
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).