I try to solve a problem in two ways, but the results are not the same.
Method 1.
$$\lvert \lvert x \rvert + x \rvert \le 2$$ For $x < 0$, we have $\lvert x \rvert = -x$. Therefore:
$$\lvert -x+x \rvert \le 2$$
which is always true.
For $x \ge 0$, we have $\lvert x \rvert = x$. Therefore:
$$ \begin{align} \lvert x + x \rvert & \le 2 \\ x & \le 1 \end{align} $$
Combining both answers, we get $x \le 1$.
Method 2.
$$\lvert \lvert x \rvert + x \rvert \le 2$$
Squaring both sides, we get:
$$ \begin{align} (\lvert x \rvert + x)^2 & \le 4 \\ \lvert x \rvert^2 + 2x\lvert x \rvert + x^2 & \le 4 \\ 2x^2 + 2x\lvert x \rvert & \le 4 \\ x\lvert x \rvert & \le 2-x^2 \\ \end{align} $$
Squaring both sides again:
$$ \begin{align} x^2 \lvert x \rvert^2 & \le 4 - 4x^2 + x^4 \\ x^4 & \le 4 - 4x^2 + x^4 \\ 0 & \le 4 - 4x^2 \\ x^2 & \le 1 \\ -1 & \le x \le 1 \end{align} $$
The answers are different, but I believe the first one is correct because if we substitute $x=-10$, for instance, we get the correct result. Where did I do wrong?
In method 2, the second time you square both sides, you have no guarantee that the sides you square will both be positive. Therefore the squaring will not necessarily preserve the inequality.