In short

A double integral adds up the values of a function of two variables across a flat region — geometrically, it measures the volume of the solid lying between the region and the graph of the function. A triple integral does the same thing one dimension higher, summing a function of three variables across a solid region. The tool for both is the same: slice the region into tiny pieces, compute the function on each piece, and add. Then do it in two or three nested layers.

A thin metal plate is cut in the shape of the square 0 \le x \le 2, 0 \le y \le 2. The plate is not uniform — near the corner at the origin it is thin and cold, and as you move outward it gets thicker and warmer. The temperature at the point (x, y) on the plate is exactly T(x, y) = x + y degrees above zero.

Here is the question. What is the average temperature of the plate?

You already know how to answer this question for a one-dimensional object. If a thin rod along the interval [0, 2] had temperature T(x) = x at each point, you would compute the average by integrating: take \int_0^2 x \, dx = 2, then divide by the length of the rod, which is 2, to get an average temperature of 1. That works because a single integral adds up the values of a function across a one-dimensional interval.

The plate is two-dimensional. You need a way to add up values of a function across a region — every point (x, y) in the square — and then divide by the area of the region. The old integral cannot do this alone. It sweeps along one variable at a time. You need something bigger.

That something is a double integral. It is what you get when you apply the single-integral idea twice, once for each direction. And once you see how double integrals work, triple integrals — for solids in three dimensions — come almost for free.

Why the old integral is not enough

Remember what a single integral actually does. You have a function f(x) defined on an interval [a, b]. You cut the interval into tiny strips of width \Delta x. On each strip, f(x) is roughly constant, so the value f(x_i) \Delta x is a tiny piece of area — a rectangle of height f(x_i) and width \Delta x. You add all these rectangles. You shrink \Delta x. The sum approaches a number, which you call \int_a^b f(x) \, dx.

The picture is always the same: a shaded region under a curve, with the integral measuring its area.

Now try the same move on a two-variable function. Take f(x, y) = x + y on the square [0, 2] \times [0, 2]. What is the graph of f? It is no longer a curve in a plane — it is a surface in three-dimensional space. Above every point (x, y) in the square, the surface sits at height x + y. At the origin it touches the ground. At the far corner (2, 2) it is 4 units up. The whole thing is a slanted flat roof above the square.

What does it mean to add up the values of f across the square? You want the total of f(x, y) over every single point — but there are infinitely many points, and you cannot add infinitely many numbers directly. The same trick as before is the way out. Cut the square into tiny patches. On each patch, f is roughly constant. Multiply by the patch's area. Add. Shrink.

That sum has a geometric meaning too. Each term f(x_i, y_j) \cdot \Delta A is the volume of a tiny vertical box: a patch of base area \Delta A, standing on the plate, rising to the height f(x_i, y_j). Adding up all the boxes gives the volume of the solid that sits between the square and the slanted roof. So where a single integral measures an area, a double integral measures a volume.

From area under a curve to volume under a surfaceTwo panels side by side. The left panel shows a one-dimensional interval on the x-axis with a curve above it and the area underneath shaded, labelled area equals integral of f of x. The right panel shows a two-dimensional square region in the x-y plane with a slanted surface above it and the solid underneath filled in lightly, labelled volume equals double integral of f of x comma y.xyabareasingle integralxregion Rsurface z = f(x,y)double integral
A single integral measures the area between a curve and an interval. A double integral measures the volume between a surface and a region in the plane. Same idea, one dimension up.

Slicing a volume with parallel cuts

The picture tells you what a double integral is. It does not yet tell you how to compute one. The breakthrough is to realise you already know how to compute volumes, as long as you can slice them into flat slabs.

Go back to the sloped-roof solid over the square [0, 2] \times [0, 2] with roof z = x + y. Imagine slicing it with a knife parallel to the yz-plane. Each cut is made at a fixed value of x, and the knife leaves a flat cross-section behind.

What does a single cross-section look like? Fix x, say x = 1. On this slice, y runs from 0 to 2, and the height of the roof is 1 + y. The cross-section is a two-dimensional region — a trapezoid whose height at each y is 1 + y. Its area is

A(1) = \int_0^2 (1 + y) \, dy = \left[y + \frac{y^2}{2}\right]_0^2 = 2 + 2 = 4.

The same slicing works at any x. Fix x. The cross-section is the region under the curve z = x + y for y \in [0, 2], and its area is

A(x) = \int_0^2 (x + y) \, dy = \left[xy + \frac{y^2}{2}\right]_0^2 = 2x + 2.

This is a function of x — a number for every slice.

Now you have an infinite stack of slabs. Each slab sits at some value of x, has cross-sectional area A(x), and is \Delta x thick. Its volume is A(x) \Delta x. Add up all the slabs and shrink \Delta x to zero — that is just a single integral in x:

V = \int_0^2 A(x) \, dx = \int_0^2 (2x + 2) \, dx = \left[x^2 + 2x\right]_0^2 = 4 + 4 = 8.

The volume of the solid is 8. You got it by doing a single integral in y, then a single integral in x. Two integrals, one inside the other.

This nested-integral form is what a double integral actually looks like when you sit down to compute one. Written out, it is

\iint_R (x + y) \, dA \;=\; \int_0^2 \int_0^2 (x + y) \, dy \, dx.

The inner integral runs first, with x held fixed. The outer integral runs second, collecting up the results. You do one single integral after another.

Slicing the solid into vertical slabsA three-dimensional sketch of the solid above a square in the x y plane and under a slanted surface. Three parallel vertical cuts have been made through the solid, revealing three trapezoidal cross-sections. Each slice has area labelled A of x, and the slices are stacked in the x direction.xzregion R in the x-y planeA(x)slabs of thickness Δx
The solid is cut by vertical planes at different values of $x$. Each slice is a flat cross-section with area $A(x)$. Adding up the slice-volumes $A(x) \Delta x$ and shrinking $\Delta x$ gives the total volume.

The order dy \, dx versus dx \, dy matters for how you set up the integral — which variable you hold fixed first — but on a rectangle it does not matter for the answer. You are measuring the same volume either way.

The formal picture

You now have the mental image. The formal definition just takes this picture and makes it precise.

Double integral on a rectangle

Let f(x, y) be a function defined on a rectangle R = [a, b] \times [c, d] in the xy-plane. Divide R into a grid of small rectangles each of area \Delta A = \Delta x \cdot \Delta y. In each small rectangle, pick any sample point (x_i, y_j). Form the sum

S = \sum_{i, j} f(x_i, y_j) \, \Delta A.

The double integral of f over R is the limit of these sums as the grid is refined and every \Delta x, \Delta y \to 0:

\iint_R f(x, y) \, dA \;=\; \lim_{\Delta A \to 0} \sum_{i, j} f(x_i, y_j) \, \Delta A,

when this limit exists and does not depend on the choice of sample points.

Reading the definition. dA is a symbol for "tiny patch of area" — you can think of it as dx \, dy or dy \, dx when you are ready to compute. The \iint with two integral signs is notation; it reminds you that there are two directions to sum along. The limit is exactly analogous to the one in a single integral, just with patches instead of strips.

When the region is a rectangle, the double integral can always be rewritten as two nested single integrals. This is called Fubini's theorem, and it is the reason double integrals are computable in practice:

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

Either order works; pick whichever makes the algebra cleaner.

For the average-temperature question you started with, the answer is now mechanical. The total of the temperature over the plate is \iint_R (x + y) \, dA = 8. The area of the plate is 2 \times 2 = 4. So the average temperature is 8 / 4 = 2 degrees. That is the answer the opening question was asking for.

Computing one end to end

Here is the full mechanical process, applied to a fresh problem.

Example 1: Volume under a plane over a rectangle

Find the volume of the solid under the surface z = 4 - x - y and above the rectangle R = [0, 1] \times [0, 2] in the xy-plane. At every point in the rectangle, the surface sits above the ground — you can check that 4 - x - y \ge 4 - 1 - 2 = 1 > 0 throughout R — so there is a well-defined solid.

Step 1. Set up the double integral.

V = \iint_R (4 - x - y) \, dA = \int_0^1 \int_0^2 (4 - x - y) \, dy \, dx.

Why: volume equals the double integral of the height function. The inner integral will run over y from 0 to 2; the outer over x from 0 to 1.

Step 2. Compute the inner integral, treating x as a constant.

\int_0^2 (4 - x - y) \, dy = \left[(4 - x) y - \frac{y^2}{2}\right]_0^2 = 2(4 - x) - 2 = 6 - 2x.

Why: you are integrating a function of one variable, y, with the other variable x frozen. The antiderivative is the usual one from single-variable integration.

Step 3. Take the result and feed it into the outer integral.

V = \int_0^1 (6 - 2x) \, dx.

Why: the inner integral produced a function of x alone. That function is the area of the vertical cross-section of the solid at each x. Integrating it over x stacks the slabs.

Step 4. Evaluate.

V = \left[6x - x^2\right]_0^1 = 6 - 1 = 5.

Why: this is a standard single integral. The result is the total volume of the solid.

Result: The volume is 5 cubic units.

The rectangle $R = [0, 1] \times [0, 2]$ with the height of the roof $z = 4 - x - y$ marked at each corner: $4$, $3$, $2$, $1$. The roof slopes down from the near corner to the far corner. The average corner height is $(4 + 3 + 2 + 1)/4 = 2.5$, and the area is $2$, so the volume is $2.5 \times 2 = 5$ — which matches the integral.

The picture gives you a sanity check. For a flat (planar) roof, the average height over a rectangle is just the average of the corner heights, and the volume is that average times the base area. Both ways give 5.

When the region is not a rectangle

Rectangles are the easy case. Real problems almost always involve regions with curved boundaries — a triangle, a disc, the area between two parabolas. The trick that makes these work is to let one of the integration limits depend on the other variable.

Take the triangle T with corners at (0, 0), (2, 0), and (2, 2). You can describe this region in the following way: x runs from 0 to 2, and for each fixed x, the variable y runs from 0 up to the line y = x. The upper bound for y is no longer a constant — it depends on where you are in x.

The double integral over such a region is

\iint_T f(x, y) \, dA \;=\; \int_0^2 \int_0^{x} f(x, y) \, dy \, dx.

The outer limits are always numbers; the inner limits are allowed to be functions of the outer variable. You still slice the region into vertical slabs, but now the slabs have different heights at different x.

Example 2: Integrating over a triangle

Compute \displaystyle \iint_T x y \, dA where T is the triangle with corners (0, 0), (2, 0), and (2, 2).

Step 1. Describe the region. For x \in [0, 2], the variable y runs from 0 (the x-axis) up to x (the line y = x).

Why: you need a description that matches the shape of the region. Sweeping x from left to right and letting y run between the bottom and the slanted edge covers every point inside the triangle.

Step 2. Write the nested integral.

\iint_T xy \, dA = \int_0^2 \int_0^x xy \, dy \, dx.

Step 3. Inner integral. Hold x fixed. Then xy is a constant times y, and you can integrate in y.

\int_0^x xy \, dy = x \cdot \left[\frac{y^2}{2}\right]_0^x = x \cdot \frac{x^2}{2} = \frac{x^3}{2}.

Why: the factor x is just a constant inside the y-integral. What is left is a basic power integral in y.

Step 4. Outer integral.

\int_0^2 \frac{x^3}{2} \, dx = \frac{1}{2} \cdot \left[\frac{x^4}{4}\right]_0^2 = \frac{1}{2} \cdot 4 = 2.

Result: \iint_T xy \, dA = 2.

The triangle $T$ with a dashed vertical slab drawn at $x = 1$. The slab runs from $y = 0$ to $y = 1 = x$. Integrating in $y$ first collapses each slab; integrating in $x$ second sweeps across them.

The same region could have been described the other way — for each fixed y \in [0, 2], let x run from y to 2 — giving the alternative integral

\int_0^2 \int_y^2 xy \, dx \, dy.

Both orders give 2. Learning to switch between them is one of the key skills for harder multiple-integral problems, because some integrands are dramatically easier in one order than the other.

One dimension higher: triple integrals

Go up one more dimension. The reader is now standing in front of a solid cube of metal [0, 2] \times [0, 2] \times [0, 2], and the density varies from point to point — the material is denser in some places than others. The density at the point (x, y, z) is \rho(x, y, z) kilograms per cubic metre.

What is the total mass of the cube?

You already know how to do this. Cut the cube into tiny subcubes, each of volume \Delta V = \Delta x \, \Delta y \, \Delta z. In each subcube, the density is roughly constant, so its mass is roughly \rho(x_i, y_j, z_k) \, \Delta V. Add all the subcube masses. Shrink the grid. The limit of those sums is the triple integral of \rho over the cube.

Triple integral

Let f(x, y, z) be a function on a solid region E in space. The triple integral of f over E is

\iiint_E f(x, y, z) \, dV \;=\; \lim_{\Delta V \to 0} \sum_{i, j, k} f(x_i, y_j, z_k) \, \Delta V.

On a box [a, b] \times [c, d] \times [p, q], Fubini's theorem lets you compute it as three nested single integrals in any order:

\iiint_E f \, dV \;=\; \int_a^b \int_c^d \int_p^q f(x, y, z) \, dz \, dy \, dx.

In practice, a triple integral is three single integrals stacked inside each other. The innermost runs first, with everything else frozen. Its result is then fed into the middle integral, whose result is fed into the outer integral. Nothing new conceptually — just another layer.

A few uses of the triple integral come up again and again:

Volume as a special double integral

There is a small subtlety worth pointing out, because it will come up in exam problems. When you want the volume of a region E in space, there are two ways to compute it.

The triple-integral way: \displaystyle V = \iiint_E 1 \, dV. You treat the region as a 3D blob, integrate the constant 1 over it, and the answer is the volume.

The double-integral way: if the region sits between two surfaces z = g(x, y) (the floor) and z = h(x, y) (the ceiling) over a base region R in the xy-plane, then

V = \iint_R \bigl(h(x, y) - g(x, y)\bigr) \, dA.

These are two views of the same number. The triple integral is the more general one — it works for any solid region, even very complicated ones. The double-integral formula is a shortcut for the common case where the solid has a clean top-and-bottom description.

You can see the connection directly: write the triple integral as a nested single integral with z running innermost.

\iiint_E 1 \, dV = \iint_R \int_{g(x,y)}^{h(x,y)} 1 \, dz \, dA = \iint_R \bigl(h(x, y) - g(x, y)\bigr) \, dA.

The innermost z-integral just computes the height of the solid at each (x, y), and then the double integral sweeps that height across the base. That is exactly the picture you built at the start of the article — adding up the heights of a slanted roof over a region in the plane.

Common confusions

A few things students often misread when they first meet multiple integrals.

Going deeper

If you only wanted to know what multiple integrals are and how the nested form works, you have it. The rest of this section is for readers who want to see the subtleties — what makes Fubini's theorem work, what happens when the integrand is not so well-behaved, and how multiple integrals generalise.

What Fubini's theorem actually says

Fubini's theorem is the reason that \iint_R f \, dA can be computed as a nested integral at all. In full it says: if f is continuous (or even just integrable) on a rectangle R = [a, b] \times [c, d], then the three numbers

\iint_R f \, dA, \qquad \int_a^b \! \int_c^d f(x, y) \, dy \, dx, \qquad \int_c^d \! \int_a^b f(x, y) \, dx \, dy

all exist and are equal. The double integral on the left — defined as a limit of sums — agrees with the nested single integrals, and the two nested orders agree with each other.

For continuous functions on a closed bounded region, Fubini holds without any fuss. Without continuity, things can go wrong. The classic counterexample uses the function

f(x, y) = \frac{x^2 - y^2}{(x^2 + y^2)^2}

on the square [0, 1] \times [0, 1]. Compute the two nested integrals in the two orders, and you get different answers: \int_0^1 \int_0^1 f \, dy \, dx = \pi/4 while \int_0^1 \int_0^1 f \, dx \, dy = -\pi/4. The issue is that f blows up near the origin, and the integral \iint_R |f| \, dA is infinite. Fubini needs that absolute-value integral to be finite. For JEE-level problems this almost never matters — you are integrating polynomials and trig functions over clean regions — but it is the first place where "just compute it as two integrals" can actually fail.

Coordinates that fit the region

Cartesian coordinates are not always the right choice. If the region is a disc, or a sector, or anything with circular symmetry, describing it in (x, y) is awkward — the boundary comes out as y = \pm\sqrt{r^2 - x^2} — and the integrand may become ugly too.

The fix is polar coordinates. Every point (x, y) in the plane can be described by a distance r from the origin and an angle \theta from the positive x-axis. The substitution x = r\cos\theta, y = r\sin\theta turns a disc of radius a into a clean rectangle: 0 \le r \le a, 0 \le \theta \le 2\pi.

But the patch of area dA is no longer dr \, d\theta. A small patch in polar coordinates is a tiny ring-piece — it stretches out as r grows. A careful calculation shows that the correct patch is

dA = r \, dr \, d\theta.

The extra r is not optional. It comes from the fact that a fixed angular slice d\theta covers a larger arc at larger r. With this adjustment, the double integral in polar coordinates is

\iint_R f(x, y) \, dA = \iint_{R'} f(r\cos\theta, r\sin\theta) \, r \, dr \, d\theta,

where R' is the description of the region in (r, \theta).

For example, the integral of 1 over a disc of radius a in polar form is

\int_0^{2\pi} \! \int_0^a r \, dr \, d\theta = \int_0^{2\pi} \frac{a^2}{2} \, d\theta = \pi a^2.

That is the area of the disc, as it should be.

The same idea works in three dimensions. Cylindrical coordinates (r, \theta, z) use polar in the xy-plane and leave z alone, giving dV = r \, dr \, d\theta \, dz. Spherical coordinates (\rho, \theta, \varphi) describe points by distance from the origin and two angles, and the volume element is dV = \rho^2 \sin\varphi \, d\rho \, d\theta \, d\varphi. These change-of-variable formulas are the right tool when the solid has spherical or cylindrical symmetry.

How far this idea goes

Everything in this article is a special case of a much bigger machine called the theory of integration on manifolds. The key insight is simple: a single integral adds a function along a 1D curve, a double integral adds it across a 2D region, a triple integral adds it through a 3D solid. In theory, you can keep going — integrals in four, five, or even infinitely many dimensions are perfectly well-defined, and they show up in probability and physics whenever you have more than a few quantities to average over.

The other direction leads to line integrals and surface integrals, where you integrate a function along a curved path or across a curved surface rather than over a flat region. Those are the tools of vector calculus, and the bridge theorems — Green's theorem, Stokes' theorem, the divergence theorem — tie them back to the double and triple integrals of this article. That is a story for later; it all starts here, with the idea that a nested pair of single integrals can measure a volume.

Where this leads next

You now know what double and triple integrals are, how they relate to volume, and how to compute them as nested single integrals. These are the starting points for a surprising amount of mathematics and physics.