I would be glad if anyone check my solution for the following question.
Suppose $f$ is integrable on $(-\pi,\pi]$ and extended to $\Bbb R$ by making it periodic of period $2\pi$. Show that $\int_{-\pi}^\pi f(x)dx=\int_I f(x)dx$ where $I$ is any interval in $\Bbb R$ of length $2\pi$.
Attempt: Note that $I=(-\pi,\pi]+a=(-\pi+a,\pi+a]$ for some $a\in \Bbb R$. So, it is enough to show that for any $a\in \Bbb R$, $$\int_{-\pi}^\pi f(x)=\int_{-\pi+a}^{\pi+a}f(x)dx.$$ Here we go: \begin{align} \int_{-\pi+a}^{\pi+a}f(x)dx &=\int_{-\pi+a}^{\pi}f(x)dx+\int_\pi^{\pi+a}f(x)dx \\&=\int_{-\pi+a}^{\pi}f(x)dx+\int_{-\pi}^{-\pi+a}f(x+2\pi)dx \\&=\int_{-\pi+a}^{\pi}f(x)dx+\int_{-\pi}^{-\pi+a}f(x)dx, \quad \text{since the period of $f$ is $2\pi$ } \\&=\int_{-\pi}^\pi f(x)dx \end{align}
Do we need to prove the equality $\int_\pi^{\pi+a}f(x)dx=\int_{-\pi}^{-\pi+a}f(x+2\pi)dx$ ? If the answer is yes, how? Thanks!
\begin{align} \int_\pi^{\pi+a}f(x)dx &=\int_{\Bbb R}\chi_E(x)f(x)dx=\int_{\Bbb R}\chi_E(x+2\pi)f(x+2\pi)dx \\&=\int_{\Bbb R}\chi_{E-2\pi}(x)f(x)dx=\int_{-\pi}^{-\pi+a}f(x)dx \end{align}