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

If the error of the composite trapezoidal rule with \(n=2\) on \(\int_0^1 x^2\,dx\) is \(0.0417\), what is the approximate error with \(n=4\)?

Choose one option.

Show answer
  • D. \(0.0104\)

Explanation

Doubling \(n\) halves the step, and since the error is of order \(h^2\), it is divided by 4: \(0.0417/4\approx0.0104\). Half the error would correspond to dividing by 2, not by 4.

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-007 ZW-TRAPEZOIDAL-RULE-009 →