Going over past exams (without solutions) I came across this question:
$\frac{d^2y}{dt^2}+2 \frac{dy}{dt}+5y=0$.
I work out using guess $y=\exp\lambda t$
$\lambda^2+2\lambda+5=0$
By quadratic formula: $\lambda =-1 \pm2i$
Therefore $y(t)=\exp(t(-1+2i))$
$= \exp(t)\left( \exp(-1+2i) \right)$
$=\exp(t)\left( \exp(-1(\cos(2)+i\sin(2)\right)))$
$y(t)=e^{t}(\frac{\cos(2)+\sin(2)i}{e^1})$
But when I substitute the found $y$ into the original equation I don't identically get 0, and I'm not sure where I went wrong.
Thanks for your help.