$$\underline{\text{**ATTENTION**}}$$
This question is not a duplicate of this one and this other question!
So let be $f:\Bbb R\rightarrow\Bbb R$ a periodic function, that is there exist $T\in\Bbb R$ such that $$ f(x+T)=f(x) $$ for any $x\in \Bbb R$. So I'd like to prove that $$ \int_x^{x+T}f(t)\,dt=\int_0^Tf(t)\,dt $$ for any $x\in\Bbb R$ and exactly I'd like to do this using the same arguments that André Nicolas gave in this answer but now I'd like do this with more details since I am sure that the mentioned user proves the result using the Fundamental Theorem of Calculus but unfortunately it is not clear how he applies it so that I thought to pay an apposite question where I ask to give this proof adding more details, that's all. Moreover it seems to me that if the period $T$ of $f$ is negative then the above integral could not be defined so that I ask also clarification about this.
So could anyone help me, please?
First of all we observe that the period $T$ can be suppose not negative without loss of generality: indeed if $T$ was not positive then $-T$ would be not negative and it would be such that $$ f(x-T)=f\big((x-T)+T\big)=f(x) $$ for any $x\in\Bbb R$. So without loss of generality we can suppose that $$ x\le x+T $$ for any $x\in\Bbb R$ so that the function $F:\Bbb R\rightarrow\Bbb R$ defined as $$ F(x):=\int_x^{x+T}f(t)\,dt $$ for any $x\in\Bbb R$ is well defined.
So we let to prove now that $F$ is constant and precisely we are doing this proving that it is constant in $(-\infty,T]$ and in $[T,+\infty)$ respectively.
Previously we remember that the Change of Variables Theorem states that
whereas the Fundamental Theorem of Calculus states that