Q. The solution set of the inequality $$||x|-1|<|1-x|, x \in R$$
My Solution:
Case1: If $x≥0$
$||x|-1|<|1-x|$
=> $|x-1|<|1-x|$
Hence, S1=>$ x \in ∅ $
Case2: If $x<0$
$||x|-1|<|1-x|$
=> $|-x-1|<|1-x|$
=> $|x+1|>|x-1|$
=> $|x+1|-|x-1|>0$
Critical Points are -1 and 1
Subcase1: If $X<-1$
$|x+1|-|x-1|>0$
=>$-(x+1)-[-(x-1)]>0$
=>$-2>0$
Hence SubSolution1=> $x \in ∅$
Subcase2: If $-1<x<1$<br
$|x+1|-|x-1|>0$
=>$x+1-[-(x+1)]>0$
=> $x>0$
Hence SubSolution2=> $x \in (0,1)$
Subcase3: If $x>1$
$|x+1|-|x-1|>0$
=>$x+1-(x-1)>0$
=>$2>0$
Hence SubSolution3=> $x \in (1, \infty)$
Hence Solution2=> $Subsolution1 \cup SubSolution2 \cup Subsolution3 $
=> $∅ \cup (0,1) \cup (1, \infty)$
=>$(0, \infty)$
Final solution=> $ S1 \cup S2$
=> $∅ \cup (0, \infty)$
=> $(0,\infty)$
But the actual answer is $(-\infty, 0)$
In your case 2 your implication $\vert -x -1 \vert \lt \vert 1-x\vert $ implies $\vert x +1 \vert \gt \vert 1-x\vert $ is wrong as
$$\vert -x -1 \vert =\vert x+1 \vert \lt \vert 1-x\vert $$