Approximate ∫₀²x² dx with 2 subintervals
Trapezoidal: (h/2)(f0+2f1+f2) = (1/2)(0+2(1)+4) = 3 or using exact: x³/3 from 0 to 2 = 8/3 ≈ 2.67