Diagonalizing M

Diagonalization is a big topic1, but we'll try to diagonalize MM here without too much magic. Strap in!

We want to find matrices PP and DD such that PDP1=(1110)PDP^{-1} = \begin{pmatrix}1 & 1 \\ 1 & 0 \end{pmatrix} and DD is diagonal. Let's do some rearranging:

PDP1=MPDP1P=MPPD=MP \begin{aligned} PDP^{-1} &= M \\ PDP^{-1}P &= MP \\ PD &= MP \\ \end{aligned}

We've gotten rid of the scary inverse. Let's expand out these matrices and chug some numbers (take a second to convince yourself this is correct):

(abcd)(λ100λ2)=(1110)(abcd)(λ1aλ2bλ1cλ2d)=(a+cb+dab) \begin{aligned} \begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix}\lambda_1 & 0 \\ 0 & \lambda_2 \end{pmatrix} &= \begin{pmatrix}1 & 1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix}a & b \\ c & d\end{pmatrix} \\ \begin{pmatrix}\lambda_1 a & \lambda_2 b \\ \lambda_1 c & \lambda_2 d \end{pmatrix} &= \begin{pmatrix} a + c & b + d \\ a & b \end{pmatrix} \\ \end{aligned}

This one matrix equality is really four separate equations: let's go cell by cell.


  1. I can't recommend 3blue1brown's videos on this topic enough: here's the one that covers diagonalization. There are much more elegant ways of understanding diagonalization and computing them than I can provide here.

Diagonalizing M

Diagonalization is a big topic1, but we'll try to diagonalize MM here without too much magic. Strap in!

We want to find matrices PP and DD such that PDP1=(1110)PDP^{-1} = \begin{pmatrix}1 & 1 \\ 1 & 0 \end{pmatrix} and DD is diagonal. Let's do some rearranging:

PDP1=MPDP1P=MPPD=MP \begin{aligned} PDP^{-1} &= M \\ PDP^{-1}P &= MP \\ PD &= MP \\ \end{aligned}

We've gotten rid of the scary inverse. Let's expand out these matrices and chug some numbers (take a second to convince yourself this is correct):

(abcd)(λ100λ2)=(1110)(abcd)(λ1aλ2bλ1cλ2d)=(a+cb+dab) \begin{aligned} \begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix}\lambda_1 & 0 \\ 0 & \lambda_2 \end{pmatrix} &= \begin{pmatrix}1 & 1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix}a & b \\ c & d\end{pmatrix} \\ \begin{pmatrix}\lambda_1 a & \lambda_2 b \\ \lambda_1 c & \lambda_2 d \end{pmatrix} &= \begin{pmatrix} a + c & b + d \\ a & b \end{pmatrix} \\ \end{aligned}

This one matrix equality is really four separate equations: let's go cell by cell.


  1. I can't recommend 3blue1brown's videos on this topic enough: here's the one that covers diagonalization. There are much more elegant ways of understanding diagonalization and computing them than I can provide here.