To evaluate an integral using trapezoids or Simpson's rule, we can use Mathematica's capabilities to our advantage. Suppose we want to integrate
over the interval [1,4] using
. First, we will use trapezoids. The semicolons at the end of the statements below just keep Mathematica from printing the results on the screen, and allow me to put more than one command in a single cell.