x3−x=x(x2−1)=x(x−1)(x+1)The range in which the function is positive comes out to be [−1,0]∪[1,2]
And it is negative for x belonging to [0,1]
⇒ we get ∫2−1|x3−x|dx to be ∫0−1(x3−x)dx+∫10(x−x3)dx+∫21(x3−x)dx
i.e. 0−1[x44−x22] +10[x22−x44] + 21[x44−x22]
=0−14 + 12 + 12 - 14 + 4−2−14+12
=2+34
=2.75