For the equation |x2|+|x|−6=0, the roots are
Real with sum zero
When x < 0, |x| = -x
∴ Equation is x2−x−6=0 ⇒ x = -2, 3
∵ x < 0, ∴ x = -2 is the solution.
When x ≥ 0, |x| = x
∴ Equation is x2+x−6=0 ⇒ x = 2, -3
∵ x ≥ 0, ∴ x = 2 is the solution.
Hence x = 2, -2 are the solutions and their sum is zero.
Aliter : |x2|+|x|−6=0
⇒ (|x| + 3)(|x| - 2) = 0
⇒ |x| = -3, which is not possible and |x| = 2
⇒ x = ± 2.