Find all $f \in \mathscr{C^\infty}(\mathbb R)$ that satisfy the equation $$f'(x) = f(x+1) - f(x).$$
The 'obvious' answer is the set of all affine maps, but I'm not entirely sure.
Some progress:
For any $x \in \mathbb{R}$, we have
$$f(x+h) = f(x) + f'(x)h + r(x,h),$$
where $r(x,h) = o(h)$. Letting $h = 1$,
$$f(x+1) = f(x) + (f(x+1) - f(x)) + r(x,1).$$
This implies $r(x,1) = 0$ for all $x$, so the linear approximation is exact for an increment of 1.
I thought of Taylor's theorem as well. For any $x \in \mathbb R$,
$$f(x+h) = f(x) + f'(x)h + \frac{f''(c)}{2}h^2$$
for some $c \in (x,x+h)$. Again letting $h = 1$ we get that $f''(c) = 0$, but that only shows that the second derivative vanishes at some point, not all points.
I have a feeling that the first proof just needs one extra step to finish the job. This problem is not for a class, so I would be interested in seeing the solutions if the $\mathscr{C}^\infty$ condition were weakened (my first proof only requires differentiability, so I would assume a proof requiring $\mathscr{C}^1$ would be on a different route).