$T$ is an endomorphism from $\mathbb R^3$ to $\mathbb R^3$
The eigenvalues of $T$ are $ \lambda\ _1=1 , \lambda\ _2=-1$
$G= \{(x,y,z)\mid x-y+z=0\} $ is an eigenspace of $T$
$T(1,1,1)=(-1,-1,-1)$
I need to prove $T$ is diagonalizable
In my attempt I found a basis of $G$, which is $\{(1,0,-1),(0,1,1)\}$
Then note $T(1,1,1)=(-1,-1,-1)$ have the eigenvalue $-1$
Can I assume the diagonal matrix have the eigenvalues $ \lambda_1=1 , \lambda_2=-1, \lambda_3=-1$ because (1,1,1) does not belong to the subspace spanned by $(1,0,-1),(0,1,1)$?
The first eigenspace has dimension $2$, the second dimension $1$. The sum is indeed $3$, the dimension of $V=\mathbb R^3$.
Thus, $T$ meets the requirement to be diagonalizable.
The diagonal matrix will in fact have two $1$'s and one $-1$ on the diagonal...