We need ∫−60f(x)dx where f(x)=max{∣x+1∣,∣x+2∣,∣x+3∣,∣x+4∣,∣x+5∣}.
The functions ∣x+k∣ for k=1,2,3,4,5 have V-shaped graphs with vertices at x=−k, and each measures the distance from x to −k. Since we seek the maximum distance from x to one of the points {−1,−2,−3,−4,−5}, this maximum will occur at whichever endpoint, −1 or −5, is farther away from x.
The midpoint of −1 and −5 is −3. For x≤−3 the farthest point is −1, so f(x)=∣x+1∣=−(x+1)=−x−1. For x≥−3 the farthest point is −5, so f(x)=∣x+5∣=x+5.
To verify at the transition point x=−3, we compute ∣−3+1∣=2,∣−3+2∣=1,∣−3+3∣=0,∣−3+4∣=1,∣−3+5∣=2, and observe that both ∣x+1∣ and ∣x+5∣ equal 2, confirming that x=−3 is indeed the transition point.
Next we compute the integral over [−6,−3]:
∫−6−3(−x−1)dx=[−2x2−x]−6−3=(−29+3)−(−236+6)=(−23)−(−12)=−23+12=221.
Then we compute the integral over [−3,0]:
∫−30(x+5)dx=[2x2+5x]−30=(0)−(29−15)=0−(−221)=221.
Adding these two parts gives
∫−60f(x)dx=221+221=21.
The answer is 21.