Book a session
Home / Free resources / Gauss's law, fully solved
Worked problem · AP Physics C: E&M

Gauss's law, fully solved

The field inside and outside a uniformly charged insulating sphere, plus what changes when you wrap it in a conducting shell. It's written out step by step, the way we'd work it live.

Check it in the simulation

The problem

A solid insulating sphere of radius R carries a total charge +Q, spread uniformly through its volume.

(a) Find the electric field at a distance r > R from the centre.
(b) Find the field at r < R.
(c) Sketch E as a function of r.
(d) For Q = 4.0 nC and R = 5.0 cm, calculate E at 2.5 cm, 5.0 cm and 10 cm.
(e) The sphere is now placed at the centre of a neutral, conducting spherical shell with inner radius 2R and outer radius 3R. Find the charge on each surface of the shell and the field in every region.

Step 1: Choose the Gaussian surface

Gauss's law is true for any closed surface:

∮ E · dA = Qencε₀

It is only useful, though, when we can pull E out of the integral. That needs a surface where:

  1. E has the same magnitude at every point, and
  2. E is parallel to dA (perpendicular to the surface) everywhere.

The charge is spherically symmetric, so the field must point radially, and its size can depend only on r. A concentric sphere of radius r meets both conditions. On that sphere:

∮ E · dA = E ∮ dA = E(4πr²)

This left-hand side is the same in every part. The only thing that changes from part to part is Qenc.

r (a) r > R: encloses all of Q r R (b) r < R: encloses only part of Q
Dashed blue: the Gaussian sphere. Copper: the charged insulating sphere.

Part (a): Outside the sphere (r > R)

The Gaussian sphere encloses all of the charge, so Qenc = Q:

E(4πr²) = Qε₀  ⟹  E = Q4πε₀r² = kQr²
Answer (a): E = kQ/r², directed radially outward. From outside, the sphere looks exactly like a point charge at its centre.

Part (b): Inside the sphere (r < R)

Now the Gaussian sphere encloses only part of the charge. Because the charge is uniform, use the volume charge density:

ρ = Q43πR³

The charge enclosed is ρ times the volume of the Gaussian sphere:

Qenc = ρ · 43πr³ = Q r³R³

Put this into Gauss's law:

E(4πr²) = Q r³ε₀R³  ⟹  E = Q r4πε₀R³ = kQR³ r
Answer (b): E = kQr/R³, radially outward. Inside, the field grows linearly with r.

Check: at r = R both answers give kQ/R². The field is continuous at the surface, as it should be for a volume charge with no surface layer.

Part (c): Graph of E(r)

rE R kQ/R² E ∝ r E ∝ 1/r²
E is zero at the centre, rises linearly to a maximum at the surface, then falls off as 1/r².

Part (d): Put in numbers

With Q = 4.0 × 10⁻⁹ C, R = 0.050 m and k = 8.99 × 10⁹ N·m²/C²:

r = 2.5 cm (inside):   E = (8.99×10⁹)(4.0×10⁻⁹)(0.025)(0.050)³ ≈ 7.2 × 10³ N/C
r = 5.0 cm (surface):   E = (8.99×10⁹)(4.0×10⁻⁹)(0.050)² ≈ 1.4 × 10⁴ N/C
r = 10 cm (outside):   E = (8.99×10⁹)(4.0×10⁻⁹)(0.10)² ≈ 3.6 × 10³ N/C

Notice the pattern: halfway in (r = R/2), E is half its surface value, because it's linear. Twice as far out (r = 2R), E is a quarter of it, because it's inverse-square.

Part (e): Add a neutral conducting shell

Now surround the sphere with a neutral conducting shell, with inner radius 2R and outer radius 3R. Work through it region by region, always with a concentric Gaussian sphere.

Inside the metal (2R < r < 3R)

In electrostatic equilibrium, E = 0 inside a conductor. So a Gaussian sphere drawn inside the metal must enclose zero net charge:

Qenc = Q + qinner = 0  ⟹  qinner = −Q

The shell is neutral overall, so whatever isn't on the inner surface must be on the outer one:

qinner + qouter = 0  ⟹  qouter = +Q

The field in every region

  • r < R: E = kQr/R³. The shell doesn't change Qenc here.
  • R < r < 2R (the gap): E = kQ/r².
  • 2R < r < 3R (in the metal): E = 0.
  • r > 3R: Qenc = Q − Q + Q = Q, so E = kQ/r² again.
Answer (e): The inner surface carries −Q and the outer surface carries +Q. The field is zero only inside the metal, and the shell does not shield the outside world from Q.
Try it yourself: numbers for part (e)

Using Q = 4.0 nC and R = 5.0 cm, find E at r = 7.5 cm, 12 cm and 20 cm. Then open the answers.

r = 7.5 cm (gap): E = kQ/r² ≈ 6.4 × 10³ N/C
r = 12 cm (in the metal): E = 0
r = 20 cm (outside): E = kQ/r² ≈ 9.0 × 10² N/C

Common mistakes

  • Using Q instead of Qenc inside the sphere. Only the charge inside your Gaussian surface counts.
  • Confusing an insulator with a conductor. A charged conducting sphere has E = 0 inside, because all its charge is on the surface. A uniformly charged insulating sphere has E ∝ r inside.
  • Using r in place of R (or the reverse) in ρ. The density uses the sphere's radius R; the enclosed volume uses the Gaussian radius r.
  • Thinking the shell "blocks" the field. Outside a neutral shell the field is unchanged. Only grounding the shell would remove it.

See it move: open the Gauss's Law Explorer and choose "Uniformly charged solid sphere", then "Point charge inside a neutral conducting shell". Drag r and watch Qenc and the E(r) graph change.