We were putting equations into vertex form to factor as part of solving, and we were told to use the equation $c=\left(\frac{b}{2}\right)^2$. I figured you could skip vertex form and factor more easily using $c=b^2$. These two solving methods gave different results for x.
$$x^2+5x+3=0\\x^2+5x+c=-3+c\\x^2+5x+\frac{25}{4}=\frac{37}{4}\\\left(x+\frac{5}{2}\right)^2=\frac{37}{4}\\x+\frac{5}{2}=\sqrt{\frac{37}{4}}\\x=\frac{5}{2}\pm\frac{i\sqrt{37}}{2}\\x=5\pm i\sqrt{37}$$
As you can see, this is quite a complicated method of solving. Why don't we just use $b^2$:
$$x^2+5x+3=0\\x^2+5x+c=-3+c\\x^2+5x+25=22\\(x+5)^2=22\\x+5=\sqrt{22}\\x=5\pm\sqrt{22}$$
but now we have different results? Why is this? Is $c=b^2$ invalid? Did I make a mistake? If I'm adding $b^2$ to both sides, it should work, shouldn't it?