The value of ∫ab |x|xdx is
|b|−|a|
|a|−|b|
|b|+|a|
−|b|−|a|
Case I: If 0≤a<b, then |x|x=1
∴ I=∫ab 1.dx=b−a=|b|−|a|
Case II: If a<b≤0, then |x|=−xI=∫ab −xxdx=∫ab (−1)dx =[−x]ab=−b−(−a)=|b|−|a|
Case III: If a<0<b
then |x|=−x when a<x<0
and |x|=x when 0<x<b
I=∫ab|x| |x|xdx=∫a0 |x|xdx+∫0b |x|xdx =∫a0 −xxdx+∫0b xxdx =∫a0 (−1)dx+∫0b 1dx =[−x]a0+[x]0b=a+b=b−(−a)=|b|−|a| Hence, in all the cases I=∫ab |x|xdx=|b|−|a|