Let $f : \mathbb{R} \rightarrow \mathbb{R}$ be a twice differentiable function such that $$\frac{1}{2y} \int_{x-y}^{x+y} f(t)\, dt = f(x), \quad \text{for all } x \in \mathbb{R},\ y > 0$$ Show that there exist $a, b \in \mathbb{R}$ such that $f(x) = ax + b$ for all $x \in \mathbb{R}$.
Let $f : \mathbb{R} \rightarrow \mathbb{R}$ be a twice differentiable function such that
$$\frac{1}{2y} \int_{x-y}^{x+y} f(t)\, dt = f(x), \quad \text{for all } x \in \mathbb{R},\ y > 0$$
Show that there exist $a, b \in \mathbb{R}$ such that $f(x) = ax + b$ for all $x \in \mathbb{R}$.