Skip to content
BIASED

Determinants and eigenvalues

Block 1 of 8~2 min

A matrix applied again and again

The topic Inner products, norms and orthogonality gave us lengths, angles and projections. An orthogonal matrix keeps every length; a general one stretches some directions more than others. Which directions does it merely stretch? The question matters most when a matrix is applied again and again.

That situation is everywhere in ML. A linear recurrent network updates its hidden state as ht+1=Whth_{t+1} = W h_t. A Markov chain moves a probability distribution forward one step at a time. An iterative algorithm multiplies a vector by the same matrix until it stops changing.

The running example of this topic is

A=(4123),x=(10).A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}, \qquad x = \begin{pmatrix} 1 \\ 0 \end{pmatrix}.

Apply AA a few times:

Ax=(42),A2x=(1814),A3x=(8678).Ax = \begin{pmatrix} 4 \\ 2 \end{pmatrix}, \qquad A^2 x = \begin{pmatrix} 18 \\ 14 \end{pmatrix}, \qquad A^3 x = \begin{pmatrix} 86 \\ 78 \end{pmatrix}.

The vector grows about fivefold per step, and the ratio of its coordinates creeps towards 11: first 22, then 1.291.29, then 1.101.10. Three questions follow. Does AkxA^k x grow or shrink? Which direction does it approach? How fast?

For a diagonal matrix all three are easy, because it stretches each coordinate axis on its own:

(d100d2)k(x1x2)=(d1k x1d2k x2).\begin{pmatrix} d_1 & 0 \\ 0 & d_2 \end{pmatrix}^{k} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} = \begin{pmatrix} d_1^k\, x_1 \\ d_2^k\, x_2 \end{pmatrix}.

This topic finds the directions in which any matrix acts like a diagonal one. Along the way we need the determinant: one number that says how a matrix scales volume and whether it can be inverted.

Answers are saved on the server and tied to this browser until you sign in.