If $f: R \rightarrow R$ is defined by $f(x)=[2 x]-2[x]$ for $x \in R$, where $[x]$ is the greatest integer…

If $f: R \rightarrow R$ is defined by $f(x)=[2 x]-2[x]$ for $x \in R$, where $[x]$ is the greatest integer not exceeding $x$, then the range of $f$ is :
  1. $\{x \in R: 0 \leq x \leq 1\}$
  2. $\{0,1\}$
  3. $\{x \in R: x>0\}$
  4. $\{x \in R: x \leq 0\}$

Solution

$\because \quad f(x)=[2 x]-2[x] \forall x \in R$ Let $x$ is an integer, then $f(x)=0$ and let $x$ is not an integer, then $quad f(x)=1$ $\therefore$ Range of $f(x)=\{0,1\}$

Asked in: AP EAMCET 2006

Practice more Functions questions on Aicharya