We have to evaluate the definite integral
I=∫−22[πx]+21sin2xdx,
where [t] denotes the greatest integer less than or equal to t (the “floor” function).
First we study the denominator. For each x lying between −2 and 2 we look at the value of πx:
−2≤x<0⟹−π2≤πx<0⟹−0.637…≤πx<0.
Because every number in this interval is negative but lies strictly greater than −1, its greatest-integer part is −1:
[πx]=−1when−2<x<0.
Similarly, for the non-negative half
0≤x≤2⟹0≤πx≤π2≈0.637…,
and all these numbers have greatest-integer part 0:
[πx]=0when0≤x≤2.
Consequently the whole denominator takes only two constant values:
For x∈(−2,0):[πx]+21=−1+21=−21.
For x∈[0,2]:[πx]+21=0+21=21.
Using this piecewise constant denominator, we split the integral:
I=∫−20−21sin2xdx+∫0221sin2xdx=−2∫−20sin2xdx+2∫02sin2xdx.
Now recall the basic property that sin2x is an even function, i.e.
sin2(−x)=sin2xfor all x.
For an even integrand the areas on symmetric intervals are equal, so we have
∫−20sin2xdx=∫02sin2xdx.
Let us denote this common value by A, i.e.
A=∫02sin2xdx.
Substituting A into the expression for I, we obtain
I=−2A+2A=0.
Hence, the correct answer is Option A.