Floor function as derivative Does there exist a function f such that $f'(x)=\lfloor x \rfloor$ for all $x$ in $\mathbb{R}$?
I was thinking no, since if you draw it out and look at the integral, it should be an imaginary number, right?
But how do I explain it? 

The integral certainly won't be an imaginary number, but you'll have an issue at the integers because the floor function has a jump discontinuity there, which will manifest itself as a "kink" in the integral. The function below will have $f^\prime=\lfloor x\rfloor$ at all noninteger points: 
$$
f(x)=nx,\; x\in [n,n+1)\quad n\in\Bbb{Z}
$$
However, this function is not differentiable if $x=k$ where $k\in\Bbb{Z}$.  As suggested by the comment, it can be shown that in fact no such function can exist that has $f^\prime(x)=\lfloor x\rfloor$ for all $x$.
