For a differentiable function $f(x)$, $$f(x+y) - 2f(x-y) + f(x) - 2f(y) = y - 2.$$ Then find $f(x)$.
I am not able to think of any method which is working. I tried replacing $x$ and $y$, putting $x$ or $y = 0$, putting $y = x$, etc. Can someone help me
Answer given at back is $f(x)=x+1$
Another trick for solving. As PNDas has already mentioned $f(0) = 1$. Now substitute $y = h$ and do some grouping:
$$(f(x+h) - f(x)) - 2(f(x +(-h)) - f(x)) = h + 2(f(0 + h) - f(0))$$
Divide by $h$
$$\frac{f(x+h) - f(x)}h +2\frac{f(x +(-h)) - f(x)}{-h} = 1 +2\frac{f(0 + h) - f(0)}h$$ And take the limit as $h \to 0$ to get $$3f'(x) = 1 + 2f'(0)$$ which by the assumption of differentiability is guaranteed to converge. Set $x = 0$ to find $f'(0)$, then it is a simple integration to solve.