Solve the inequality $\frac{1}{|x|}-x >2$
My attempt:
$|x|=x, x>0$
$|x|=-x, x<0$
$1)$ for $x>0$
$\frac{1}{x}-x>2$
$-x^{2}-2x+1>0 \Rightarrow x \in(-1-\sqrt 2, -1+\sqrt 2)$ but since $x>0$ then $x\in (0, -1+\sqrt 2).$
$2)$ if $x<0$
$\frac{-1}{x}-x>2$
$\frac{-1-x^{2}-2x}{x}>0 \Rightarrow -x^{2}-2x-1<0$
$\Rightarrow x\in \Bbb R \setminus0$ but since $x<0 \Rightarrow x\in (-\infty, 0).$
So my final solution is $x\in(-\infty,0)\cup(0,\sqrt 2 -1)$
But the solution should be $x\in(-\infty,-1)\cup(-1,0)\cup(0, \sqrt 2 -1)$. So I should exclude $-1$ from my solution, but I can't see where I missed that step.
In the negative case you reached the statement that $-x^2-2x-1<0$ but you didn't finish looking at it.
$$-x^2-2x-1<0$$
$$x^2+2x+1>0$$
$$(x+1)^2>0$$
$$x\neq-1$$