Exercise · ZW-TRAPEZOIDAL-RULE-006 · ★★☆ Intermediate

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

Choose one option.

Show answer
  • B. \(3\)

Explanation

With \(h=1\): \(\frac{1}{2}[0+2(1)+4]=3\). The value \(8/3\) is the exact integral, not the approximation.

Study Numerical methods in ZWMath →

Review the concept: Trapezoidal rule

The trapezoidal rule is a quadrature method that approximates the definite integral of a function \(f\) on \([a,b]\) by replacing the curve with the straight line joining \((a,f(a))\) and \((b,f(b))\).

\[\int_a^b f(x)\,dx \approx \frac{h}{2}\left[f(a)+2\sum_{i=1}^{n-1}f(x_i)+f(b)\right]\]

More practice problems: trapezoidal rule

← ZW-TRAPEZOIDAL-RULE-005 ZW-TRAPEZOIDAL-RULE-007 →