"The graph of a function $f: \mathbb{R}\to\mathbb{R}$ has two has at least two centres of symmetry. Prove that $f$ can be represented as sum of a linear and periodic function." Source: sum of a linear and periodic function
I came across this while searching for an unrelated question, and it looked interesting. I have seen some claims that this was easy, but I cannot see where even to begin with this, and do not really understand the solution given in the link (namely, why does it involve looking at rotations?).
How is this proven?
Rotational symmetry
If there are two such centers of symmetry, namely $(c_x^1,c_y^1)$ and $(c_x^2, c_y^2)$, then we find
$$f(x)=2c_y^1-f(c_x^1-x)=\underbrace{2(c_y^2-c_y^1)}_a+f(\underbrace{2(c_x^2-c_x^1)}_b+x)=a+f(b+x).$$
Define $g(x)=f(x)-a/b \cdot x$. We then have that
$$g(x+b)=f(x+b)-\frac ab(x+b)=f(x)-a+\frac abx+\frac abb=f(x)+\frac ab x=g(x).$$
This means $g$ is periodic. And since $f(x)=g(x)+a/b\cdot x$, we have that $f$ is the sum of a periodic function and a linear function.
Mirror symmetry
So if there are two such numbers $c_1$ and $c_2$ (assume $c_2>c_1$), then we have that
$$f(x)=f(2c_1-x)=f(2c_2-(2c_1-x))=f(2(c_2-c_1)+x).$$
This means that $f$ is periodic with period $2(c_2-c_1)$ and we can choose the linear part to be zero.