trapezoidal rule.