First, we need the characteristic polynomial.
Next, we consider the eigenvalue \(\lambda=3\text{.}\) The computer gives us the following:
In the next cell, note that we doubled the eigenvectors in E3
to avoid fractions. To follow the solution in our example, we append 2*E3[0]
, and reduce the resulting matrix. You should find that using the eigenvector \(\yy_1\) corresponding to E3[0]
leads to an inconsistent system. Once you confirm this, replace E3[0]
with E3[1]
and re-run the cell to see that we get an inconsistent system using \(\yy_2\) as well!
The systems \((A-3I)\yy = \yy_1\) and \((A-3I)\yy=\yy_2\) are both inconsistent, but we can salvage the situation by replacing the eigenvector \(\yy_2\) by some linear combination \(\zz_2 = a\yy_1+b\yy_2\text{.}\) We row-reduce, and look for values of \(a\) and \(b\) that give a consistent system.
The rref
command takes things a bit farther than we’d like, so we use the command echelon_form()
instead. Note that if \(a=b\text{,}\) the system is inconsistent.
The jordan_form()
command returns a pair \(P,J\text{,}\) where \(J\) is the Jordan canonical form of \(A\text{,}\) and \(P\) is an invertible matrix such that \(P^{-1}AP=J\text{.}\) You might find that the computer’s answer is not quite the same as ours. This is because the Jordan canonical form is only unique up to permutation of the Jordan blocks. Changing the order of the blocks amounts to changing the order of the columns of \(P\text{,}\) which are given by a basis of (generalized eigenvectors).