Join the Most Relevant JEE Main 2025 Test Series & get 99+ percentile! Join Now
Search any question & find its solution
Question: Answered & Verified by Expert
If $f: R \rightarrow R$ is defined by $f(x)=[2 x]-2[x]$ for $x \in R$, then the range of $f$ is (Here $[x]$ denotes the greatest integer not exceeding $x$ )
MathematicsFunctionsAP EAMCETAP EAMCET 2018 (22 Apr Shift 1)
Options:
  • A Z, the set of all integers
  • B N, the set of all natural numbers
  • C R. the set of all real numbers
  • D $\{0,1\}$
Solution:
2274 Upvotes Verified Answer
The correct answer is: $\{0,1\}$
$$
\text { Since, } \begin{aligned}
x & =[x]+\{x\} \\
\Rightarrow \quad 2 x & =2[x]+2\{x\} \\
{[2 x] } & =2[x]+(2[x]) \\
{[2 x] } & = \begin{cases}2[x]+0, & 0 < \{x\} < \frac{1}{2} \\
2[x]+1, & \frac{1}{2} \leq\{x\} < 1\end{cases} \\
\therefore \quad[2 x]-2[x] & = \begin{cases}0, & 0 \leq\{x\} < \frac{1}{2} \\
1, & \frac{1}{2} \leq\{x\} < 1\end{cases}
\end{aligned}
$$
Since,
$$
\therefore \quad[2 x]-2[x]= \begin{cases}0, & 0 \leq\{x\} < \frac{1}{2} \\ 1, & \frac{1}{2} \leq\{x\} < 1\end{cases}
$$
Hence, Range of $f$ is $\{0,1\}$

Looking for more such questions to practice?

Download the MARKS App - The ultimate prep app for IIT JEE & NEET with chapter-wise PYQs, revision notes, formula sheets, custom tests & much more.