Given $$A = \begin{bmatrix} 0&-1\\1&0\end{bmatrix}$$ find $e^{tA}$, where $t \in \mathbb{R}$.
I have read about calculating the matrix exponential here. I know that when $A$ is written in its diagonal form it's kind of easy. The same with nilpotent matrices. Unfortunately, I don't know how to deal with $t$. Especially when the eigenvalues are complex (in the given example they are).
Your matrix is diagonalizable. Indeed, if you define$$P=\begin{bmatrix}1&1\\i&-i\end{bmatrix}$$(note that the columns of $P$ ere eigenvectors of $A$), then$$P^{-1}.A.P=\begin{bmatrix}-i&0\\0&i\end{bmatrix}$$and therefore$$P^{-1}.(tA).P=\begin{bmatrix}-ti&0\\0&ti\end{bmatrix}.$$So$$P^{-1}.e^{tA}.P=\begin{bmatrix}e^{-ti}&0\\0&e^{ti}\end{bmatrix}$$and so$$e^{tA}=P.\begin{bmatrix}e^{-ti}&0\\0&e^{ti}\end{bmatrix}.P^{-1}=\begin{bmatrix}\cos t&-\sin t\\\sin t&\cos t\end{bmatrix}.$$