We have the matrix $A=\begin{pmatrix}\lambda_1 & 1 & 0 \\ 0 & \lambda_2 & 1 \\ 0 & 0 & \lambda_3\end{pmatrix}$ and $\phi (x)=Ax$, where $\lambda_1, \lambda_2,\lambda_3\in \mathbb{R}$.
I have shown that $\lambda_1, \lambda_2,\lambda_3$ are the eigenvalues of $\phi$.
I want to show that $\phi$ is diagonalizable iff $\lambda_1, \lambda_2,\lambda_3$ are distinct.
If all eigenvalues are distinct then it follows that $\phi$ is diagonalizable.
Why how can we show the other direction?
Do we have to use the dimension of the eigenspace and the algebraic multiplicity? Or can we show that?
In fact, $\phi$ is diagonalizable iff $\phi$ has three linearly independent eigenvectors.
If $\lambda_i=\lambda_j$ for some $1\le i\ne j\le 3$, then there is only one eigenvector of the eigenvalue $\lambda_i$. Thus, $\phi$ has only two linearly independent eigenvectors, that leads to contradiction.