Let $h: \mathbb R \rightarrow \mathbb R$ be given by $h(x) = -1$ if $x\le0$ and $h(x) = +1$ if $x\gt0$ (a Heaviside step variant). Does there exist $f: \mathbb R \rightarrow \mathbb R$ with $f'(x) = h(x)$ for all $x\in\mathbb R$.
My first impression allows $f$ to take the form of $f(x) = |x|$. It's not exactly the same because absolute is not differentiable at $x=0$ but it raises an intuition that such a function does not exist.
Then I begin to think how $|x|$ is discontinuous at $x=0$ and I wonder if I should apply a analogous proof here i,e. I suppose such an $f$ does exist such that $f'(x) = h(x)$ for all $x\in\mathbb R$, and highlight this inconsistency between the left and right limit at 0. The only problem is, I don't know how to properly approach this. Any pointers?