Compute the double integral (volume under surface) over a rectangular region [a,b]×[c,d]. The tool uses an adaptive 2D Simpson (cubature) method with high accuracy. Visualize the surface in real-time 3D.
The double integral ∬R f(x,y) dA extends the concept of a definite integral to two dimensions. Over a rectangular region R = [a,b] × [c,d], it represents the signed volume between the surface z = f(x,y) and the xy‑plane. Formally, it is defined as the limit of Riemann sums over subdivisions of the region.
\[ \iint_R f(x,y)\,dA = \lim_{m,n\to\infty} \sum_{i=1}^{m}\sum_{j=1}^{n} f(x_i^*, y_j^*)\,\Delta x \Delta y \]
Double integrals are used to compute volumes, average values, centers of mass, and probabilities in two dimensions. This calculator provides a high‑precision numerical estimate using an adaptive 2D Simpson (cubature) algorithm, and displays the surface in interactive 3D.
The algorithm recursively subdivides each rectangular cell into four sub‑rectangles, applying Simpson's 1/3 rule in both dimensions (the “cubature” formula). The error is estimated by comparing the integral on the cell with the sum of integrals on its four children. The process continues until the estimated error falls below a tolerance (default 1e-8). This method is robust for smooth functions and provides accurate results even for moderately oscillatory integrands.
| f(x,y) | ∬[a,b]×[c,d] f(x,y) dA | Example (a,b,c,d) |
|---|---|---|
| 1 | (b−a)(d−c) (area) | ∬[0,1]² 1 dA = 1 |
| x^n y^m | (b^{n+1}−a^{n+1})/(n+1) · (d^{m+1}−c^{m+1})/(m+1) | ∬[0,1]² xy dA = 1/4 |
| sin(x) cos(y) | (cos(a)−cos(b))·(sin(d)−sin(c)) | ∬[0,π]² sin(x)cos(y) = 0 |
| e^{-(x²+y²)} | √π·(erf(b)−erf(a))/2 · √π·(erf(d)−erf(c))/2 (numerical) | Gaussian integral |
Compute ∬[-1,1]×[-1,1] (x² + y²) dA
x^2 + y^2 as function.
Many functions do not have elementary antiderivatives in two variables, or the iterated integration is cumbersome. Examples include exp(-x²-y²), sin(x²+y²), or any function where the inner integral cannot be expressed in closed form. This calculator always uses numerical cubature, ensuring a reliable result for any continuous function over the rectangle.