An Overview of Key Ideas
The whole arc of linear algebra in one lecture, told through two 3-by-3 matrices. Vectors and their combinations, a difference matrix whose inverse is a sum matrix, and a one-entry change that destroys invertibility. The progression Strang wants you to see is vectors, then matrices, then subspaces — until you see the idea of a subspace, you haven't really got linear algebra.
Vectors, then matrices, then subspaces
This session’s video is a little different: it’s Strang’s own review lecture on linear algebra, borrowed from his 18.085 course (Fall 2008), rather than a 2005 18.06 lecture — “the one and only review, you could say, of linear algebra.”
Strang opens with a claim about how the subject is organized. Linear algebra progresses “starting with vectors to matrices and then finally to subspaces.” That last step is the abstraction — but not a difficult one — and it’s the one that matters: “Until you see the idea of a subspace, you haven’t really got linear algebra.”
So: what do you do with vectors? “You take their linear combinations.” That’s the key operation — multiply by numbers (scalars) and add. The whole lecture is that one operation, examined from every side, using two carefully chosen examples. (Both, Strang notes, live on the 18.06 website under Starting with Two Matrices.)
Three vectors and their combinations
Take three vectors in :
Before using all three, Strang asks a “serious question” about the first two. Multiples of alone fill a line — later he’d call that a one-dimensional subspace. Multiples of fill another line. And all combinations ? You get a plane. Not all of 3-D — adding a point on one line to a point on the other can’t escape the plane the two lines span. The great thing about linear algebra is that this instinct survives into dimensions, “10-dimensional, 100-dimensional, where we can’t visualize, but yet, our instinct is right if we just follow.”
Now bring in . How do you take combinations of three vectors? Strang’s habit, and the course’s central move: put the vectors into the columns of a matrix.
Then — a matrix times a vector produces exactly the combination you wanted. That’s how matrix multiplication works, by columns, “and you don’t always see that,” because everyone computes a component at a time, row dotted with vector. Do it that way and the components come out as
It always helps to give names to things: is a difference matrix — a first difference matrix — because it takes differences of the ‘s. Feed it the squares, , and out come the odd numbers, : differences of squares are odd. (“That appealed to me in school somehow. That was already a bad sign, right?”)
Going backwards: the inverse is a sum matrix
The forward direction — input , output — is easy and important. “But the more deep problem is, what if I give you and ask for ?” Now we’re solving : three equations, three unknowns.
Because is lower triangular, we can march from the top, substituting down as we go:
Now the “good early step in linear algebra”: look at that solution and see a matrix multiplying . Read off the coefficients of , column by column:
And this particular inverse has a name too. took differences, so takes sums — call it for sum matrix; that’s why you see rows of 1’s. Check with the earlier numbers: differences of gave , and sums of give back .
One more observation to bank before moving on: for this matrix , if then . To get zero out, you had to put zero in. Keep that in mind.
Change one entry: the matrix C
Second example, and the contrast is the whole point. Keep , keep , but replace by :
One new entry, a in the corner. Now the first row takes : the difference equation has become circular — “you’ve sort of changed the boundary condition” — which is why Strang calls it . Can we solve ? “You’re guessing already, no we can’t do it.” The trouble shows up several ways:
Nonzero inputs give zero output. applied to gives zero — the differences of a constant vector all vanish. And not just that one vector: every multiple works. A whole line of solutions to — later language would call that line a subspace. This is fatal for invertibility: “no can bring you back… I can’t multiply zero by anything and get back to .”
The equations conspire. Add the three left-hand sides of : everything cancels, and you get — not a fourth independent equation, but a consequence of the three. So is solvable exactly when , and hopeless otherwise. Strang gives the condition a mechanical meaning: if the ‘s are forces on masses in a cyclic arrangement of springs, solvability says the forces must add to zero — otherwise the system takes off.
The geometry. In the picture, and span a plane — and lies in that plane. ” gave us nothing new.”
Which ‘s do the combinations of reach? All combinations of the three columns is the same thing as all vectors — that’s just how matrix multiplication works. And every output of has components adding to zero. So the reachable ‘s form exactly the plane . Check it against the columns themselves: the components of add to zero, of add to zero, of add to zero — so every combination does too. “That’s the equation of the plane.”
What a subspace is
The two examples earn the abstraction. A vector space is a bunch of vectors where you can take all their combinations — “that’s what linear algebra does.” A subspace is a vector space inside a bigger one; that’s why the prefix “sub-” is there. The plane is a typical subspace. A triangle drawn inside it is not, because would already escape the triangle. You get subspaces by taking all combinations, and the sizes can be anything: “a 7-dimensional subspace inside a 15-dimensional space” is no problem to work with, even if nobody can visualize it — seven vectors with 15 components each is a matrix with 105 entries, which MATLAB deals with instantly.
What are all the subspaces of ? Planes through the origin and lines through the origin — “the real, the proper subspaces.” Plus two extreme possibilities that mathematics always counts: the whole space itself, and the smallest subspace of all, the origin alone. A single nonzero point can’t qualify — multiply its vector by five and you’ve left it — but the set containing just the zero vector can: “not empty. It’s got that one point but that’s all.” The dimensions run 3 for the whole space, 2 for a plane, 1 for a line, 0 for the origin.
Strang closes with a hint at what’s ahead. Matrices can be rectangular — a matrix takes 3-dimensional space to 7-dimensional space, and “you can’t invert that.” What comes up every time with a rectangular is that sooner or later ” transpose sticks its nose in”: the course keeps meeting , which always comes out square ( times is ) and always symmetric. Watch for it in applications of all kinds — in networks, is associated with Kirchhoff’s voltage law and with Kirchhoff’s current law, and “they just teamed up together.”
Problems
The recitation video, where a TA works problem 13.1, is at https://youtu.be/OZxzHcW663g. Try it under exam conditions first — it appeared on an actual 18.06 quiz.
(Quiz 1, Fall 1999, question 4.) The usual problem is turned upside down: you are told that all solutions to
are given by
Say everything you can about the columns of the matrix .
Show solution
Size of . multiplies an with three entries and produces a vector with four, so is : three columns , each in . Call the right-hand side .
Set up two equations. Write (particular solution) and (special solution). Since solves for every : taking gives ; taking gives , and subtracting, .
Solve for the columns. says the combination of the columns with weights equals :
and with weights says
This is a linear system whose unknowns are vectors. The second equation gives ; substituting into the first, , so
The second and third columns are completely determined.
What about ? The solution set has exactly one free parameter , so the null space of has dimension 1 — there is just one special solution. Then , so has exactly two linearly independent columns. Since and are both multiples of , the first column must supply the second independent direction: is not a multiple of — not any multiple, including the zero multiple. If it were, the rank would drop below 2 and a second free parameter would appear in the solution set. That is everything that can be said about .
Let be the first difference matrix from the lecture,
(a) Compute for , the first three cubes. (b) Solve for by working from the top equation down, and check your answer using the sum matrix .
Show solution
(a) takes differences: .
(b) The equations are , , . Because is lower triangular, substitute down from the top: , then , then . So .
Check with the sum matrix — takes running sums of :
Sums undo differences — the difference-matrix / sum-matrix pairing from the lecture.
Let be the circular difference matrix from the lecture,
(a) Decide whether is solvable, and if so find all solutions. (b) Decide the same for .
Show solution
The solvability test from the lecture: adding the three equations makes every on the left cancel, leaving . A solution can exist only when the components of add to zero.
(a) , so the system is solvable. The equations are
Only differences of the ‘s appear, so fix : then from the first equation and from the second; the third checks, . That gives a particular solution . Since sends every constant vector to zero, all solutions are
— a whole line of solutions.
(b) , so there is no solution: every output has components adding to zero, and does not lie in that plane.
(a) Show that the lecture’s three vectors , , are dependent by exhibiting a nonzero combination of them that equals the zero vector. (b) Replace by a vector of your choosing so that the three vectors form a basis for , and explain how you know your trio qualifies.
Show solution
(a) Add them: . A combination with nonzero coefficients () gives zero, so the vectors are dependent — equivalently, lies in the plane spanned by and .
(b) Take , the lecture’s original third vector. The plane spanned by and consists of vectors whose components add to zero (both spanning vectors have that property, so every combination inherits it). The components of add to , so is not in that plane: the three vectors are independent. Three independent vectors in form a basis — their combinations fill the whole space, and the matrix with these columns is invertible (the lecture even produced its inverse, the sum matrix). Any third vector whose components do not sum to zero would work equally well.