Mathematics · Quadratic Equations

JEE Main 2026 — 24 Jan — Morning Shift — Question 20

The number of real solutions of the equation x∣x+3∣+∣x−1∣−2=0x|x+3|+|x-1|-2=0 is

  1. Option A:

    3

  2. Option B:

    2

    Correct
  3. Option C:

    5

  4. Option D:

    4

Answer: B

Step-by-step solution

The expressions inside the moduli change sign at x=−3x=-3 and x=1x=1, so consider three cases.

Case I: x≥1x\ge 1. Here ∣x+3∣=x+3|x+3|=x+3 and ∣x−1∣=x−1|x-1|=x-1:

x2+3x+x−1−2=0  ⇒  x2+4x−3=0  ⇒  x=−2±7x^{2}+3x+x-1-2=0 \;\Rightarrow\; x^{2}+4x-3=0 \;\Rightarrow\; x=-2\pm\sqrt{7}

Since −2+7≈0.65<1-2+\sqrt{7}\approx 0.65<1 and −2−7<1-2-\sqrt{7}<1, both roots are rejected.

Case II: −3≤x<1-3\le x<1. Here ∣x+3∣=x+3|x+3|=x+3 and ∣x−1∣=1−x|x-1|=1-x:

x2+3x+1−x−2=0  ⇒  x2+2x−1=0  ⇒  x=−1±2x^{2}+3x+1-x-2=0 \;\Rightarrow\; x^{2}+2x-1=0 \;\Rightarrow\; x=-1\pm\sqrt{2}

Since −1+2≈0.41-1+\sqrt{2}\approx 0.41 and −1−2≈−2.41-1-\sqrt{2}\approx -2.41 both lie in [−3,1)[-3,1), both roots are valid.

Case III: x<−3x<-3. Here ∣x+3∣=−(x+3)|x+3|=-(x+3) and ∣x−1∣=1−x|x-1|=1-x:

−x2−3x+1−x−2=0  ⇒  x2+4x+1=0  ⇒  x=−2±3-x^{2}-3x+1-x-2=0 \;\Rightarrow\; x^{2}+4x+1=0 \;\Rightarrow\; x=-2\pm\sqrt{3}

Since −2−3≈−3.73<−3-2-\sqrt{3}\approx -3.73<-3, this root is valid. Since −2+3≈−0.27-2+\sqrt{3}\approx -0.27 is not less than −3-3, it is rejected.

The real solutions are therefore x=−2−3, −1−2, −1+2x=-2-\sqrt{3},\ -1-\sqrt{2},\ -1+\sqrt{2}.

Hence the number of real solutions is 33.

Answer key and solution verified before publishing.

Practise Quadratic Equations

Start with this question, then two more from the same chapter — with a tutor that explains every step. Free.

Exam
JEE Main 2026
Subject
Mathematics
Chapter
Quadratic Equations
Topic
Nature of Roots of Quadratic Equation