Maths WorkshopMaths problems with full solutions
Exercise 70Calculus › Single-variable calculus › Continuity › Functional equationsL1Added 2 Nov 2026

The midpoint functional equation

#functional equations#affine functions

Statement

Let f:R→Rf:\mathbb{R}\to\mathbb{R} be continuous and satisfy
f ⁣(x+y2)=f(x)+f(y)2for all x,y.f\!\left(\frac{x+y}2\right)=\frac{f(x)+f(y)}2\quad\text{for all }x,y.
Prove that ff is affine, that is f(x)=ax+bf(x)=ax+b.

Hint

Subtract the constant f(0)f(0) and reduce to Cauchy's functional equation.

Show solutionHide solution

Solution

Reduction. Put g(x)=f(x)−f(0)g(x)=f(x)-f(0). Then g(0)=0g(0)=0, gg is continuous, and gg satisfies the same midpoint equation (the constants cancel).

Halving. Taking y=0y=0: g ⁣(x2)=g(x)2g\!\left(\frac x2\right)=\frac{g(x)}2, i.e. g(x)=2g ⁣(x2)g(x)=2g\!\left(\frac x2\right).

Additivity. For any x,yx,y,
g(x+y)=2g ⁣(x+y2)=2⋅g(x)+g(y)2=g(x)+g(y).g(x+y)=2g\!\left(\frac{x+y}2\right)=2\cdot\frac{g(x)+g(y)}2=g(x)+g(y).

Conclusion. gg is continuous and additive, so by Cauchy's equation g(x)=axg(x)=ax with a=g(1)a=g(1). Therefore f(x)=ax+bf(x)=ax+b with b=f(0)b=f(0).

Remark. The equation says that the value at the midpoint is the average of the values: the graph over every interval is "flat", and that characterises straight lines among continuous functions.