Solveeit Logo

Question

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

x2x6=x+2|x^2-x-6|=x+2

Answer

The solutions are x=2,2,4x = -2, 2, 4.

Explanation

Solution

The equation x2x6=x+2|x^2-x-6|=x+2 requires x+20x+2 \ge 0, so x2x \ge -2.

Split the equation into two cases based on the definition of absolute value: x2x6=x+2x^2-x-6 = x+2 or x2x6=(x+2)x^2-x-6 = -(x+2).

Solve the first case x2x6=x+2    x22x8=0    (x4)(x+2)=0x^2-x-6 = x+2 \implies x^2-2x-8=0 \implies (x-4)(x+2)=0, yielding x=4,x=2x=4, x=-2. Both satisfy x2x \ge -2.

Solve the second case x2x6=(x+2)    x2x6=x2    x24=0    x=±2x^2-x-6 = -(x+2) \implies x^2-x-6 = -x-2 \implies x^2-4=0 \implies x=\pm 2. Both satisfy x2x \ge -2.

The set of solutions is the union of solutions from both cases that satisfy the initial condition: {2,2,4}\{-2, 2, 4\}.