Calculus • Multivariable Calculus Flagship

Double Integral Calculator

Calculate iterated double integrals $\iint_R f(x, y)\,dA$ over rectangular and variable-boundary regions. Compute 3D surface volumes, determine domain areas, switch between Type I ($dy\,dx$), Type II ($dx\,dy$), and Polar ($r\,dr\,d\theta$) coordinate systems with step-by-step derivations and interactive 2D domain visualizations.

Fact-Checked & Verified • Computational Accuracy Standards
Updated July 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Double Integral Volume and Flux Solver

Evaluate iterated integrals ∬R f(x, y) dA with step-by-step Fubini breakdowns.

Example Presets:
Supports +, -, *, /, ^, sin, cos, exp, sqrt
f(x, y) =
Outer Bounds (x) : ∫ab dx
Inner Bounds (y) : ∫g₁(x)g₂(x) dy
Double Integral Value (Signed Volume / Total Flux)
Exact and Numerical Value
2/3 ≈ 0.666667
Domain Area |R|
1.0000
Avg Height: 0.6667

Step-by-Step Iterated Integration Process

Integration Domain Region R and Boundary Canvas

Cartesian Domain Projection
Domain Region R (Base)
Upper Boundary g₂(x)
Lower Boundary g₁(x)
Direct Answer & Overview
Verified Educational Guide

How to Calculate a Double Integral

To calculate a double integral ∬_R f(x, y) dA, express it as an iterated integral. For a Type I region bounded by a ≤ x ≤ b and g1(x) ≤ y ≤ g2(x), evaluate the inner integral ∫ f(x, y) dy from g1(x) to g2(x) by treating x as a constant. Then, integrate the resulting single-variable function I(x) with respect to x from a to b: ∫_a^b I(x) dx. For circular regions, convert x = r cos(θ), y = r sin(θ), and dA = r dr dθ.

Primary Mathematical Formula Standard Mathematical Model
Standard Equation
ƒ(x)
Q.E.D.
∬_R f(x, y) dA = ∫_a^b [ ∫_g1(x)^g2(x) f(x, y) dy ] dx | Polar: ∬_R f(r, θ) r dr dθ
Evaluated with exact mathematical formulation • Rigorously verified
Exact Formula
Input Parameters
Required
1
Integrand Function f(x, y): Any continuous 2D surface function
2
Outer Limits [a, b]: Constant boundary interval for outer variable
3
Inner Limits [g1(x), g2(x)]: Constant values or boundary curve expressions
Expected Outputs
Calculated
Total Signed Volume / Flux: Exact fraction and 6-decimal floating point value
Domain Region Area |R|: 2D base area in the xy-plane
Average Surface Height: z_avg = (∬ f dA) / (Area R)
Cartesian Domain Visualizer: SVG boundary curve and shaded integration region plot
Worked Numerical Example
Instant Verification
Evaluate ∬_R (x² + y²) dA over R = [0, 1] × [0, 1]
→ Inner: ∫₀¹ (x² + y²) dy = [x²y + y³/3]₀¹ = x² + 1/3. Outer: ∫₀¹ (x² + 1/3) dx = [x³/3 + x/3]₀¹ = 1/3 + 1/3 = 2/3.
Exact Value: 2/3 ≈ 0.666667 | Base Area: 1.0000

Definition of Double Integrals and 3D Volume Concept

In single-variable calculus, the definite integral $\int_a^b f(x)\,dx$ represents the area under a curve $y = f(x)$ over an interval $[a, b]$. In multivariable calculus, the double integral extends this concept to functions of two variables $z = f(x, y)$ defined over a two-dimensional region $R$ in the $xy$-plane.

Formally, partition the region $R$ into $m \times n$ subrectangles with dimensions $\Delta x$ and $\Delta y$, where each small rectangle has differential area $\Delta A = \Delta x \Delta y$. By selecting a sample point $(x_{ij}^*, y_{ij}^*)$ in each subrectangle, the total volume is approximated by a double Riemann sum:

\iint_R f(x, y) \, dA = \lim_{m, n \to \infty} \sum_{i=1}^m \sum_{j=1}^n f(x_{ij}^*, y_{ij}^*) \, \Delta A

If $f(x, y) \ge 0$ across all of $R$, the double integral equals the exact 3-dimensional volume ($V$) of the solid that lies below the surface $z = f(x, y)$ and above the base region $R$.

Fubini's Theorem and Iterated Integrals

Direct evaluation of multivariable limits is cumbersome. Fubini's Theorem (formulated by Guido Fubini in 1907) provides the fundamental computational bridge: a double integral over a rectangular region $R = [a, b] \times [c, d]$ can be evaluated by reducing it to two consecutive single-variable iterated integrals.

\iint_R f(x, y) \, dA = \int_a^b [ \int_c^d f(x, y) \, dy ] dx = \int_c^d [ \int_a^b f(x, y) \, dx ] dy

Key Rule: When computing the inner integral $\int_c^d f(x, y)\,dy$, treat the outer variable $x$ as a fixed constant. Once the inner definite integral yields a single-variable function $A(x)$, integrate $A(x)$ with respect to $x$ from $a$ to $b$.

Type I vs Type II Regions and Reversing the Order of Integration

Most practical integration domains are non-rectangular, requiring boundary classification:

Type I (Vertically Simple)
R = { (x, y) | a ≤ x ≤ b, g₁(x) ≤ y ≤ g₂(x) }

Cross-sections are vertical line segments entering at $y = g_1(x)$ and exiting at $y = g_2(x)$. Integrated as $dy\,dx$.

∫ab ∫g₁(x)g₂(x) f(x, y) dy dx
Type II (Horizontally Simple)
R = { (x, y) | c ≤ y ≤ d, h₁(y) ≤ x ≤ h₂(y) }

Cross-sections are horizontal line segments entering at $x = h_1(y)$ and exiting at $x = h_2(y)$. Integrated as $dx\,dy$.

∫cd ∫h₁(y)h₂(y) f(x, y) dx dy

When to reverse the order: If the inner integrand has no elementary antiderivative (e.g., $\int_0^1 \int_y^1 \sin(x^2)\,dx\,dy$), reversing the order to $dy\,dx$ transforms the inner integral into $\int_0^x \sin(x^2)\,dy = x\sin(x^2)$, which is immediately solvable by $u$-substitution!

Polar Double Integrals and The Jacobian Determinant ($r\,dr\,d\theta$)

When an integration domain exhibits circular symmetry (circles, disks, rings, cardioids), Cartesian coordinates become unwieldy. Transforming to polar coordinates simplifies expressions involving $x^2 + y^2 = r^2$.

The transformation equations are $x = r\cos(\theta)$ and $y = r\sin(\theta)$. The differential area element $dA$ is determined by the Jacobian determinant of the coordinate mapping:

dA = |∂(x, y)/∂(r, θ)| dr dθ = ((cos θ)(r cos θ) - (-r sin θ)(sin θ)) dr dθ = r(cos²θ + sin²θ) dr dθ = r dr dθ

Thus, every polar double integral acquires an indispensable multiplicative factor of $r$:

\iint_R f(x, y) \, dA = \int_\alpha^\beta \int_{r_1(\theta)}^{r_2(\theta)} f(r\cos\theta, r\sin\theta) \cdot r \, dr \, d\theta

Physical and Engineering Applications

Double integrals are indispensable tools across physics, mechanical engineering, and probability theory:

Total Mass of a Lamina
M = ∬R ρ(x, y) dA

Accumulates non-uniform surface density $\rho(x, y)$ over region $R$.

Center of Mass (x̄, ȳ)
x̄ = M_y / M, ȳ = M_x / M

First moments $M_y = \iint x\rho\,dA$ and $M_x = \iint y\rho\,dA$.

Moment of Inertia
I_x = ∬ y²ρ dA, I_y = ∬ x²ρ dA

Measures rotational resistance about the coordinate axes.

Surface Area in 3D
A(S) = ∬R √(1 + f_x² + f_y²) dA

Computes the curved 3D surface area of $z = f(x, y)$.

Step-by-Step Worked Examples

Worked Example 1: Paraboloid Volume over Unit Square
Evaluate ∬R (x² + y²) dA over R = [0, 1] × [0, 1]
  • Inner Integral: ∫₀¹ (x² + y²) dy = [ x²y + y³/3 ]y=0y=1 = (x² · 1 + 1/3) - 0 = x² + 1/3
  • Outer Integral: ∫₀¹ (x² + 1/3) dx = [ x³/3 + x/3 ]x=0x=1 = (1/3 + 1/3) - 0 = 2/3
Exact Volume = 2/3 ≈ 0.666667
Worked Example 2: Polar Hemisphere Integration
Evaluate ∬D (1 - x² - y²) dA over the unit disk x² + y² ≤ 1
  • Convert to Polar: x² + y² = r², dA = r dr dθ, Bounds: r ∈ [0, 1], θ ∈ [0, 2π]
  • Integral: ∫₀2π ∫₀¹ (1 - r²) · r dr dθ = ∫₀2π ∫₀¹ (r - r³) dr dθ
  • Inner Integral: [ r²/2 - r⁴/4 ]₀¹ = (1/2 - 1/4) = 1/4
  • Outer Integral: ∫₀2π (1/4) dθ = (1/4)(2π) = π/2
Exact Volume = π/2 ≈ 1.570796

Comparison: Cartesian vs Polar vs Numerical Quadrature

Integration Method Best Suited Domains Primary Advantages Key Limitations
Cartesian (dy dx / dx dy) Rectangles, triangles, polynomials Direct algebraic integration, straightforward bounds Complicated square-root radicals for circular boundaries
Polar (r dr dθ) Disks, annuli, wedges, cardioids Eliminates square roots; turns circular bounds into constants Must remember the extra Jacobian multiplier r
2D Simpson Quadrature Complex non-elementary functions O(h⁴) numerical accuracy, handles any continuous 2D surface Requires small grid step sizes for highly oscillating functions

Frequently Asked Questions

What is a double integral and what does it represent geometrically?
A double integral ∬_R f(x, y) dA calculates the accumulated sum of a multivariable function f(x, y) over a 2-dimensional region R in the xy-plane. Geometrically, when f(x, y) ≥ 0, the double integral represents the exact 3-dimensional volume under the surface z = f(x, y) and above the xy-plane bounded within region R. When f(x, y) takes positive and negative values, it gives the net signed volume.
What is Fubini's Theorem and when does it apply?
Fubini's Theorem states that if f(x, y) is continuous on a rectangular region R = [a, b] × [c, d], the double integral can be evaluated as an iterated integral in either order with identical results: ∬_R f(x, y) dA = ∫_a^b (∫_c^d f(x, y) dy) dx = ∫_c^d (∫_a^b f(x, y) dx) dy. For general regions, the order can also be reversed by appropriately converting between Type I and Type II boundary functions.
What is the difference between Type I and Type II integration regions?
A Type I (vertically simple) region is bounded between two vertical lines x = a and x = b, with y varying between two continuous curves y = g1(x) and y = g2(x). It is integrated as dy dx. A Type II (horizontally simple) region is bounded between two horizontal lines y = c and y = d, with x varying between two curves x = h1(y) and x = h2(y). It is integrated as dx dy.
Why does converting to polar coordinates introduce an extra factor of r (r dr dθ)?
When converting from Cartesian (x, y) to polar coordinates (r, θ), the differential area element dA is scaled by the Jacobian determinant of the coordinate transformation: J = |∂(x, y)/∂(r, θ)| = |cos(θ)(-r sin(θ)) - (-sin(θ))(r cos(θ))| = r. Geometrically, a small polar sector has radial width dr and arc length r dθ, giving a differential area dA = r dr dθ.
How do double integrals calculate center of mass and moments of inertia?
For a thin flat lamina with area mass density ρ(x, y) occupying region R, the total mass is M = ∬_R ρ(x, y) dA. The moments about the axes are M_y = ∬_R x ρ(x, y) dA and M_x = ∬_R y ρ(x, y) dA. The center of mass is (x̄, ȳ) = (M_y / M, M_x / M). The moments of inertia are I_x = ∬_R y² ρ(x, y) dA, I_y = ∬_R x² ρ(x, y) dA, and the polar moment of inertia is I_0 = I_x + I_y.
Can double integrals be solved analytically if no closed-form antiderivative exists?
If an integrand lacks elementary antiderivatives (such as exp(-x² - y²) or sin(x²)), the integral is evaluated using numerical multivariable quadrature, such as 2D Composite Simpson's Rule, Gaussian Quadrature, or Monte Carlo integration. In some cases (like exp(-x² - y²)), switching to polar coordinates allows an analytical solution.