$ A=\begin{pmatrix} 0 & 2 & 0\\ 0 & 0 & 3 \\ 0 & 0 & 0 \end{pmatrix}$, calculate $e^A$ I have encounter a question in my book , it was For $ A=\begin{pmatrix}
0 & 2 & 0\\
0 & 0 & 3 \\
0 & 0 & 0
\end{pmatrix}$, calculate $e^A$
My solution way : I tried to find its eigenvalues , so i found that the only eigenvalue is $0$ and the eigenspace is $(1,0,0)$ .Hence , it cannot be diagonalized.
Then , i tried to use taylor exponential and it gives me $ A=\begin{pmatrix}
1 & 2 & 0\\
0 & 1 & 3 \\
0 & 0 & 1
\end{pmatrix}$ .However the answer is $ A=\begin{pmatrix}
1 & 2 & 3\\
0 & 1 & 3 \\
0 & 0 & 1
\end{pmatrix}$ .
What am i missing ,can you help me?

The minimal polynomial of your matrix is $x^3$. To find $f(A)$ for a holomorphic function $f$ defined on some neighbourhood of $\sigma(A) = \{0\}$, you need to find a polynomial $p \in \Bbb{C}[x]$ of degree $< 3$ such that
$$p(0) = f(0), \quad p'(0) = f'(0), \quad p''(0)=f''(0)$$
and then $f(A)=p(A)$.
Trying out $p(x) = ax^2+bx+c$, we find that $p(x) = \frac12 x^2+x+1$ is the desired polynomial if $f$ is the exponential function.
Therefore
$$e^A = p(A) = \frac12A^2+A+I = \begin{pmatrix}
1 & 2 & 3\\
0 & 1 & 3 \\
0 & 0 & 1
\end{pmatrix}.$$
