Whenever a<b, the value of ∫ab |x|xdx is
b–a
a–b
|b|–|a|
|b|+|a|
If 0≤a<b, then f(x)=|x|x=1 therefore,
∫ab f(x)dx=b−a. if a<b≤0 then f(x)=−1 and so
∫ab f(x)dx=a−b, Finally if a<0<b then ∫ab f(x)dx=
∫a0 f(x)dx+∫0b f(x)dx=−(0−a)+(b−0)=b−(−a)
The above three cases can be represented by
∫ab |x|xdx=|b|−|a|.