set $$(x- \pi/3=0)$$ and $$(x-\pi/3 = 4\pi)$$ separately. that should give you endpoints of the two periods