Problem:
$f : \mathbb{R} \to \mathbb{R}$ is a continuous and periodic function with period $T>0.$
Prove that:
$$\lim_{n\to +\infty} \int_{a}^{b} f(nx) dx =\frac{b-a}{T} \int_{0}^{T} f(x) dx$$
I tried substituting $nx=t$, but it gave me $\frac{1}{n} \int_{na}^{nb} f(t)dt$, and I don't know what to do. Can anyone give me hints to solve this? Or is there another way to solve this problem?
Hint: notice that, as $n$ grows larger, the interval $n b - n a$ can be split into $k$ subintervals of size $T$, with $k = \text{floor}(\frac{n b -n a}{T})$. Using periodicity, split the integral over this interval as a sum of integrals over $(0,T)$ and a remainder, then take the limit.