Question
Question: $|x^2-x-6|=x+2$...
∣x2−x−6∣=x+2

Answer
The solutions are x=−2,2,4.
Explanation
Solution
The equation ∣x2−x−6∣=x+2 requires x+2≥0, so x≥−2.
Split the equation into two cases based on the definition of absolute value: x2−x−6=x+2 or x2−x−6=−(x+2).
Solve the first case x2−x−6=x+2⟹x2−2x−8=0⟹(x−4)(x+2)=0, yielding x=4,x=−2. Both satisfy x≥−2.
Solve the second case x2−x−6=−(x+2)⟹x2−x−6=−x−2⟹x2−4=0⟹x=±2. Both satisfy x≥−2.
The set of solutions is the union of solutions from both cases that satisfy the initial condition: {−2,2,4}.