I need to find eigenvectors and eigenvalues of $\begin{pmatrix} 1 & i \\ -i & 1 \end{pmatrix}$.
Attempt: When I find the equation which I have to solve for the eigenvalues I get $(\lambda -1)^2 +i=0$. Solving for $\lambda$ I get $\lambda =\pm \frac{1-i}{\sqrt{2}}+1$ using $\sqrt{-i}=\frac{1-i}{\sqrt{2}}$. However, my book lists the following answers: $\lambda =0;2$. Could you explain how to get to these answers. Thank you.