Approximate integration
Many functions have no antiderivative in elementary form, so we approximate the definite integral. Split [a, b] into n equal parts: h = (b − a)/n, with division points xₖ = a + kh. The left rectangle rule is ∫ₐᵇ f dx ≈ h · (y₀ + y₁ + … + yₙ₋₁) and the right rectangle rule is h · (y₁ + … + yₙ), where yₖ = f(xₖ). The midpoint rule uses the value at the middle of each part. The trapezoid rule is ∫ₐᵇ f dx ≈ h · (y₀/2 + y₁ + … + yₙ₋₁ + yₙ/2); it equals the average of the left and right sums. For an increasing function the left sum underestimates and the right sum overestimates; the larger n is, the better the accuracy.
The cross-section of a canal was measured with depths every 1 m across its 6 m width: 0, 0.5, 0.8, 0.9, 0.6, 0.3, 0 m. By the trapezoid rule the area is 1 · (0 + 0.5 + 0.8 + 0.9 + 0.6 + 0.3 + 0) = 3.1 m². An area under a curve with no formula can be found approximately in this way, and the denser the measurements, the more accurate the answer.
Hydrologists estimate water flow from the area of a river or canal cross-section, road builders work out the volume of earthworks from cross-sections, and data analysts find a total from measurements recorded in a table.
Draw a hill-shaped curve on paper, read its height at every 1 cm and find the area with the trapezoid rule. Then count squares and compare the two results.
“Integral from a table”: velocity readings are given: at t = 0, 1, 2, 3, 4 s the speed is v = 0; 3; 5; 6; 6 m/s. With the trapezoid rule find the distance covered in 4 seconds (∫v dt) and compare it with the rectangle result.