Added definite integration via the trapezium rule.