How can I solve: $x^2 + 2|x| - 3 = 0$ ?
My attempt:
$|x| = \frac{3 - x^2}{2}$
$x = \pm \frac{3 - x^2}{2}$
$x^2 \pm 2x - 3 = 0$
The solutions to this 2nd degree polynomial is
$x_1 = -3$
$x_2 = 1$
$x_3 = -1$
$x_4 = 3$
However, only $-1$ and $1$ are solutions. Why?
From $|x|=\frac{3-x^2}{2}$, you have to have $\frac{3-x^2}{2}\ge 0$, i.e. $-\sqrt 3\le x\le \sqrt 3$.