The absolute value function ∣x∣ is defined as:
∣x∣={x−xif x≥0if x<0
Since ∣x∣ changes its definition at x=0, the integral must be split at this point.
∫−11∣x∣dx=∫−10∣x∣dx+∫01∣x∣dx
For x∈[−1,0], we have x≤0, so ∣x∣=−x
For x∈[0,1], we have x≥0, so ∣x∣=x
∫−11∣x∣dx=∫−10(−x)dx+∫01xdx
∫−10(−x)dx=[−2x2]−10
=−2(0)2−(−2(−1)2)
=0+21
=21
∫01xdx=[2x2]01
=2(1)2−2(0)2
=21−0
=21
∫−11∣x∣dx=21+21
=1
Therefore, ∫−11∣x∣dx=1