BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Matrix spaces, rank one and small-world graphs

The ideas of basis and dimension work in any vector space, not only Rⁿ. All 3 × 3 matrices form a space M of dimension 9; the symmetric matrices S and the upper triangular matrices U are subspaces of dimension 6 each. Their intersection is the diagonal matrices, of dimension 3; their union is not a subspace, but their sum S + U (any symmetric plus any upper triangular matrix) is all of M, and dim S + dim U = dim(S ∩ U) + dim(S + U), 6 + 6 = 3 + 9. The solutions of y″ + y = 0 form a vector space with basis cos x and sin x (or e^{ix} and e^{−ix}): dimension 2, a nullspace of a differential operator. A rank-one matrix is a column times a row, A = uvᵀ, such as (1, 2) times (1, 4, 5); rank-one matrices are the building blocks of all matrices, but they do not form a subspace, since the rank of a sum can grow (rank(A + B) ≤ rank A + rank B). The vectors in R⁴ with v₁ + v₂ + v₃ + v₄ = 0 are the nullspace of the 1 × 4 matrix of ones: dimension 4 − 1 = 3, with three special solutions as a basis; its column space is R¹ and its left nullspace only zero, of dimension 0 with an empty basis. Finally, graphs (nodes and edges) and the small-world question: how many steps separate any two people in a friendship graph?

You need this first

Full reading path (15 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. The geometry of linear equations (18.06)
  7. Elimination with matrices (18.06)
  8. Matrix multiplication and inverse matrices (18.06)
  9. Factorization into A = LU (18.06)
  10. Transposes, permutations and vector spaces (18.06)
  11. Column space and nullspace (18.06)
  12. Solving Ax = 0: pivot variables and special solutions (18.06)
  13. Solving Ax = b: the complete solution (18.06)
  14. Independence, basis and dimension (18.06)
  15. The four fundamental subspaces (18.06)
On this page · 6 sections
  1. Matrix spaces
  2. Functions as vectors: a differential equation
  3. Rank-one matrices
  4. A subspace of R⁴ and its four subspaces
  5. Graphs and the small world
  6. Summary

The last lecture ended with vector spaces whose "vectors" are matrices. This one carries on, then looks at rank-one matrices, and ends with a first look at graphs (transcript, pp. 1, 10, 18). It continues the four fundamental subspaces.

Matrix spaces#

The space MM of all 3×33 \times 3 matrices is a vector space: matrices can be added and multiplied by numbers. They can also be multiplied together, but that is not part of the vector space picture (transcript, p. 1). The symmetric matrices form a subspace SS (a sum of symmetric matrices is symmetric, though a product need not be), and so do the upper triangular matrices UU (pp. 1–2).

A basis of MM: the nine matrices with a single 1 and zeros elsewhere. So dim M=9\text{dim}\, M = 9; MM is practically R9\mathrm{R}^9 with the numbers written in a square (pp. 2–3). Only three of those nine are symmetric, so a basis of the big space need not contain one of a subspace (pp. 3–4). For UU it happens that six of them are a basis (p. 4). Counting free entries (pp. 3–4):

Dimensions of matrix spaces
dim M=9,dim S=6,dim U=6\text{dim}\, M = 9, \qquad \text{dim}\, S = 6, \qquad \text{dim}\, U = 6
In words

dim capital M equals 9, dim capital S equals 6, dim capital U equals 6

A symmetric upper triangular matrix has zeros on both sides of the diagonal: the intersection S intersect US \text{ intersect } U is the diagonal matrices DD, of dimension 3 (pp. 4–5). The union of SS and UU is not a subspace, like two lines in the plane (p. 5). Instead take the sum S+US + U: all matrices s+us + u with ss in SS and uu in UU. Here it is all of MM (p. 6). The dimensions fit a nice formula (p. 7):

Dimensions of intersection and sum
dim S+dim U=dim(S intersect U)+dim(S+U):6+6=3+9\text{dim}\, S + \text{dim}\, U = \text{dim}(S \text{ intersect } U) + \text{dim}(S + U): \qquad 6 + 6 = 3 + 9
In words

dim capital S plus dim capital U equals dim ( capital S intersect capital U ) plus dim the quantity capital S plus capital U, : 6 plus 6 equals 3 plus 9

(On p. 5 Strang briefly calls SS three-dimensional and corrects it to six.)

Functions as vectors: a differential equation#

One more space without column vectors: the solutions of (transcript, p. 7)

The differential equation
d2ydx2+y=0\frac{d^2y}{dx^2} + y = 0
In words

d squared y over d x squared plus y equals 0

cos⁡x\cos x and sin⁡x\sin x are solutions, and so is eixe^{ix}, but it adds nothing new (pp. 7–8). The solutions form a vector space, a nullspace of the differential operator, with every solution a combination (p. 8):

The solution space
y=c1cos⁡x+c2sin⁡xy = c_1\cos x + c_2\sin x
In words

y equals c one cos x plus c two sine x

cos⁡x\cos x and sin⁡x\sin x are a basis, like the special solutions of Ax=0Ax = 0, and the dimension is 2, as for every linear homogeneous second-order equation; eixe^{ix} and e−ixe^{-ix}, with complex coefficients allowed, are another basis (pp. 8–9). Strang jokes that this is five minutes of 18.06 taking care of 18.03 (p. 9). Functions are vectors here because they can be added and multiplied by constants (p. 9).

Rank-one matrices#

Rank one matrices are simple: every row is a multiple of one row (transcript, p. 10). With first row (1,4,5)(1, 4, 5) and second row (2,8,10)(2, 8, 10), the row space has basis (1,4,5)(1, 4, 5), the column space has dimension 1 too, and the matrix is its pivot column times that row (pp. 10–11):

A rank-one matrix
A=(1452810)=(12)(145)A = \begin{pmatrix} 1 & 4 & 5 \\ 2 & 8 & 10 \end{pmatrix} = \begin{pmatrix} 1 \\ 2 \end{pmatrix}\begin{pmatrix} 1 & 4 & 5 \end{pmatrix}
In words

capital A equals 1 4 5; 2 8 10 equals 1; 2 1 4 5

Every rank-one matrix is a column times a row, A=uvTA = uv^T (p. 11). They are the building blocks: a 5×175 \times 17 matrix of rank 4 is a combination of four rank-one matrices (pp. 11–12).

Do the matrices of rank 4 (or less) in the space of 5×175 \times 17 matrices form a subspace? No: a sum of two can have rank 5 (pp. 12–13). In general (p. 13)

Rank of a sum
rank⁡(A+B)≤rank⁡(A)+rank⁡(B)\operatorname{rank}(A + B) \le \operatorname{rank}(A) + \operatorname{rank}(B)
In words

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 )

and the rank-one matrices are not a subspace either: a sum of two usually has rank 2 (p. 13).

A subspace of R⁴ and its four subspaces#

Let SS be the vectors in R4\mathrm{R}^4 whose components add to zero (transcript, p. 13):

The subspace S
S={ v in R4:v1+v2+v3+v4=0 }=N(A),A=(1111)S = \{\, v \text{ in } \mathrm{R}^4 : v_1 + v_2 + v_3 + v_4 = 0 \,\} = N(A), \qquad A = \begin{pmatrix} 1 & 1 & 1 & 1 \end{pmatrix}
In words

capital S equals v in R to the power 4 : v one plus v two plus v three plus v four equals 0 equals capital N ( capital A ), capital A equals 1 1 1 1

It is a subspace: multiples and sums still have components adding to zero (p. 14). It is the nullspace of the 1×41 \times 4 matrix of ones, which has rank 1, so dim S=n−r=4−1=3\text{dim}\, S = n - r = 4 - 1 = 3 (pp. 14–15). (Strang calls the vector bb for a moment on p. 15; it is vv.) The free variables are v2,v3,v4v_2, v_3, v_4, and the special solutions are a basis (p. 16):

Basis of S
(−1100),(−1010),(−1001)\begin{pmatrix} -1 \\ 1 \\ 0 \\ 0 \end{pmatrix}, \quad \begin{pmatrix} -1 \\ 0 \\ 1 \\ 0 \end{pmatrix}, \quad \begin{pmatrix} -1 \\ 0 \\ 0 \\ 1 \end{pmatrix}
In words

minus 1; 1; 0; 0, minus 1; 0; 1; 0, minus 1; 0; 0; 1

The other three subspaces of AA (pp. 15–18): the row space is the line of multiples of (1,1,1,1)(1, 1, 1, 1), dimension 1; the column space is all of R1\mathrm{R}^1, dimension 1; and the left nullspace N(AT)N(A^T) contains only zero, since no nonzero combination of the single row is zero. Its dimension is 0 and its basis is the empty set. The counts check: 3+1=4=n3 + 1 = 4 = n and 1+0=1=m1 + 0 = 1 = m (pp. 17–18).

Graphs and the small world#

A graph here is not a curve: it is a set of nodes and edges connecting some of them, for example five nodes and six edges, which a matrix will describe next time (transcript, p. 18). (Strang calls it five by six; with one row per edge, as in Lecture 12, it is 6×56 \times 5.) Take every person in the room as a node, with an edge between friends; or the whole country, some 260 million nodes in Strang's 1999 figure (pp. 18–19). How many steps separate the two people furthest apart? Strang counts his own distance to the president of the day as two, so his students' is at most three (pp. 19–21). "Six degrees of separation" is the popular answer, and a few shortcut edges bring distances down dramatically: a small world (p. 20). The web, with sites as nodes and links as edges, is another such graph (p. 21). The linear algebra of graphs is the next lecture (p. 20).

Worked example

Matrix spaces and rank one of your own

(a) In the space of 2×22 \times 2 matrices, let TT be the matrices with trace (sum of the diagonal entries) 0 and SS the symmetric matrices. Find the dimensions of TT, SS, T intersect ST \text{ intersect } S and T+ST + S. (b) Write (2−13−42−66−39)\begin{pmatrix} 2 & -1 & 3 \\ -4 & 2 & -6 \\ 6 & -3 & 9 \end{pmatrix} as uvTuv^T.

(a) T and S

TT: matrices (abc−a)\begin{pmatrix} a & b \\ c & -a \end{pmatrix}, three free numbers, so dim T=3\text{dim}\, T = 3. SS: (abbd)\begin{pmatrix} a & b \\ b & d \end{pmatrix}, also 3.

(a) Intersection and sum

T intersect ST \text{ intersect } S: (abb−a)\begin{pmatrix} a & b \\ b & -a \end{pmatrix}, dimension 2. Then dim(T+S)=3+3−2=4\text{dim}(T + S) = 3 + 3 - 2 = 4, all 2×22 \times 2 matrices.

(b) Column times row

Rows 2 and 3 are −2-2 and 33 times row 1, so u=(1,−2,3)u = (1, -2, 3) and v=(2,−1,3)v = (2, -1, 3). The rank is 1.

Summary#

Symbols on this page

Show the 33 symbols used here
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
aa a.
An entry of a 2 × 2 matrix in the worked example. Say it: “a”.
cc c.
The lower left entry of a trace-zero matrix in the worked example. Say it: “c”.
TT T.
As a superscript: the transpose. In the worked example, the 2 × 2 matrices with trace 0. Say it: “capital T”.
xx x.
The independent variable of the differential equation; in Ax = 0, the unknown vector. Say it: “x”.
yy y.
The unknown function in y″ + y = 0. Say it: “y”.
dd d.
As in d²y/dx²: a derivative. In the worked example, the lower right entry of a symmetric matrix. Say it: “d”.
ii i.
The imaginary unit, i² = −1. Say it: “i”.
nn n.
The number of columns. Say it: “n”.
ee e.
The base of natural logarithms, in e^{ix}. Say it: “e”.
mm m.
The number of rows. Say it: “m”.
vv v.
The row (transposed) in a rank-one matrix uvᵀ; also a vector in R⁴. Say it: “v”.
rr r.
The rank. Say it: “r”.
DD D.
The subspace of diagonal 3 × 3 matrices. Say it: “capital D”.
AA A.
A matrix: the rank-one example, or the 1 × 4 matrix of ones. Say it: “capital A”.
BB B.
A second matrix, in rank(A + B). Say it: “capital B”.
bb b.
The letter Strang briefly uses for v; in the worked example, an off-diagonal entry. Say it: “b”.
ss s.
An element of S, in the sum s + u. Say it: “s”.
NN N.
As in N(A): the nullspace. Say it: “capital N”.
MM M.
The vector space of all 3 × 3 matrices. Say it: “capital M”.
SS S.
The subspace of symmetric 3 × 3 matrices; later, the subspace of R⁴ with v₁ + v₂ + v₃ + v₄ = 0; in the worked example, the symmetric 2 × 2 matrices. Say it: “capital S”.
uu u.
The column in a rank-one matrix uvᵀ; also an element of U. Say it: “u”.
UU U.
The subspace of upper triangular 3 × 3 matrices. Say it: “capital U”.
y′′y'' y double prime.
The second derivative of y with respect to x. Say it: “y double prime”.
v1v_{1} v one.
The first component of v. Say it: “v one”.
v2v_{2} v two.
The second component of v. Say it: “v two”.
v3v_{3} v 3.
The third component of v. Say it: “v three”.
c1c_{1} c one.
The multiple of cos x in the general solution. Say it: “c one”.
c2c_{2} c two.
The multiple of sin x in the general solution. Say it: “c two”.
v4v_{4} v four.
The fourth component of v. Say it: “v four”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 32 words used here

New here

rank one.
Of a matrix: having rank exactly one, so it is a column times a row and every column is a multiple of one column.
graph.
A set of points, called nodes, some of which are joined by lines, called edges: a network, not a curve.
empty set.
The set with nothing in it.
node.
A point of a graph, in the sense of a network of points joined by lines (edges).
edge.
In a graph or network, a connection between two nodes, drawn as a line or an arrow.
small world.
A large network in which any two points are joined by a short chain of links, thanks to a few long shortcuts.

Also used

vector space.
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.
vector.
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.
matrix.
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.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
four fundamental subspaces.
The column space, nullspace, row space and left nullspace of a matrix, whose dimensions are all fixed by its rank. Explained in The four fundamental subspaces.
symmetric.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
subspace.
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.
triangular matrix.
A square matrix with only zeros below its diagonal (upper triangular) or only zeros above it (lower triangular). Explained in Elimination with matrices.
basis.
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.
diagonal.
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.
intersection.
The part common to two or more sets or shapes: everything that belongs to all of them. Explained in Column space and nullspace.
dimension.
The number of vectors in any basis of a vector space or subspace. Explained in Independence, basis and dimension.
union.
The set made of everything that is in one set or the other, or both. Explained in Column space and nullspace.
nullspace.
All the vectors x that a matrix sends to zero, that is, all solutions of Ax = 0. Explained in Column space and nullspace.
differential operator.
An operator built from derivatives, such as d/dx or d²/dx² + 1, that turns one function into another.
special solution.
A solution of Ax = 0 found by setting one free variable to 1 and the others to 0; together they build every solution. Explained in Solving Ax = 0: pivot variables and special solutions.
linear.
Of a map, operator or equation: respecting sums and multiples, so that L(au + bv) = aL(u) + bL(v). Explained in The geometry of linear equations.
row space.
All the vectors that can be made by combining the rows of a matrix; it is the column space of its transpose. Explained in Matrix multiplication and inverse matrices.
column space.
All the vectors made by combining the columns of a matrix; Ax = b can be solved exactly when b lies in it. Explained in Matrix multiplication and inverse matrices.
pivot column.
A column of a matrix that contains a pivot after elimination; the matching columns of the original matrix form a basis for its column space. Explained in Column space and nullspace.
rank.
The number of independent columns of a matrix, which always equals the number of independent rows. Explained in Similar matrices and the Jordan form.
free variable.
An unknown whose column has no pivot, so it can be given any value; the other unknowns are then fixed by the equations.
left nullspace.
The nullspace of the transpose of a matrix: all the combinations of its rows that give zero. Explained in The four fundamental subspaces.
trace.
The sum of the numbers on the main diagonal of a square matrix; it equals the sum of the eigenvalues. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
homogeneous.
Of a linear equation: with zero on the right-hand side, so that zero is a solution.

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).

Where this leads

In cosmology

Pages that build on this

Practise

Check your understanding

  1. What is the dimension of the space of symmetric 3×33 \times 3 matrices?
  2. Do the rank-one 5×175 \times 17 matrices (with the zero matrix) form a subspace?
  3. What is the dimension of the solution space of y′′+y=0y'' + y = 0?
0 of 3 answered

Flashcards

1 / 3