There is a difference between "algebraic multiplicity" and "geometric multiplicity". The first, "algebraic multiplicity" is the multiplicity of the eigenvalue as a root of the characteristic equation. The second, "geometric multiplicity" is the dimension of the subspace of eigenvectors corresponding to a specific eigenvalue. They are NOT necessarily the same- if an eigenvalue has "algebraic multiplicity" n, then it may have "geometric multiplicty" any integer from 1 to n.
For example, the matrices
\begin{bmatrix}1 & 0 & 0 \\ 0 & 1 & 0\\0 & 0 & 1\end{bmatrix}
\begin{bmatrix}1 & 1 & 0 \\ 0 & 1 & 0\\0 & 0 & 1\end{bmatrix}
and
\begin{bmatrix}1 & 1 & 0 \\ 0 & 1 & 1\\0 & 0 & 1\end{bmatrix}
all have [math](\lambda- 1)^3= 0[/math] as characteristic equation so eigenvalue 1 with algebraic multiplicity 3. The first has all of R3 as "eigenspace", the second has a two dimensional eigenspace and the third a one dimensional eigenspace.
Personally, I prefer to find eigenvectors directly from the defintions: Av= \lambda v.
With
A= \begin{bmatrix} 1 & 0 & 0 \\ -5 & 0 & 2 \\ 0 & 0 & 1 \end{bmatrix}
we must have
Av= \begin{bmatrix} 1 & 0 & 0 \\ -5 & 0 & 2 \\ 0 & 0 & 1 \end{bmatrix}\begin{bmatrix}x \\ y \\ z\end{bmatrix}= \begin{bmatrix}x \\ -5x+ 2z \\ z\end{bmatrix}= \begin{bmatrix}x \\ y \\ z\end{bmatrix}
That is equivalent to the three equations x= x, -5x+ 2z= y, and z= z. The first and last tell us nothing, of course, so it reduces to -5x+ 2z= y. Then <x, y, z>= <x, -5x+ 2z, z>= <x, -5x, 0>+ <0, 2z, z>= x<1, -5, 0>+ z<0, 2, 1>.
Yes, the eigenspace corresponding to eigenvalue 1 is spanned by <1, -5, 0> and <0, 2, 1> and so has dimension 2. Either there is another eigenvalue or A cannot be diagonalized. Assuming there is no other eigenvalue, then it can be put into the "Jordan normal form"
\begin{bmatrix}1 & 0 & 0 \\ 0 & 1 & 1 \\0 & 0 & 1\end{bmatrix}
To do that you need to use a matrix, P, whose first two columns are the eigenvectors found and whose third column is a "generalized eigenvector", a vector v, such that (A- I)v is an eigenvector.