JEE Main 2026 · 28 January · evening · Single correct · +4 / −1

The sum of all the elements in the range of f(x)=Sgn(sin x)+Sgn(cos x)+Sgn(tan x)+Sgn(cot x), x≠ nπ/2,n∈ ℤ, where
Sgn(t)={1,, ift>0; -1,, ift<0
is :

  1. (a) 4
  2. (b) 0
  3. (c) 2
  4. (d) -2
Answer and solution

Answer (c) 2

Solution

Maths sir · 3 steps

Go quadrant by quadrant: each one fixes every sign, so f takes just one value there.

  1. Why quadrants. Since x ≠ nπ/2, none of sin x, cos x, tan x, cot x is zero. Inside one quadrant all four signs are fixed, so f is constant there.
  2. Tan and cot. tan x and cot x always have the same sign, which is the sign of sin x × cos x.
    Quadrantsin x, cos xtan x, cot xf(x)
    I+, ++, +1+1+1+1 = 4
    II+, --, -1-1-1-1 = -2
    III-, -+, +-1-1+1+1 = 0
    IV-, +-, --1+1-1-1 = -2
  3. So. The range is {4, -2, 0}. Count -2 only once, since a range is a set. The sum is 4 - 2 + 0 = 2, option (c).

The idea to keep. When a function is built from signs of trig ratios, check each quadrant once. Then list the range as a set, with no repeated values, before you add.

Answer from the NTA final answer key. Solution by PrepWiser.

Study Relations & Functions (Basic)

Asked about 140 times in JEE Main since 2020. This question is from 2026.