Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random |  
Login
create new user
Username:
Password:
forget your password?
Main Menu
Sections

Meta

Talkback

Downloads

Information
[parent] Electromagnetic Waves: Gauss's Law - Exercises and Complete Worked Solutions (Example)

Electromagnetic Waves, Antennas, and RF: Gauss’s Law - Exercises and Complete Worked Solutions

This companion article provides self-study exercises for EM07, Gauss’s Law. All exercises are stated first. Complete worked solutions follow in Part II.

The central law is

|∮-----------------|
|            Qenc  |
|   E ⋅ dA = --𝜖--.|
--S------------0---
(1)

The most important methodological distinction is

|----------------------------------------------------------------------------------|
|Gauss ’s law  is always true, but symmetry  determines whether  it solves easily for E.
------------------------------------------------------------------------------------
(2)

For symmetric charge distributions, useful results from EM07 are

|--------------------|
|         1  Qenc(r) |
|E(r) =  --------2---|
---------4π𝜖0---r-----
(3)

for spherical symmetry,

|--------------|
|        --λ---|
|E (s) = 2π𝜖0s |
---------------
(4)

for an ideal infinite line charge, and

|-----σ--|
|E =  ---|
------2𝜖0-
(5)

for an ideal infinite uniformly charged sheet.

The differential form is

|------------|
|∇ ⋅ E =  ρ-.|
|         𝜖0  |
-------------
(6)

These are the same definitions and conventions used in EM07 [1235].

How to use this problem set

Attempt every exercise in Part I before reading Part II. For each Gaussian-surface problem, explicitly answer these questions before writing the flux integral:

  1. What symmetry does the physical charge distribution possess?
  2. What direction must E point because of that symmetry?
  3. On what parts of the Gaussian surface is E constant?
  4. On what parts is E dA zero?
  5. What charge is actually enclosed?

Choosing a convenient surface does not create symmetry that the charge distribution does not have.

Part I: Exercises

Exercise 1: net enclosed charge and total flux

A closed Gaussian surface encloses three point charges:

q1 = +2.0 nC,     q2 = − 5.0 nC,     q3 = +1.0 nC.
(7)

Find:

  1. the net enclosed charge;
  2. the total electric flux through the closed surface.

Use

𝜖 =  8.854 × 10−12C2 ∕(N m2 ).
 0
(8)

PIC

Figure. Gauss’s law depends on the algebraic sum of charge enclosed by the closed surface. External charge may alter the field on the surface but does not appear in Qenc.

Exercise 2: off-center charge inside an arbitrary closed surface

A point charge q = +4.0 nC lies inside an irregular closed surface but is not at its geometric center.

  1. Find the total electric flux through the surface.
  2. Can the field magnitude be assumed constant on the surface?
  3. Can the flux integral be replaced by EA for this arbitrary surface? Explain.

Exercise 3: external charge and zero enclosed charge

A closed box contains no charge. A positive point charge lies outside the box and produces a nonzero Electric Field throughout much of the box.

What is the net electric flux through the entire closed box? Does your answer imply that the electric field is zero on the box?

Exercise 4: field outside a uniformly charged sphere

A spherically symmetric insulating sphere of radius

R =  0.10m
(9)

contains total charge

Q =  +6.0 nC.
(10)

Find the electric-field magnitude at

r = 0.25 m.
(11)

State the field direction.

Exercise 5: field inside a uniformly charged solid sphere

The same sphere as in Exercise 4 has charge uniformly distributed throughout its volume. Find the electric-field magnitude at

r = 0.050 m.
(12)

Show explicitly how the enclosed charge is determined.

PIC

Figure. For a uniformly charged solid sphere, E increases linearly inside the sphere and decreases as 1∕r2 outside. The two expressions meet continuously at r = R.

Exercise 6: derive the field of an infinite line charge

An ideal infinite line carries uniform linear charge density λ > 0 along the z axis.

Using a coaxial cylindrical Gaussian surface of radius s and length L:

  1. identify which parts of the cylinder contribute flux;
  2. determine the enclosed charge;
  3. derive E(s).

Exercise 7: numerical infinite line-charge field

For

            −9
λ = 3.0 × 10   C/m
(13)

find the electric-field magnitude at

s = 0.080 m.
(14)

Use the result derived in Exercise 6.

PIC

Figure. For cylindrical symmetry, the flux passes through the curved side of a coaxial Gaussian cylinder; the end-cap flux is zero.

Exercise 8: field of an infinite charged sheet

An ideal infinite sheet carries positive surface charge density σ.

Using a pillbox Gaussian surface that straddles the sheet, derive

E  = -σ-.
     2𝜖0
(15)

Explain why the curved side of the pillbox contributes no flux.

Exercise 9: two oppositely charged infinite sheets

Two parallel infinite sheets carry surface charge densities

+ σ     and      − σ.
(16)

Using superposition and the single-sheet result, find the field magnitude:

  1. between the sheets;
  2. outside the pair.

State the direction of the field between the sheets.

Exercise 10: choose the useful Gaussian surface

For each idealized charge distribution below, identify the most useful Gaussian surface and explain why it matches the field symmetry:

  1. a point charge at the origin;
  2. an infinite straight line charge;
  3. an infinite uniformly charged plane;
  4. two unequal point charges separated by a finite distance.

For part (d), state whether Gauss’s law remains valid and whether it is likely to solve directly for E.

PIC

Figure. Useful Gaussian surfaces follow from physical symmetry. A surface is chosen to exploit a known field geometry; the surface itself does not create that geometry.

Exercise 11: uniform external field through a closed box

A rectangular box has two opposite faces of area

            2
A =  0.030m
(17)

normal to a uniform field

E  = (500 N/C )ˆx.
(18)

Find the flux through:

  1. the right face;
  2. the left face;
  3. the other four faces;
  4. the complete closed box.

What enclosed charge is implied?

Exercise 12: infer charge density from divergence

In a region of space,

E =  axˆx + 2ay ˆy − azˆz,
(19)

where a is a constant.

Find:

  1. ∇⋅ E;
  2. the corresponding volume charge density ρ using differential Gauss law.

Exercise 13: verify integral and differential Gauss law for a simple field

Consider

E =  ar = axxˆ+  ayˆy + azˆz,
(20)

where a is constant. For a sphere of radius R centered at the origin:

  1. use the differential form of Gauss’s law to find ρ;
  2. find the total enclosed charge from ρ;
  3. compute the flux directly from the spherical surface;
  4. verify that the two sides of Gauss’s law agree.

Exercise 14: Gauss-law synthesis

For each statement, decide whether it is correct. If incorrect, rewrite it accurately.

  1. “Gauss’s law is valid only for symmetric charge distributions.”
  2. “If a closed surface has zero net flux, the electric field must be zero everywhere on it.”
  3. “Any charge outside a Gaussian surface contributes nothing to the electric field on that surface.”
  4. “A spherical Gaussian surface always allows the replacement E dA = E(4πr2).”
  5. “In a charge-free region, ∇⋅ E = 0.”
  6. “The integral and differential forms of Gauss’s law describe the same physical law.”

Part II: Complete Worked Solutions

Solution 1: net enclosed charge and total flux

The enclosed charge is the algebraic sum:

Qenc = q1 + q2 + q3 (21)
= (2.0 5.0 + 1.0) nC (22)
= 2.0 nC. (23)

Thus

|----------------------|
-Qenc-=-−-2.0 ×-10-−9C.|
(24)

Gauss’s law gives

ΦE  = Qenc-.
       𝜖0
(25)

Therefore,

ΦE =           −9
−-2.0 ×-10----
8.854 ×  10−12 (26)
≈−2.26 × 102 N m2C. (27)

Hence

|--------------------|
|Φ  ≈  − 226N m2 ∕C. |
--E-------------------
(28)

The negative sign means the net signed flux is inward.

Solution 2: off-center charge inside an arbitrary closed surface

Gauss’s law depends only on enclosed charge:

      -q
ΦE  = 𝜖 .
       0
(29)

Thus

ΦE =   4.0 × 10−9
-----------−12
8.854 × 10 (30)
4.52 × 102 N m2C. (31)

Therefore,

|------------------|
|             2    |
-ΦE-≈--452N-m--∕C.--
(32)

The field magnitude cannot generally be assumed constant on the irregular surface. The field also need not be everywhere normal to the surface. Therefore the total flux is known, but the integral cannot generally be replaced by EA.

Solution 3: external charge and zero enclosed charge

The box encloses no charge:

Q    = 0.
  enc
(33)

Therefore,

|--------------|
|∮             |
|  E  ⋅ dA = 0.|
--S-------------
(34)

This does not imply E = 0. The external charge can produce a nonzero field on the surface. Field entering the box contributes negative flux and field leaving contributes positive flux; the signed contributions cancel over the complete closed surface.

Solution 4: field outside a uniformly charged sphere

Because the charge distribution is spherically symmetric, choose a spherical Gaussian surface of radius r = 0.25 m. Since r > R, the Gaussian surface encloses the full charge:

Qenc = Q.
(35)

Therefore,

E(4πr2 ) = Q-,
           𝜖0
(36)

so

E  = --1--Q-.
     4π 𝜖0r2
(37)

Using

--1--            9    2   2
4π 𝜖 ≈  8.99 × 10 N m  ∕C  ,
    0
(38)

we obtain

E = (8.99 × 109)6.0 × 10− 9
--------2--
  (0.25) (39)
8.63 × 102 N/C. (40)

Hence

|--------------|
|E ≈  863N/C.  |
---------------
(41)

Because Q > 0, the field points radially outward.

Solution 5: field inside a uniformly charged solid sphere

Uniform volume charge density means

ρ =  4Q---.
     3πR3
(42)

The Gaussian sphere of radius r < R encloses only the fraction of charge proportional to its volume:

Qenc = ρ(      )
  4-  3
  3 πr (43)
= Q 3
r--
R3. (44)

With r = 0.050 m and R = 0.10 m,

  3   (      )3
-r- =   0.050-   = 1-.
R3       0.10       8
(45)

Thus

        6.0 nC
Qenc =  --8----= 0.75nC.
(46)

Gauss’s law gives

E  = --1--Qenc.
     4π 𝜖0 r2
(47)

Therefore,

E = (8.99 × 109)0.75-×-10−-9
  (0.050)2 (48)
2.70 × 103 N/C. (49)

Hence

|--------------------|
|E ≈ 2.70 × 103 N/C. |
----------------------
(50)

Equivalently, the inside-sphere formula is

        ---Q---
E (r) = 4π 𝜖0R3 r.
(51)

Solution 6: derive the field of an infinite line charge

Cylindrical symmetry forces the electric field to point radially away from the line and to depend only on perpendicular distance s:

E =  E (s)ˆs.
(52)

Choose a coaxial cylinder of radius s and length L.

On the curved side, the field is parallel to the outward area normal, so

E ⋅ dA =  E dA.
(53)

The curved area is

Aside = 2πsL.
(54)

On the end caps, dA points along ±z while E points radially sideways, so

E ⋅ dA = 0.
(55)

The enclosed charge is

Q    = λL.
  enc
(56)

Thus Gauss’s law becomes

            λL-
E (2πsL ) = 𝜖  .
             0
(57)

Canceling L gives

|--------------|
|E(s) = --λ---.|
--------2-π𝜖0s--
(58)

For λ > 0, the field points radially outward.

Solution 7: numerical infinite line-charge field

Use

     --λ---
E =  2π 𝜖s .
        0
(59)

Substituting,

E =        3.0 × 10− 9
--------------−12--------
2π (8.854 ×  10   )(0.080 ) (60)
6.74 × 102 N/C. (61)

Therefore,

|--------------|
|E ≈  674N/C.  |
---------------
(62)

For positive λ, the field points radially away from the line.

Solution 8: field of an infinite charged sheet

Planar symmetry requires the field to be perpendicular to the sheet and to have the same magnitude on both sides.

Choose a pillbox with two flat caps of area A. On the curved side, the field is tangent to the surface, so

E ⋅ dA = 0.
(63)

Each flat cap contributes

EA.
(64)

Therefore the total flux is

ΦE  = 2EA.
(65)

The enclosed charge is

Qenc = σA.
(66)

Gauss’s law gives

        σA--
2EA  =  𝜖0 .
(67)

Canceling A yields

|-----σ---|
E  = ---. |
-----2𝜖0---
(68)

For σ > 0, the field points away from the sheet on both sides.

Solution 9: two oppositely charged infinite sheets

A single sheet produces magnitude

Esheet = -σ-.
         2𝜖0
(69)

Between the +σ and σ sheets, both fields point from the positive sheet toward the negative sheet, so they add:

Ebetween = -σ-
2𝜖0 + -σ-
2𝜖0 (70)
= σ-
𝜖0. (71)

Thus

|--------------|
|           σ- |
|Ebetween =  𝜖0.|
---------------
(72)

Outside the pair, the two fields point in opposite directions with equal magnitudes, so

|------------|
-Eoutside =-0.|
(73)

Solution 10: choose the useful Gaussian surface

  1. A point charge at the origin has spherical symmetry. Use a sphere centered on the charge.
  2. An infinite straight line charge has cylindrical symmetry. Use a coaxial cylinder.
  3. An infinite uniformly charged plane has planar symmetry. Use a pillbox whose flat faces are parallel to the plane.
  4. Two unequal separated point charges generally possess insufficient symmetry for a simple Gaussian surface to make E constant over the useful parts of the surface. Gauss’s law remains exactly valid, but it does not usually solve directly for E.

The key logic is

|-----------------------------------------------------------------|
charge-symmetry---−→--field-symmetry--−-→-useful-Gaussian--surface.-|
(74)

Solution 11: uniform external field through a closed box

The field is

E  = (500 N/C )ˆx.
(75)

For the right face, the outward normal is +x, so

ΦR =  EA  = (500)(0.030) = 15.0N m2 ∕C.
(76)

Thus

|--------------------|
ΦR  = +15.0  N m2∕C. |
----------------------
(77)

For the left face, the outward normal is x, so

|--------------------|
|ΦL = − 15.0N  m2∕C. |
----------------------
(78)

The other four faces have normals perpendicular to E, so

|------|
|Φ = 0 |
--------
(79)

for each of them.

The complete flux is

Φtotal = 15.0 − 15.0 = 0.
(80)

Therefore,

|----------|
|Φtotal = 0.|
------------
(81)

Gauss’s law then gives

|----------|
|Qenc = 0. |
-----------
(82)

Solution 12: infer charge density from divergence

The field is

E =  axˆx + 2ay ˆy − azˆz.
(83)

Its divergence is

∇⋅ E = ∂(ax-)
 ∂x + ∂(2ay)-
  ∂y + ∂-(− az-)
   ∂z (84)
= a + 2a a (85)
= 2a. (86)

Hence

|------------|
|∇ ⋅ E = 2a. |
-------------
(87)

Differential Gauss law gives

ρ = 𝜖0∇ ⋅ E,
(88)

so

|---------|
ρ-=-2𝜖0a.--
(89)

Solution 13: verify integral and differential Gauss law for a simple field

The field is

E =  ar = axxˆ+  ayˆy + azˆz.
(90)

Its divergence is

∇ ⋅ E = a + a + a = 3a.
(91)

Therefore differential Gauss law gives

|---------|
ρ = 3𝜖0a. |
-----------
(92)

For a sphere of radius R, the enclosed charge is

Qenc = ρ( 4    )
  -πR3
  3 (93)
= (3𝜖0a)(      )
  4-  3
  3πR (94)
= 4π𝜖0aR3. (95)

Thus

|----------------|
-Qenc =-4π𝜖0aR3.--
(96)

On the spherical surface, E = aRr, so the field is radial and constant in magnitude. The flux is

ΦE = E(4πR2) (97)
= (aR)(4πR2) (98)
= 4πaR3. (99)

Therefore,

|-----------3-|
ΦE--=-4πaR--.--
(100)

The right-hand side of Gauss’s law is

Qenc-  4-π𝜖0aR3-        3
 𝜖0  =     𝜖0    =  4πaR  ,
(101)

which matches the direct flux calculation exactly.

Solution 14: Gauss-law synthesis

  1. Incorrect. Gauss’s law is valid for every closed surface and every charge distribution. Symmetry is needed only to simplify the integral enough to solve easily for the field.
  2. Incorrect. Zero net flux does not imply zero field. Positive and negative flux contributions may cancel over the closed surface.
  3. Incorrect. External charges can contribute strongly to the electric field on the surface; they contribute zero net flux through the complete closed surface.
  4. Incorrect. The replacement EdA = E(4πr2) requires spherical field symmetry with constant E and radial alignment over the sphere.
  5. Correct. If ρ = 0, differential Gauss law gives
    ∇ ⋅ E = 0.
    (102)

  6. Correct. The divergence theorem connects the integral and differential forms, so they represent the same physical law at global and local levels.

Common mistakes

  • Using total charge in the problem instead of the charge enclosed by the chosen Gaussian surface.
  • Assuming Gauss’s law itself requires symmetry.
  • Pulling E outside a surface integral without proving that it is constant over that part of the surface.
  • Forgetting that dA points outward on a closed surface.
  • Assuming zero total flux implies zero electric field.
  • Assuming external charges produce no field on a Gaussian surface.
  • Choosing a Gaussian surface first and then assigning symmetry that the physical charge distribution does not possess.

What EM07E reinforces

The universal statement is

|∮-----------------|
|   E ⋅ dA = Qenc-.|
--S------------𝜖0---|
(103)

The useful-symmetry chain is

|------------------------------------------------------------------------------------|
|physical symmetry  −→  field symmetry  − →  Gaussian surface −→  simple  flux integral.|
-------------------------------------------------------------------------------------
(104)

And the local form is

|------------|
|         ρ- |
|∇ ⋅ E =  𝜖0 .|
-------------
(105)

The next lesson, EM08, introduces electric current and current density, moving from static charge toward moving charge, magnetic fields, and eventually electromagnetic radiation.

References

[1]   David J. Griffiths, Introduction to Electrodynamics, 4th ed., Cambridge University Press, 2017.

[2]   Samuel J. Ling, Jeff Sanny, and William Moebs, University Physics, Volume 2, OpenStax, 2016, sections on electric flux and Gauss’s law.

[3]   Edward M. Purcell and David J. Morin, Electricity and Magnetism, 3rd ed., Cambridge University Press, 2013.

[4]   Richard P. Feynman, Robert B. Leighton, and Matthew Sands, The Feynman Lectures on Physics, Volume II, Addison-Wesley, 1964, chapters on electrostatics and Maxwell’s equations.

[5]   Massachusetts Institute of Technology, 8.02 Physics II: Electricity and Magnetism, MIT OpenCourseWare, materials on electric flux and Gauss’s law.

[6]   H. M. Schey, Div, Grad, Curl, and All That, 4th ed., W. W. Norton & Company, 2005.


"Electromagnetic Waves: Gauss's Law - Exercises and Complete Worked Solutions" is owned by bloftin.
(view preamble)
View style:
Other names:  EM07E
Keywords:  Gauss law, electric flux, enclosed charge, Gaussian surface, spherical symmetry, cylindrical symmetry, planar symmetry, line charge, charged sheet, divergence theorem, differential Gauss law, electric field, exercises, worked solutions

This object's parent.

Cross-references: electromagnetic radiation, magnetic fields, static, physical law, theorem, divergence, forces, formula, solid, volume, Electric Field, magnitude, field, algebraic, flux, charge, Gauss's Law, EM07

This is version 1 of Electromagnetic Waves: Gauss's Law - Exercises and Complete Worked Solutions, born on 2026-09-17.
Object id is 1222, canonical name is ElectromagneticWavesGausssLawExercisesAndCompleteWorkedSolutions.
Accessed 3 times total.

Classification:
Physics Classification41.20.Cv (Electrostatics; Poisson and Laplace equations, boundary-value)
 03.50.De (Classical electromagnetism, Maxwell equations )
 02.30.Em (Potential theory)
 41.20.-q (Applied classical electromagnetism)
Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:

No messages.

Interact
rate | post | correct | update request | add example | add (any)