Let $g:\mathbb{R}\to \mathbb{R}$ be a given function. My question is
Does there exist a function $f\colon X\subseteq\mathbb{R}\to \mathbb{R}, x\mapsto f(x)$ such that $f(x)-f(x-1)=g(x)?$ for all $x\in X$?
I am able to guess some very simple cases. For example, if $g(x)$ is constant $g(x) =k$, then $f(x)$ is linear $f(x) = kx$ since $$f(x)-f(x-1) = kx - k(x-1) = kx -kx + k = k.$$
In general, is there a way to find $f(x)$ without guessing?