Problem: Suppose $f:\mathbb R→\mathbb R$ is continuous and has period $p$, so that $f(x+p)=f(x)$ for all $x\in \mathbb R$. Show that $\int_{x}^{x+p}f(t)dt$ is independent of $x$ in that, for all $x,y$
$$\int_x^{x+p}f(t)dt=\int_y^{y+p}f(t)dt.$$
Show then, that $\int_0^p[f(x+a)-f(x)dx]=0$ for any number $a$. Conclude that for any number $a$, there is $x$ such that $f(x+a)=f(x)$.
I do not know how to start this problem. I thought about defining a function $g(x)=f(x+p)-f(x)$. This is not equal to $\int_x^{x+p}f(t)dt$ right? Even though there seems to be a close relationship by the FTC. This is a clear thing when discussing $\cos(x)$ or $\sin(x)$, trig functions since they do have this periodicity. How am I supposed to show this is $x$ independent? Then it seems like we're supposed to integrate the original integral.