Define $\{x\} = x-\lfloor x \rfloor$. That is to say, $\{x\}$ is the "fractional part" of $x$. If you were to expand the number $x$ as a decimal, $\{x\}$ is the stuff after the decimal point. For example $\left\{\frac{3}{2}\right\} = 0.5$ and $\{\pi\} = 0.14159\dots$
Now, using the above definition, determine if the function below is increasing, decreasing, even, odd, and/or invertible on its natural domain:
$$f(x) = \lfloor x \rfloor - \left\{ x \right\}$$
I think that it is invertible only, but I can't seem to find the inverse. Am I correct saying that it is only invertible? Is it also increasing, decreasing, even, and/or odd?
We verify that $$g(x)=-f(-x)=\{-x\}-\lfloor -x \rfloor$$ is the inverse of $f$. In fact if $x\in \mathbb{Z}$ then $$f(g(x))=\lfloor \{-x\}-\lfloor -x \rfloor \rfloor -\{\{-x\}-\lfloor -x \rfloor\}=\lfloor 0+x \rfloor -\{0+x\}=x.$$ If $x\not\in \mathbb{Z}$ then $$\lfloor -x \rfloor=-1-\lfloor x \rfloor\quad\mbox{and}\quad\{-x\}=1-\{x\}$$ and $$f(g(x))=\lfloor \{-x\}-\lfloor -x \rfloor \rfloor -\{\{-x\}-\lfloor -x \rfloor\}\\ =\lfloor 1-\{x\}-(-1-\lfloor x \rfloor) \rfloor -\{1-\{x\}-(-1-\lfloor x \rfloor)\}\\ =\lfloor 2-\{x\}+\lfloor x \rfloor \rfloor -\{2-\{x\}+\lfloor x \rfloor\}\\ =1+\lfloor x \rfloor-(1-\{x\})=\lfloor x \rfloor+\{x\}=x.$$