This lecture is officially the start of vector spaces and subspaces, and of the two subspaces Strang cares most about: the column space and the nullspace of a matrix (transcript, p. 1). It continues transposes, permutations and vector spaces.
Subspaces, unions and intersections#
A vector space allows two operations, adding and multiplying by numbers; together they mean that all linear combinations stay in the space (transcript, p. 1):
In words
v, w in the space which gives c v plus d w in the space, for all numbers c, d
is one; inside it, a plane and a line through the origin are subspaces, vector spaces inside a vector space (p. 2). Every subspace contains the zero vector (p. 2).
Is the union of and , all vectors in or or both, a subspace? No: adding a vector of to one of normally lands outside both (pp. 3–4). The intersection, the vectors in both, is a subspace; for a line not lying in the plane it is the zero vector alone, which is a subspace (pp. 4–5). This holds for any two subspaces and (pp. 5–6): if and are in both, then is in (as is a subspace) and in (as is), and so is . The intersection is usually smaller, but it is a subspace (p. 6).
The column space#
The example (transcript, p. 7):
In words
capital A equals 1 1 2; 2 1 3; 3 1 4; 4 1 5
Its columns have four components, so its column space is a subspace of : the number of rows decides (pp. 7–8). Three vectors alone are not a subspace; is all their linear combinations, the smallest space containing the columns (p. 8). Three vectors cannot fill all of four-dimensional space, as the class guesses, so it is something smaller (p. 9).
Which can be reached? is four equations in three unknowns, and for most there is no solution (p. 10):
In words
1 1 2; 2 1 3; 3 1 4; 4 1 5 x one; x two; x three equals b one; b two; b three; b four
But some right-hand sides work: (take ), (take , one of the first column), (take ) (pp. 11–12). Choose any and see what comes out: the reachable are exactly the combinations of the columns (p. 12).
How big is here? Column 3 is the sum of columns 1 and 2, so it adds nothing new: two columns give the same column space (pp. 13–14). Strang keeps the first columns that are not dependent and will call them pivot columns; column 1 could have been dropped instead (p. 14). So is a two-dimensional subspace of , a plane (pp. 14–15).
The nullspace#
The nullspace holds not right-hand sides but solutions: all with (transcript, p. 15). Its vectors have three components, so for this example it lies in , while the column space was in . For an matrix, is in and in (p. 16).
For a small example the nullspace can be found by eye (elimination will do it in general, p. 16). Zero is always in it (p. 17). So is : column 1 plus column 2 minus column 3 gives zero (p. 17). So is , and in fact every multiple (p. 18):
In words
capital N ( capital A ) equals c 1; 1; minus 1 : c any number
a line through the origin in (p. 19).
Why the nullspace is always a subspace (pp. 19–20). If and , then by the distributive law of matrix multiplication (p. 20)
In words
capital A the quantity v plus w, equals capital A v plus capital A w equals 0 plus 0 equals 0, capital A (12 v) equals 12 capital A v equals 0
Solutions of Ax = b do not form a subspace#
Change the right-hand side to (transcript, p. 21). There are solutions, and also (minus column 2 plus column 3) (pp. 21–22). But they do not form a subspace: zero is not a solution (p. 22). Strang says they form something like a line or plane that misses the origin, and leaves this case at "maybe a line" (pp. 22–23). (Not in the lecture: since the nullspace here is a line, so is this set, the line through along the nullspace direction; Lecture 8 shows this in general.) Every solution is ; with that gives .
Two ways to describe a subspace#
The two subspaces of this lecture show the two natural ways (transcript, p. 23):
- give some vectors and take all their combinations, as for the column space;
- give equations the vectors must satisfy, as for the nullspace, which then has to be worked out.
The next lecture finds the nullspace systematically for matrices too big to see by eye (p. 23).
Column space and nullspace of your own
Let . (a) Find . (b) Solve completely. (c) Is in ?
(a) A dependent column
Column 3 is : . So gives . Columns 1 and 2 are not multiples of each other, so this is the only dependence: is the line of multiples of , and is a plane in .
(b) A particular solution plus the nullspace
, so works. Adding any nullspace vector keeps the same: all solutions are , a line that misses the origin.
(c) Not in the column space
Any in is . A second component of 0 forces , then a third component of 0 forces , leaving , not . So has no solution.
Summary#
- The intersection of two subspaces is a subspace; the union usually is not.
- , all combinations of the columns, lies in ; is solvable exactly when is in .
- , all solutions of , lies in and is a subspace by and .
- The solutions of are not a subspace; in the example they are one solution plus the nullspace line.
- Subspaces are described by vectors to combine or by equations to satisfy.