The given curve crosses the x-axis whenever x is a multiple of π, and it lies above the x-axis between consecutive even and odd multiples of π. So the regions with area S₀, S₁, S₂, ... are the sets



and so on, with

for natural number k.
The areas themselves are then given by the integral

Integrate by parts twice. Take


so that

then


so that

Overall, we find

or

Using the antiderivative and the fundamental theorem of calculus, we compute the k-th area to be



Since
, the sum we want is a convergent geometric sum. As n goes to ∞, we have
