Let $A=\begin{pmatrix}1&-4\\1&1\end{pmatrix}$ then I want to diagonalize this matrix. Doing it's characteristic polynomial I find out that $\lambda_{1,2}=1\pm2i$. Then it's diagonal matrix $$D=\begin{pmatrix}1&2\\-2&1\end{pmatrix}$$
Now how do I find $P$ in $A=PDP^{-1}$, basically how do I find the eigenvectors of this Matrix if the roots are complex?
I'm sorry... I see I didn't asked the right question.
Actually: I have an system of differential equations with that matrix and as you can see I can't diagonalize the matrix in that form, but however, I want to write it in the form of $A=PDP^{-1}$ with $D=\begin{pmatrix}a&b\\-b&a\end{pmatrix}$, how do I find $P\in \mathcal M_2(\mathbb{R})$?
Suppose $A (u+iv) = (a+ib) (u+iv)$ where everything is real (except $i$, of course).
Then, if $u,v$ are linearly independent, choose the basis $u,v$ and note that $A$ has the form $\begin{bmatrix} a & b \\ -b & a\end{bmatrix}$ in this basis.
If $u,v,b$ are non zero then $u,v$ are linearly independent (because $u+iv, u-iv$ are linearly independent over $\mathbb{C}$).
With $P=\begin{bmatrix} 0 & 1 \\ {1 \over 2} & 0 \end{bmatrix}$ you will get the desired result.