We wish to evaluate 12∫03∣x2−3x+2∣dx. Observe that x2−3x+2=(x−1)(x−2), which vanishes at x=1 and x=2, dividing the interval [0,3] into regions where the sign of the quadratic is constant.
For x∈[0,1] both factors (x−1) and (x−2) are negative, so x2−3x+2>0 and hence ∣x2−3x+2∣=x2−3x+2. On x∈[1,2] the product (x−1)(x−2) is negative, giving ∣x2−3x+2∣=−(x2−3x+2)=−x2+3x−2. Finally, for x∈[2,3] both factors are nonnegative, so x2−3x+2>0 and ∣x2−3x+2∣=x2−3x+2.
Let I1=∫01(x2−3x+2)dx=[3x3−23x2+2x]01=31−23+2=62−9+12=65.
Next, I2=∫12(−x2+3x−2)dx=[−3x3+23x2−2x]12
=(−38+6−4)−(−31+23−2)=(−38+2)−(−31−21)
=−32+31+21=−31+21=61.
Similarly, I3=∫23(x2−3x+2)dx=[3x3−23x2+2x]23
=(9−227+6)−(38−6+4)=(23)−(38−2)=23−32=65.
Combining these results gives
12(I1+I2+I3)=12(65+61+65)=12×611=22.
The correct answer is 22.