It's easy to fall into the trap of relying on rote memorization of integration rules, but problems like (⋆) force students to truly understand the concepts behind the math.
> You don't need to think about periodic functions at all.
except you just described that which is called period...so it's actually good for a student to notice these things, and use the correct term, so that they can associate the name with the idea.