Captain Matticus, LandPiratesInc
Favorite Answer
What's the area of a trapezoid? (1/2) * (b + B) * h
Let h = b - a (or alternatively delta_x) and your bases be f(a) and f(b). If you look at it correctly, you'd see that you're just finding the sum of the areas of different trapezoids.
(1/2) * (5 - 2) * (30 + 10) + (1/2) * (7 - 5) * (40 + 30) + (1/2) * (8 - 7) * (20 + 40) =>
(1/2) * 3 * 40 + (1/2) * 2 * 70 + (1/2) * 1 * 60 =>
(1/2) * (3 * 40 + 2 * 70 + 1 * 60) =>
(1/2) * (120 + 140 + 60) =>
(1/2) * (120 + 200) =>
(1/2) * 320 =>
160