Exercise · ZW-GAUSSIAN-QUADRATURE-006 · ★★☆ Intermediate

Apply the 2-point rule (nodes \(\pm 1/\sqrt{3}\), weights 1) to \(\int_{-1}^{1} x^2\,dx\). What do you get?

Choose one option.

Show answer
  • D. \(2/3\)

Explanation

With weights 1 the sum is \((1/\sqrt{3})^2+(-1/\sqrt{3})^2=2/3\), which equals the exact value. Doubling each weight is a common mistake and gives \(4/3\).

Study Numerical methods in ZWMath →

Review the concept: Gaussian quadrature

Numerical integration method that chooses optimal nodes \(x_i\) and weights \(w_i\) to approximate an integral with the highest possible accuracy for a fixed number of function evaluations.

\[\int_{a}^{b} f(x)\,dx \approx \sum_{i=1}^{n} w_i\, f(x_i)\]

More practice problems: gaussian quadrature

← ZW-GAUSSIAN-QUADRATURE-005 ZW-GAUSSIAN-QUADRATURE-007 →