Quadrature practical 2 - quadrature rules

  1. Integrate $f(x) = 2x^3$ between 1 and 5.
  2. With two equal intervals, use the midpoint and trapezoid and to approximate $f(x)$. Show that the midpoint rule is roughly twice as accurate as the trapezoid rule.
  3. Demonstrate that Simpson's rule integrates cubics exactly by calculating it for $f(x)$ with two intervals.
  4. Show that Simpson's Composite Rule and Weddle's rule both produce the same result.
  5. Show that the two forms of Simpson's rule are equivalent:
\begin{equation} S = \frac{2}{3}M + \frac{1}{3}T \end{equation}\begin{equation} S = \frac{h}{6}\left ( f \left ( a\right ) + 4f \left ( c\right ) + f\left ( b\right )\right ) \end{equation}

In [ ]: