QlarIITy

MathematicsJEE Main 2026 · 2 AprilSingle correct

LetS={x∈[−π,π]:sin⁡x(sin⁡x+cos⁡x)=a,a∈Z}\begin{aligned} S = \{&x \in [-\pi, \pi] : \\[4pt] &\sin x(\sin x + \cos x) = a, a \in \mathbb{Z}\} \end{aligned}. Then n(S)n(S) is equal to:

  1. Option A: 33
  2. Option B: 66
  3. Option C: 77
  4. Option D: 99
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. An equation with an integer right side is settled by the range of the left side, which leaves only a few cases.

Concept refresher. For real pp and qq, not both zero, there is an angle φ\varphi with

psin⁡x+qcos⁡x=p2+q2sin⁡(x+φ)p\sin x + q\cos x = \sqrt{p^2 + q^2}\sin(x + \varphi)

so the expression takes every value in [−p2+q2,p2+q2]\left[-\sqrt{p^2 + q^2}, \sqrt{p^2 + q^2}\right] and no other. A product is zero exactly when one of its factors is zero, so an equation is factorised rather than divided by a factor that may vanish.

Picture the situation. The graph of y=sin⁡x(sin⁡x+cos⁡x)y = \sin x(\sin x + \cos x) on [−π,π][-\pi, \pi] stays between about −0.21-0.21 and 1.211.21, so it can meet only the lines y=0y = 0 and y=1y = 1.

Wave-shaped graph on minus pi to pi crossing the x-axis and touching the dashed line y equals 1, with the meeting points marked as dots.

Approach. Find the range of the expression to list the possible integers aa, then solve the equation for each value by factorising, and count the solutions in [−π,π][-\pi, \pi].

  1. Step 1: Find the range

    Using sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2} and sin⁡xcos⁡x=sin⁡2x2\sin x\cos x = \frac{\sin 2x}{2}, the expression becomes a constant plus a bounded combination:

    sin⁡x(sin⁡x+cos⁡x)=12+12(sin⁡2x−cos⁡2x)\sin x(\sin x + \cos x) = \frac{1}{2} + \frac{1}{2}\left(\sin 2x - \cos 2x\right)

    Since sin⁡2x−cos⁡2x\sin 2x - \cos 2x lies in [−2,2]\left[-\sqrt{2}, \sqrt{2}\right], the expression lies in [1−22,1+22]≈[−0.21,1.21]\left[\frac{1 - \sqrt{2}}{2}, \frac{1 + \sqrt{2}}{2}\right] \approx [-0.21, 1.21], so a=0a = 0 or a=1a = 1.

  2. Step 2: Solve for a = 0

    The equation sin⁡x(sin⁡x+cos⁡x)=0\sin x(\sin x + \cos x) = 0 splits into two factors, each solved on [−π,π][-\pi, \pi]:

    sin⁡x=0 or tan⁡x=−1\sin x = 0 \text{ or } \tan x = -1

    This gives x=−π,0,πx = -\pi, 0, \pi and x=−π4,3π4x = -\frac{\pi}{4}, \frac{3\pi}{4}, which is 55 solutions.

  3. Step 3: Solve for a = 1

    Using sin⁡2x−1=−cos⁡2x\sin^2 x - 1 = -\cos^2 x, the equation sin⁡2x+sin⁡xcos⁡x=1\sin^2 x + \sin x\cos x = 1 becomes a product:

    cos⁡x(sin⁡x−cos⁡x)=0\cos x(\sin x - \cos x) = 0

    So cos⁡x=0\cos x = 0, giving x=±π2x = \pm\frac{\pi}{2}, or tan⁡x=1\tan x = 1, giving x=π4,−3π4x = \frac{\pi}{4}, -\frac{3\pi}{4}. This is 44 solutions.

  4. Step 4: Count the set

    The nine values are all different, so the two cases together give

    n(S)=5+4=9n(S) = 5 + 4 = 9

Answer. (D) 9

Sanity check. At x=π2x = \frac{\pi}{2} the expression is 1×(1+0)=11 \times (1 + 0) = 1, and at x=−3π4x = -\frac{3\pi}{4} it is (−12)(−22)=1\left(-\frac{1}{\sqrt{2}}\right)\left(-\frac{2}{\sqrt{2}}\right) = 1; at x=3π4x = \frac{3\pi}{4} it is 12×0=0\frac{1}{\sqrt{2}} \times 0 = 0. The graph meets y=1y = 1 four times and y=0y = 0 five times.

Why the other options are wrong

  • (A) Solving only sin⁡x=0\sin x = 0 gives x=−π,0,πx = -\pi, 0, \pi, which is 33; the case a=0a = 0 also has tan⁡x=−1\tan x = -1, and the case a=1a = 1 adds four more solutions.
  • (B) A count of 66 would need three of the nine values ±π\pm\pi, ±3π4\pm\frac{3\pi}{4}, ±π2\pm\frac{\pi}{2}, ±π4\pm\frac{\pi}{4} and 00 to coincide or to fall outside [−π,π][-\pi, \pi], but they are distinct and all lie in the interval.
  • (C) Dividing sin⁡xcos⁡x=cos⁡2x\sin x\cos x = \cos^2 x by cos⁡x\cos x keeps only tan⁡x=1\tan x = 1 and loses x=±π2x = \pm\frac{\pi}{2}, giving 5+2=75 + 2 = 7 instead of 5+4=95 + 4 = 9.

Key takeaway

The trap. Dividing by cos⁡x\cos x loses the solutions where cos⁡x=0\cos x = 0, and the closed interval keeps ±π\pm\pi.

How toppers think. They factorise each case and list the solutions on a sketch of the graph.

Remember. psin⁡θ+qcos⁡θp\sin\theta + q\cos\theta ranges over [−p2+q2,p2+q2]\left[-\sqrt{p^2 + q^2}, \sqrt{p^2 + q^2}\right].

More on Trigonometric Equations