Just for the sake of being fully rigorous, allow me to present one possible method of analysing what happens with the zeros of function $f$.
First of all, as by hypothesis the derivative of $f$ is positive (may I explicitly note that to me $x$ is positive means $x \geqslant 0$ whereas $x>0$ is to be read as $x$ is strictly positive), the Mean Value Theorem ensures the fact that $f$ is increasing.
Recall the notion of convex subset in general order theory: if $(A, R)$ is an arbitrary ordered set and $M \subseteq A$ an arbitrary subset, we say $M$ is convex (with respect to $R$) if
$$(\forall x, y)(x, y \in M \wedge x \leqslant_R y \Rightarrow [x, y]_R \subseteq M)$$
in other words when $M$ contains together with two comparable elements $x ,y$ the whole closed interval (with respect to $R$) determined by them.
It is clear that:
for any increasing map $f: A \to B$ between ordered sets $(A,R), (B,S)$ and any convex subset $N \subseteq B$ the inverse image $f^{-1}(N)$ is convex in $A$ (with respect to $R$).
Recall also that:
if $(A, R)$ is totally ordered by a conditionally complete order (which means that under this order any upper-bounded nonempty subset admits a supremum), then the convex subsets of $A$ are precisely the intervals with respect to $R$.
Since $f$ is increasing, the singleton $\{0\}$ is obviously convex and both $\mathbb{R}$ and $[0, \infty)$ are equipped with total, conditionally complete orders we gather on the one hand that the set of zeros $F:=f^{-1}(\{0\})$ is an interval and on the other hand that it is closed (by virtue of the continuity of $f$). Let us also not forget that $0 \in F$, by hypothesis.
There are only two types of closed intervals included in $[0, \infty)$ that contain $0$:
- $[0, \infty)$ itself, which corresponds to the trivial case when $f$ is identically null
- those of the form $[0, a]$ for a real number $a \geqslant 0$. In the context of the given problem, let us argue by contradiction that this case forces $a=0$. Indeed, assuming $a>0$ we gather that $f^{-1}(\mathbb{R}^*)=(a, \infty)$ and to this unique connected component of the set where $f$ does not vanish the reasoning that Clement Yung presented to us above does apply with the conclusion that $f(x)=x+b$ for a certain $b \in \mathbb{R}$ and every $x>a$. However, this means that $f$ fails to be derivable in $a$, since at this point the left derivative is $0$ (this is where the hypothesis $a>0$ comes into play, since for the interval $[0, \infty)$ $a$ is a point of accumulation on the left) whereas the right derivative is $1$.
Thus, it is indeed the case that under the given assumptions $f$ is either identically null or vanishes only at $0$.