If $x$ is a real number, $\displaystyle\frac{(1+ 2i)^2}{x+i}$ is purely imaginary, what is the value of $x$?
So I expanded the numerator to $-3+4i$, which turns the imaginary number into $\displaystyle\frac{-3+4i}{x+i}$ from here though I'm not sure where to go to figure out what $x$ is.
Thanks for any direction or help.