I am preparing for a test and I do not understand how to get to the answer as written in the question.
Question: $x^2+4x-8<|x+2|$
Answer: $(−6;2)$
I can solve "$x^2+4x-8<|x+2|$" with the answer being "$x<2$" but I am having problem with the negative of the absolute value.
You have $x^2+4x-8<|x+2|$.
Case 1: $x+2\geq0$.
Then $|x+2|=x+2$ and $$x^2+4x-8<x+2 \iff x^2+3x-10<0 \iff (x-2)(x+5)<0 \\\iff x\in(-5,2)\cap [-2,+\infty)=[-2,2)=S_1$$
Case 2: $x+2<0$.
Then $|x+2|=-(x+2)$ and $$x^2+4x-8<-(x+2) \iff x^2+5x-6<0 \iff (x-1)(x+6)<0 \\\iff x\in(-6,1)\cap(-\infty,-2)=(-6,-2)=S_2$$
Finally, the solution is $S_1\cup S_2=(-6,2)$.