Exercise · ZW-SIMPSON-S-RULE-010 · ★★★ Advanced

Apply the composite Simpson's rule with \(n=4\) to \(\int_0^4 x^2\,dx\). What value do you get?

Choose one option.

Show answer
  • D. \(\frac{64}{3}\)

Explanation

With \(h=1\), the values are \(0,1,4,9,16\), and \(\frac{1}{3}(0+4\cdot1+2\cdot4+4\cdot9+16)=\frac{64}{3}\), exact for quadratics.

Study Numerical methods in ZWMath →

Review the concept: Simpson's rule

Simpson's rule is a numerical quadrature method that approximates \(\int_a^b f(x)\,dx\) by integrating a quadratic polynomial that interpolates \(f\) at \(a\), \(\frac{a+b}{2}\), and \(b\).

\[\int_a^b f(x)\,dx \approx \frac{h}{3}[f(x_0)+4f(x_1)+f(x_2)], h=\frac{b-a}{2}\]

More practice problems: simpson's rule

← ZW-SIMPSON-S-RULE-009