What functions $f$ have the property that, for all $x$ and $y$: $$ f(x) + f(y-x) = g(y) $$ i.e., the sum does not depend on $x$?
Linear functions obviously this property: if $f(x) = ax+b$, then:
$$ f(x) + f(y-x) = ay+2b = g(y). $$
On the other hand, if we look only at differentiable functions, then only linear functions have this property. By taking the derivative of the first equation as a function of $x$:
$$ f'(x) - f'(y-x) = 0 \iff f'(x)=f'(y-x) $$
Since this is true for every $y$, $f'(\cdot)$ must be a constant function, so $f$ must be linear.
Are there non-differentiable functions with this property?