The trinomial
$$ax^2+bx+c=0$$
May be solved when $a,b,c$ are complex numbers, and it works fine with real $a,b,c$, since $\Bbb R\subset\Bbb C$.
However, we'll start with the real case.
Real resolution
We start with the equation
$$ax^2+bx+c=0$$
Where $a\neq0$, and $a,b,c\in\Bbb C$.
Then, rewrite the equation
$$\left(x+\frac{b}{2a}\right)^2-\frac{b^2-4ac}{4a^2}=0$$
Then, according to the sign of $\Delta=b^2-4ac$, there are three possibilities:
- If $\Delta=0$, the equation amounts to
$$\left(x+\frac{b}{2a}\right)^2=0$$
It has thus one double root, $x=-\frac{b}{2a}$.
But since $\Delta=0$, we can also write
$$x=\frac{-b\pm\sqrt{\Delta}}{2a}$$
- If $\Delta>0$, then $\frac{b^2-4ac}{4a^2}$ is positive, so it's the square of number $\frac{\sqrt{\Delta}}{2a}$, and we can write
$$\left(x+\frac{b}{2a}\right)^2-\left(\frac{\sqrt{\Delta}}{2a}\right)^2=0$$
$$\left(x+\frac{b}{2a}+\frac{\sqrt{\Delta}}{2a}\right)\left(x+\frac{b}{2a}-\frac{\sqrt{\Delta}}{2a}\right)=0$$
Hence
$$x=\frac{-b\pm\sqrt{\Delta}}{2a}$$
- If $\Delta<0$, then the equation has no real solution, since it would amount to
$$\left(x+\frac{b}{2a}\right)^2=\frac{\Delta}{4a^2}$$
Where the left-hand side is $\geq0$, whereas the right-hand side is $<0$.
However, we can still write that $\Delta$ is the square of complex number $i\sqrt{4ac-b^2}$, hence we can write
$$\left(x+\frac{b}{2a}\right)^2-\left(\frac{i\sqrt{-\Delta}}{2a}\right)^2=0$$
$$\left(x+\frac{b}{2a}+\frac{i\sqrt{-\Delta}}{2a}\right)\left(x+\frac{b}{2a}-\frac{i\sqrt{-\Delta}}{2a}\right)=0$$
$$x=\frac{-b\pm i\sqrt{-\Delta}}{2a}$$
But, with the convention that $\sqrt{t}=i\sqrt{-t}$ when $t<0$, we can again write
$$x=\frac{-b\pm\sqrt{\Delta}}{2a}$$
So, in all cases, the solutions are
$$x=\frac{-b\pm\sqrt{\Delta}}{2a}$$
Hence your equivalence holds.
Complex resolution
Again, we start with the equation
$$ax^2+bx+c=0$$
Where $a\neq0$, and $a,b,c\in\Bbb C$.
Then, rewrite the equation
$$\left(x+\frac{b}{2a}\right)^2-\frac{b^2-4ac}{4a^2}=0$$
Now, a complex number $z$ has always a square root (two distinct ones if $z\neq0$, see for example here). We go on with a square root $\alpha$ of $b^2-4ac$, that is, $\alpha^2=b^2-4ac$, so that the equation can be written
$$\left(x+\frac{b}{2a}\right)^2-\frac{\alpha^2}{4a^2}=0$$
It's a difference of squares, and we know that $A^2-B^2=(A+B)(A-B)$, so
$$\left(x+\frac{b}{2a}+\frac{\alpha}{2a}\right)\left(x+\frac{b}{2a}-\frac{\alpha}{2a}\right)=0$$
So the roots are
$$x=-\frac{b}{2a}\pm\frac{\alpha}{2a}$$
Or if you prefer
$$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$
Important note: there is no canonical way to write that $\sqrt{t}$ is a specific square root of $t\in\Bbb C$, hence this symbol is meaningless. However, since it appears with a $\pm$, we will always work with both roots, so using the symbol here is harmless. Nevertheless, it should be avoided.