A new chapter, about orthogonality: of vectors, of subspaces, of bases (transcript, p. 1). The big picture of the four subspaces already has their dimensions, and in , and in . Now it turns out that the two subspaces on each side meet at ninety degrees (p. 1). It continues the four fundamental subspaces, and uses the dot product.
Orthogonal vectors#
Orthogonal means perpendicular: in dimensions, the angle between the vectors is ninety degrees (transcript, p. 2). The test is the dot product, written as a row times a column (p. 2):
In words
x^ capital T y equals x one y one plus x two y two plus and so on plus x sub n y sub n equals 0
Why, from Pythagoras (pp. 3–6). For a right triangle with sides , and hypotenuse , , which is not true for other triangles (p. 3). The length squared of a vector is , positive unless ; for it is (p. 4). (Strang says the length is fourteen; the length squared is 14, the length .) Take , with : then , has , and indeed (pp. 4–5). In letters (pp. 5–6):
In words
x^ capital T x plus y^ capital T y equals the quantity x plus y, all ^ capital T the quantity x plus y, equals x^ capital T x plus y^ capital T y plus x^ capital T y plus y^ capital T x which gives 2 x^ capital T y equals 0
since for real vectors (p. 5). The zero vector is orthogonal to every vector (pp. 6–7).
Orthogonal subspaces#
In words
capital S perpendicular capital T : s^ capital T t equals 0 for every s in capital S and every t in capital T
Subspace is orthogonal to subspace when every vector in is orthogonal to every vector in (transcript, pp. 7–8). Are the blackboard plane and the floor plane (with the origin at a corner) orthogonal? No: a vector along the line where they meet lies in both, and it is not orthogonal to itself (pp. 8–9). Orthogonal subspaces meet only at zero, and need more than that (p. 9). In the plane: a line through the origin is never orthogonal to the whole plane, always orthogonal to the zero subspace, and orthogonal to another line exactly when they meet at ninety degrees (pp. 9–10).
The row space is orthogonal to the nullspace#
All that is known about in the nullspace is (transcript, p. 10). Written out by rows (pp. 10–11):
In words
row 1; row 2; and so on; row m x equals 0; 0; and so on; 0
each equation says that a row dotted with is zero: is orthogonal to every row. It is then orthogonal to every combination of rows, the whole row space (pp. 11–12):
In words
the quantity c one row sub 1 plus c two row sub 2 plus and so on, all ^ capital T x equals 0
The same argument for shows that the column space is orthogonal to the left nullspace (p. 12). So is cut into two perpendicular subspaces, and so is (pp. 12–13).
Orthogonal complements (pp. 13–15). Two perpendicular lines in cannot be the row space and nullspace of a matrix, because must be 3 (p. 13). Take the rank-one matrix (p. 13)
In words
capital A equals 1 2 5; 2 4 10
Its row space is the line through ; its nullspace has dimension , the plane perpendicular to . The second row changes nothing: the single equation gives the plane, and is the normal vector from calculus (pp. 14–15). So the nullspace contains all vectors perpendicular to the row space, not just some: the two are orthogonal complements in (p. 15). Strang calls this part of the fundamental theorem of linear algebra (the dimensions being one part, orthogonality another, and orthogonal bases still to come) (p. 16).
Coming next: solving Ax = b with no solution#
The main problem of the chapter is to "solve" when there is no solution, not being in the column space (transcript, pp. 16–17). This is done all the time: a thousand measurements of a satellite with six unknown parameters, or a pulse rate measured many times, give too many equations, with noise in but information too (p. 17). Throwing away equations until the system is square is not satisfactory: all measurements should be used (p. 18). The key matrix is , and the central equation of the chapter, for a best solution , will be (pp. 19–21)
In words
capital A ^ capital T capital A x hat equals capital A ^ capital T b
is square () and symmetric, since (pp. 19–20). For three equations in two unknowns (pp. 21–22):
In words
capital A equals 1 1; 1 2; 1 5, capital A ^ capital T capital A equals 3 8; 8 30
which is invertible. But not always: Strang changes to a rank-one matrix and finds entries 9, 9 and 27, a singular (pp. 22–23). The transcript does not read out the new ; keeping the first column , the only second column that fits is , giving with entries 3, 9, 9 and 27. A product involving a rank-one matrix cannot have rank above one (p. 23). In general (p. 23):
In words
capital N ( capital A ^ capital T capital A ) equals capital N ( capital A ), r a n k ( capital A ^ capital T capital A ) equals r a n k ( capital A )
so is invertible exactly when the columns of are independent (p. 23). Strang promises the reason as soon as he can; the proof comes in Lecture 16.
Orthogonality of your own
(a) For , find a basis of the nullspace and check that it is orthogonal to the row space. (b) Check Pythagoras for and . (c) Is invertible for ?
(a) Nullspace
The rank is 1; the one equation is , with free , . Special solutions: and . Both are orthogonal to : and . Dimensions .
(b) A right triangle
. , , and has .
(c) AᵀA
, with determinant : invertible, as it must be, since the columns of are independent.
Summary#
- and are orthogonal when , which is Pythagoras in disguise; .
- Subspaces are orthogonal when every vector of one is orthogonal to every vector of the other.
- The row space and nullspace are orthogonal complements in ; the column space and left nullspace in .
- is square, symmetric, with ; invertible exactly when has independent columns. Next: .