Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random  

[parent] examples of volume integral

(Example)

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

f(x,y,z ) = x + 2y + 3z.
(1)

Evaluate

    ∫ ∫∫
I =       f dV
         V
(2)

over the box

0 ≤ x ≤ 2,     0 ≤ y ≤ 1,     0 ≤ z ≤ 3.
(3)

Also calculate the average value

⟨f ⟩  = I-.
   V   𝒱
(4)

Exercise 2: volume beneath a paraboloid

Find the volume enclosed between

         2    2
z = 4 − x  − y
(5)

and

z = 0.
(6)

Use cylindrical coordinates and derive the integration bounds from the geometry.

Exercise 3: ellipsoid volume from a Jacobian

Consider the ellipsoid

x2-  y2-   z2-
a2 + b2 +  c2 ≤ 1.
(7)

Use the transformation

x =  au,    y =  bv,    z = cw
(8)

to derive its volume.

Then evaluate the result for

a = 2,     b = 3,    c = 4.
(9)

PIC

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

           (     s )
ρm (s) = ρ0  1 + R- ,
(10)

where s is cylindrical distance from the axis.

Find:

  1. the total mass;
  2. the average mass density.

PIC

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

           (     r )
ρm (r) = ρ0  1 − -- .
                 R
(11)

Find:

  1. the total mass;
  2. the average density;
  3. the density at the center and at the surface.

Exercise 6: center of mass of a graded block

A rectangular block occupies

0 ≤ x ≤  a,    0 ≤ y ≤  b,    0 ≤ z ≤  H.
(12)

Its density is

           (         )
ρm (z) = ρ0  1 + α-z- .
                  H
(13)

Derive the center of mass.

Then evaluate

zCM-
 H
(14)

for

α = 2.
(15)

PIC

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

ρq(r) = kr.
(16)

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

u   = 1-𝜖E2,
  E   2  0
(22)

calculate the total electromagnetic energy by integrating over the field-filled volume.

Then independently verify the answer with

     1    2
U =  -CV   .
     2
(23)

Use

                       −12    − 1
𝜖0 = 8.8541878128 ×  10    Fm   .
(24)

Exercise 10: normalization of a three-dimensional quantum state

Consider the spherically symmetric wavefunction

ψ (r) = Ae− r∕a,
(25)

where a > 0.

Normalize the wavefunction over all space:

∫∫ ∫
      |ψ |2 dV =  1.
(26)

Then calculate the probability that the particle lies inside the sphere

r ≤ a.
(27)

PIC

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

ρq(r) = kz.
(28)

The electric dipole moment is

    ∫ ∫∫
p =       rρ (r)dV.
        V   q
(29)

Find:

  1. the total charge;
  2. the dipole moment vector.

Use symmetry wherever possible before integrating.

Exercise 12: divergence theorem for a nonlinear radial field

Let

F  = r2ˆr.
(30)

For a sphere of radius R centered at the origin:

  1. calculate the outward flux directly from the surface integral;
  2. calculate ∇⋅ F for r > 0;
  3. evaluate the corresponding volume integral;
  4. verify the divergence theorem.

Exercise 13: steady source and outward flux

A sphere of radius R contains a uniform volumetric production rate

s      [quantity m −3 s− 1].
 0
(31)

Assume steady state and spherical symmetry.

The outward flux field inside the sphere is

J =  J(r)ˆr.
(32)

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.

PIC

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

         (        )
               -r2
𝜖(r) = 𝜖0  1 − R2   ,
(33)

where 𝜖 has units of power per unit volume.

Assume all generated radiation ultimately escapes.

Find:

  1. the total luminosity L;
  2. 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.

PIC

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

𝒱 = (2)(1)(3) = 6.
(34)

Now

I = ∫ 02 ∫ 01 ∫ 03(x + 2y + 3z) dz dy dx. (35)

It is convenient to integrate each term separately.

For the x term,

∫∫ ∫V xdV = (        )
 ∫  2
     xdx
   0(       )
  ∫ 1
      dy
   0(       )
  ∫ 3
      dz
   0 (36)
= 2(1)(3) (37)
= 6. (38)

For the 2y term,

∫∫ ∫V 2y dV = (∫  2  )
     dx
   0(∫  1     )
     2y dy
   0( ∫ 3   )
      dz
   0 (39)
= 2(1)(3) (40)
= 6. (41)

For the 3z term,

∫∫ ∫V 3z dV = (∫  2  )
     dx
   0(∫  1  )
     dy
   0(∫  3     )
     3z dz
   0 (42)
= 2(1)(   )
 27
 ---
  2 (43)
= 27. (44)

Therefore

|--------|
-I-=-39.-|
(45)

The average value is

|-------39--------|
⟨f⟩V =  ---= 6.5. |
---------6---------
(46)

As a check, because f is linear, the average also equals the value at the geometric center:

f(1,0.5,1.5) = 1 + 1 + 4.5 = 6.5.
(47)

Solution 2

The upper surface is

z = 4 − r2.
(48)

It meets z = 0 when

r = 2.
(49)

Thus

0 ≤ r ≤ 2, (50)
0 ≤ ϕ < 2π, (51)
0 ≤ z ≤ 4 − r2. (52)

Using

dV =  rdz drd ϕ,
(53)

𝒱 = ∫ 02π ∫ 02 ∫ 04−r2 r dz dr dϕ (54)
= 2π ∫ 02r(4 − r2) dr (55)
= 2π[         ]
 2r2 − 1r4
       402 (56)
= 2π(4). (57)

Therefore

|--------|
|𝒱 = 8π. |
---------
(58)

Solution 3

Use

x = au,     y = bv,     z = cw.
(59)

The ellipsoid becomes

 2    2    2
u  + v  + w  ≤ 1.
(60)

The Jacobian matrix is diagonal:

            ||a  0  0||
∂(x,-y,z)-  ||       ||
∂(u,v,w ) = |0  b  0| = abc.
            |0  0  c|
(61)

Therefore

𝒱ellipsoid = ∫∫ ∫unit sphereabcdudv dw (62)
= abc(    )
  4-
  3π. (63)

Hence

|-----------------|
|          4      |
𝒱ellipsoid =  -πabc. |
-----------3-------
(64)

For

a = 2,     b = 3,    c = 4,
(65)

𝒱 = 4
--
3π(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

dV =  sds dϕ dz.
(69)

The mass is

M = ∫ 0H ∫ 02π ∫ 0Rρ 0(     s)
 1 + --
     Rsdsdϕdz (70)
= 2πHρ0 ∫ 0R(       )
      s2
  s + Rds (71)
= 2πHρ0(   2     2)
  R--+  R--
   2     3 (72)
= 5
--
3πρ0R2H. (73)

The geometric volume is

𝒱 =  πR2H.
(74)

Therefore

|------------------|
|        M--  5-   |
|⟨ρm⟩ =  𝒱  = 3 ρ0.|
-------------------
(75)

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(     r )
  1 − --
      Rr2 sin 𝜃 dr d𝜃 dϕ (76)
= 4πρ0 ∫ 0R(        )
   2   r3
  r −  Rdr (77)
= 4πρ0(   3    3 )
  R--−  R--
   3     4 (78)
= π-
3ρ0R3. (79)

The sphere volume is

𝒱 =  4πR3.
     3
(80)

Hence

⟨ρm⟩ = (π ∕3)ρ R3
-------0-3-
 (4π∕3 )R (81)
= 1-
4ρ0. (82)

At the center,

|------------|
-ρm-(0) =-ρ0.|
(83)

At the surface,

|-----------|
ρm (R) = 0. |
-------------
(84)

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,

|------------------------|
|x    = a-,    y    = b-.|
--CM----2-------CM----2--|
(85)

The total mass is

M = abρ0 ∫ 0H(        )
 1 + α z--
       Hdz (86)
= abρ0H(     α)
  1 + 2. (87)

The first moment about the xy plane is

∫∫ ∫V zρm dV = abρ0 ∫ 0Hz(       z)
  1 + α---
       Hdz (88)
= abρ0H2(       )
  1-   α-
  2 +  3. (89)

Therefore

|--------------------|
|         1∕2-+-α∕3- |
|zCM =  H  1 + α∕2  .|
---------------------
(90)

For

α = 2,
(91)

zCM
----
 H = 1∕2 + 2∕3
----------
  1 + 1 (92)
= 7∕6-
 2 (93)
=  7
---
12 (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

     --M----
ρ0 = πR2H  .
(96)

About the symmetry axis,

r⊥ = s.
(97)

Thus

Iz = ∫∫ ∫V s2ρ 0 dV (98)
= ρ0 ∫ 0H ∫ 02π ∫ 0Rs2(s dsd ϕdz ) (99)
= ρ0H(2π)R4
---
 4 (100)
= 1-
2ρ0πR4H. (101)

Since

          2
M  = ρ0πR  H,
(102)

we obtain

|------------|
|     1-   2 |
|Iz = 2M R  .|
--------------
(103)

Solution 8

The total charge is

Q = ∫ ∫∫V ρq dV (104)
= ∫ 02π ∫ 0π ∫ 0Rkr(  2    )
 r  sin 𝜃dr d𝜃 dϕ (105)
= 4πk ∫ 0Rr3 dr (106)
= 4πkR4-
 4. (107)

Therefore

|----------|
Q  = πkR4. |
------------
(108)

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 = 1-
2𝜖0E2 (113)
= 1-
2(8.8541878128 × 10−12)(2.00 × 105)2 (114)
≈ 0.177084 J m−3. (115)

The field-filled volume is

                     −2           −3             −5  3
𝒱  = Ad =  (1.00 × 10   )(1.00 × 10   ) = 1.00 × 10    m .
(116)

Therefore

U = ∫∫ ∫uE dV (117)
= uEAd (118)
≈ 1.771 × 10−6 J. (119)

Now verify using circuit quantities.

The capacitance is

C = 𝜖0A
----
 d (120)
= 8.8541878128 × 10−11 F. (121)

The potential difference is

V =  Ed =  200 V.
(122)

Then

1
--
2CV 2 = 1
--
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

    ∫ ∫∫
1 =       |ψ|2dV.
(125)

Because the state is spherically symmetric,

1 = 4πA2 ∫ 0∞r2e−2r∕a dr. (126)

Use

∫ ∞
     2 − βr      -2-
 0  r e    dr = β3 .
(127)

With

     2
β =  -,
     a
(128)

∫  ∞
      2 −2r∕a      a3-
 0   r e     dr =  4 .
(129)

Therefore

1 = 4πA2a3-
 4 (130)
= πA2a3. (131)

Hence

|------------|
|     --1--- |
|A =  √ --3-.|
--------πa---
(132)

Now calculate the probability inside r ≤ a:

P(r ≤ a) = 4πA2 ∫ 0ar2e−2r∕a dr. (133)

Let

x = 2r-.
     a
(134)

Then

 2      a3 2
r dr =  --x dx,
        8
(135)

so

P(r ≤ a) = 4πA2a3
---
8 ∫ 02x2e−x dx. (136)

The definite integral is

∫ 2
    x2e−x dx = 2 − 10e− 2.
 0
(137)

Using

πA2a3  = 1,
(138)

we get

P(r ≤ a) = 1-
2(          )
 2 − 10e −2 (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:

     ∫∫ ∫
Q  =       kz dV.
         V
(142)

The spherical region is symmetric under

z →  − z,
(143)

while the integrand changes sign.

Therefore

|------|
Q--=-0.-
(144)

Now

    ∫ ∫∫
p =       (xex + yey + zez)kz dV.
         V
(145)

The x component contains xz, which is odd under x →−x.

The y component contains yz, which is odd under y →−y.

Thus

p =  p =  0.
 x    y
(146)

The z component is

       ∫ ∫∫
              2
pz = k       z  dV.
           V
(147)

In spherical coordinates,

z = r cos𝜃.
(148)

Therefore

pz = k ∫ 02π ∫ 0π ∫ 0Rr2 cos 2𝜃r2 sin 𝜃 dr d𝜃 dϕ (149)
= k(2π) (   5)
  R--
   5[∫  π             ]
     cos2𝜃 sin 𝜃d 𝜃
   0. (150)

The angular integral is

2
-.
3
(151)

Hence

      4π   5
pz =  15kR  .
(152)

Thus

|--------------|
|p = 4π-kR5e  .|
-----15------z--
(153)

The distribution has zero net charge but a nonzero dipole moment.

Solution 12

On the sphere r = R,

F =  R2ˆr.
(154)

Thus

Φ = ∮ SF ⋅ dA (155)
= R2(4πR2) (156)
= 4πR4. (157)

For a radial field

F  = f(r)ˆr,
(158)

the divergence for r > 0 is

∇  ⋅ F = 1--d-(r2f(r)).
         r2dr
(159)

Here

        2
f(r) = r ,
(160)

so

∇⋅ F =  1
-2
rd
---
dr(  )
 r4 (161)
= 4r. (162)

Now integrate through the sphere:

∫ ∫∫V ∇⋅ FdV = ∫ 02π ∫ 0π ∫ 0R4rr2 sin 𝜃 dr d𝜃 dϕ (163)
= 4(2π)(2) 4
R--
4 (164)
= 4πR4. (165)

Therefore

|∮-----------∫-∫∫--------------------|
|                                  4 |
|   F ⋅ dA =       ∇  ⋅ F dV = 4πR  .|
--S--------------V-------------------
(166)

Solution 13

At steady state,

∂ρ-=  0.
∂t
(167)

Apply the integral conservation law to a sphere of radius r:

∮            ∫∫ ∫
    J ⋅ dA =       s0 dV.
  Sr             Vr
(168)

By spherical symmetry,

J =  J(r)ˆr,
(169)

and J(r) is constant over the spherical surface.

Thus

4πr2J(r) = s 0(      )
  4-πr3
  3. (170)

Solving,

|------------|
|J(r) = s0r-.|
---------3---|
(171)

At the outer surface,

J (R) = s0R-.
          3
(172)

The total outward flow is

Qout = 4πR2J(R) (173)
= 4πR2s0R-
 3 (174)
= 4-
3πR3s 0. (175)

The total production throughout the sphere is

∫ ∫∫
      s  dV =  s 4πR3.
     V 0        03
(176)

Therefore

|----------------|
|˙      ˙        |
Qout-=--Qproduced.-
(177)

Solution 14

The luminosity is the volume integral of power generated per unit volume:

    ∫ ∫∫
L =       𝜖(r)dV.
        V
(178)

Using spherical coordinates,

L = ∫ 02π ∫ 0π ∫ 0R𝜖 0(      2)
 1 −  r--
      R2r2 sin 𝜃 dr d𝜃 dϕ (179)
= 4π𝜖0 ∫ 0R(      r4)
 r2 − --2
      Rdr (180)
= 4π𝜖0(          )
  R3    R3
  --- − ---
   3     5 (181)
= 8π-
15𝜖0R3. (182)

Outside the source, assume isotropic free propagation.

The same luminosity crosses every centered sphere:

L  = 4πd2F (d).
(183)

Thus

F(d) = --L--
4 πd2 (184)
= (8π ∕15)𝜖0R3
--------2----
    4πd (185)
=      3
2-𝜖0R--
 15d2. (186)

This problem joins two kinds of integral.

Inside the star,

|---------------|
|    ∫∫ ∫       |
L =        𝜖dV  |
---------V-------
(187)

adds distributed power production throughout a volume.

Outside the star,

|----∮-----------|
|                |
|L =    Frad ⋅ dA|
------S-----------
(188)

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,

|----------------|
|    ∫ ∫∫        |
|I =       f dV. |
---------V-------
(189)

The volume itself is

|-----∫∫-∫-------|
|𝒱 =        1dV. |
----------V------|
(190)

In Cartesian coordinates,

|--------------|
dV  = dx dy dz.|
----------------
(191)

In cylindrical coordinates,

|----------------|
|dV =  sds dϕ dz.|
------------------
(192)

In spherical coordinates,

|-------2--------------|
-dV--=-r-sin𝜃-dr-d𝜃dϕ.-|
(193)

For a general coordinate change,

|-----|----------|---------|
|     ||-∂(x,y,z)-||         |
dV  = |∂ (u,v,w )|du dvdw. |
----------------------------
(194)

Mass is

|------------------|
|     ∫ ∫∫         |
|M  =       ρm dV. |
----------V---------
(195)

Center of mass is

|----------∫∫-∫----------|
|       -1-              |
|rCM =  M        rρm dV. |
---------------V---------
(196)

Moment of inertia is

|---∫-∫∫------------|
|          2        |
I =      V r⊥ ρm dV.|
---------------------
(197)

Charge is

|----∫-∫∫--------|
Q  =       ρq dV.|
---------V--------
(198)

Energy from energy density is

|-----∫∫-∫-------|
|                |
|E =        udV. |
----------V-------
(199)

Quantum probability is

|--------∫-∫∫----------|
|P (V ) =       |ψ|2dV. |
|            V         |
------------------------
(200)

The divergence theorem is

∮-------------∫∫-∫-----------|
|   F  ⋅ dA =       ∇ ⋅ F dV.|
--∂V--------------V-----------
(201)

A local conservation law gives

|--∫-∫∫----------∮------------∫∫-∫-------|
|d                                       |
|dt       ρdV  +     J ⋅ dA =       sdV. |
--------V---------∂V--------------V-------
(202)

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.


"examples of volume integral" is owned by bloftin.
(view preamble)
View style:
Keywords:  volume integral, triple integral, exercises, solutions, Jacobian, cylindrical coordinates, spherical coordinates, mass density, charge density, energy density, center of mass, moment of inertia, quantum probability, divergence theorem, luminosity

This object's parent.

Cross-references: Cartesian coordinates, scalar, spherical coordinates, formula, capacitance, volume element, matrix, Jacobian, radiation, power, units, theorem, divergence, surface integral, flux, vector, particle, energy, solid, cylindrical coordinates, volume, section, luminosity, field energy, charge, moments of inertia, center of mass, mass, volume integrals

This is version 1 of examples of volume integral, born on 2026-10-07.
Object id is 1436, canonical name is ExamplesOfVolumeIntegral.
Accessed 8 times total.

Classification:
Physics Classification: 02.30.-f (Function theory, analysis)
 02.40.-k (Geometry, differential geometry, and topology )

Pending Errata and Addenda

None.

Discussion

No messages.

Interact