I was recently grading my students' tests for a college algebra course I teach. Students were to solve $9x^2+1=0$. So the correct approach would be to say
$$9x^2+1=0 \implies 9x^2=-1 \implies x^2 = - \frac{1}{9}$$
$$\implies x = \pm \frac{\sqrt{-1}}{\sqrt{9}} \implies x= \pm \frac{1}{3}i$$
But my student approached it differently. They said
$$9x^2+1=0 \implies 9x^2=-1 \implies x^2 = - \frac{1}{9}$$
$$\implies x = \pm \frac{\sqrt{1}}{\sqrt{-9}} \implies x= \pm \frac{1}{3i}$$
So, what's going on here? I can't see a mistake with my student's line of reasoning, since the negative sign can be placed arbitrarily in a rational expression. But clearly in general $a+bi \neq \frac{1}{a+bi}$. Is there something I'm missing here?