Given:
x∣x+3∣+∣x−1∣−2=0
Case 1: x<−3
If x<−3 then ∣x+3∣=−(x+3) and ∣x−1∣=−(x−1)
⇒ −x(x+3)−(x−1)−2=0
⇒ −x2−3x−x+1−2=0
⇒ x2+4x+1=0
⇒ x2+4x+4=−1+4
⇒ (x+2)2=3
⇒ (x+2)=3 OR (x+2)=−3
⇒ x=−2+3≈−0.268 OR x=−2−3≈−3.732
But x<−3 ⇒ x=−2−3 ⇒ One solution from this case
Case 2: −3≤x<1
If −3≥x<1 then ∣x+3∣=(x+3) and ∣x−1∣=−(x−1)
⇒ x(x+3)−(x−1)−2=0
⇒ x2+2x−1=0
⇒ (x+1)2=2
⇒ (x+1)=2 OR (x+1)=−2
⇒ x=−1+2≈0.414 OR x=−1−2≈−2.414
Both of these satisfy the given condition
⇒ Two solutions from this case
Case 3: x≥1
If x≥1 then ∣x+3∣=(x+3) and ∣x−1∣=(x−1)
⇒ x(x+3)+(x−1)−2=0
⇒ x2+4x=3
⇒ x2+4x+4 =7
⇒ (x+2)2=7
⇒ (x+2)=7 OR (x+2)=−7
⇒ x=−2+7≈0.646 OR x=−2−7≈−4.646
None of these satisfies the condition. Thus zero solutions from this case.
Hence there are total of 3 solutions
x=−2−3, x=−1+2, x=−1−2
Hence, option C is the correct choice.