Find the domain and range of the function : $f(x) = \sqrt{\lfloor x \rfloor -x}$ where $\lfloor x \rfloor $ is the floor function (greatest integer function)
This is how I did it : $f(x) = \sqrt{\lfloor x \rfloor -x}$
For $f(x)$ to be defined, $\lfloor x \rfloor-x$ must be greater than or equal to $0$
So, $\lfloor x \rfloor-x \geq 0$
So, $x \leq \lfloor x \rfloor$
$x$ is never less than $\lfloor x \rfloor$ but it can be equal to it if $x \in \Bbb Z$
So, shouldn't the $domain$ of $f$ be $\Bbb Z$?
In my textbook, the $domain$ of $f$ is given to be $\varnothing$ but I think that it is defined for all $x \in \Bbb Z$ and for all $x \in \Bbb Z$, the value of $f(x)$ is $0$, so in my opinion, the $range$ of $f$ should be {0} which is also given to be $\varnothing$ in my textbook
I have one more question, if for any real function $f$, $Domain(f) = \varnothing$, then is $Range(f) = \varnothing$ always true as well? I think so...
Thanks
You’re correct. The domain would be $\mathbb Z$, and for every integer input the output will be $0$.
If the domain is $\varnothing$, then the range is $\varnothing$ as well because the function cannot map to any value.