<s>[INST] Finding the Exponential of a Matrix that is not Diagonalizable Consider the $3 \times 3$ matrix
$$A =
\begin{pmatrix} 
1 & 1 & 2 \\ 
0 & 1 & -4 \\ 
0 & 0 & 1  
\end{pmatrix}.$$
I am trying to find $e^{At}$.
The only tool I have to find the exponential of a matrix is to diagonalize it. $A$'s eigenvalue is 1. Therefore, $A$ is not diagonalizable.
How does one find the exponential of a non-diagonalizable matrix?
My attempt:
Write
$\begin{pmatrix} 
1 & 1 & 2 \\ 
0 & 1 & -4 \\ 
0 & 0 & 1  
\end{pmatrix} = M  + N$,
with $M = \begin{pmatrix} 
1 & 0 & 0 \\ 
0 & 1 & 0 \\ 
0 & 0 & 1  
\end{pmatrix}$ and $N = \begin{pmatrix} 
0 & 1 & 2 \\ 
0 & 0 & -4 \\ 
0 & 0 & 0  
\end{pmatrix}$.
We have $N^3 = 0$, and therefore $\forall x > 3$, $N^x = 0$.  Thus:
$$\begin{aligned}
e^{At}
&= e^{(M+N)t} = e^{Mt} e^{Nt} \\
&= \begin{pmatrix} 
e^t & 0 & 0 \\ 
0 & e^t & 0 \\ 
0 & 0 & e^t  
\end{pmatrix} \left(I + \begin{pmatrix} 
0 & t & 2t \\ 
0 & 0 & -4t \\ 
0 & 0 & 0  
\end{pmatrix}+\begin{pmatrix} 
0 & 0 & -2t^2 \\ 
0 & 0 & 0 \\ 
0 & 0 & 0  
\end{pmatrix}\right) \\
&= e^t \begin{pmatrix} 
1 & t & 2t \\ 
0 & 1 & -4t \\ 
0 & 0 & 1  
\end{pmatrix} \\
&= \begin{pmatrix} 
e^t & te^t & 2t(1-t)e^t \\ 
0 & e^t & -4te^t \\ 
0 & 0 & e^t  
\end{pmatrix}.
\end{aligned}$$
Is that the right answer?
 [/INST] If you know about the Jordan Canonical Form you can use that.
Another method, probably more elementary, was mentioned in a comment. The comment was deleted; I don't know why. Note that $A=I+N$, where $N^3=0$. It follows that $$A^k=I+kN+\frac{k(k-1)}{2}N^2.$$You can use that to calculate $e^{At}=\sum t^kA^k/k!$.
Edit: Oh, that comment was converted to an answer. I'll leave this here anyway, being more detailed (at least regarding one approach).
</s>