IB Electromagnetism

Charges and currents open_in_new

Electric charge is an elementary property, with unit the coulomb $\mathrm{C}$.

On a macroscopic scale, we have a continuous charge density $ρ(\v x, t)$, calculated by integrating the total charge over a small volume but large enough to contain a large number of charges.

Total charge in a volume $V$ is $$ \begin{align*} Q = \int_{V} ρ \d V. \end{align*} $$

Electric current density $\v J(\v x,t)$ is the flux of charge per unit area.

The current flowing through a surface $S$ is $$ \begin{align*} I = \int_{S} \v J\cdot \d \v S. \end{align*} $$ Its unit is the ampere $\mathrm{A} = \mathrm{C}\ \mathrm{s}\inv$.

Discrete charge distributions open_in_new

For $N$ particles, each of charge $q_i$ at position $\v x_i(t)$, the charge distribution is $$ \begin{align*} ρ(\v x, t) ={}& \sum_{i=1}^{N} q_i\, δ(\v x - \v x_i(t)), \\ \v J(\v x, t) ={}& \sum_{i=1}^{N} q_i\, \dv x_i\, δ(\v x - \v x_i(t)). \end{align*} $$

Charge conservation open_in_new

Electric charges are conserved. The equation of charge conservation is $$ \begin{align*} \pdfd{ρ}{t} + ∇\cdot \v J = 0. \end{align*} $$ (Derivation)

Lorentz force open_in_new

Charged particles interact by generating electric fields $\v E(\v x, t)$ and magnetic fields $\v B(\v x, t)$ around them that are experienced by other charged particles.

The Lorentz force on a particle of charge $q$ and velocity $\v v$ is $$ \begin{align*} \v F = q(\v E + \v v\times \v B). \end{align*} $$ For a continuous charge and current densities, the Lorentz force per unit volume is $$ \begin{align*} ρ \v E + \v J \times \v B. \end{align*} $$

Maxwell's equations open_in_new

The electric and magnetic fields in vacuum are governed by Maxwell's equations: $$ \begin{align*} ∇\cdot \v E ={}& \frac{ρ}{ε_0}, \tag{M1}\\ ∇\cdot \v B ={}& 0, \tag{M2} \\ ∇\times \v E ={}& -\pdfd{\v B}{t}, \tag{M3} \\ ∇\times \v B ={}& μ_0\left(\v J + ε_0 \pdfd{\v E}{t}\right), \tag{M4} \end{align*} $$ where $ε_0$ is the vacuum permittivity and $μ_0$ is the vacuum permeability.

  • They agree with each other: $∇\cdot (∇\times \v E) = 0 = -\pdd{t}(∇\cdot \v B)$.

  • They agree with charge conservation. (Derivation) In particular the displacement current $ε_0 \pdfd{\v E}{t}$ is required.

  • For a time-independent solution, Maxwell's equations become $$ \begin{align*} ∇\cdot \v E = \frac{ρ}{ε_0}, \tag{M1} \\ ∇\cdot \v B = 0, \tag{M2} \\ ∇\times \v E = \v 0, \tag{M3'} \\ ∇\times \v B = μ_0 \v J. \tag{M4'} \end{align*} $$ Now $\v E$ and $\v B$ are decoupled, so we can study them independently, in electrostatics and magnetostatics.

Scalar and vector potentials open_in_new

By (M2), there exists a magnetic vector potential $\v A(\v x, t)$ satisfying $$ \begin{align*} \v B = ∇ \times \v A. \end{align*} $$ Then (M3) implies there is an electric scalar potential $Φ(\v x, t)$ satisfying $$ \begin{align*} \v E = -∇Φ - \pdfd{\v A}{t}. \end{align*} $$

We can undergo a gauge transformation $$ \begin{align*} \tilde{\v A} = \v A + ∇χ, \qquad \tilde Φ = Φ - \pdfd{χ}{t} \end{align*} $$ for any time-dependent scalar field $χ(\v x,t)$ without changing $\v E$ and $\v B$.

Electrostatics open_in_new

Electrostatics studies the electric field generated by a stationary charge distribution.

Gauss's law open_in_new

For a volume $V$ with boundary $S = \partial V$, Gauss's law states that $$ \begin{align*} \oint_S \v E\cdot \d \v S = \frac{Q}{ε_0} \end{align*} $$ where $Q = \int_{V} ρ \d V$ is the total charge enclosed. This is obtained from (M1) and divergence theorem.

Spherically symmetric charge distribution open_in_new

For a spherically symmetric charge distribution $ρ(r)$ contained within $r\leq R$ (in spherical polars), $$ \begin{align*} \v E(r) = \frac{Q}{4πε_0 r^2}, \qquad r>R. \end{align*} $$ (Derivation)

In the limit $R\to 0$, we have a point charge $Q$, corresponding to $$ \begin{align*} ρ(\v x) = Q\, δ(\v x). \end{align*} $$

The Coulomb force is the corresponding Lorentz force. $$ \begin{align*} \v F =q\v E = \frac{Qq}{4πε_0 r^2} \v e_r, \end{align*} $$ similar to gravity, but it can be both repulsive and attractive, and is much stronger.

Cylindrically symmetric charge distribution open_in_new

For a cylindrically symmetric charge distribution $ρ(r)$ contained within $r\leq R$ (in cylindrical polars), $$ \begin{align*} \v E(r) = \frac{λ}{2πε_0 r}, \qquad r>R, \end{align*} $$ where $λ$ is the charge per unit length. (Derivation)

In the limit $R\to 0$, we have a line charge $λ$, corresponding to $$ \begin{align*} ρ(\v x) = λ\,δ(x)\,δ(y). \end{align*} $$

Planar symmetric charge distribution open_in_new

Consider a planar charge distribution $ρ(z)$ (in Cartesian coordinates), contained within $-d<z<d$. Further assume reflectional symmetry $ρ(z) = ρ(-z)$. Then $$ \begin{align*} \v E(z) = \sign(z) \frac{σ}{2ε_0} \v e_z, \end{align*} $$ where $σ$ is the charge per unit area. (Derivation)

In the limit $d\to 0$, we have a surface charge $σ$, corresponding to $$ \begin{align*} ρ = σ\, δ(z). \end{align*} $$

Surface charge open_in_new

At any point on a charged surface, let $\v n$ be the unit normal vector, pointing from region 1 to 2.

The normal and tangential components of the electric fields have discontinuities $$ \begin{align*} [\v n\cdot \v E] ={}& \frac{σ}{ε_0}, \\ [\v n \times \v E] ={}& 0, \end{align*} $$ where $[X] = X_2 - X_1$. (Derivation)

Electrostatic potential open_in_new

By $∇\times \v E = 0$, now the electrostatic potential $\v Φ$ satisfies $$ \begin{align*} \v E = -∇Φ \end{align*} $$

The potential difference or voltage between two points $\v x_1$ and $\v x_2$ is $$ \begin{align*} Φ(\v x_2)-Φ(\v x_1) = \int_{\v x_1}^{\v x_2} \d Φ = -\int_{\v x_1}^{\v x_2} \v E(\v x) \cdot \d \v x \end{align*} $$ independent of path.

Adding an arbitrary constant to $Φ$ has no physical effect. We usually choose $Φ\to 0$ as $|\v x|\to\infty$, but this is only possible if $ρ(\v x)$ decays sufficiently rapidly. E.g. for a line charge, $Φ(r)\propto \ln r$.

(M1) implies $Φ$ satisfies the Poisson equation $$ \begin{align*} -∇^2Φ = \frac{ρ}{ε_0}, \end{align*} $$ which has an integral solution (assuming $Φ\to 0$ as $|\v x|\to \infty$) $$ \begin{align*} Φ(\v x) = \frac{1}{4πε_0} \int_{\R^3} \frac{ρ(\v x')}{|\v x'-\v x|} \d ^3\v x'. \end{align*} $$

This is the convolution of $ρ(\v x)$ with potential of a unit point charge at the origin $$ \begin{align*} Φ(\v x) = \frac{1}{4πε_0 |\v x|} \qquad \text{solving } {-∇^2Φ} = \frac{δ(\v x)}{ε_0}. \end{align*} $$

Electric dipole open_in_new

Let $\v d$ to be the vector from a $-q$ charge to a $+q$ charge. Define the dipole moment as $$ \begin{align*} \v p = q\v d. \end{align*} $$

Force on electric dipole open_in_new

Torque $$ \begin{align*} \v G = \v d\times(q\v E) = \v p\times \v E. \end{align*} $$

Force $$ \begin{align*} \v F = q\v E(\v r + \v d) - q\v E(\v r) \approx q(\v d\cdot\nabla)\v E = (\v p\cdot\nabla)\v E. \end{align*} $$

Potential and field due to electric dipole open_in_new

For $|\v x|\gg|\v d|$, the electric potential and field due to the dipole is $$ \begin{align*} \Phi(\v x) &= \frac{\v p\cdot \v x}{4\pi\epsilon_0 |\v x|^3} &&= \frac{p\cos\theta}{4\pi\epsilon_0 r^2}, \\ \v E(\v r) &= \frac{3(\v p\cdot \v x)\v x - |\v x|^2 \v p}{4πε_0 |\v x|^5} &&= \frac{p\cos\theta}{2\pi\epsilon_0 r^3}\vhat r + \frac{p\sin\theta}{4\pi\epsilon_0 r^3}\vhat\theta \end{align*} $$ where $\theta$ is the angle between $\v x$ and $\v p$. (Derivation) Note that $\Phi\propto 1/r^2, E\propto 1/r^3$.

Therefore on axis ($\theta = 0$), $$ \begin{align*} E(r) &= \frac{p}{2\pi\epsilon_0 r^3} \text{ parallel to axis} \end{align*} $$ and off axis ($\theta = \pi/2$), $$ \begin{align*} E(r) &= \frac{p}{4\pi\epsilon_0 r^3} \text{ anti-parallel to axis}. \end{align*} $$

A point dipole $\v p$ at the origin correspond to $$ \begin{align*} ρ(\v x) = -\v p\cdot ∇δ(\v x) \end{align*} $$ so by linearity of Poisson's equation, $$ \begin{align*} Φ(\v x) = -\v p\cdot ∇\left(\frac{1}{4πε_0 |\v x|}\right). \end{align*} $$

In atoms and molecules, external electric fields causes polarisation and induces $\v p\propto \v E_\text{ext}$. This gives long-range forces between them:

  • Dipole-dipole: dipoles line up

  • Dipole-induced dipole

  • Fluctuating dipoles: dipoles synchronise and fluctuate in the same direction.

Multipole expansion for electric potentials open_in_new

For a general charge distribution $ρ(\v x)$ contained within $V = \sb{\v x}{|\v x|<R}$, the potential is, at large $|\v x|\gg R$, $$ \begin{align*} Φ(\v x) = \frac{1}{4πε_0}\left(\frac{Q}{|\v x|} + \frac{\v p\cdot \v x}{|\v x|^3} + \frac{1}{2} \frac{Q_{ij} x_i x_j}{|\v x|^5} + \ldots\right) \end{align*} $$ where the first three multipole moments are

  • total charge (electric monopole moment, scalar) $$ \begin{align*} Q = \int_{V} ρ(\v x) \d^3 \v x, \end{align*} $$

  • electric dipole moment (vector) $$ \begin{align*} \v p = \int_{V} \v x\,ρ(\v x) \d^3 \v x, \end{align*} $$

  • electric quadruple moment (traceless second-order symmetric tensor) $$ \begin{align*} Q_{ij} = \int_{V} (3x_i x_j - |\v x|^2 δ_{ij})\,ρ(\v x) \d^3 \v x. \end{align*} $$

(Derivation)

Electrostatic energy open_in_new

The work done against the electric force $\v F = q\v E$ in bringing a particle of charge $q$ from infinity (where $Φ = 0$) to $\v x$ is $$ \begin{align*} W = -\int_{\infty}^{\v x} \v F\cdot \d \v x = q \int_{\infty}^{\v x} ∇Φ\cdot \d \v x = q\, Φ(\v x). \end{align*} $$

The total work done to assemble a configuration of $N$ charges is $$ \begin{align*} U = \frac{1}{2} \sum_{i=1}^{N} \sum_{\substack{j=1\\j\neq i}}^{N} \frac{q_i q_j}{4πε_0 |\v x_j - \v x_i|}. \end{align*} $$ For a continuous charge distribution, occupying a finite volume $V$, $$ \begin{align*} U = \frac{1}{2}\int_{V} ρ Φ \d V = \int_{\R^3} \frac{1}{2}ε_0 |\v E|^2\d^3 \v x. \end{align*} $$ (Derivation)

We can interpret this as the energy stored in the electric field.

Our expressions for $U$ suggest the self-energy of a point charge is infinite. Discard this as it is unchanging and causes no force.

Conductors open_in_new

Charges can move freely on conductors. Therefore in steady state, $\v E = \v 0$ inside conductor, $\v E\perp$ surface, and so $\Phi$ is constant everywhere on the conductor. Otherwise free charges would move in response to the electric force and a current would flow.

Charges redistribute to stay away from each other, so they go to the surface. Therefore external electric fields induce charges on the surface. If there is charges inside, taking a Gaussian surface around that charge gives $\v E\neq 0$, which is impossible.

Inside a hollow conductor, using a Gaussian surface containing the cavity, we get that the net charge is zero. If there is unbalanced charges, there will be field lines so there is potential difference. But the inside surface is equipotential, so there can't be any charges and $\v E = 0$.

A surface charge of $\sigma$ gives a electric field immediately outside the surface $$ \begin{align*} \v E = \frac{\sigma}{\epsilon_0} \vhat n. \end{align*} $$

Capacitor open_in_new

For two parallel conducting plates with charges $+Q$ and $-Q$, the potential between them satisfies $$ \begin{align*} Q = CV \end{align*} $$ where $C$ is the capacitance, with unit farad $\mathrm{F} = \mathrm{C\ V\inv}$.

  • Parallel plate capacitor with area $A$ and separation $d$ $$ \begin{align*} C = \frac{A\epsilon_0}{d} \end{align*} $$

  • Spherical conductor with radius $a$ (the other charges are distributed infinitely far away) $$ \begin{align*} C = 4\pi\epsilon_0 a \end{align*} $$

  • Cylindrical capacitor with length $l$, inner radius $a$, outer radius $b$ $$ \begin{align*} \frac{C}{l} = \frac{2\pi\epsilon_0}{\ln(b/a)}. \end{align*} $$

Energy of capacitor open_in_new

Energy stored in the capacitor = work done to charge up the capacitor $$ \begin{align*} W = \int_{0}^{Q} \frac{q}{C}\, dq = \frac{1}{2}\frac{Q^2}{C} = \frac{1}{2}QV = \frac{1}{2}CV^2. \end{align*} $$

This can also be thought of energy stored in the electric field $$ \begin{align*} U = \frac{1}{2}\int ρΦ \d V = \frac{1}{2}(+Q)Φ_+ + \frac{1}{2}(-Q)Φ_- = \frac{1}{2}QV. \end{align*} $$

This is the stress (pressure) on the plates caused by the field (e.g. from direct calculation or using virtual work argument by pulling apart the plates).

Magnetostatics open_in_new

Magnetostatics studies magnetic field generated by a stationary current distribution.

Charge conservation in magnetostatics open_in_new

Charge conservation now means $$ \begin{align*} ∇\cdot \v J = 0, \end{align*} $$ implied by (M4').

Ampere's law open_in_new

For any open surface $S$ with the boundary $C = \partial S$ a closed curve, (M4') and Stokes' theorem implies $$ \begin{align*} \oint_{C} \v B\cdot \d \v x = μ_0 I \end{align*} $$ where $I = \int_{S} \v J\cdot \d \v S$ is the total current through $S$. The sign convention follows the right-hand rule.

Since $∇\cdot \v J = 0$, $I$ is the same through any open surface $S$ with the same boundary $C$.

By $∇\times \v B = μ_0 \v J$, cylindrically symmetric situation could involve a combination of (in cylindrical polars)

  • an axial current $J_z(r) \, \v e_z$, linearly related to an azimuthal magnetic field $B_ϕ(r)\, \v e_ϕ$; and

  • an azimuthal current $J_ϕ(r) \, \v e_ϕ$, linearly related to an axial magnetic field $B_z(r)\, \v e_z$,

  • but not a radial component since $∇\cdot \v J=0$ and $∇\cdot \v B = 0$.

Magnetic field due to long straight wire open_in_new

For a long cylindrical wire of radius $R$ carrying a total current $I$ parallel to its axis, the magnetic field outside $r>R$ is $$ \begin{align*} \v B = \frac{μ_0 I}{2πr} \v e_ϕ. \end{align*} $$ (Derivation)

Magnetic field due to solenoid open_in_new

A solenoid is a thin wire coiled around a cylindrical tube of radius $R$. An ideal solenoid is infinitely long and tightly wound, having cylindrical symmetry and purely azimuthal current.

It produces a magnetic field of $$ \begin{align*} \v B ={}& \begin{cases} \v 0, &r>R, \\ μ_0 IN, &r<R \end{cases} \end{align*} $$ where $N$ is the number of turns per unit length and $I$ is the current.

(Derivation)

At the end of a long solenoid, field is halved: consider joining two ends together.

Surface current open_in_new

At any point on a conducting surface, let $\v n$ be the unit normal vector, pointing from region 1 to 2.

A surface current $\v K$ (current per unit length), e.g. of the form $J_ϕ(r) = K_ϕ δ(r-R)$ in a solenoid, results in discontinuity in the magnetic field $$ \begin{align*} [\v n \times \v B] ={}& μ_0 \v K, \\ [\v n\cdot \v B] ={}& 0. \end{align*} $$

(Derivation)

Vector potential in magnetostatics open_in_new

Coulomb gauge open_in_new

We can always assume the Coulomb gauge $$ \begin{align*} ∇\cdot \v A = 0 \end{align*} $$ for the magnetic vector potential $\v A$ by making a gauge transformation $\v A = \tilde {\v A} + ∇χ$ with $χ$ the solution of the Poisson equation $-∇^2χ = ∇\cdot \tilde {\v A}$.

Then using the identity $∇\times (∇\times \v A) = ∇(∇\cdot \v A) - ∇^2 \v A$, (M4') becomes the Poisson equation $$ \begin{align*} -∇^2 \v A = μ_0 \v J. \end{align*} $$

Biot-Savart law open_in_new

The solution to the Poisson equation governing $\v A$ is (assuming $\v A \to \v 0$ as $|\v x|\to \infty$) $$ \begin{align*} \v A(\v x) = \frac{μ_0}{4π} \int_{\R^3} \frac{\v J(\v x')}{|\v x-\v x'|} \d^3 \v x', \end{align*} $$ which satisfies the Coulomb gauge condition (Derivation).

The magnetic field is given by the Biot-Savart law $$ \begin{align*} \v B(\v x) = \frac{μ_0}{4π} \int_{\R^3} \frac{\v J(\v x')\times (\v x - \v x')}{|\v x - \v x'|^3} \d^3 \v x'. \end{align*} $$

Magnetic dipoles open_in_new

Consider a general current distribution $\v J(\v x)$ confined to a ball $V = \sb{\v x}{|\v x|<R}$.

Magnetic field due to magnetic dipole open_in_new

The leading approximation for the vector potential and magnetic field for $|\v x|\gg R$ is $$ \begin{align*} \v A(\v x) &\approx \v A_\text{dipole}(\v x) = \frac{μ_0}{4π} \frac{\v m\times \v x}{|\v x|^3}, \\ \v B(\v x) &\approx \v B_\text{dipole}(\v x) = \frac{μ_0}{4π} \frac{3(\v m\cdot \v x)\v x - |\v x|^2 \v m}{|\v x|^5} \end{align*} $$ where the magnetic dipole moment is given by $$ \begin{align*} \v m = \frac{1}{2}\int_{V} \v x \times \v J \d^3 \v x \iff \int_{V} x_i J_j \d^3 \v x = ε_{ijk} m_k. \end{align*} $$ (Derivation)

$\v A_\text{dipole}$ and $\v B_\text{dipole}$ are produced by a magnetic point dipole $\v m$ at the origin, corresponding to $$ \begin{align*} \v J_\text{dipole}(\v x) = ∇\times (\v m\, δ(\v x)). \end{align*} $$

Force and torque on magnetic dipole open_in_new

Under an external magnetic field $\v B(\v x)$ that varies slowly over the length scale $R$, the current distribution experiences a torque (Derivation) $$ \begin{align*} \v τ \approx \v m\times \v B \end{align*} $$ and a force (Derivation) $$ \begin{align*} \v F \approx ∇(\v m\cdot \v B) \end{align*} $$ up to first order.

Thus the force is conservative: $$ \begin{align*} \v F \approx -∇U, \qquad U = -\v m\cdot \v B, \end{align*} $$ with the potential energy $U$ minimised when $\v m$ is aligned with $\v B$.

Thin wire in magnetostatics open_in_new

For a thin wire along a curve $C$ with current $I$, the current density is $$ \begin{align*} \v J(\v x) = I \int_{C} δ(\v x - \v x') \d\v x'. \end{align*} $$ Charge conservation implies $C$ is closed or infinite. (Derivation)

Magnetic field due to thin wire open_in_new

Biot-Savart law gives $$ \begin{align*} \v A(\v x) ={}& \frac{μ_0 I}{4π} \int_{C} \frac{\d \v x'}{|\v x - \v x'|}, \\ \v B(\v x) ={}& \frac{μ_0 I}{4π} \int_{C} \frac{\d\v x' \times (\v x - \v x')}{|\v x-\v x'|^3}. \end{align*} $$

The long-range behaviour is governed by the magnetic dipole moment $$ \begin{align*} \v m = \frac{I}{2} \int_{C} \v x \times \d \v x = I \v S \end{align*} $$ where $\v S = \int_{S} \d \v S$ is the vector area of the surface $S$ with boundary $C$. (Derivation)

Forces between thin wires open_in_new

The force on wire $i$ (along curve $C_i$ with current $I_i$) due to wire $j$ (along curve $C_j$ with current $I_j$) is $$ \begin{align*} \v F_{ij} ={}& \frac{μ_0 I_i I_j}{4π}\int_{C_i} \int_{C_j} \d \v x_i \times \frac{\d \v x_j\times (\v x_i - \v x_j)}{|\v x_i - \v x_j|^3} \\ ={}& \frac{μ_0 I_i I_j}{4π} \int_{C_i} \int_{C_j} \frac{\v x_j - \v x_i}{|\v x_j - \v x_i|^3} (\d \v x_i \cdot \d \v x_j). \end{align*} $$ (Derivation)

It agrees with Newton's third law: $\v F_{ij} = - \v F_{ji}$.

Electromagnetic induction open_in_new

A time-dependent magnetic field generates an electric field by (M3), causing currents to flow in a conductor.

Faraday's law open_in_new

For a time-dependent closed curve $C(t)$ that is the boundary of an open surface $S(t)$, Faraday's law states that $$ \begin{align*} \mathcal{E} = -\dfd{\mathcal{F}}{t} \end{align*} $$ where $\mathcal{E}$ is the electromotive force (emf) $$ \begin{align*} \mathcal{E} = \int_{C} (\v E + \v v\times \v B) \cdot \d \v x, \end{align*} $$ $\v v$ is the velocity of a point on $C$, and $\mathcal{F}$ is the magnetic flux through $S$ $$ \begin{align*} \mathcal{F} = \int_{S} \v B\cdot \d \v S = \int_{C} \v A\cdot \d \v x. \end{align*} $$ (Derivation)

The emf is not a force; it is the work done by the Lorentz force on a particle of unit charge confined to $C$: $$ \begin{align*} \mathcal{E} = \frac{1}{q} \int_{C} \v F\cdot \d \v x. \end{align*} $$ (Derivation)

Lenz's law states that the direction of the induced current is always such as to produce a magnetic field that opposes the change in the flux that causes the emf; hence the minus sign in Faraday's law.

Inductance open_in_new

We define the mutual inductance as the magnetic flux $\Phi_{B1}$ through one circuit caused by the current $I_2$ through a second circuit $$ \begin{align*} M_{12} = \frac{\Phi_{B1}}{I_2}. \end{align*} $$

In the case of magnetic flux caused by the current through the same circuit, we have the self-inductance $$ \begin{align*} L = \frac{\Phi_B}{I}, \end{align*} $$ which has unit henry $\mathrm{H}=\mathrm{T\ m^2/A}$.

Emf across the circuit is then by Faraday's law $$ \begin{align*} \mathcal{E} = -\dfd{\Phi_B}{t} = -L\dot I. \end{align*} $$

Inductance of solenoids open_in_new

For a solenoid of length $l$, cross-section area $A$, with $N$ turns, $$ \begin{align*} L = \frac{NAB}{I} = \frac{\mu_0 N^2 A}{l}. \end{align*} $$

Inductance of thin wires open_in_new

The mutual inductance between wire $i$ (along curve $C_i$ with current $I_i$) and wire $j$ (along curve $C_j$ with current $I_j$) is $$ \begin{align*} L_{ij} = \frac{μ_0}{4π} \int_{C_i} \int_{C_j} \frac{\d \v x_i\cdot \d \v x_j}{|\v x_i - \v x_j|} = L_{ji}. \end{align*} $$ (Derivation)

Magnetic field energy open_in_new

The energy required to reach a magnetostatic state $\v J(\v x)$ is $$ \begin{align*} U = \frac{1}{2}\int_{V} \v J\cdot \v A \d^3 \v x = \int_{\R^3} \frac{1}{2μ_0} |\v B|^2 \d^3 \v x, \end{align*} $$ which can be interpreted as the energy stored in the magnetic field. (Derivation)

Ohm's law open_in_new

A macroscopic property of a stationary conductor is the Ohm's law $$ \begin{align*} \v J = σ\v E \iff \v E = ρ \v J \end{align*} $$ where $σ$ is the electrical conductivity and $ρ = σ\inv$ is the electrical resistivity.

  • A perfect conductor corresponds to the limit $σ\to \infty$, so $\v E = 0$.

  • A perfect insulator corresponds to the limit $σ\to 0$, so $\v J = 0$.

For a straight wire of length $L$, cross-sectional area $A$ and conductivity $σ$, the voltage along the wire and the current are related by $$ \begin{align*} V = IR \end{align*} $$ where the resistance is $$ \begin{align*} R = \frac{L}{σA}. \end{align*} $$ (Derivation)

Accompanying the resistance of a wire is Joule heating (or Ohmic heating): the conversion of electromagnetic energy into heat at the rate of $I^2 R$.

Electromagnetic energy open_in_new

The energy equation in a time-dependent electromagnetic field is $$ \begin{align*} \pdfd{w}{t} + ∇\cdot \v S = -\v E \cdot \v J \end{align*} $$ where $w$ is the energy density (energy per unit volume) $$ \begin{align*} w = \frac{ε_0}{2}|\v E|^2 + \frac{1}{2μ_0} |\v B|^2 \end{align*} $$ and $\v S$ is the energy flux density or Poynting vector $$ \begin{align*} \v S = \frac{1}{μ_0} \v E \times \v B. \end{align*} $$ (Derivation)

In the absence of currents $\v J$, we have a conservation law: the rate of change of energy in a volume $V$ is minus the flux of energy through $\partial V$.

On the right-hand side, $\v E\cdot \v J$ is the rate at which the electromagnetic field loses energy per unit volume by doing work on charged particles via the Lorentz force.

In an Ohmic conductor, $\v E\cdot \v J = |\v J|^2/σ$ is positive definite and is the Joule heating per unit volume.

Electromagnetic waves open_in_new

Light is an electromagnetic wave. In the absence of charges and currents, the electric and magnetic fields satisfy the wave equations $$ \begin{align*} \pdfd[2]{\v E}{t} = c^2\, ∇^2\v E, \qquad \pdfd[2]{\v B}{t} = c^2\, ∇^2\v B \end{align*} $$ where $c$ is the speed of light $$ \begin{align*} c = \frac{1}{\sqrt{μ_0 ε_0}}. \end{align*} $$ (Derivation)

Electromagnetic plane waves open_in_new

Consider a plane wave where $\v E$ and $\v B$ depend only on $(x,t)$ but not $(y,z)$.

A typical solution has the form $$ \begin{align*} \v E = \Re(\v E_0 \exp i(\v k\cdot \v x - ω t)), \qquad \v B = \Re(\v B_0 \exp i(\v k\cdot \v x-ωt)) \end{align*} $$ where $\v E_0, \v B_0$ are constant complex vector amplitudes, and $\v k$ is the real wavevector. The Maxwell's equations reduce to $$ \begin{align*} ∇\cdot \v E &= 0 &&\implies &\v k\cdot \v E_0 &= 0, \\ ∇\cdot \v B &= 0 &&\implies &\v k\cdot \v B_0 &= 0, \\ ∇\times \v E &= -\pdfd{\v B}{t} &&\implies &\v k\times \v E_0 &= ω\v B_0, \\ ∇\times \v B &= μ_0 ε_0 \pdfd{\v E}{t} &&\implies &\v k\times \v B_0 &= -\frac{ω}{c^2}\v E_0. \end{align*} $$ These imply the dispersion relation $$ \begin{align*} ω^2 = c^2 k^2. \end{align*} $$

Linearly polarised plane wave open_in_new

If we restrict $\v E = E(x,t) \v e_y$ to only be in the $y$ direction, we obtain $$ \begin{align*} \v E(x,t) &= \bigl(f(x - ct) + g(x+ct)\bigr)\v e_y, \\ \v B(x,t) &= \frac{1}{c}\bigl(f(x-ct) - g(x+ct)\bigr)\v e_z, \end{align*} $$ which is a sum of wave travelling without change of form in the $+x$ direction and another travelling in the $-x$ direction. (Derivation)

A monochromatic wave has the form $$ \begin{align*} E = E_0 \cos(kx - ωt), \qquad B = \frac{E_0}{c}\cos(kx - ωt) \end{align*} $$ where $E_0$ is a constant amplitude, $k=\pm ω/c$ is the wavenumber, and $ω$ is the angular frequency.

This corresponds to our previous discussion with $\v E_0$ real. Then $\v B_0 = \frac{1}{ω}\v k\times \v E_0$ is also real, and $\v k, \v E_0, \v B_0$ form a right-handed orthogonal triad.

Elliptically polarised plane wave open_in_new

For $\v E_0 = \v a - i\v b$, $\v B_0 = \v a' - i\v b'$, we have $$ \begin{align*} \v E &= \v a \cos(\v k\cdot \v x - ωt) + \v b \sin(\v k\cdot \v x - ωt), \\ \v B &= \v a' \cos(\v k\cdot \v x - ωt) + \v b' \sin(\v k\cdot \v x - ωt), \\ \end{align*} $$ with $|\v a'| = |\v a|/c, |\v b'| = |\v b|/c$ and $\v k,\v a,\v a'$ and $\v k,\v b,\v b'$ being right-handed orthogonal triads. The fields trace out an ellipse and the wave is elliptically polarised.

Circular polarisation occurs when $|\v b| = |\v a|$ and $\v a\cdot \v b = 0$. It is right-handed if $\v b = \vhat k\times \v a$ and left-handed if $\v b = -\vhat k\times \v a$.

Energy for an electromagnetic plane wave open_in_new

For the plane wave solution here, the averaged (over time or space) energy density and flux density are $$ \begin{align*} \langle w\rangle &= \frac{1}{2}ε_0 |\v E_0|^2, \\ \langle \v S\rangle &= \langle w\rangle c\vhat k, \end{align*} $$ implying the wave transports energy at speed $c$ in the direction $\vhat k$. (Derivation)

Special relativity and electromagnetism open_in_new

Lorentz transformation open_in_new

Suppose the origins of $S$ and $S'$ coincide at $t=t'=0$, i.e. treat coordinates as time interval from the event "origins coincide". The coordinates transform as $$ \v s' = \Lambda\v s$$ $$ \pmat{ct \\ x \\ y \\ z} = \pmat{\gamma & \gamma\beta & 0 & 0 \\ \gamma\beta & \gamma & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1} \pmat{ct' \\ x' \\ y' \\ z'}, \quad \pmat{ct' \\ x' \\ y' \\ z'} = \pmat{\gamma & -\gamma\beta & 0 & 0 \\ -\gamma\beta & \gamma & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1} \pmat{ct \\ x \\ y \\ z}$$ $$ \begin{cases} t &= \gamma(t' + vx'/c^2) \\ x &= \gamma(x' + vt') \\ y &= y' \\ z &= z' \end{cases}, \begin{cases} t' &= \gamma(t - vx/c^2) \\ x' &= \gamma(x - vt) \\ y' &= y \\ z' &= z \end{cases}. $$ (Derivation)

In general, a Lorentz transformation may contain a boost with spacial isometries, and reverse time. They form the Lorentz group, the set of all matrices $Λ$ satisfying $$ \begin{align*} {Λ^μ}_ρ η_{μν} {Λ^ν}_σ = η_{ρσ} \iff Λ^T ηΛ = η \end{align*} $$ where $η$ is the Minkowski metric tensor.

4-tensors open_in_new

We use Einstein's suffix notation.

  • Greek indices $μ, ν, ρ, σ$ etc run from 0 to 3 to cover the dimensions of spacetime.

  • Roman indices $i, j, k, l$ etc run from 1 to 3 to cover the dimensions of space.

Definition (4-tensor) open_in_new

A 4-tensor of type $(r,s)$ is an object whose $4^{r+s}$ components transform as $$ \begin{align*} {T'^{μ_1\ldots μ_r}}_{ν_1\ldots ν_s} = {Λ^{μ_1}}_{ρ_1} \ldots {Λ^{μ_r}}_{ρ_r}\, {(Λ\inv)^{σ_1}}_{ν_1}\ldots{(Λ\inv)^{σ_s}}_{ν_s} \, {T^{ρ_1 \ldots ρ_r}}_{σ_1 \ldots σ_s} \end{align*} $$ under a Lorentz transformation $Λ$.

  • A $(1,0)$-tensor is a 4-vector.

  • A $(0,1)$-tensor is a 4-covector.

  • A $(0,0)$-tensor is a scalar (Lorentz invariant).

Summation convention on spacetime requires the repeated Greek index to appear once up and once down.

Square of 4-vector open_in_new

The square of a 4-vector $V$ $$ \begin{align*} V\cdot V = η_{μν}V^μ V^ν \end{align*} $$ is a scalar thus a Lorentz invariant.

$V$ is

  • timelike if $V\cdot V<0$;

  • null/lightlike if $V\cdot V = 0$;

  • spacelike if $V\cdot V>0$.

Raising and lowering indices open_in_new

The Minkowski metric tensor $$ \begin{align*} η_{μν} = \pmat{-1&0&0&0\\ 0&1&0&0 \\ 0&0&1&0 \\ 0&0&0&1} = \mathrm{diag}(-1,1,1,1) \end{align*} $$ and its inverse $$ \begin{align*} η^{μν} = \mathrm{diag}(-1,1,1,1) \end{align*} $$ are isotropic by definition of a Lorentz transformation. They provides an isomorphism between vectors and covectors: $$ \begin{align*} V^{μ} = η^{μν} V_ν, \qquad V_μ = η_{μν} V^{ν}. \end{align*} $$

  • We can raise or lower any tensor index.

  • The inner product of two 4-vectors can be written as $V\cdot W = η_{μν} V^μ W^ν = V_μ W^μ = V^μ W_μ = η^{μν} V_μ W_ν$.

  • ${η^μ}_ν = {δ^μ}_ν = \mathrm{diag}(1,1,1,1)$ is the Kronecker delta symbol.

Vector calculus in spacetime open_in_new

The spacetime derivative of a scalar field $f(X)$ is a covector field $$ \begin{align*} \partial_μ f = (\partial_0 f, \partial_i f) = \left(\frac{1}{c} \pdfd{f}{t}, ∇f\right). \end{align*} $$

The spacetime divergence of a 4-vector field $V(X) = (V^0, \v v)$ is a scalar field $$ \begin{align*} \partial_μ V^μ = \partial_0V^0 + \partial_i V^i = \frac{1}{c}\pdfd{V^0}{t} + ∇\cdot \v v. \end{align*} $$

The spacetime equivalent of the curl is the antisymmetric derivative of a covector field $Y(X)$ $$ \begin{align*} \partial_μ Y_ν - \partial_ν Y_μ. \end{align*} $$

The generalisation of the Laplacian $∇^2$ is the d'Alembertian, a scalar differential operator $$ \begin{align*} \square = η^{μν}\partial_μ \partial_ν = -\frac{1}{c^2} \pdd[2]{t} + ∇^2. \end{align*} $$ The wave equation for a scalar field is $\square f = 0$. It is only a scalar equation for waves that travel at $c$.

Spacetime kinematics open_in_new

The proper time $τ$ is the time experienced by the particle. The world line parametrised in $τ$ has constant speed $-c^2$, i.e. $\d X \cdot \d X = -c^2 \d τ^2$.

The 4-velocity of a massive particle is $$ \begin{align*} U = \dfd{X}{τ} = γ_\v u(c,\v u) \end{align*} $$ where $\v u = \dfd{\v x}{t}$ is the 3-velocity. We have $$ \begin{align*} U\cdot U = -c^2. \end{align*} $$ (Derivation)

The 4-momentum of a massive particle with rest mass $m>0$ is $$ \begin{align*} P^μ = mU^μ = mγ_\v u(c, \v u) = \left(\frac{E}{c}, \v p\right) \end{align*} $$ where $E$ is the energy and $\v p = mγ_\v u \v u$ is the 3-momentum. Computing its square $P\cdot P = -m^2c^2$ gives $$ \begin{align*} E^2 = (mc^2)^2 + (|\v p|c)^2. \end{align*} $$ Massless particles such as photons travel at the speed of light and they have $$ \begin{align*} E = |\v p|c. \end{align*} $$

The relativistic equation of motion for a massive particle is $$ \begin{align*} \dfd{P^μ}{τ} = f^μ \end{align*} $$ where $f^μ$ is the 4-force. Since $P\cdot P$ is constant, we must have $$ \begin{align*} f\cdot P = 0. \end{align*} $$ (Derivation)

4-current density open_in_new

The 4-current density (or charge-current density 4-vector) is defined as $$ \begin{align*} J^μ = (ρc, \v J). \end{align*} $$

Charge conservation is expressed as $$ \begin{align*} \partial_μ J^μ = 0. \end{align*} $$

Electromagnetic tensor and the Lorentz force open_in_new

The Lorentz force as a 4-vector is $$ \begin{align*} f_μ = qF_{μν}U^ν \end{align*} $$ where $F_{μν}$ is the electromagnetic tensor having components $$ \begin{align*} F_{00} &= 0, \\ F_{0i} &= -E_i/c, \\ F_{i0} &= E_i/c, \\ F_{ij} &= ε_{ijk} B_k. \end{align*} $$ In marix form, $$ \begin{align*} F_{μν} = \pmat{0 & -E_x/c & -E_y/c & -E_z/c \\ E_x/c & 0 & B_z & -B_y \\ E_y/c & -B_z & 0 & B_x \\ E_z/c & B_y & -B_x & 0}. \end{align*} $$

The spatial component says $$ \begin{align*} \dfd{\v p}{τ} = γ_\v uq(\v E + \v u \times \v B) \iff \dfd{\v p}{t}=q(\v E + \v u\times \v B) = \v F \end{align*} $$ where $\v F$ is the 3-force.

The time component says $$ \begin{align*} \dfd{E}{τ} = γ_\v u q\v E\cdot \v u \iff \dfd{E}{t} = q\v E\cdot \v u = \v F\cdot \v u. \end{align*} $$

Lorentz transformation of electromagnetic field open_in_new

If an inertial frame $S'$ moves at a velocity $\v v$ relative to $S$, then the components of $\v E$ and $\v B$ parallel and perpendicular to $\v v$ transform as $$ \begin{align*} \v E_\parallel' &= \v E_\parallel, & \v E_\perp' &= γ(\v E_\perp + \v v\times \v B_\perp), \\ \v B_\parallel' &= \v B_\parallel, & \v B_\perp' &= γ(\v B_\perp - \frac{1}{c^2}\v v\times \v E_\perp). \end{align*} $$ (Derivation)

Lorentz invariants in electromagnetic field open_in_new

We obtain a (Lorentz invariant) scalar $$ \begin{align*} F_{μν} F^{μν} \propto |\v E|^2 - c^2 |\v B|^2 \end{align*} $$ and a pseudo-scalar (transforming with a minus sign if $\det Λ = -1$) $$ \begin{align*} ε_{μνρσ} F^{μν} F^{ρσ} \propto \v E \cdot \v B. \end{align*} $$

(Derivation)

4-potential open_in_new

The 4-potential is the 4-vector $$ \begin{align*} A^μ = \left(\frac{Φ}{c}, \v A\right). \end{align*} $$ Then the electromagnetic tensor is the antisymmetric derivative $$ \begin{align*} F_{μν} = \partial_μA_ν - \partial_ν A_μ. \end{align*} $$ (Derivation)

Now a gauge transformation $$ \begin{align*} \tilde A_μ = A_μ + \partial_μ χ \end{align*} $$ leaves $F_{μν}$ unchanged because $\partial_μ\partial_ν χ - \partial_ν \partial_μ χ = 0$.

The equivalent of the Coulomb gauge is the Lorentz gauge in which $$ \begin{align*} \partial_μ A^μ = 0. \end{align*} $$ This can be assume WLOG: if $\partial_μ A^μ \neq 0$, take $χ$ to be the solution of the forced wave equation $-\square χ = \partial_μ A^μ$.

Maxwell's equations in spacetime open_in_new

Maxwell's equations can be written in covariant form $$ \begin{align*} \partial_ν F^{μν} = μ_0 J^μ \end{align*} $$ and $$ \begin{align*} ε^{μνρσ} \partial_ν F_{ρσ} = 0 \iff \partial_μ F_{νρ} + \partial_ν F_{ρμ} + \partial_ρ F_{μν} = 0. \end{align*} $$ (Derivation)

They agree with charge conservation. (Derivation)

In the Lorentz gauge, the second equation is automatically satisfied, and the first becomes $$ \begin{align*} -\square A^μ = μ_0 J^μ. \end{align*} $$ (Derivation)