Volume Integrals
A volume integral is the three-dimensional cousin of the ordinary single integral and the surface integral. Where a line integral accumulates a quantity along a curve and a surface integral accumulates flux across a sheet, a volume integral accumulates a density throughout a solid region. The object integrated is a density — a quantity per unit volume — and the result is the total amount of the underlying extensive quantity contained in the region. Formally, one partitions the region into tiny cells of volume , multiplies the local value of the integrand by that cell volume, and sums over the whole region in the limit . For a scalar integrand the result is a scalar; for a vector integrand each Cartesian component is integrated separately because the unit vectors are constant and may be pulled outside the integral. In electromagnetism volume integrals are everywhere: total charge from charge density, total dipole moment, the energy stored in an electric or magnetic field, and the source terms of Coulomb's and the Biot–Savart laws. Mastery rests on two skills: writing the correct volume element for the coordinate system, and setting limits that sweep out exactly the desired region. Volume integrals are not isolated. Through the divergence (Gauss) theorem they are linked to surface integrals, and that link is the engine behind Gauss's law and the continuity equation. Understanding the geometry of in spherical and cylindrical coordinates is therefore the gateway to nearly every symmetric problem in the subject.
- A volume integral sums a scalar density over every infinitesimal chunk of a three-dimensional region , returning a single number such as total charge or mass.
- The volume element is in Cartesian coordinates, in spherical, and in cylindrical.
- Integrating a charge density gives ; integrating a vector field is done component by component, yielding a vector.
- Choosing coordinates and limits to match the region's symmetry is the entire art: a sphere is trivial in spherical coordinates and painful in Cartesian.
- The divergence theorem converts a volume integral of into a surface integral, tying volume integrals to flux through the boundary.
- Key idea: A volume integral is a triple integral of a density over a solid region; the volume element carries the geometry (a Jacobian factor) of whatever coordinate system you choose, and you exploit symmetry by choosing coordinates so the limits become constants.
Where this lives today
Radiotherapy planning is volume integration with lives attached: the dose-volume histograms that oncologists sign off on are integrals of absorbed-dose density over tumour and organ volumes reconstructed from CT scans, computed by exactly the chop-into-cells logic of equation (1) — a few million voxels standing in for . In fusion energy, the headline number of a tokamak is a volume integral: the stored magnetic energy . For ITER's field over of plasma volume, the energy density integrates to several gigajoules — the reason quench protection is engineered like crash safety. And wherever regions are too irregular to parametrize, Monte Carlo methods estimate volume integrals by random sampling — the algorithm behind every ray-traced film frame and much of quantitative finance, still equation (1) at heart, with randomness supplying the cells.
The physical picture
Picture filling the region with sugar whose density (grams per cubic centimetre) varies from place to place. The volume integral is the total mass: weigh each tiny grain by multiplying its local density times its tiny volume, then add up all grains. The integral is just that sum carried to the continuum limit.
The volume element is the volume of one tiny cell of the coordinate grid. In Cartesian coordinates the cells are little boxes of size . In spherical coordinates the cells are curved bricks: thicker far from the origin (the ) and squeezed near the poles (the ). Those geometric factors are exactly the Jacobian. Choosing coordinates is choosing a grid that hugs your region. A uniformly charged ball has constant and a boundary ; in spherical coordinates the limits are the constants , , , and the whole calculation collapses to a one-line integral over . The E&M payoff is direct: every that feeds Gauss's law, every superposition integral for , and the field-energy formulas of later chapters are volume integrals whose difficulty is set almost entirely by this choice. A vector volume integral is nothing new: because point the same way everywhere, you integrate each component as a separate scalar volume integral and reassemble the vector at the end. Beware: are not constant, so a vector cannot be integrated component-by-component in spherical coordinates without converting to Cartesian first.
The machinery
The definition is the sugar-weighing procedure formalized — partition, sample, weight, sum, refine:
where: — scalar density (integrand); — the three-dimensional region; — infinitesimal volume element; — sample point in the -th cell. Everything that follows is about writing correctly. In Cartesian coordinates the cells are honest boxes:
where: — edge lengths of the infinitesimal coordinate box; no correction factor, because Cartesian coordinates measure length directly. In spherical coordinates the cells are curved bricks and the Jacobian appears — derived honestly below:
where: — radial distance; — polar angle, ; — azimuth, ; — the Jacobian: radial cells fatten as , polar cells thin as toward the poles. And in cylindrical coordinates:
where: — distance from the axis; the single factor of is the circumference effect: azimuthal cells at larger radius are wider.
We are deriving the Jacobian of equation (3) — the factor whose omission is the most common volume-integral error in the course. The strategy is pure geometry: an infinitesimal spherical cell is a curved brick whose three edges are the displacements produced by incrementing each coordinate alone; because the spherical coordinate directions are mutually orthogonal, the cell's volume is simply the product of the three edge lengths. The step to watch is the third edge — the azimuthal circle at polar angle has radius , not , which is where the comes from and why cells collapse at the poles.
Step 1. Increment by : the displacement is radial with length
Why: the radial coordinate is an actual distance, so no conversion factor is needed.
Step 2. Increment by : you sweep along a meridian arc of radius ,
Why: arc length is radius times angle — one radian of polar sweep covers more ground the farther out you are.
Step 3. Increment by : you sweep along a circle of latitude whose radius is the distance to the -axis, :
Why: near the pole () the latitude circle shrinks to nothing — a step in longitude there moves you almost nowhere, exactly as on a globe.
Step 4. Multiply the orthogonal edges:
The same recipe with edges , , yields the cylindrical element (4). Two instant dividends: integrating the angular factors alone gives the full solid angle , and integrating over a ball gives — the familiar sphere volume, the standard sanity check that your element and limits are right. Quick audit: setting and integrating over a ball of radius returns — the familiar sphere volume — confirming that the element and limits are correct; dimensionally, all three edges are lengths, so their product is indeed a volume.
With the element in hand, the physical integrals of the track follow. Total charge from a charge density:
where: — total charge in ; — volume charge density in . This innocuous formula is the right-hand side of Gauss's law: is always a volume integral, even when symmetry hides it. Vector integrands are handled one Cartesian component at a time:
where: — Cartesian components, each a scalar integral; legal only because are position-independent. The dipole moment of the multipole chapter is computed exactly this way. The bridge to surface integrals is the divergence theorem:
where: — the closed surface bounding ; the volume integral of source density equals the boundary flux — dissected fully in its own article. Finally, dividing by the region's volume defines the average:
where: — volume-averaged value; — the volume itself, the integral of . Averages over spheres are exactly what the Laplacian article's mean-value property is about.
Go deeper · Derivation B · 1 minCharge of a ball with linearly rising density
We are integrating the non-uniform density over a ball of radius — the simplest example where the Jacobian genuinely changes the answer rather than just the bookkeeping, and a template for every "charge inside radius " computation that Gauss's-law problems demand. The strategy: exploit spherical symmetry to knock out both angular integrals as the solid angle , then do one radial integral in which the density's power of and the Jacobian's combine. Watch how the geometric weighting drags the answer toward the outer shells — most of the ball's volume lives near its surface.
Step 1. Insert density and Jacobian into the triple integral:
Why: the density depends only on , so the angular structure of the integrand is carried entirely by the Jacobian's .
Step 2. Do the angular integrals once and for all:
Why: this is the full solid angle — for any spherically symmetric integrand the triple integral collapses to , equivalent to summing shells of volume .
Step 3. The radial integral, with the combined power :
Why: the outer shells dominate doubly — they are both denser (the physics, ) and bigger (the geometry, ). Half the total charge sits beyond .
Step 4. Sanity checks. Dimensions: carries , times gives coulombs. Average density: — three quarters of the surface density , sensibly weighted toward the outside. And the running enclosed charge is exactly the input a Gauss's-law computation of the interior field of this ball will need. Two quick checks: the shell method gives the same answer directly, , and the limit correctly reduces the total charge to zero.
Go deeper · Derivation C · 1 minWhy vector volume integrals must be assembled in Cartesian components
We are demonstrating the trap flagged in equation (6): integrating a vector field written in spherical components cannot be done by integrating each spherical component, because the basis vectors change direction from cell to cell. The test case is over a hemisphere — where the naive answer " times the volume" is not even meaningful (which ?), and the honest Cartesian computation gives a definite, smaller vector. This integral is not academic: it is the structure of net-force and dipole-moment integrals over curved distributions.
Step 1. Convert the integrand to Cartesian components, which are position-independent:
Why: only with constant basis vectors can the integral distribute over components; this decomposition prices each cell's in a fixed currency.
Step 2. Integrate over the upper hemisphere (, , full ). The - and -components die by symmetry:
Why: for every cell pushing east there is a mirror cell pushing west — the azimuthal integral implements the cancellation automatically.
Step 3. The surviving -component factorizes:
Why: is the -projection of each cell's outward direction; is the Jacobian's share. The result, , is exactly half the hemisphere's volume — the tilted cells contribute only their vertical projections.
Step 4. Read the moral. The magnitude is less than the volume : naive "pull the unit vector out" reasoning overestimates by a factor of 2 here, and by worse in less symmetric regions. Whenever the integrand carries , or — net Coulomb force of a distribution, dipole moments, radiation-reaction integrals — convert to Cartesian first, integrate three scalars, reassemble. Symmetry check: the lower hemisphere contributes , so the two halves cancel and the full-sphere integral is zero — as it must be, since for every cell pointing in direction there is an antipodal cell pointing in .
Limiting cases
The same volume integral wears different clothes depending on coordinate symmetry:
| Case | Result | Meaning |
|---|---|---|
| Cartesian box | Best when the region is a rectangular box; limits are constants and the order of integration is free (Fubini) for continuous . | |
| Spherical | Best for spheres, shells, and cones; the Jacobian is . The full solid angle integral . | |
| Cylindrical | Best for cylinders, wires, and solenoids; the Jacobian is the cylindrical radius , the distance from the axis. | |
| Spherically symmetric integrand | Angular integrals give the solid angle ; the computation is a one-variable shell sum. | |
| Separable integrand | If both the integrand factorizes and the region is a box, the triple integral splits into a product of single integrals. |
Worked examples
Example 1 — the uniform ball, end to end (confidence builder). The ball of the divergence and Laplacian articles: uniform , radius . Total charge?
Step 1. Set up in spherical coordinates — constant limits, constant density:
Step 2. Numbers:
Step 3. Check against with — identical, as it must be for a constant density. This 11.1 pC is precisely the that Gauss's law converts into the surface field — the volume integral is the source-side half of every Gauss's-law calculation.
Example 2 — a density that falls to zero at the surface (exam level). A ball of radius carries with : densest at the centre, fading to zero at the edge. Find and the average density.
Step 1. Spherical symmetry: collapse to the shell sum
Step 2. Numbers:
Step 3. Average density from equation (8): , so
Only a quarter of the central density — even though falls off linearly (averaging to along a radius), the shell weighting emphasizes the outer, dilute region and drags the volume average down to . The Jacobian is not bookkeeping; it moves answers.
Applications
Total charge and Gauss's law. Every application of Gauss's law in differential form, , becomes the integral statement precisely because the volume integral feeds the divergence theorem. Computing for nonuniform charge clouds is a pure volume-integral exercise.
Field energy. The energy stored in an electrostatic field is , and the magnetic analogue is . Both are volume integrals of a scalar energy density over all space, often most cleanly evaluated in spherical or cylindrical coordinates to exploit symmetry.
Multipole moments. The total dipole moment and higher multipoles are vector and tensor volume integrals. Because is a vector, one integrates component by component (in Cartesian form) to characterize how a localized charge distribution looks from far away.
Mass, center of mass, and moment of inertia. The same machinery gives total mass , center of mass , and moment of inertia , where is mass density — showing that volume integrals span electromagnetism and mechanics alike.
Origins · 1 minBernhard Riemann and how this was discovered
Riemann was so shy that lecturing terrified him, and so original that three of his short papers each founded a field. The integral bearing his name — the partition-sample-sum-refine limit that opens this article — appeared almost as an aside in his 1854 habilitation thesis on trigonometric series: the first rigorous answer to the question "which functions can be integrated at all?" The same year, prodded by Gauss to speak on the foundations of geometry, he introduced curved spaces of arbitrary dimension, handing Einstein the mathematics of general relativity sixty years early. He was also a working physicist — collaborating with Wilhelm Weber on electromagnetism, formulating one of the first field theories that propagated electric action at finite speed — so the volume integrals of charge and energy in this chapter are computed by a definition its author built partly for electrodynamics. He died of tuberculosis at thirty-nine, leaving the Riemann hypothesis to torment mathematics indefinitely.
Going further
References. Griffiths, Introduction to Electrodynamics, 4th ed., §1.3.3 · Jackson, Classical Electrodynamics, 3rd ed., Chapter 1 and Appendix on coordinate systems · Purcell & Morin, Electricity and Magnetism, 3rd ed., Chapter 1 · Zangwill, Modern Electrodynamics, Chapter 1 Key results to keep in hand: the spherical Jacobian follows from the orthogonal edge lengths , , ; the polar integral gives and the full solid angle ; the uniform ball charge is ; the linear-rise profile gives via ; and the sphere volume is . The field-energy formulas and are the electrostatic and magnetostatic energy densities integrated over all space.
Builds on: Scalar and Vector Fields · Line Integrals · Surface Integrals and Flux · Spherical Coordinates Leads to: The Divergence (Gauss) Theorem · The Divergence of a Vector Field · The Curl (Stokes) Theorem
How do I know when I can use the shell shortcut instead of the full triple integral?
Whenever both the integrand and the region are spherically symmetric: density depending only on , integrated over a ball, shell, or all space. Then the angular integrals always give the solid angle , and — physically, you are summing onion layers of volume . The moment either ingredient breaks the symmetry — a density with -dependence, a hemispherical region, an off-centre ball — at least one angular integral survives and must be done honestly, as in the hemisphere derivation above.
Is the r² sin θ factor something I should memorize or something I can rebuild?
Rebuild it in ten seconds and you will never misremember it: the three orthogonal edges of a spherical cell are (radial), (meridian arc), and (latitude arc); multiply. The same three edge lengths also generate the surface elements — fix and you get the sphere's — and the gradient's scale factors from the earlier articles. One curved brick, the entire chapter's worth of Jacobians.
Does the order of integration in a triple integral matter?
For continuous integrands over well-behaved regions, no — Fubini's theorem lets you integrate in any order. What changes is the difficulty: the limits must describe the same region in each ordering, and a region that gives constant limits in one order can give variable, nested limits in another. Strategy: pick the order in which the innermost integrals have the simplest limits, and pick the coordinate system before worrying about order at all — a good coordinate choice usually makes every order easy.
How do point charges fit into the volume-integral picture — their density is infinite?
Through the Dirac delta: a point charge at has density , an object defined precisely by how it behaves under volume integrals — . Then comes out correctly, and the whole discrete/continuous divide dissolves: sums over point charges and integrals over clouds are one formalism. The divergence article's is this machinery running in reverse.
Field-energy integrals run over all space — how can an infinite region give a finite answer?
By falling off fast enough. The electrostatic energy density of a point-charge-like field scales as , while shells contribute volume — the integrand of the radial integral goes as , which converges at infinity. (At the origin the same integral diverges for a true point charge, an honest infinity that hints at the self-energy problems of classical electrodynamics.) The working rule: check the large- behaviour of integrand times ; if it dies faster than , all space is affordable.
When should I use cylindrical rather than spherical coordinates?
Match the grid to the region's symmetry axis. Cylindrical coordinates () hug anything with a preferred straight axis: wires, solenoids, coaxial cables, discs, beams. Spherical coordinates hug anything organized around a point: balls, shells, atoms, radiation zones. The tell in a problem statement: densities written as or "per unit length" want cylindrical; or "as seen from far away" wants spherical. Choosing wrong is never fatal — just painful, with square roots and variable limits where constants should be.
What does a negative volume integral of charge density mean physically?
Simply that the region holds net negative charge — the integral is an honest signed sum, with cells subtracting. This signed character is essential everywhere: a neutral atom has over its volume even though is violently nonzero inside; a capacitor's two plates integrate to . Contrast with genuinely non-negative integrands like mass density or field energy density , whose volume integrals can only grow as the region expands.