The curve is given by y=max{∣x∣,x∣x−2∣} between the vertical lines x=−2 and x=4.
To find the bounded area we must, on every sub-interval, decide which of the two expressions is larger and then integrate that expression above the x-axis.
Write the two functions explicitly on each interval:
For ∣x∣ we already have the standard definition.
For x∣x−2∣ we split at x=2.
Case 1: x≤0
∣x∣=−x,∣x−2∣=2−x,x∣x−2∣=x(2−x)=2x−x2<0
Here x∣x−2∣ is negative whereas ∣x∣ is positive, so
y=∣x∣=−xon[−2,0].
Case 2: 0≤x≤2
∣x∣=x,∣x−2∣=2−x,x∣x−2∣=2x−x2.
Compare the two:
xvs2x−x2⟹(2x−x2)−x=x(1−x).
Therefore
• When 0≤x<1, x(1−x)>0, so y=2x−x2.
• When 1≤x≤2, x(1−x)≤0, so y=x.
Case 3: 2≤x≤4
∣x∣=x,∣x−2∣=x−2,x∣x−2∣=x2−2x.
Compare:
(x2−2x)−x=x(x−3).
Hence
• When 2≤x<3, x(x−3)<0, so y=x.
• When 3≤x≤4, x(x−3)≥0, so y=x2−2x.
Collecting the pieces we integrate:
A1=∫−20(−x)dx=[−2x2]−20=2
A2=∫01(2x−x2)dx=[x2−3x3]01=1−31=32
A3=∫12xdx=[2x2]12=2−21=23
A4=∫23xdx=[2x2]23=29−24=25
A5=∫34(x2−2x)dx=[3x3−x2]34=364−16=316
Add all parts:
A=A1+A2+A3+A4+A5
=2+32+23+25+316
Convert to a common denominator 6:
=612+4+9+15+32=672=12.
Hence the required area is 12.