Double Integral (Rectangular Region) Notes
These Double Integral (Rectangular Region) Notes explain how to integrate a function of two variables over a rectangle, with the working shown line by line. The inner integral is worked out first with the outer variable held constant, which turns it into an ordinary integral. Its result is then integrated again over the remaining limits. Following the same pattern every time keeps the two integrations from being run together.
Step-by-step method
- Set up the problem.
- Write the formula.
- Integrate with respect to x.
- Evaluate at the x-limits.
- Integrate with respect to y.
- Evaluate at the y-limits.
Formula: Double Integral over a Rectangle
This formula turns the double integral into two single integrals. Integrate with respect to x first, holding y constant, then integrate the result with respect to y.
Useful Tips to Remember
Keep the outer variable as a constant while doing the inner integral, exactly like a partial derivative in reverse. Over a rectangle the order can be swapped and the answer stays the same. If f is a product like \(g(x)h(y)\), the double integral is the product of two single integrals. A double integral of 1 gives the area of the region.
Required knowledge
- How to find an antiderivative, covered in the Indefinite Integral Calculator.
- How to evaluate a definite integral, covered in the Definite Integral Calculator.
- How partial derivatives hold variables constant, covered in the Partial Derivatives Calculator.
Where Are Double Integrals over Rectangles Used?
A double integral adds up a quantity spread over a region, such as volume under a surface, mass of a plate or total rainfall over an area. Engineers use double integrals to find centres of mass and moments of inertia of flat parts. In probability, the chance that two random quantities fall in a range is a double integral of their joint density. Image processing and physics also sum values over grids, which is a double integral in disguise.
- Volume under a surface
- Mass and centre of mass of a plate
- Joint probabilities of two random variables
- Total rainfall or heat over an area
- Moments of inertia in engineering
Double Integral over a Rectangle Practice Problems
Example 1 integrates \(x y\) over \(0 \le x \le 1\), \(0 \le y \le 2\), and Example 2 integrates \(x^{2} + y\) over \(0 \le x \le 1\), \(1 \le y \le 2\). Examples 3 and 4 give you two more problems of the same kind to try. Do the inner integral first, then the outer one, and compare.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Integrate with respect to x.
- Evaluate at the x-limits.
- Integrate with respect to y.
- Evaluate at the y-limits.
Formula
Formula: Double Integral over a Rectangle
This formula turns the double integral into two single integrals. Integrate with respect to x first, holding y constant, then integrate the result with respect to y.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating f over the rectangle where x runs from a to b and y runs from c to d.
Step 2
Step 2 - Write the formula.
In this problem: Over a rectangle the double integral is two single integrals. The inner one is done with respect to x, holding y constant, and its result is then integrated with respect to y.
Step 3
Step 3 - Integrate with respect to x.
In this problem: Treating \(y\) as a constant, integrating \(x y\) with respect to \(x\), covered in the Power Rule Integration Calculator, gives \(\frac{x^{2} y}{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x\), so \(n = 1\). The number \(y\) in front is a constant multiple.
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(y\) is a constant, so it moves outside the integral and the power rule only works on \(x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = y\) and the function is \(x\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(y\) in front of the integral sign and leave \(x\) inside.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here \(n = 1\). Put it into the formula, but do not simplify yet.
Step 5
Step 5 - Solve and simplify, adding C.
In this problem: The new exponent is \(1 + 1 = 2\).
Final Answer
Step 4
Step 4 - Evaluate at the x-limits.
In this problem: Putting the x limits in and subtracting gives \(\frac{y}{2} - 0 = \frac{y}{2}\). This is now a function of y only.
Step 5
Step 5 - Integrate with respect to y.
In this problem: Integrating \(\frac{y}{2}\) with respect to \(y\), covered in the Power Rule Integration Calculator, gives \(\frac{y^{2}}{4}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(y\), so \(n = 1\). The number \(\frac{1}{2}\) in front is a constant multiple.
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(\frac{1}{2}\) is a constant, so it moves outside the integral and the power rule only works on \(y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = \frac{1}{2}\) and the function is \(y\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(\frac{1}{2}\) in front of the integral sign and leave \(y\) inside.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here \(n = 1\). Put it into the formula, but do not simplify yet.
Step 5
Step 5 - Solve and simplify, adding C.
In this problem: The new exponent is \(1 + 1 = 2\).
Final Answer
Step 6
Step 6 - Evaluate at the y-limits.
In this problem: Putting the y limits in and subtracting gives \(1 - 0 = 1\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Integrate with respect to x.
- Evaluate at the x-limits.
- Integrate with respect to y.
- Evaluate at the y-limits.
Formula
Formula: Double Integral over a Rectangle
This formula turns the double integral into two single integrals. Integrate with respect to x first, holding y constant, then integrate the result with respect to y.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating f over the rectangle where x runs from a to b and y runs from c to d.
Step 2
Step 2 - Write the formula.
In this problem: Over a rectangle the double integral is two single integrals. The inner one is done with respect to x, holding y constant, and its result is then integrated with respect to y.
Step 3
Step 3 - Integrate with respect to x.
In this problem: Treating \(y\) as a constant, integrating \(x^{2} + y\) with respect to \(x\), covered in the Sum Rule Integration Calculator, gives \(\frac{x^{3}}{3} + x y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule for integration.
- Split the integral across the addition signs.
- Integrate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the results and add the constant of integration C.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are integrating a sum. The separate terms are \(x^{2}\), \(y\).
Step 2
Step 2 - Write the sum rule for integration.
In this problem: The integral of a sum is the sum of the integrals.
Step 3
Step 3 - Split the integral across the addition signs.
In this problem: Apply the integral to each separated term, keeping each sign.
Step 4a
Step 4a - Integrate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x^{2}\), so \(n = 2\).
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Substitute the exponent into the formula.
In this problem: Here \(n = 2\). Put it into the formula, but do not simplify yet.
Step 4
Step 4 - Solve and simplify, adding C.
In this problem: The new exponent is \(2 + 1 = 3\).
Final Answer
Step 4b
Step 4b - Integrate the separated term \(y\).
In this problem: The separated term is \(y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule for integration.
- Multiply the constant by x and add the constant of integration C.
Step 1
Step 1 - Identify the constant k.
In this problem: The constant is \(k = y\).
Step 2
Step 2 - Write the constant rule for integration.
In this problem: The integral of a constant is the constant times x.
Step 3
Step 3 - Multiply the constant by x and add the constant of integration C.
In this problem: The antiderivative is \(x y\).
Final Answer
Step 5
Step 5 - Combine the results and add the constant of integration C.
In this problem: Put the integral of each term back together, keeping the signs, and add one constant C.
Final Answer
Step 4
Step 4 - Evaluate at the x-limits.
In this problem: Putting the x limits in and subtracting gives \(\left(y + \frac{1}{3}\right) - 0 = y + \frac{1}{3}\). This is now a function of y only.
Step 5
Step 5 - Integrate with respect to y.
In this problem: Integrating \(y + \frac{1}{3}\) with respect to \(y\), covered in the Sum Rule Integration Calculator, gives \(\frac{y^{2}}{2} + \frac{y}{3}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule for integration.
- Split the integral across the addition signs.
- Integrate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the results and add the constant of integration C.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are integrating a sum. The separate terms are \(y\), \(\frac{1}{3}\).
Step 2
Step 2 - Write the sum rule for integration.
In this problem: The integral of a sum is the sum of the integrals.
Step 3
Step 3 - Split the integral across the addition signs.
In this problem: Apply the integral to each separated term, keeping each sign.
Step 4a
Step 4a - Integrate the separated term \(y\).
In this problem: The separated term is \(y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(y\), so \(n = 1\).
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Substitute the exponent into the formula.
In this problem: Here \(n = 1\). Put it into the formula, but do not simplify yet.
Step 4
Step 4 - Solve and simplify, adding C.
In this problem: The new exponent is \(1 + 1 = 2\).
Final Answer
Step 4b
Step 4b - Integrate the separated term \(\frac{1}{3}\).
In this problem: The separated term is \(\frac{1}{3}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule for integration.
- Multiply the constant by x and add the constant of integration C.
Step 1
Step 1 - Identify the constant k.
In this problem: The constant is \(k = \frac{1}{3}\).
Step 2
Step 2 - Write the constant rule for integration.
In this problem: The integral of a constant is the constant times x.
Step 3
Step 3 - Multiply the constant by x and add the constant of integration C.
In this problem: The antiderivative is \(\frac{y}{3}\).
Final Answer
Step 5
Step 5 - Combine the results and add the constant of integration C.
In this problem: Put the integral of each term back together, keeping the signs, and add one constant C.
Final Answer
Step 6
Step 6 - Evaluate at the y-limits.
In this problem: Putting the y limits in and subtracting gives \(\frac{8}{3} - \frac{5}{6} = \frac{11}{6}\).
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Integrate with respect to x.
- Evaluate at the x-limits.
- Integrate with respect to y.
- Evaluate at the y-limits.
Formula
Formula: Double Integral over a Rectangle
This formula turns the double integral into two single integrals. Integrate with respect to x first, holding y constant, then integrate the result with respect to y.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating f over the rectangle where x runs from a to b and y runs from c to d.
Step 2
Step 2 - Write the formula.
In this problem: Over a rectangle the double integral is two single integrals. The inner one is done with respect to x, holding y constant, and its result is then integrated with respect to y.
Step 3
Step 3 - Integrate with respect to x.
In this problem: Treating \(y\) as a constant, integrating \(x + 2 y\) with respect to \(x\), covered in the Sum Rule Integration Calculator, gives \(\frac{x^{2}}{2} + 2 x y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule for integration.
- Split the integral across the addition signs.
- Integrate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the results and add the constant of integration C.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are integrating a sum. The separate terms are \(x\), \(2 y\).
Step 2
Step 2 - Write the sum rule for integration.
In this problem: The integral of a sum is the sum of the integrals.
Step 3
Step 3 - Split the integral across the addition signs.
In this problem: Apply the integral to each separated term, keeping each sign.
Step 4a
Step 4a - Integrate the separated term \(x\).
In this problem: The separated term is \(x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x\), so \(n = 1\).
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Substitute the exponent into the formula.
In this problem: Here \(n = 1\). Put it into the formula, but do not simplify yet.
Step 4
Step 4 - Solve and simplify, adding C.
In this problem: The new exponent is \(1 + 1 = 2\).
Final Answer
Step 4b
Step 4b - Integrate the separated term \(2 y\).
In this problem: The separated term is \(2 y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule for integration.
- Multiply the constant by x and add the constant of integration C.
Step 1
Step 1 - Identify the constant k.
In this problem: The constant is \(k = 2 y\).
Step 2
Step 2 - Write the constant rule for integration.
In this problem: The integral of a constant is the constant times x.
Step 3
Step 3 - Multiply the constant by x and add the constant of integration C.
In this problem: The antiderivative is \(2 x y\).
Final Answer
Step 5
Step 5 - Combine the results and add the constant of integration C.
In this problem: Put the integral of each term back together, keeping the signs, and add one constant C.
Final Answer
Step 4
Step 4 - Evaluate at the x-limits.
In this problem: Putting the x limits in and subtracting gives \(\left(4 y + 2\right) - 0 = 4 y + 2\). This is now a function of y only.
Step 5
Step 5 - Integrate with respect to y.
In this problem: Integrating \(4 y + 2\) with respect to \(y\), covered in the Sum Rule Integration Calculator, gives \(2 y^{2} + 2 y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule for integration.
- Split the integral across the addition signs.
- Integrate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the results and add the constant of integration C.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are integrating a sum. The separate terms are \(4 y\), \(2\).
Step 2
Step 2 - Write the sum rule for integration.
In this problem: The integral of a sum is the sum of the integrals.
Step 3
Step 3 - Split the integral across the addition signs.
In this problem: Apply the integral to each separated term, keeping each sign.
Step 4a
Step 4a - Integrate the separated term \(4 y\).
In this problem: The separated term is \(4 y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(y\), so \(n = 1\). The number \(4\) in front is a constant multiple.
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(4\) is a constant, so it moves outside the integral and the power rule only works on \(y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = 4\) and the function is \(y\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(4\) in front of the integral sign and leave \(y\) inside.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here \(n = 1\). Put it into the formula, but do not simplify yet.
Step 5
Step 5 - Solve and simplify, adding C.
In this problem: The new exponent is \(1 + 1 = 2\).
Final Answer
Step 4b
Step 4b - Integrate the separated term \(2\).
In this problem: The separated term is \(2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule for integration.
- Multiply the constant by x and add the constant of integration C.
Step 1
Step 1 - Identify the constant k.
In this problem: The constant is \(k = 2\).
Step 2
Step 2 - Write the constant rule for integration.
In this problem: The integral of a constant is the constant times x.
Step 3
Step 3 - Multiply the constant by x and add the constant of integration C.
In this problem: The antiderivative is \(2 y\).
Final Answer
Step 5
Step 5 - Combine the results and add the constant of integration C.
In this problem: Put the integral of each term back together, keeping the signs, and add one constant C.
Final Answer
Step 6
Step 6 - Evaluate at the y-limits.
In this problem: Putting the y limits in and subtracting gives \(4 - 0 = 4\).
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Integrate with respect to x.
- Evaluate at the x-limits.
- Integrate with respect to y.
- Evaluate at the y-limits.
Formula
Formula: Double Integral over a Rectangle
This formula turns the double integral into two single integrals. Integrate with respect to x first, holding y constant, then integrate the result with respect to y.
Step 1
Step 1 - Set up the problem.
In this problem: We are integrating f over the rectangle where x runs from a to b and y runs from c to d.
Step 2
Step 2 - Write the formula.
In this problem: Over a rectangle the double integral is two single integrals. The inner one is done with respect to x, holding y constant, and its result is then integrated with respect to y.
Step 3
Step 3 - Integrate with respect to x.
In this problem: Treating \(y\) as a constant, integrating \(x^{2} y\) with respect to \(x\), covered in the Power Rule Integration Calculator, gives \(\frac{x^{3} y}{3}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x^{2}\), so \(n = 2\). The number \(y\) in front is a constant multiple.
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(y\) is a constant, so it moves outside the integral and the power rule only works on \(x^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = y\) and the function is \(x^{2}\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(y\) in front of the integral sign and leave \(x^{2}\) inside.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here \(n = 2\). Put it into the formula, but do not simplify yet.
Step 5
Step 5 - Solve and simplify, adding C.
In this problem: The new exponent is \(2 + 1 = 3\).
Final Answer
Step 4
Step 4 - Evaluate at the x-limits.
In this problem: Putting the x limits in and subtracting gives \(9 y - 0 = 9 y\). This is now a function of y only.
Step 5
Step 5 - Integrate with respect to y.
In this problem: Integrating \(9 y\) with respect to \(y\), covered in the Power Rule Integration Calculator, gives \(\frac{9 y^{2}}{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(y\), so \(n = 1\). The number \(9\) in front is a constant multiple.
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(9\) is a constant, so it moves outside the integral and the power rule only works on \(y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = 9\) and the function is \(y\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(9\) in front of the integral sign and leave \(y\) inside.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here \(n = 1\). Put it into the formula, but do not simplify yet.
Step 5
Step 5 - Solve and simplify, adding C.
In this problem: The new exponent is \(1 + 1 = 2\).
Final Answer
Step 6
Step 6 - Evaluate at the y-limits.
In this problem: Putting the y limits in and subtracting gives \(18 - \frac{9}{2} = \frac{27}{2}\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Double Integral (Rectangular Region) Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Double Integral (Rectangular Region) Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.