Two applications (transcript, p. 1). First Markov matrices, the eigenvalue application, where the important eigenvalue is 1. Then, if time allows, Fourier series, an application of orthonormal bases from the projection chapter.
What a Markov matrix is#
Strang invents a typical one, with columns , and (p. 1):
In words
capital A equals 0.1 0.01 0.3; 0.2 0.99 0.3; 0.7 0 0.4
Two properties make it Markov (p. 1):
- every entry is (Markov matrices come from probabilities, which are never negative);
- every column adds to .
Both properties survive squaring, so all powers are Markov matrices too (pp. 1–2).
Eigenvalue 1 and the steady state#
For differential equations last time, the steady state came from , because (p. 2). For powers, a zero eigenvalue dies at once; here the eigenvalue that matters is (p. 2). The key facts (pp. 2–4):
- is an eigenvalue, found without any determinant;
- every other eigenvalue has , and in all but exceptional cases ; none is larger than 1;
- the eigenvector for has no negative components, when is not repeated (Strang does not prove this part, p. 9).
With (a complete set of eigenvectors assumed, as always) (p. 3):
In words
u sub k equals capital A to the power k u nought equals c one 1 to the power k x one plus c two lambda two to the power k x two plus and so on goes to c one x one
All the terms with go to zero, and the steady state is the part of (p. 3).
Why (pp. 4–6). Subtract : the diagonal of the example becomes , , . Every column of now adds to zero, and the claim is that is singular (p. 4). Rather than a determinant, look at the rows: adding all three rows gives the zero row, so the rows are dependent and the square matrix is singular (pp. 5–6). In other words, is in the nullspace of , the left nullspace (p. 6).
and have the same eigenvalues (pp. 7–8). The determinant of a matrix equals that of its transpose (property 10), and :
In words
the determinant of the quantity capital A minus lambda capital I, equals the determinant of ( the quantity capital A minus lambda capital I, all ^ capital T ) equals the determinant of the quantity capital A ^ capital T minus lambda capital I
So is an eigenvalue of , with eigenvector , and therefore of , but with a different eigenvector: the nullspace of , not its left nullspace (p. 8). For the example Strang finds it on the spot: and make the last row zero (), and then the first row, , needs (pp. 8–9):
In words
x one equals 0.6; 33; 0.7
All positive, as the theory predicts (pp. 8–9). (Strang first expects a component of 3300 and corrects himself to 33.)
Movement between two states#
Where do Markov matrices come from? Strang's example: the populations of California and Massachusetts, with the same fractions moving every year (pp. 9–10). The entries are probabilities of moving or staying, so they lie between 0 and 1, and each column adds to 1 because everybody is accounted for: the total population is conserved (p. 10). Each year of California stays and moves to Massachusetts; of Massachusetts stays and moves to California (pp. 10–11):
In words
u California; u Massachusetts sub k plus 1 equals 0.9 0.2; 0.1 0.8 u California; u Massachusetts sub k
Strang notes the severe limitation: the same matrix acts at every step (p. 10). Start with in California and in Massachusetts (p. 11). After one step the populations are and , and the total stays for ever (pp. 11–12).
The eigenvalues are and, from the trace , ; the determinant agrees (pp. 12–13). gives , positive, and gives (pp. 13–14). Fitting (p. 14):
In words
u sub k equals 1000 over 3, times 1 to the power k 2; 1 plus 2000 over 3, times (0.7) to the power k minus 1; 1
The part disappears, and the populations approach in California and in Massachusetts (pp. 13–14).
Many applications and other textbooks, for example in electrical engineering, use row vectors and multiply from the left. They work with the transpose, and then the rows add to one (p. 15).
Expansion in an orthonormal basis#
Before Fourier, a comment on projections with an orthonormal basis of -dimensional space (p. 15). Any is a combination (pp. 15–16):
In words
v equals x one q one plus x two q two plus and so on plus x sub n q n
To find , take the dot product of everything with : all terms but the first give zero, and (p. 16):
In words
x one equals q one ^ capital T v
In matrix language , so , and the first component is (p. 17).
Fourier series#
Fourier series are built on the same orthogonality (p. 18). A function is written as (p. 18)
In words
f(x) equals a nought plus a one cos x plus b one sine x plus a two cos 2 x plus b two sine 2 x plus and so on
Joseph Fourier's idea was to work in a space of functions: vectors become functions, and the basis is infinite, because the space is infinite-dimensional (p. 18). It works because these functions are orthogonal (p. 19).
For vectors, . For functions, multiply at every and, since there is a continuum of 's, integrate instead of adding (pp. 19–20). The sines and cosines have period , so and the interval is to (p. 20):
In words
f^ capital T g equals the integral from 0 to 2 pi of f(x) g(x) d x
For example , and trigonometric identities give the same for every other pair (p. 20). (Strang calls the basis orthonormal; strictly it is orthogonal, since , not 1, which is why appears below; the constant function has , which is why is the average.) The constant is the average value of (p. 21). For , do as for vectors: multiply by and integrate. Everything vanishes except one term (p. 21):
In words
the integral from 0 to 2 pi of f(x) cos x d x equals a one the integral from 0 to 2 pi of cos squared x d x equals pi a one, a one equals 1 over pi, times the integral from 0 to 2 pi of f(x) cos x d x
This is the classical formula for Fourier coefficients ("Euler's famous formula", or maybe Fourier's, as Strang puts it), and it is exactly an expansion in an orthogonal basis (p. 21). For more on Fourier series see 18.03's introduction to Fourier series.
A Markov chain and a Fourier coefficient
(a) Each year of the members of club P stay and move to club Q; of club Q stay and move to P. Start with in P and none in Q. Find and the steady state. (b) Find for by the formula, and check it by expanding .
(a) Matrix and eigenvalues
: columns add to 1. The eigenvalues are and, from the trace , . gives ; gives .
(a) Solution
: adding the equations, , so and . Then . Check: , and directly . Steady state: .
(b) Fourier coefficient
. Over the integrals of and are zero and , so . Check: , whose coefficient of is indeed (and is the average).
Summary#
- Markov: entries , columns add to 1. Then is an eigenvalue (rows of add to zero) and the others have .
- , the non-negative eigenvector for ; the total is conserved.
- and have the same eigenvalues.
- Orthonormal basis: . Fourier: functions as vectors, as inner product, .