Gauss’s Law and Electric Fields


Gauss’s Law and Electric Fields

Maria
Welcome to PHYS 30141, Electromagnetic Radiation, video three. We’re revisiting some electromagnetism that you’ve met before, then using it to build up the idea of electromagnetic potentials.

Simon
Let’s begin with Gauss’s law. Whether charges are discrete or described by a charge density spread through a volume, the total electric flux through a closed surface is related to the total charge inside it.

Maria
And in differential form, Gauss’s law says that the divergence of the electric field is proportional to the local charge density: ∇·E = ρ/ε₀. You can think of that as saying electric charges are sources or sinks of electric field lines.

Simon
The magnetic version is different because, as the video emphasizes, there is no such thing as magnetic charge. The magnetic flux through any closed surface is zero, and locally that becomes ∇·B = 0. Magnetic field lines don’t begin or end at magnetic charges.

Maria
The other two Maxwell equations connect electric and magnetic fields. Faraday’s law says that a changing magnetic field produces a curl in the electric field: its time variation is linked to ∇×E.

Simon
Ampere’s law links a changing electric field and current to the curl of the magnetic field. In a steady-current situation, the current density contributes to that curl, so a current produces a magnetic field that circulates around the current’s direction.

Maria
There’s no corresponding magnetic-current term in Faraday’s law, because the theory here has no magnetic charges and therefore no magnetic currents. It’s useful to keep track of the source quantities: ρ(r), the charge density, is measured in coulombs per cubic metre, while j(r), the current density, is measured in amperes per square metre.

Simon
And the fields E and B are the measurable quantities we ultimately care about. Potentials will be a mathematical way to describe and calculate those fields; they aren’t a replacement for the physical fields.

Maria
Before introducing potentials, we need charge conservation. If we integrate the charge density over a volume V, we get the total charge Q inside it. If current flows out through the surface S bounding that volume, the charge inside must decrease.

Simon
So the rate of change of charge in the volume equals minus the outward current through its boundary. The minus sign matters: outward current means charge is leaving the volume.

Maria
Using the divergence theorem, we can turn the surface integral of current into a volume integral of ∇·j. Since the volume can be chosen arbitrarily, the relationship must hold locally at every point: ∂ρ/∂t + ∇·j = 0.

Simon
That local equation is the continuity equation. It says that charge density can change at a point because current flows into or out of that region—not because charge is created or destroyed.

Maria
Now let’s first consider the electrostatic case. If the magnetic field isn’t changing with time, Faraday’s law gives ∇×E = 0. A curl-free electric field can be written in terms of a scalar potential: E = −∇φ.

Simon
One consequence is path independence. The potential difference between two points A and B is the same whichever path you take between them. That lets us define a unique potential difference between those locations.

Maria
To assign a potential at a single point, we also need a reference value. A common convention is to set φ equal to zero at infinity, which then lets us state the potential at another location relative to that reference.

Simon
Putting E = −∇φ into Gauss’s law gives Poisson’s equation: ∇²φ = −ρ/ε₀. In other words, the charge density acts as the source that determines the electrostatic potential.

Maria
For example, a point charge at the origin determines a potential at a position r. More generally, we can add up the contributions from charges throughout a distribution to find the potential at an observation point.

Simon
Could we do the same thing for magnetism and write B as the gradient of a scalar magnetic potential?

Maria
Not in the general steady-current case. Ampere’s law says that a static current can produce a nonzero curl of B. But a field written as the gradient of a scalar has zero curl, so that simple scalar-potential approach conflicts with the magnetic field produced by currents.

Simon
Instead, we use a vector potential A and define B = ∇×A. That definition automatically gives ∇·B = 0, because the divergence of a curl is always zero.

Maria
For steady currents, substitute B = ∇×A into Ampere’s law. The vector identity ∇×(∇×A) = ∇(∇·A) − ∇²A then lets us rewrite the equation in terms of A.

Simon
We can choose ∇·A = 0, which simplifies the equation to a Poisson-type equation for the vector potential: ∇²A = −μ₀j. This is a gauge choice; it makes the calculation simpler without changing B.

Maria
It’s helpful to compare that with the electrostatic equation. Charge density determines the scalar potential φ, while current density determines the vector potential A. The vector equation represents three component equations: for example, the x-component of current contributes to Aₓ.

Simon
For a whole distribution of steady currents, we add up the contributions from positions r′ across the volume. In the usual free-space expression, A(r) is μ₀ divided by 4π times the integral of j(r′) over distance |r − r′|.

Maria
Once we’ve found A, we take its curl to get B. That route is equivalent to obtaining the magnetic field directly from the Biot–Savart law, which describes how a piece of current contributes a magnetic field oriented at right angles to the current flow.

Simon
The gauge choice deserves one more reminder: A can be changed in ways that leave its curl, and therefore B, unchanged. Choosing ∇·A = 0 is a convenient convention, much like choosing the electrostatic potential to be zero at infinity.

Maria
So far, we’ve assumed static fields. In the dynamic case, the magnetic field can vary with time, and Faraday’s law then says ∇×E is generally not zero. We can’t describe the entire electric field using just the gradient of a static scalar potential.

Simon
But we can still write B = ∇×A. Substitute that into Faraday’s law and rearrange, and we find that E + ∂A/∂t has zero curl. That combination can therefore be expressed as the gradient of a new, time-dependent scalar potential, called Φ.

Maria
With the usual sign convention, the result is E = −∇Φ − ∂A/∂t. The electric field now depends on both the dynamic scalar potential and the time variation of the vector potential.

Simon
There’s also freedom to change the potentials without changing the fields. For any scalar function g, we can change A to A + ∇g and change Φ to Φ − ∂g/∂t; the resulting E and B remain the same.

Maria
That freedom is called gauge freedom. One useful choice is the Lorenz gauge, which relates the divergence of A to the time variation of Φ. In SI units it can be written as ∇·A + (1/c²)∂Φ/∂t = 0.

Simon
With that gauge choice, Maxwell’s equations give inhomogeneous wave equations for the potentials. The scalar potential is sourced by charge density ρ, and the vector potential is sourced by current density j; both sources can vary with position and time.

Maria
That’s the payoff: instead of keeping the electric and magnetic fields coupled together in every calculation, the potential equations separate into one equation for Φ and one for A. Charges determine Φ, currents determine A, and then the potentials give us the measurable fields.

Simon
Whether we use the static or dynamic potentials, the physical check is the same: our choices and calculations must leave E and B unchanged. The potentials are powerful tools for finding those fields, and the gauge is a convention that helps us use the tools effectively.

Ask anything
We've read this whole study set, so questions about it get the best answers.