Check whether $f \mapsto f+ \frac{df}{dx}$ is injective or surjective

Checking surjectivity is the same as solving the ODE $f'+f = g$ for $f$ and seeing if you assume that $g$ is smooth, then $f$ is also smooth. This indeed happens, as we can solve the ODE by usual methods: since the solutions to $f'+f=0$ are of the form $f(x) = Ce^{-x}$, we try to look for general $f$ of the form $f(x) = C(x)e^{-x}$. Then $$g(x) = f'(x)+f(x) = C'(x)e^{-x}-C(x)e^{-x} + C(x)e^{-x} = C'(x)e^{-x}$$implies that $C(x) = \int e^xf(x)\,{\rm d}x$, and of course $$f(x) = e^{-x}\int_0^x e^tg(t)\,{\rm d}t$$is smooth if $g$ is.


Have you seen integrating factors before?

If you want $f^\prime(x) + f(x) = g(x)$, then multiplying by $e^x$ to get $$ (e^x f(x))^\prime =e^xf^\prime(x) + e^x f(x) = e^x(f^\prime(x) + f(x)) = e^xg(x)$$ should let you find an $f$ that works.