सामग्री पर जाएँ

लेसन 23 · Multiple Integrals

Double Integrals over Rectangles

Understand the double integral as volume, compute it with iterated integrals and Fubini's theorem, and check results with Riemann sums and SymPy.

A single integral adds up thin slices to give the area under a curve. A double integral adds up tiny pieces over a region of the plane to give the volume under a surface z = f(x, y), or any other quantity that is spread over an area, such as mass, charge or total rainfall.

This lesson starts with the simplest region, a rectangle, where the computation reduces to two ordinary integrals, one after the other.

From Riemann sums to the integral

Let R = [a, b] × [c, d] be a rectangle. Cut it into a grid of m × n small rectangles, each with area ΔA = Δx · Δy. Choose a sample point (xᵢ*, yⱼ*) in each one. The volume of the tall thin box above it is f(xᵢ*, yⱼ*) ΔA. Add up all boxes:

Text
Σ Σ f(xᵢ*, yⱼ*) ΔA

As the grid gets finer, the sum approaches the double integral

Text
∬_R f(x, y) dA

when f is continuous. If f ≥ 0, this is the volume of the solid between R and the graph.

Python Riemann sums converge to the volume

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Iterated integrals and Fubini's theorem

Adding up boxes is slow. Fubini's theorem says that for a continuous f on a rectangle you can integrate one variable at a time, in either order:

Text
∬_R f dA = ∫ₐᵇ ( ∫_c^d f(x, y) dy ) dx = ∫_c^d ( ∫ₐᵇ f(x, y) dx ) dy

The inner integral treats the other variable as a constant, just like a partial derivative in reverse. It leaves a function of one variable, which you then integrate.

Example. Compute ∬_R (x² + y) dA over R = [0, 2] × [0, 3].

Integrate with respect to y first (holding x fixed):

Text
∫₀³ (x² + y) dy = [x² y + y²/2]₀³ = 3x² + 9/2

Now integrate that over x:

Text
∫₀² (3x² + 9/2) dx = [x³ + 9x/2]₀² = 8 + 9 = 17

Check the other order: ∫₀² (x² + y) dx = 8/3 + 2y, and ∫₀³ (8/3 + 2y) dy = 8 + 9 = 17. The two orders agree, as Fubini promises. The sums in the first TryIt should approach 17.

Python Iterated integrals in both orders with SymPy

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A shortcut for product functions

If the integrand factors as f(x, y) = g(x) h(y) and the region is a rectangle, the double integral is a product of two single integrals:

Text
∬_R g(x) h(y) dA = ( ∫ₐᵇ g(x) dx ) ( ∫_c^d h(y) dy )

For example, ∬ x y dA over [0, 2] × [0, 3] is (∫₀² x dx)(∫₀³ y dy) = 2 · 9/2 = 9.

The shortcut needs both a rectangle and a product integrand. x + y is not a product, and over a non-rectangular region the limits of one integral depend on the other variable (you will see that in the next lesson).

Average value

The average value of f over R is the integral divided by the area:

Text
f_avg = (1 / Area(R)) ∬_R f dA

For our example the area is 2 × 3 = 6, so f_avg = 17/6 ≈ 2.83. Think of it as the height you would get if you leveled the solid into a flat slab of the same volume.

Why the order can matter in practice

Fubini guarantees the same answer in either order, but the work can differ a lot. Look at ∬ y cos(xy) dA over [0, 1] × [0, π/2]. Integrating with respect to x first gives sin(xy) evaluated from 0 to 1, which is simple. Integrating with respect to y first needs integration by parts. When you plan the computation, glance at both orders.

Python Compare the two orders on a harder integrand

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What does ∬_R f dA represent when f ≥ 0 on a rectangle R?

    Summing the volumes of thin boxes of height f and base area dA gives the volume between R and the surface.
  2. 2. Fubini's theorem allows you to:

    For continuous f on a rectangle, integrating in either order gives the same double integral.
  3. 3. What is ∬ x y dA over [0, 2] × [0, 3]?

    It separates: (∫₀² x dx)(∫₀³ y dy) = 2 · 9/2 = 9.
  4. 4. The average value of f over a rectangle R of area 6 whose integral is 17 is:

    Average value = integral divided by area = 17/6.

Summary

  • The double integral sums f(x, y) dA over a region and gives volume when f ≥ 0.
  • Riemann sums approximate it; finer grids converge to the integral.
  • Fubini: over a rectangle, compute iterated integrals in either order.
  • Product integrands over rectangles factor into two single integrals.
  • Average value is the integral divided by the area.

Next: Double Integrals over General Regions

अपनी प्रगति ट्रैक करें

मुफ़्त अकाउंट बनाएँ, लेसन पूरे के रूप में चिह्नित करें और किसी भी डिवाइस पर वहीं से शुरू करें जहाँ छोड़ा था।