Double Integral (Rectangular Region) Notes

Published on: September 29, 2026

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

  1. Set up the problem.
  2. Write the formula.
  3. Integrate with respect to x.
  4. Evaluate at the x-limits.
  5. Integrate with respect to y.
  6. 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.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

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

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

\(\int_{0}^{2} \int_{0}^{1} x y \, dx \, dy\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Integrate with respect to x.
  4. Evaluate at the x-limits.
  5. Integrate with respect to y.
  6. 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.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

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.

\(\int_{0}^{2} \int_{0}^{1} x y \, dx \, dy\)

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.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

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}\).

\(\int x y \, dx = \frac{x^{2} y}{2}\)

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.

\(\left[ \frac{x^{2} y}{2} \right]_{x = 0}^{x = 1} = \frac{y}{2} - 0 = \frac{y}{2}\)

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}\).

\(\int \frac{y}{2} \, dy = \frac{y^{2}}{4}\)

Step 6

Step 6 - Evaluate at the y-limits.

In this problem: Putting the y limits in and subtracting gives \(1 - 0 = 1\).

\(\left[ \frac{y^{2}}{4} \right]_{0}^{2} = 1 - 0 = 1\)

Final Answer

\(\int_{0}^{2} \int_{0}^{1} x y \, dx \, dy = 1\)
See Example 2 Hide Example 2

Problem

\(\int_{1}^{2} \int_{0}^{1} \left(x^{2} + y\right) \, dx \, dy\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Integrate with respect to x.
  4. Evaluate at the x-limits.
  5. Integrate with respect to y.
  6. 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.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

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.

\(\int_{1}^{2} \int_{0}^{1} \left(x^{2} + y\right) \, dx \, dy\)

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.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

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\).

\(\int \left(x^{2} + y\right) \, dx = \frac{x^{3}}{3} + x y\)

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.

\(\left[ \frac{x^{3}}{3} + x y \right]_{x = 0}^{x = 1} = \left(y + \frac{1}{3}\right) - 0 = y + \frac{1}{3}\)

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}\).

\(\int \left(y + \frac{1}{3}\right) \, dy = \frac{y^{2}}{2} + \frac{y}{3}\)

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}\).

\(\left[ \frac{y^{2}}{2} + \frac{y}{3} \right]_{1}^{2} = \frac{8}{3} - \frac{5}{6} = \frac{11}{6}\)

Final Answer

\(\int_{1}^{2} \int_{0}^{1} \left(x^{2} + y\right) \, dx \, dy = \frac{11}{6}\)
See Example 3 Hide Example 3

Problem

\(\int_{0}^{1} \int_{0}^{2} \left(x + 2 y\right) \, dx \, dy\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Integrate with respect to x.
  4. Evaluate at the x-limits.
  5. Integrate with respect to y.
  6. 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.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

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.

\(\int_{0}^{1} \int_{0}^{2} \left(x + 2 y\right) \, dx \, dy\)

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.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

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\).

\(\int \left(x + 2 y\right) \, dx = \frac{x^{2}}{2} + 2 x y\)

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.

\(\left[ \frac{x^{2}}{2} + 2 x y \right]_{x = 0}^{x = 2} = \left(4 y + 2\right) - 0 = 4 y + 2\)

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\).

\(\int \left(4 y + 2\right) \, dy = 2 y^{2} + 2 y\)

Step 6

Step 6 - Evaluate at the y-limits.

In this problem: Putting the y limits in and subtracting gives \(4 - 0 = 4\).

\(\left[ 2 y^{2} + 2 y \right]_{0}^{1} = 4 - 0 = 4\)

Final Answer

\(\int_{0}^{1} \int_{0}^{2} \left(x + 2 y\right) \, dx \, dy = 4\)
See Example 4 Hide Example 4

Problem

\(\int_{1}^{2} \int_{0}^{3} x^{2} y \, dx \, dy\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Integrate with respect to x.
  4. Evaluate at the x-limits.
  5. Integrate with respect to y.
  6. 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.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

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.

\(\int_{1}^{2} \int_{0}^{3} x^{2} y \, dx \, dy\)

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.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

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}\).

\(\int x^{2} y \, dx = \frac{x^{3} y}{3}\)

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.

\(\left[ \frac{x^{3} y}{3} \right]_{x = 0}^{x = 3} = 9 y - 0 = 9 y\)

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}\).

\(\int 9 y \, dy = \frac{9 y^{2}}{2}\)

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}\).

\(\left[ \frac{9 y^{2}}{2} \right]_{1}^{2} = 18 - \frac{9}{2} = \frac{27}{2}\)

Final Answer

\(\int_{1}^{2} \int_{0}^{3} x^{2} y \, dx \, dy = \frac{27}{2}\)

Calculator and Practice Mode