This key lecture gives four words clear meanings: independence, span, basis and dimension (transcript, p. 1). Note what they apply to: a set of vectors is independent, spans, or is a basis; a space has a dimension. It continues the complete solution of Ax = b.
More unknowns than equations#
First a fact (transcript, pp. 1–2). If is with , more unknowns than equations, then has nonzero solutions. The reason is the algorithm: elimination finds at most pivots, so at least variables are free, and giving a free variable the value 1 produces a solution that is not all zeros (p. 2).
Independence#
In words
c one x one plus c two x two plus and so on plus c sub n x sub n is not equal to 0 unless c one equals c two equals and so on equals c sub n equals 0
Vectors are independent if no combination gives the zero vector except the zero combination; if some other combination gives zero, they are dependent (p. 3). Examples in the plane (pp. 4–6):
- and are dependent: (p. 4);
- a vector and the zero vector are dependent: take none of the first and, say, six of the zero vector. If one vector is zero, independence is dead (pp. 4–5);
- two vectors in different directions are independent, but three vectors in the plane are always dependent (pp. 5–6).
The last follows from the fact above. Put the vectors in the columns of a matrix; there is a free variable, so some has , a combination of the columns giving zero (p. 6).
Columns of a matrix (pp. 7–8). For vectors in the columns of , a combination is , so:
In words
independent exactly when capital N ( capital A ) equals 0 exactly when r equals n (no free variables); dependent exactly when capital A c equals 0 for some c is not equal to 0 exactly when r less than n
A free column is a combination of earlier columns, so with independent columns all are pivot columns (p. 7). The definition itself needs no matrix, and later the vectors need not be columns at all (p. 8).
Span and basis#
A set of vectors spans a space when the space consists of all their combinations; the columns of a matrix span its column space (pp. 8–9). The space they span is the smallest space containing them (p. 9). Spanning vectors may or may not be independent (p. 9).
A basis for a vector space is a sequence of vectors with two properties: they are independent, and they span the space. Enough vectors, and not too many (p. 10). A basis tells everything about a subspace (p. 10).
Bases of (pp. 11–14). The columns of the identity, along the , and axes, are one basis: forces all 's to be 0, as (pp. 11–12). The pair and is independent but does not span (p. 12). Adding their sum would be a goof: it lies in their plane (p. 13). For vectors in the test is (pp. 13–14):
In words
v one, and so on, v n are a basis of R to the power n exactly when the n times n matrix with these columns is invertible
(Strang tries as the third vector and says he believes it gives a basis, p. 13. It does not: all three vectors have equal first and second components, so they lie in the plane ; indeed , and the matrix with these columns has two equal rows and is singular. The other vector he mentions, , would work as the third vector: that matrix has determinant . Strang corrects the error at the start of Lecture 10.)
The pair , is still a basis of something: the plane it spans (p. 14). Adding would still span the plane, but the three would no longer be independent (p. 14).
Dimension#
Bases are far from unique: the columns of any invertible matrix are a basis of (transcript, p. 15). But every basis of a given space has the same number of vectors, three for , for , and likewise for a column space, a nullspace, or any other space (pp. 15–16). That number is the dimension of the space (p. 16):
In words
dim ( space ) equals number of vectors in any basis
If a space has dimension 6, seven vectors are too many and five not enough (p. 16).
Example: column space and nullspace#
Take the matrix whose third column is the sum of the first two and whose fourth repeats the first (transcript, p. 17):
In words
capital A equals 1 2 3 1; 1 1 2 1; 1 2 3 1
The four columns span by definition, but they are not independent: is in the nullspace (pp. 17–18). The natural basis of is the pivot columns, 1 and 2; columns 3 and 4 add nothing (pp. 18–19). So (p. 19):
In words
r a n k ( capital A ) equals r equals number of pivot columns equals dim capital C ( capital A ) equals 2
A matrix has a rank; a space has a dimension; and the rank of a matrix is the dimension of its column space (pp. 19–20). Other bases: columns 1 and 3, 2 and 3, or 2 and 4, or vectors not among the columns at all, such as and , the sum of all four columns (pp. 20–21). When the dimension is known, the right number of independent vectors is automatically a basis: if they failed to span, a further vector could be added independently, too many for the dimension (p. 21).
For the nullspace, alone does not span it (p. 22). Setting the free variables to and gives the two special solutions, which say how the columns depend on each other: column 3 is column 1 plus column 2, and column 4 equals column 1 (pp. 22–23). They are a basis of (pp. 23–24):
In words
capital N ( capital A ) has basis minus 1; minus 1; 1; 0, minus 1; 0; 0; 1; dim capital N ( capital A ) equals number of free variables equals n minus r
Testing independence and finding a basis
(a) Find a basis and the dimension of the space spanned by , , , , and a basis of the nullspace of the matrix with these columns. Is in the span? (b) Are , , a basis of ?
(a) Dependences
and , while and are not multiples of each other. So are a basis of the span, which has dimension 2: a plane in . The matrix is of rank 2, so its nullspace has dimension , with basis and .
(a) A vector in the span?
. Matching needs , , and then and both agree. So yes: .
(b) Three vectors in R³
The matrix with these columns has determinant , so it is invertible and the three vectors are a basis.
Summary#
- More unknowns than equations: has nonzero solutions.
- Independent: only the zero combination gives zero; for columns, and .
- Span: all combinations. Basis: independent and spanning. vectors are a basis of exactly when the matrix of them is invertible.
- Every basis has the same number of vectors, the dimension. ; .