I recently studied how the complex quadratic equation of $x^2-2x+5$ was solved:
Then I typed it in for the star of this question:
$$x^2-2x-5$$
And it used the quadratic formula, which I found boring. So I wondered: what will happen if I use the same method as the image above and just pretend it will have a complex solution. Will the imaginary numbers cancel out? What will happen?
So I did that, and my question is: how did this work so well? What is actually happening here? Is this a complex number thing, or just the fact that I'm splitting $x$ into two components?
Or did I just luck into the solution and actually have a subtle mistake?
Here are the steps I took.
$$x^2-2x-5=0$$
$$(a+bi)^2 - 2(a+bi) - 5 = 0$$
$$(a^2 + 2abi +b^2i^2) - 2a - 2bi - = 0$$
Reordering it to the 'template' of the image. (note: $b^2i^2 = -b^2$)
$$(a^2 - b^2 - 2a - 5) + i(-2b + 2ab) = 0$$
Alright, I'm on the right track as it is intuitive to me that only -5 should be the only changed value.
\begin{bmatrix} a^2 - b^2 - 2a - 5 = 0 \\ -2b + 2ab = 0 \end{bmatrix}
Here is where I venture of a little bit as my linear algebra is almost non-existent.
$$2ab - 2b = 0$$
$$2ab = 2b$$
$$2a = 2$$
$$a = 1$$
Since it's immediately visible what $b$ is in the same equation, I went to the other equation as I figured, it might have more information about $b$. We already have a believable value for $a$, so I subtitute it in there.
$$1^2 - 2*1 - b^2 - 5 = 0$$
$$-b^2 - 6 = 0$$
$$-6 = b^2$$
$$b = \sqrt{-6}$$
$$b = \sqrt{6}i \text{ or } b = -\sqrt{6}i$$
And substitute back for $x = a + bi$ we get:
$$x = 1 + (\pm\sqrt{6}i)i$$
$$x = 1 + (\pm\sqrt{6}i^2)$$
$$x = 1 + (\pm\sqrt{6}*-1)$$
$$x = 1 + (\pm\sqrt{6})$$
$$x = 1 \pm\sqrt{6}$$
Wait, that is correct (use the quadratic formula or something like SymPy to check, I use the website above called https://www.symbolab.com/solver/).
How is this possible? How is it possible that if I model this equation with complex numbers, I also get a valid solution? When isn't this possible?
$x^2-2x+5$">
You supposed that the solution had the form $a+bi$ but you permitted $a,b\in\mathbb{C}$. While this will yield a complex number (since they are closed under addition and multiplication), it is not quite the general form of a complex number, where we must have $a,b\in\mathbb{R}$.
The reason why this works is because of the fundamental theorem of algebra. $a+bi$ is still some complex number, even if we permit $a,b\in\mathbb{C}$, and by the fundamental theorem of algebra, every non-constant single variable polynomial has at least one complex root. And the real numbers are a subset of the complex numbers, that is $\mathbb{R}\subset\mathbb{C}$. So even by presuming that your solutions are complex, it is perfectly possible to generate the real solutions, since all real numbers are complex.
Notice if you had used the standard form of a complex number, with $a,b\in\mathbb{R}$, you would have noted that $2ab-2b=0$ factors as $2b(a-1)=0$. So either $b=0$ or $a=1$. In the latter case, you would have found that $b$ would have to be nonreal, which contradicts your presumption that $b\in\mathbb{R}$. So then, you would be forced to have $b=0$ and $a^2-2a-5=0$, which gets us right back to where we started.