Double Integral Calculator
Enter a function of x and y with its limits. See the exact answer and the decimal value.
Work Out a Double Integral
This double integral calculator solves integrals over a rectangle. Type a function in x and y. Set the limits for x and y.
The tool shows an exact value for polynomials. Other functions get a Simpson estimate.
How to Use the Integral Tool
Type the function in the first box. Use x and y as the variables.
Write powers with the ^ sign. For example, type x^2 for x squared.
Set the lower and upper limits for x. Then set the limits for y.
Press Calculate Integral. The result shows below the form.
Read the exact value first. Then read the decimal value.
Try a new case by changing any input. Press Calculate Integral again.
How a Double Integral Works
A double integral adds up the values of a function over a rectangle. The result can stand for volume under a surface, or for the area of a flat region.
For a polynomial, the tool takes one term at a time. It uses the power rule for x and then for y.
The power rule turns x^n into x^(n+1) over (n+1). The same rule holds for y.
Each term gives a simple product of two parts. One part comes from x, and one part comes from y.
For other functions, the tool uses Simpson’s rule. It splits the rectangle into a fine grid and adds up the values.
Simpson’s rule gives an estimate, not an exact value. The page marks such results as approximate.
The tool solves the double integral of f(x, y) dx dy. Here x runs from a to b, and y runs from c to d.
| Function | Exact value | Decimal |
|---|---|---|
| x*y | 1/4 | 0.25 |
| x^2 | 1/3 | 0.3333 |
| x + y | 1 | 1 |
| x^2 * y^2 | 1/9 | 0.1111 |
| 1 | 1 | 1 |
The table shows five simple cases. Each one uses the unit square from 0 to 1.
Iterated integrals step by step
Fubini’s theorem turns one hard sum into two easy steps. It says the integral over a rectangle equals an iterated integral. You work the inner integral first. Then you work the outer integral.
In symbols, the integral of f(x, y) over the rectangle equals an outer integral of an inner integral. The inner integral runs from c to d. It treats x as a fixed number. The outer integral runs from a to b. It works with x alone.
- Pick the inner variable first. Treat the other variable as a constant.
- Work the inner integral. Use its two limits.
- Work the outer integral. Use its two limits.
- Read the final number. It is the exact value for polynomials.
Take f(x, y) = xy, with x from 0 to 1 and y from 0 to 2. The inner integral gives 2x. The outer integral gives 1. The picture above shows both steps.
Where Double Integrals Are Used
Double integrals show up in calculus, physics and engineering. They turn a surface into one number.
Use them to find the volume under a surface. The height at each point comes from the function.
Use them to find the area of a flat region. Set the function to 1 and integrate over the region.
Use them to find the average value of a function. Divide the integral by the area of the rectangle.
Use them to find mass when density varies. The density at each point is the function.
Use them to find the center of mass of a plate. The same idea works for charge and heat.
In each case, the limits set the region. The function sets what you add up.
Limits and Regions
The limits a and b set the x side of the rectangle. The limits c and d set the y side. A rectangle keeps all four limits fixed. Each limit is one number, not a function.
If a equals b, the width is zero. The integral is then zero too. If c equals d, the height is zero. The integral is then zero too. Negative limits are fine. They just move the rectangle to the left or down.
Type I and Type II regions
Some regions are not rectangles. Their inner limits change with the outer variable. Two standard shapes cover most cases.
| Region | Shape | Inner limits | Order |
|---|---|---|---|
| Rectangle | All four limits are fixed numbers | Either order works | dy dx or dx dy |
| Type I (y-simple) | For each x, y runs between two curves | y from g1(x) to g2(x) | dy dx |
| Type II (x-simple) | For each y, x runs between two curves | x from h1(y) to h2(y) | dx dy |
This tool takes fixed limits only. It covers rectangles. For a triangle or a curved region, set the limits by hand first. Then use the worked cases below as a guide.
Polar coordinates and the factor r
Circles, disks and sectors suit polar coordinates. Set x = r cos θ and y = r sin θ. Then r runs from the centre out. And θ runs round the circle.
The area piece changes too. In polar form, dA = r dr dθ. The extra r is the Jacobian factor. Leave it out and every polar answer is wrong.
Take the unit disk. Set f = 1, r from 0 to 1 and θ from 0 to 2π. The inner integral gives 1/2. The outer integral gives π. So the area of the unit circle is π.
The same idea gives volume. For z = x² + y² over the unit disk, x² + y² becomes r². Times the factor r, the inner integrand is r³. The inner integral gives 1/4. The outer integral gives π/2. So the volume is π/2, about 1.5708.
Worked Example: x times y
Take f(x, y) = x times y. Use x from 0 to 1 and y from 0 to 1. First, integrate with respect to x. The integral of x times y is x squared times y, over 2. Next, use the x limits 0 and 1. The result is y over 2. Then integrate with respect to y. The integral of y over 2 is y squared over 4. Last, use the y limits 0 and 1. The exact answer is 1 over 4, or 0.25. The same steps work for any polynomial. Each term follows the power rule in turn.
Example 2: xy over a taller rectangle
Take f(x, y) = xy, with x from 0 to 1 and y from 0 to 2. Inner: the integral of xy with respect to y is x times y² over 2. Use y = 0 and y = 2. The result is 2x. Outer: the integral of 2x with respect to x is x². Use x = 0 and x = 1. The answer is 1.
Example 3: x² + y² over the unit square
Take f(x, y) = x² + y², with x and y from 0 to 1. Work term by term. The x² term gives 1/3. The y² term gives 1/3. Add them. The answer is 2/3, about 0.6667.
Example 4: a triangle region (Type I)
Take f(x, y) = x + y over a triangle. Use 0 ≤ y ≤ x and 0 ≤ x ≤ 1. Inner: the integral of x + y with respect to y is xy plus y² over 2. Use y = 0 and y = x. The result is 3x² over 2. Outer: the integral of 3x² over 2 with respect to x is x³ over 2. Use x = 0 and x = 1. The answer is 1/2.
Changing the order of integration
Some cases are easy in one order and hard in the other. The value stays the same. Only the limits change. Fubini’s theorem backs that fact.
Take the integral of e^(x^2) with x from y to 1 and y from 0 to 1. The inner integral has no simple form. So swap the order. The same region reads 0 ≤ y ≤ x and 0 ≤ x ≤ 1.
Now the inner integral is easy. Integrate e^(x^2) with respect to y from 0 to x. The result is x times e^(x^2). Then integrate x times e^(x^2) with respect to x from 0 to 1. The answer is (e – 1) over 2, about 0.8591.
Swap the order when the inner integral looks stuck. First sketch the region. Then read the new limits from the sketch.
Volume and average value
When f(x, y) is zero or more, the integral is the volume under the surface z = f(x, y). The region is the base. The height at each point comes from f.
Take z = x² + y² over the unit disk. Polar form gives π/2, about 1.5708. That is the volume under the paraboloid. See the polar section above for the steps.
The average value is the integral divided by the area of the region. Take f(x, y) = xy over x from 0 to 1 and y from 0 to 2. The integral is 1. The area is 2. So the average value is 1/2.
The same idea finds area between curves. Take the area between y = x² and y = √x for x from 0 to 1. Set f = 1 and let y run from x² to √x. The inner integral gives √x minus x². The outer integral gives 1/3.
Common mistakes
Five errors cause most wrong answers. Each one is easy to spot once you know it.
| Mistake | What goes wrong | Fix |
|---|---|---|
| Inner and outer mixed up | You use the x limits on the y integral | Match each limit to its own variable |
| Limits read in the wrong order | You read dy dx as x first | Read the order from the inside out |
| Missing factor r in polar form | You use dA = dr dθ | Always use dA = r dr dθ |
| A swapped limit | You set the lower limit above the upper limit | A swap flips the sign of the answer |
| Brackets in the function | You expect an exact value with brackets | Write terms without brackets for an exact answer |
Tips for Good Results
Keep the function short at first. Short inputs are easy to check.
Use whole numbers for limits when you test the tool. Whole numbers give clean exact values.
Check the sign of each term. A missing minus sign changes the answer.
Write terms without brackets for an exact answer. Brackets still work, but they give an estimate.
Start with a case you know. Compare the tool result with your own work.
If the result looks wrong, check the limits. A swapped limit flips the sign.
For a quick check, set the function to 1. The answer should equal the area of the rectangle.
FAQ
What is a double integral?
A double integral sums a function of two variables over a flat region. It can give area, volume or mass.
How does this tool work?
It checks each term of the function first. Polynomial terms get an exact answer. Other terms get a Simpson estimate.
What functions can I enter?
Use polynomials in x and y, such as x times y or x squared plus y. You can also try sin, cos and exp for an estimate.
What if my limits are decimals?
Decimal limits work fine. Enter them with a point, such as 0.5 or 2.5.
Can the limits be in reverse order?
Yes, you can set the upper limit below the lower limit. The sign of the result then flips.
What is Fubini’s theorem?
It says the integral over a rectangle equals an iterated integral. Work the inner integral first. Then work the outer integral. Both orders give the same value for smooth functions.
What is the difference between Type I and Type II regions?
In a Type I region, y runs between two curves for each x. In a Type II region, x runs between two curves for each y. Pick the form with the simpler limits.
Why is there an extra r in polar form?
A small polar piece has area about r times dr times dθ. So dA = r dr dθ. Leave out r and the answer is wrong.
Can I change the order of integration?
Yes, when the region allows it. The value stays the same. The limits change. One order is often much easier than the other.
How do I find the average value of a function?
Divide the integral by the area of the region. Take xy over x 0 to 1 and y 0 to 2. The integral is 1. The area is 2. So the average is 1/2.
Key terms
| Term | Meaning |
|---|---|
| Iterated integral | One integral worked twice, inner first, then outer. |
| Fubini’s theorem | The rule that turns the integral over a region into an iterated integral. |
| Type I region | A region where y runs between two curves for each x. |
| Type II region | A region where x runs between two curves for each y. |
| Jacobian factor | The extra r in dA = r dr dθ for polar form. |
| Average value | The integral divided by the area of the region. |
Calculator Metro