We have to evaluate the quantity 8⋅∫−211([2x]+∣x∣)dx, where [t] denotes the greatest integer less than or equal to t. After finding the definite integral, we will multiply the result by 8.
Because both the greatest-integer function [2x] and the absolute-value function ∣x∣ are piece-wise, it is convenient to break the interval [−21,1] into smaller parts on which the integrand is simple and constant in form.
First, recall the two standard definitions we shall use again and again:
1. For any real number x, ∣x∣={−x,x,x<0,x≥0.
2. For any real number x, [2x] is the greatest integer that is &le 2x.
To know where [2x] changes its value, we solve 2x=n for integers n; this gives the critical points x=2n.
Within our interval −21≤x≤1 the relevant half-integers are
x=−21,0,21,1.
Hence we split the entire interval into three sub-intervals:
(i) [−21,0)
(ii) [0,21)
(iii) [21,1]
We now write the integrand [2x]+∣x∣ explicitly on each sub-interval.
Interval (i): If −21≤x<0, then 2x lies in [−1,0), so [2x]=−1.
Because x<0, we have ∣x∣=−x.
Thus the integrand becomes
[2x]+∣x∣=−1+(−x)=−1−x.
Interval (ii): If 0≤x<21, then 0≤2x<1, so [2x]=0.
Now x≥0, hence ∣x∣=x.
Therefore the integrand is
[2x]+∣x∣=0+x=x.
Interval (iii): If 21≤x≤1, then 1≤2x≤2, and except for the single point x=1 (of zero width in integration) we have [2x]=1.
Again x≥0, so ∣x∣=x.
Consequently the integrand is
[2x]+∣x∣=1+x.
With the integrand fully described, we write the original integral as the sum of three simpler definite integrals:
∫−211([2x]+∣x∣)dx=∫−210(−1−x)dx+∫021xdx+∫211(1+x)dx.
Let us evaluate each piece one after another, showing every algebraic step.
First piece
∫−210(−1−x)dx=[−x−2x2]−1/20.
Substituting the upper limit x=0 gives
−0−202=0.
Substituting the lower limit x=−21 gives
−(−21)−2(−21)2=21−241=21−81=83.
Therefore
∫−210(−1−x)dx=0−83=−83.
Second piece
∫021xdx=[2x2]01/2=2(1/2)2−0=21/4=81.
Third piece
∫211(1+x)dx=[x+2x2]1/21.
Upper limit x=1 gives
1+212=1+21=23.
Lower limit x=21 gives
21+2(1/2)2=21+21/4=21+81=85.
Hence
∫211(1+x)dx=23−85=812−85=87.
Now we combine all three results:
∫−211([2x]+∣x∣)dx=−83+81+87=8−3+1+7=85.
Finally we multiply by the external factor 8:
8×85=5.
So, the answer is 5.