MCQEasyJEE 2026Trigonometric Ratios & Identities

JEE Mathematics 2026 Question with Solution

The sum of all the elements in the range of f(x)=sgn(sinx)+sgn(cosx)+sgn(tanx)+sgn(cotx),f(x)=\operatorname{sgn}(\sin x)+\operatorname{sgn}(\cos x) +\operatorname{sgn}(\tan x)+\operatorname{sgn}(\cot x), where xnπ2, nZ,sgn(t)={1,t>01,t<0x\neq \frac{n\pi}{2},\ n\in\mathbb{Z}, \qquad \operatorname{sgn}(t)= \begin{cases} 1,& t>0\\-1,& t<0 \end{cases} is:

  • A

    00

  • B

    22

  • C

    2-2

  • D

    44

Answer

Correct answer:B

Step-by-step solution

Standard Method

Given: f(x)=sgn(sinx)+sgn(cosx)+sgn(tanx)+sgn(cotx)f(x)=\operatorname{sgn}(\sin x)+\operatorname{sgn}(\cos x)+\operatorname{sgn}(\tan x)+\operatorname{sgn}(\cot x) with xnπ2x\neq \frac{n\pi}{2}, nZn\in\mathbb{Z}.

Find: The sum of all distinct elements in the range of f(x)f(x).

Concept: The sign of sinx\sin x, cosx\cos x, tanx\tan x, and cotx\cot x depends on the quadrant in which xx lies. Since xnπ2x\neq \frac{n\pi}{2}, none of these trigonometric functions is zero.

Step 1: Quadrant-wise analysis

Quadrant I (0<x<π2)\left(0<x<\tfrac{\pi}{2}\right):

sinx>0, cosx>0, tanx>0, cotx>0\sin x>0,\ \cos x>0,\ \tan x>0,\ \cot x>0 f(x)=1+1+1+1=4f(x)=1+1+1+1=4

Quadrant II (π2<x<π)\left(\tfrac{\pi}{2}<x<\pi\right):

sinx>0, cosx<0, tanx<0, cotx<0\sin x>0,\ \cos x<0,\ \tan x<0,\ \cot x<0 f(x)=1111=2f(x)=1-1-1-1=-2

Quadrant III (π<x<3π2)\left(\pi<x<\tfrac{3\pi}{2}\right):

sinx<0, cosx<0, tanx>0, cotx>0\sin x<0,\ \cos x<0,\ \tan x>0,\ \cot x>0 f(x)=11+1+1=0f(x)=-1-1+1+1=0

Quadrant IV (3π2<x<2π)\left(\tfrac{3\pi}{2}<x<2\pi\right):

sinx<0, cosx>0, tanx<0, cotx<0\sin x<0,\ \cos x>0,\ \tan x<0,\ \cot x<0 f(x)=1+111=2f(x)=-1+1-1-1=-2

Step 2: Determine the range From all quadrants, the distinct values taken by f(x)f(x) are:

{4, 0, 2}\{4,\ 0,\ -2\}

Step 3: Sum of all elements in the range

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

Therefore, the sum of all elements in the range is 22. The correct option is B.

Common mistakes

  • Students often forget that tanx\tan x and cotx\cot x have the same sign in each quadrant. This gives an incorrect quadrant sum. Check the sign pattern of both functions carefully before adding.

  • A common mistake is to include points where x=nπ2x=\frac{n\pi}{2}. At these points, one or more trigonometric functions are zero or undefined, so they are excluded from the domain and must not be used in the range analysis.

  • Some students list repeated outputs multiple times when finding the range. The range contains only distinct values, so after getting values from all quadrants, remove repetitions before taking the sum.

Practice more Trigonometric Ratios & Identities questions

Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.

Related questions