Consider the family $F$ of all $f$ differentiable functions $f: \mathbb R\to\mathbb R$, that satisfy, for any pair of real numbers $x$ and $y$, the condition:
$$\frac{f(x)-f(y)}{x-y} = f'\left(\frac{x+y}{2}\right)$$
Now there is a lot of alternatives t and $f$, and the only true is: "All functions of $F$ are class $C^{\infty}$"
I can not understand why. The function $ax + b$ satisfy the properties (1). But this type of function is not smooth.
(1): $$\frac{f(x)-f(y)}{x-y} = \frac{ax + b - ay - b}{x-y} = a\\f' = a$$