[–λ 0 2 ] [–3 1–λ 6 ] [ 0 0 1–λ]which is (expand along the third row) (1-λ)2(–λ).
[–λ 0 2 ] [–3 1–λ 6 ] [ 0 0 1–λ]becomes
[ 0 0 2] [–3 1 6] [ 0 0 1]Some row operations change this to
[ 0 0 1] [–3 1 0] [ 0 0 0]which has rank 2. The null space is 1-dimensional. Surely x3=0, and if x1=1, then x2=3. A basis for this eigenspace is the set consisting of the single vector
[1] [3] [0].
[–λ 0 2 ] [–3 1–λ 6 ] [ 0 0 1–λ]becomes
[–1 0 2] [–3 0 6] [ 0 0 0]This matrix has rank 1. We can disregard the second row (it echos the first). There is no restriction on x2, and x1=2x3. Thus x2 and x3 are free. This subspace has dimension 2. A basis for this eigenspace is the set consisting of the two vectors
[0] [2] [1] [0] [0] [1].
[1 0 2] [3 1 0] [0 0 1]and D is
[0 0 0] [0 1 0] [0 0 1].