The correct option is C 5/π
We can write
I=∫1−1|xsinπx|dx+∫21|xsinπx|dx
As
|xsinπx| is an even function, sinπx≥0, for 0≤πx≤π and sinπx≤0 for
πx≤2π we get
I=2∫10xsinπxdx−∫21xsinπxdx
Now ∫xsinπxdx=−xcosπxπ+1π∫cosπxdx
=−xπcosπx+1π2sinπx
Thus,
I=2(−1πcosπ+0)−(−2πcos2π+1πcosπ) =5π