QlarIITy

MathematicsJEE Main 2026 · 28 JanuarySingle correct

The sum of all the elements in the range off(x)=Sgn⁡(sin⁡x)+Sgn⁡(cos⁡x)+Sgn⁡(tan⁡x)+Sgn⁡(cot⁡x)\begin{aligned} &f(x) = \operatorname{Sgn}(\sin x) + \operatorname{Sgn}(\cos x) \\[4pt] &+ \operatorname{Sgn}(\tan x) + \operatorname{Sgn}(\cot x) \end{aligned}, x≠nπ2x \neq \frac{n\pi}{2}, n∈Zn \in \mathbb{Z}, whereSgn⁡(t)={1,if t>0−1,if t<0\operatorname{Sgn}(t) = \begin{cases} 1, & \text{if } t > 0 \\[4pt] -1, & \text{if } t < 0 \end{cases}is :

  1. Option A: 44
  2. Option B: 00
  3. Option C: 22
  4. Option D: −2-2
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. A sum of signum functions of trigonometric functions takes one value per quadrant.

Concept refresher. The signum function has Sgn⁡(t)=1\operatorname{Sgn}(t) = 1 for t>0t > 0 and −1-1 for t<0t < 0. In the four quadrants the signs of (sin⁡x,cos⁡x)(\sin x, \cos x) are (+,+)(+, +), (+,−)(+, -), (−,−)(-, -), (−,+)(-, +), and since

tan⁡x=sin⁡xcos⁡x, cot⁡x=cos⁡xsin⁡x\tan x = \frac{\sin x}{\cos x}, \ \cot x = \frac{\cos x}{\sin x}

both tan⁡x\tan x and cot⁡x\cot x carry the sign of sin⁡xcos⁡x\sin x \cos x. The range of a function is the set of its distinct values.

Approach. Express all four signs through the signs of sin⁡x\sin x and cos⁡x\cos x, evaluate ff in each quadrant, and add the distinct values.

  1. Step 1: Reduce to two signs

    Let s=Sgn⁡(sin⁡x)s = \operatorname{Sgn}(\sin x) and c=Sgn⁡(cos⁡x)c = \operatorname{Sgn}(\cos x); for x≠nπ2x \neq \frac{n\pi}{2} neither is zero. The tangent and the cotangent both have the sign scsc, so

    f(x)=s+c+2scf(x) = s + c + 2sc
  2. Step 2: Evaluate each quadrant

    Substituting the four sign pairs, one for each quadrant in order, into the formula for ff:

    (s,c)=(1,1):1+1+2=4(1,−1):1−1−2=−2(−1,−1):−1−1+2=0(−1,1):−1+1−2=−2\begin{aligned} (s, c) = (1, 1) &: 1 + 1 + 2 = 4 \\[4pt] (1, -1) &: 1 - 1 - 2 = -2 \\[4pt] (-1, -1) &: -1 - 1 + 2 = 0 \\[4pt] (-1, 1) &: -1 + 1 - 2 = -2 \end{aligned}
  3. Step 3: Add the distinct values

    The range is the set {4,−2,0}\{4, -2, 0\}, with −2-2 listed once, so the sum of its elements is

    4+(−2)+0=24 + (-2) + 0 = 2

Answer. (C) 22

Sanity check. Test points confirm each value: at x=π4x = \frac{\pi}{4} all four terms are 11, so f=4f = 4; at x=3π4x = \frac{3\pi}{4} only sin⁡x>0\sin x > 0, so f=1−1−1−1=−2f = 1 - 1 - 1 - 1 = -2; at x=5π4x = \frac{5\pi}{4}, f=−1−1+1+1=0f = -1 - 1 + 1 + 1 = 0.

Why the other options are wrong

  • (A) The value 44 is only the first-quadrant value 1+1+1+11 + 1 + 1 + 1; the range also contains −2-2 (second and fourth quadrants) and 00 (third quadrant).
  • (B) Adding −2-2 once for each quadrant where it occurs gives 4−2+0−2=04 - 2 + 0 - 2 = 0; a range is a set, so −2-2 is counted once and the sum is 4−2+0=24 - 2 + 0 = 2.
  • (D) Taking tan⁡x\tan x and cot⁡x\cot x as negative in the third quadrant gives the value −4-4 there and the range {4,−2,−4}\{4, -2, -4\}, with sum −2-2; in that quadrant sin⁡x\sin x and cos⁡x\cos x are both negative, so tan⁡x>0\tan x > 0.

Key takeaway

The trap. Counting a repeated value twice when adding the elements of a range.

How toppers think. They notice that tan⁡x\tan x and cot⁡x\cot x always share a sign, which halves the work.

Remember. tan⁡x\tan x and cot⁡x\cot x are positive exactly where sin⁡x\sin x and cos⁡x\cos x have the same sign.

More on Domain, Range & Graphs