QlarIITy

MathematicsJEE Main 2026 · 5 AprilInteger

IfS={θ∈[−π,π]:cos⁡θcos⁡5θ2=cos⁡7θcos⁡7θ2}\begin{aligned} &S = \{\theta \in [-\pi, \pi] : \\[4pt] &\cos\theta\cos\frac{5\theta}{2} = \cos 7\theta\cos\frac{7\theta}{2}\} \end{aligned}, then n(S)n(S) is equal to ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. Product-to-sum turns two products into sums that share a term, leaving a simple equation cos⁡P=cos⁡Q\cos P = \cos Q.

Concept refresher. For all angles AA and BB,

2cos⁡Acos⁡B=cos⁡(A+B)+cos⁡(A−B)2\cos A\cos B = \cos(A + B) + \cos(A - B)

and cos⁡P=cos⁡Q\cos P = \cos Q holds exactly when P=2kπ+QP = 2k\pi + Q or P=2kπ−QP = 2k\pi - Q for some integer kk.

Approach. Turn both products into sums, cancel the common term, solve the resulting cosine equation, and count the solutions in [−π,π][-\pi, \pi] without counting shared values twice.

  1. Step 1: Turn products into sums

    Doubling both sides and using the product-to-sum formula:

    2cos⁡θcos⁡5θ2=cos⁡7θ2+cos⁡3θ22cos⁡7θcos⁡7θ2=cos⁡21θ2+cos⁡7θ2\begin{aligned} 2\cos\theta\cos\frac{5\theta}{2} &= \cos\frac{7\theta}{2} + \cos\frac{3\theta}{2} \\[4pt] 2\cos 7\theta\cos\frac{7\theta}{2} &= \cos\frac{21\theta}{2} + \cos\frac{7\theta}{2} \end{aligned}

    The term cos⁡7θ2\cos\frac{7\theta}{2} cancels, leaving cos⁡3θ2=cos⁡21θ2\cos\frac{3\theta}{2} = \cos\frac{21\theta}{2}.

  2. Step 2: Solve the cosine equation

    Equal cosines mean the angles differ by a multiple of 2π2\pi or add to one:

    21θ2−3θ2=2kπ, θ=2kπ921θ2+3θ2=2kπ, θ=kπ6\begin{aligned} \frac{21\theta}{2} - \frac{3\theta}{2} &= 2k\pi, \ \theta = \frac{2k\pi}{9} \\[4pt] \frac{21\theta}{2} + \frac{3\theta}{2} &= 2k\pi, \ \theta = \frac{k\pi}{6} \end{aligned}
  3. Step 3: Count in the interval

    In [−π,π][-\pi, \pi] the first family needs ∣2k∣≤9|2k| \leq 9, so k=−4,…,4k = -4, \ldots, 4: 99 values. The second needs ∣k∣≤6|k| \leq 6: 1313 values. A value is in both when 2k9=m6\frac{2k}{9} = \frac{m}{6}, that is 4k=3m4k = 3m, which gives θ=0,±2π3\theta = 0, \pm\frac{2\pi}{3}. So

    n(S)=9+13−3=19n(S) = 9 + 13 - 3 = 19

Answer. 19

Sanity check. Each listed value satisfies the reduced equation: for θ=2π9\theta = \frac{2\pi}{9}, 21θ2=7π3\frac{21\theta}{2} = \frac{7\pi}{3} and 3θ2=π3\frac{3\theta}{2} = \frac{\pi}{3}, which differ by 2π2\pi; for θ=±π\theta = \pm\pi, cos⁡3π2=0=cos⁡21π2\cos\frac{3\pi}{2} = 0 = \cos\frac{21\pi}{2}.

Smart method. Count the union directly by the inclusion and exclusion rule: the two families are multiples of 2π9\frac{2\pi}{9} and of π6\frac{\pi}{6}, and their common values are multiples of the least common multiple, 2π3\frac{2\pi}{3}, which gives 33 values in [−π,π][-\pi, \pi]. So 9+13−3=199 + 13 - 3 = 19 without listing every angle.

Common wrong answers

  • 22: Adding 99 and 1313 gives 2222, but θ=0\theta = 0 and θ=±2π3\theta = \pm\frac{2\pi}{3} belong to both families and must be counted once.
  • 13: The family θ=kπ6\theta = \frac{k\pi}{6} alone gives 1313 values; the family θ=2kπ9\theta = \frac{2k\pi}{9} adds 9−3=69 - 3 = 6 new ones.
  • 17: Leaving out θ=±π\theta = \pm\pi gives 11+9−3=1711 + 9 - 3 = 17; the interval [−π,π][-\pi, \pi] is closed, so both ends count.

Key takeaway

The trap. Adding the two families of solutions without removing the three shared values.

How toppers think. They find the common values through the least common multiple of the two step sizes.

Remember. cos⁡P=cos⁡Q\cos P = \cos Q exactly when P=2kπ±QP = 2k\pi \pm Q, k∈Zk \in \mathbb{Z}.

More on Trigonometric Equations