I have the following square matrix
$$ A = \begin{bmatrix} 2 & 0 & 0 \\ 6 & -1 & 0 \\ 1 & 3 &-1 \end{bmatrix} $$
I found the eigenvalues:
$2$ with algebraic and geometric multiplicity $1$ and eigenvector $(1,2,7/3)$.
$-1$ with algebraic multiplicity $2$ and geometric multiplicity $1$; one eigenvector is $(0,0,1)$.
Thus, matrix $A$ is not diagonizable. My questions are:
How can I find the Jordan normal form?
How I can find the dimension of the eigenspace of eigenvalue $-1$?
In Sagemath, how can I find the dimension of the eigenspace of eigenvalue $-1$?
The SageMath commands to compute anything about this matrix are easy to discover.
Define the matrix:
and then type
a.jor<TAB>and thena.eig<TAB>, where<TAB>means hit the TAB key. This will show you the methods that can be applied toathat start withjorand witheig.Then, once you found the method
a.jordan_form, read its documentation by typinga.jordan_form?followed by TAB or ENTER.You will find that you can call
a.jordan_form()to get the Jordan form, ora.jordan_form(transformation=True)to also get the transformation matrix.Here is an exploration of the eigenvalues, eigenspaces, eigenmatrix, eigenvectors.