If $f: \mathrm{R} \to \mathrm{R}$ and $g: \mathrm{R} \to \mathrm{R}$ are two functions defined by $f(x) = |x|$ and $g(x) = [x]$ then $\{x \in \mathrm{R} / (gof)(x) = (fog)(x)\} =$
(Here $[x]$ is the greatest integer function)
- (1)
$\mathrm{R}$
- (2)
$[0, \infty)$
- (3)
$[0, \infty) \cup \{n / -n \in \mathbb{N}\}$
- (4)
$\mathrm{Z}$
Show answer
Option (3) is correct.
The council's preliminary key