Volume Integral: Exercises and Complete Solutions
This companion develops practical skill with volume integrals and their physical applications.
The exercises begin with direct triple integration and coordinate changes, then progress through
mass density, center of mass, moments of inertia, charge, field energy, quantum probability,
conservation laws, and astrophysical luminosity.
All exercises appear first. Complete solutions follow in a separate section.
Part I: Exercises
Exercise 1: a scalar integral over a rectangular volume
Let
Evaluate
over the box
Also calculate the average value
Exercise 2: volume beneath a paraboloid
Find the volume enclosed between
and
Use cylindrical coordinates and derive the integration bounds from the geometry.
Exercise 3: ellipsoid volume from a Jacobian
Consider the ellipsoid
Use the transformation
to derive its volume.
Then evaluate the result for
Figure 1. A linear coordinate transformation stretches the unit sphere into an ellipsoid, while the
Jacobian accounts for the corresponding volume scaling.
Exercise 4: mass of a radially graded cylinder
A solid cylinder has radius R, height H, and mass density
where s is cylindrical distance from the axis.
Find:
- the total mass;
- the average mass density.
Figure 2. In a cylindrically symmetric body, cylindrical coordinates make both the geometry and
a radial density law natural.
Exercise 5: mass of a radially graded sphere
A sphere of radius R has density
Find:
- the total mass;
- the average density;
- the density at the center and at the surface.
Exercise 6: center of mass of a graded block
A rectangular block occupies
Its density is
Derive the center of mass.
Then evaluate
for
Figure 3. A density gradient weights the upper and lower parts of a block differently and shifts
the center of mass away from the geometric center.
Exercise 7: moment of inertia of a uniform solid cylinder
A uniform solid cylinder has mass M, radius R, and height H.
Use a volume integral to derive its moment of inertia about its symmetry axis.
Do not quote the standard result.
Exercise 8: charge from a spherical volume charge density
A spherical region of radius R contains charge density
Find the total charge.
Evaluate numerically for
| k | = 1.00 × 10−6 C m−4, | (17)
|
| R | = 0.100 m. | (18) |
Exercise 9: electromagnetic energy in a capacitor
An ideal parallel-plate capacitor has:
| A | = 1.00 × 10−2 m2, | (19)
|
| d | = 1.00 × 10−3 m, | (20)
|
| E | = 2.00 × 105 V m−1. | (21) |
Ignore fringing.
Using
calculate the total electromagnetic energy by integrating over the field-filled volume.
Then independently verify the answer with
Use
Exercise 10: normalization of a three-dimensional quantum state
Consider the spherically symmetric wavefunction
where a > 0.
Normalize the wavefunction over all space:
Then calculate the probability that the particle lies inside the sphere
Figure 4. For a spherically symmetric quantum state, the radial probability includes both the
wavefunction magnitude and the increasing volume of spherical shells.
Exercise 11: a vector-valued volume integral and electric dipole moment
A sphere of radius R contains charge density
The electric dipole moment is
Find:
- the total charge;
- the dipole moment vector.
Use symmetry wherever possible before integrating.
Exercise 12: divergence theorem for a nonlinear radial field
Let
For a sphere of radius R centered at the origin:
- calculate the outward flux directly from the surface integral;
- calculate ∇⋅ F for r > 0;
- evaluate the corresponding volume integral;
- verify the divergence theorem.
Exercise 13: steady source and outward flux
A sphere of radius R contains a uniform volumetric production rate
Assume steady state and spherical symmetry.
The outward flux field inside the sphere is
Use the integral conservation law on an arbitrary sphere of radius r ≤ R to find J(r).
Then show that the total outward flow through the outer surface equals the total production
throughout the volume.
Figure 5. A distributed source inside a volume produces an outward flux whose integrated
boundary flow balances the total production in steady state.
Exercise 14: luminosity from a stellar volume emissivity
A spherical star of radius R has a simplified bolometric volume emissivity
where 𝜖 has units of power per unit volume.
Assume all generated radiation ultimately escapes.
Find:
- the total luminosity L;
- the radiative flux measured at distance d > R, assuming isotropic propagation outside
the star.
Explain how this problem connects a volume integral inside the source to a surface flux outside the
source.
Figure 6. A distributed power density inside a spherical source integrates to a total luminosity,
which later appears as conserved outward flux through surrounding spheres.
Part II: Complete Solutions
Solution 1
The volume is
Now
| I | = ∫
02 ∫
01 ∫
03 dz dy dx. | (35) |
It is convenient to integrate each term separately.
For the x term,
V xdV | =    | (36)
|
| = 2(1)(3) | (37)
|
| = 6. | (38) |
For the 2y term,
V 2y dV | =    | (39)
|
| = 2(1)(3) | (40)
|
| = 6. | (41) |
For the 3z term,
V 3z dV | =    | (42)
|
| = 2(1) | (43)
|
| = 27. | (44) |
Therefore
The average value is
As a check, because f is linear, the average also equals the value at the geometric center:
Solution 2
The upper surface is
It meets z = 0 when
Thus
| 0 | ≤ r ≤ 2, | (50)
|
| 0 | ≤ ϕ < 2π, | (51)
|
| 0 | ≤ z ≤ 4 − r2. | (52) |
Using
| 𝒱 | = ∫
02π ∫
02 ∫
04−r2
r dz dr dϕ | (54)
|
| = 2π ∫
02r(4 − r2) dr | (55)
|
| = 2π 02 | (56)
|
| = 2π(4). | (57) |
Therefore
Solution 3
Use
The ellipsoid becomes
The Jacobian matrix is diagonal:
Therefore
| 𝒱ellipsoid | = unit sphereabcdudv dw | (62)
|
| = abc . | (63) |
Hence
For
| 𝒱 | = π(24) | (66)
|
| = 32π | (67)
|
| ≈ 100.531. | (68) |
Solution 4
Use cylindrical radius s so that the density symbol ρm remains unambiguous.
The volume element is
The mass is
| M | = ∫
0H ∫
02π ∫
0Rρ
0 sdsdϕdz | (70)
|
| = 2πHρ0 ∫
0R ds | (71)
|
| = 2πHρ0 | (72)
|
| = πρ0R2H. | (73) |
The geometric volume is
Therefore
This lies between the axis density ρ0 and the surface density 2ρ0, as expected.
Solution 5
The mass is
| M | = ∫
02π ∫
0π ∫
0Rρ
0 r2 sin 𝜃 dr d𝜃 dϕ | (76)
|
| = 4πρ0 ∫
0R dr | (77)
|
| = 4πρ0 | (78)
|
| = ρ0R3. | (79) |
The sphere volume is
Hence
| ⟨ρm⟩ | =  | (81)
|
| = ρ0. | (82) |
At the center,
At the surface,
The average density is much less than the central density because the outer layers occupy most of
the sphere’s volume.
Solution 6
By symmetry,
The total mass is
| M | = abρ0 ∫
0H dz | (86)
|
| = abρ0H . | (87) |
The first moment about the xy plane is
V zρm dV | = abρ0 ∫
0Hz dz | (88)
|
| = abρ0H2 . | (89) |
Therefore
For
 | =  | (92)
|
| =  | (93)
|
| = | (94)
|
| ≈ 0.5833. | (95) |
The center of mass lies above the geometric midpoint because density increases with
height.
Solution 7
Let the uniform mass density be
About the symmetry axis,
Thus
| Iz | = V s2ρ
0 dV | (98)
|
| = ρ0 ∫
0H ∫
02π ∫
0Rs2 | (99)
|
| = ρ0H(2π) | (100)
|
| = ρ0πR4H. | (101) |
Since
we obtain
Solution 8
The total charge is
| Q | = V ρq dV | (104)
|
| = ∫
02π ∫
0π ∫
0Rkr dr d𝜃 dϕ | (105)
|
| = 4πk ∫
0Rr3 dr | (106)
|
| = 4πk . | (107) |
Therefore
For
| k | = 1.00 × 10−6 C m−4, | (109)
|
| R | = 0.100 m, | (110) |
| Q | = π(1.00 × 10−6)(0.100)4 | (111)
|
| = 3.142 × 10−10 C. | (112) |
Solution 9
The electric-energy density is
| uE | = 𝜖0E2 | (113)
|
| = (8.8541878128 × 10−12)(2.00 × 105)2 | (114)
|
| ≈ 0.177084 J m−3. | (115) |
The field-filled volume is
Therefore
| U | = uE dV | (117)
|
| = uEAd | (118)
|
| ≈ 1.771 × 10−6 J. | (119) |
Now verify using circuit quantities.
The capacitance is
| C | =  | (120)
|
| = 8.8541878128 × 10−11 F. | (121) |
The potential difference is
Then
CV 2 | = (8.8541878128 × 10−11)(200)2 | (123)
|
| = 1.771 × 10−6 J. | (124) |
The field-energy volume integral and circuit formula agree.
Solution 10
The normalization condition is
Because the state is spherically symmetric,
| 1 | = 4πA2 ∫
0∞r2e−2r∕a dr. | (126) |
Use
With
Therefore
| 1 | = 4πA2 | (130)
|
| = πA2a3. | (131) |
Hence
Now calculate the probability inside r ≤ a:
| P(r ≤ a) | = 4πA2 ∫
0ar2e−2r∕a dr. | (133) |
Let
Then
so
| P(r ≤ a) | = 4πA2 ∫
02x2e−x dx. | (136) |
The definite integral is
Using
we get
| P(r ≤ a) | =   | (139)
|
| = 1 − 5e−2 | (140)
|
| ≈ 0.3233. | (141) |
Thus about 32.3 percent of the probability lies within one scale length a.
Solution 11
First calculate total charge:
The spherical region is symmetric under
while the integrand changes sign.
Therefore
Now
The x component contains xz, which is odd under x →−x.
The y component contains yz, which is odd under y →−y.
Thus
The z component is
In spherical coordinates,
Therefore
| pz | = k ∫
02π ∫
0π ∫
0Rr2 cos 2𝜃r2 sin 𝜃 dr d𝜃 dϕ | (149)
|
| = k  . | (150) |
The angular integral is
Hence
Thus
The distribution has zero net charge but a nonzero dipole moment.
Solution 12
On the sphere r = R,
Thus
| Φ | = ∮
SF ⋅ dA | (155)
|
| = R2(4πR2) | (156)
|
| = 4πR4. | (157) |
For a radial field
the divergence for r > 0 is
Here
so
Now integrate through the sphere:
V ∇⋅ FdV | = ∫
02π ∫
0π ∫
0R4rr2 sin 𝜃 dr d𝜃 dϕ | (163)
|
| = 4(2π)(2) | (164)
|
| = 4πR4. | (165) |
Therefore
Solution 13
At steady state,
Apply the integral conservation law to a sphere of radius r:
By spherical symmetry,
and J(r) is constant over the spherical surface.
Thus
| 4πr2J(r) | = s
0 . | (170) |
Solving,
At the outer surface,
The total outward flow is
| Qout | = 4πR2J(R) | (173)
|
| = 4πR2 | (174)
|
| = πR3s
0. | (175) |
The total production throughout the sphere is
Therefore
Solution 14
The luminosity is the volume integral of power generated per unit volume:
Using spherical coordinates,
| L | = ∫
02π ∫
0π ∫
0R𝜖
0 r2 sin 𝜃 dr d𝜃 dϕ | (179)
|
| = 4π𝜖0 ∫
0R dr | (180)
|
| = 4π𝜖0 | (181)
|
| = 𝜖0R3. | (182) |
Outside the source, assume isotropic free propagation.
The same luminosity crosses every centered sphere:
Thus
| F(d) | =  | (184)
|
| =  | (185)
|
| = . | (186) |
This problem joins two kinds of integral.
Inside the star,
adds distributed power production throughout a volume.
Outside the star,
expresses conservation of that total power as a surface flux.
The volume source therefore produces the luminosity, while the surface integral describes how that
luminosity crosses surrounding spheres.
Part III: Compact Formula Sheet
For a scalar field,
The volume itself is
In Cartesian coordinates,
In cylindrical coordinates,
In spherical coordinates,
For a general coordinate change,
Mass is
Center of mass is
Moment of inertia is
Charge is
Energy from energy density is
Quantum probability is
The divergence theorem is
A local conservation law gives
References
References
[1] J. Stewart, Calculus: Early Transcendentals, Cengage Learning.
[2] H. M. Schey, Div, Grad, Curl, and All That, W. W. Norton.
[3] J. E. Marsden and A. J. Tromba, Vector Calculus, W. H. Freeman.
[4] G. B. Arfken, H. J. Weber, and F. E. Harris, Mathematical Methods for Physicists,
Academic Press.
[5] D. J. Griffiths, Introduction to Electrodynamics, 4th ed., Pearson, 2013.
[6] D. J. Griffiths and D. F. Schroeter, Introduction to Quantum Mechanics, 3rd ed.,
Cambridge University Press, 2018.