You just need to show that the integral yields the same value when the period is used as the interval. You can see that [-L,L] is 2L in length, and then [a, a+2L] is also 2L in length, and since f(x) is a 2L periodic function, then it is the same over all periods, regardless of the starting point.