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?
Define $f$ any way you like on $[0,1),$ and then extend to all positive numbers inductively using $f(x+1)=f(x)+g(x+1).$ Similar for negative numbers.
So, for an integer $n\ge 0$ and $0\le x<1$ we have $$f(n+x) = f(x) + \sum_{k=1}^n g(k+x).$$