Exercise: double integral of a surface
Comparison between double Simpson and Gauss-Legendre for an integral derived from the hemisphere .
Building the integrand
ExampleHemisphere on the unit square
Let and . Compute the integral of with Simpson and Gauss-Legendre .
The partial derivatives are:
Therefore, the integrand simplifies to:
With double Simpson and n=m=8, one obtains:
With Gauss-Legendre , after transforming and , one obtains:
The two values are very close; Gauss-Legendre uses far fewer points because it chooses non-equally spaced nodes with optimal weights.