Jump to content

Year 1 Sem 2/LC Electromagnetism I/Lecture 04

From Ash's Lecture Notes

Lecture 4: Electrostatics IV: Gauss' Law Examples
Thu 29 Jan 2026 11:00

← Previous lecture · Module · Next lecture →

Solid Sphere with Non-Uniform Charge

What if we have a solid sphere with distributed charge where the charge distribution is a function of radius?

$$\rho(r) = \rho_0 r$$

Where $r_0$ is a constant (note: does not have dimensions of charge density).

We now have:

$$Q_\text{enclosed} = \int_0^r \rho(r) dV$$

Hence:

$$\int_{S} \underline{E} \cdot d \underline{S} = \frac{1}{\epsilon_0} \int_0^r \rho(r) dV$$

We divide the sphere into thin shells of infinitesimal thickness $\delta r$. The volume of each shell is:

$$\delta V = 4 \pi r^2 \delta r$$

Hence:

$$Q_\text{enclosed} = \int_{0}^{r} \rho(r) \, dV = \int_{0}^{r} \rho_0 r 4 \pi r^2 \, dr$$
$$= 4 \pi \rho_0 \int_{0}^{r} r^3 \, dr = \pi \rho_0 r^4$$

Using Gauss’ law:

$$\int_S \underline{E} \cdot d \underline{S} = \frac{\pi \rho_0 r^4}{\epsilon_0}$$

Considering the LHS and using symmetry:

$$\int_S \underline{E} \cdot d \underline{S} = \int_S E dS = E \int_S dS = E 4 \pi r^2$$

Hence:

$$4 \pi E r^2 = \frac{\pi \rho_0 r^4}{\epsilon_0}$$
$$\implies E = \frac{\rho_0 r^2}{4 \epsilon_0}$$

E-Field Inside Uniform Charged Shell

We’ve already done this with solid angles, but it becomes much easier with Gauss’ law. Since the Gauss surface sits inside the shell, none of the charged distributed across the shell is inside the surface. Therefore, $Q_\text{enclosed} = 0 \implies E = 0$

E-Fields in Conductors

A simple model of a conductor is where each atom has a free valance electron which is free to move throughout the conductor, in vast quantities.

If you place a conductive box inside a conductor, the electrons want to travel against the field. This leaves a positively charged nuclei, which drift in the opposite direction.

This causes the outside of the metal box to pick up a small charge, creating its own electric field which opposes the initial field. This continues until it perfectly cancels out the initial field, leaving no resultant field inside a conductor.

This is called a “Faraday Cage” and can be used to shield the interior of the conducting box from the E-field, i.e. to protect sensitive electronics.

Infinite Charged Sheet

Non-Conducting Sheet

Consider an infinitely large plane of surface charge density $\sigma$. As the sheet is infinitely large, there’s no edge effects and the E-field exists exclusively $\perp$ to the surface of the sheet.

We can therefore take a cylindrical Gauss surface, and the only E-field will exist normally to the end circular faces (of cross-sectional area $A$). Hence, $\underline{E}$ and $d \underline{S}$ are parallel, and:

$$\int_S \underline{E} \cdot d \underline{S} = E \int_S dS$$

So:

$$E \int_S dS = \frac{Q_\text{enclosed}}{\epsilon_0}$$
$$E \left(2A\right) = \frac{\sigma A}{\epsilon_0}$$
$$\implies E = \frac{\sigma}{2 \epsilon_0}$$

As previously derived! Again, this works for a finite plane where the plane is much larger (relatively) than the distance from the plane, so edge effects cn be disregarded.

Conducting Sheet

As the sheet is now conducting, there is no E-field inside the conductor, and charge is distributed to build up a charge density ($\sigma$) on both surfaces of the sheet.

Applying Gauss’ law gives:

$$EA = \frac{\sigma A}{\epsilon_0}$$
$$\implies E = \frac{\sigma}{\epsilon_0}$$

Which is a factor of two different from the non-conducting case. Note that this doesn’t arise because we only took a Gauss surface on one side. If we took a Gauss surface through the sheet (in the same manner as the non-conducting case), we would have two sets of charge distributed, one on each side, both with charge density $\sigma$. We would therefore have:

$$E (2A) = \frac{2 \sigma A}{\epsilon_0}$$

Which yields the same result.

E-Field Between Charged Conducting Plates

Consider a capacitor-like setup with two parallel charged metal plates.

While a full derivation will be covered later, the E-field given by this is the same as for an infinite sheet:

$$E = \frac{\sigma}{\epsilon_0}$$

Infinite Line of Charge

Consider an infinitely long line charge, of charge density $\lambda$. As its infinitely long, there’s no edge effects and the electric field must be radial.

We can place a cylindrical Gaussian surface where the axis is parallel to the line, of length $L$ and radius $r$.

Since the field is radial, it acts in the same direction as the normal vector to the cylinder surface. By symmetry, the E-field is constant for fixed radius, so:

$$\int_S \underline{E} \cdot d \underline{S} = E \int_S dS = E (2 \pi r L)$$
$$\frac{Q_\text{enclosed}}{\epsilon_0} = \frac{\lambda L}{\epsilon_0}$$

Hence:

$$E(2 \pi r L) = \frac{\lambda L}{\epsilon_0}$$
$$E = \frac{\lambda}{2 \pi \epsilon_0 r}$$

No Contained Charge

What if the Gaussian surface sits within an E-field, but the charged creating the field is not enclosed in the surface?

This could be thought of as implying by Gauss’ law that:

$$\oint \underline{E} \cdot d \underline{S} = O$$
$$\implies E = 0 ?$$

But this is not the case. Here, the symmetry that we’ve relied upon isn’t here, as $E \not\parallel dS$ and is not constant around the surface. Hence, we can’t nicely simplify the problem and the first integral becomes unsolvable (by us).

If the charge falls outside of the Gauss surface, the net flux through the surface is zero.


← Previous lecture · Module · Next lecture →