A simple illustration of the trapezoid rule for definite integration, see section [XXX] in the manuscript. Here, the code  (Jupyter Notebook hosted locally) is hosted and executed on Authorea.