IA Gravitational and Electromagnetic Fields

Gravitational field open_in_new

Newton's law of universal gravitation open_in_new

For two point masses $m_1, m_2$ with separation $\v r$, the gravitational force is an attractive force: $$ \begin{align*} \v F = -G \frac{m_1 m_2}{r^2}\vhat r \end{align*} $$ where $G$ is the universal gravitational constant.

The gravitational field is given by $$ \begin{align*} \v g = -\frac{Gm}{r^2} \vhat r. \end{align*} $$

This uses the gravitational mass, which differs conceptually from the inertial mass used in $\v F = m\v a$. But experimentally we found the two masses equal.

Gauss' law for gravitation open_in_new

For any surface $S$ (Gaussian surface), the gravitational field $\v g$ and the mass enclosed is related by $$ \begin{align*} \int_S \v g(\v r)\cdot d\v A = -4\pi G \sum_i M_i \end{align*} $$

Use this to compute the gravitational field due to a long rod ($g(r) = 2G\rho/r$) and a large plane ($g = 2\pi G\rho$).

Gravitational potential energy open_in_new

We can define a potential energy in a conservative force field $\v F$: $$ \begin{align*} \v F &= -\nabla U \\ dU &= -\v F\cdot d\v r \\ U(\v r) - U(\v r_0) &= -\int_{\v r_0}^{\v r} \v F(\v r')\cdot d\v r' \end{align*} $$ Physically, potential energy is the work done by an external force against the field in moving a body from [the point of zero potential energy] to the present location at constant velocity.

We define a gravitational potential $$ \begin{align*} \Phi = \frac{U}{m} \implies \v g = -\nabla\Phi. \end{align*} $$ We set $\Phi(\infty) = 0$. A point mass source gives $$ \begin{align*} \Phi(\v r) = -\frac{GM}{r} \end{align*} $$ To add a new point mass $m$ to a system at position $\v r$, the potential energy gained is $$ \begin{align*} U(\v r) = -\sum_i \frac{GmM_i}{|\v r - \v R_i|}. \end{align*} $$ The total gravitational potential energy of a system is the potential gained by bringing the masses together from infinity: $$ \begin{align*} U = -\sum_{i<j} \frac{GM_iM_j}{r_{ij}} = -\frac{1}{2}\sum_{i\neq j} \frac{GM_iM_j}{r_{ij}} = \frac{1}{2}\sum_i M_i\Phi_i \end{align*} $$ where $\Phi_i$ is the potential at the position of $M_i$ due to all other masses.

For example, the gravitational potential energy of a uniform sphere with mass $M$ and radius $a$ is $$ \begin{align*} U = -\frac{3}{5}\frac{GM^2}{a}. \end{align*} $$ (Derivation)

Kepler's laws open_in_new

Kepler's first law open_in_new
  1. Each planet moves in an elliptical orbit with the Sun at one focus.

At one focus, an ellipse has polar equation $$ \begin{align*} r = \frac{r_0}{1+e\cos\theta} \end{align*} $$ where $r_0$ is the semi latus rectum and $e$ is the eccentricity.

At the centre, it has Cartesian equation $$ \begin{align*} \frac{x^2}{a^2} + \frac{y^2}{b^2} = 1 \end{align*} $$ where $a,b$ are the semi major axis and semi minor axis.

Those quantities are related by $$ \begin{align*} r_0 &= a(1-e^2), && b = a\sqrt{1 - e^2}. \end{align*} $$ (Derivation)

In general, energy $E$ classifies orbits:

  • $E<0$: we have $0\leq e<1$, which is a (bound) elliptical orbit.

  • $E=0$: we have $e=1$, which is a parabolic orbit.

  • $E>0$: we have $e>1$, which is a hyperbolic orbit.

Non-examinable: using the Runge-Lenz vector $\v R = \v v\times \v L - GMm\vhat r$ (Derivation), we can show that the orbit is a conic section with parameter $$ \begin{align*} r_0 = \frac{L^2}{GMm^2}, \quad e = \sqrt{1+\frac{2L^2E}{G^2M^2m^3}}. \end{align*} $$

Kepler's second law open_in_new
  1. The line joining the Sun to a particular planet sweeps out equal areas in equal time.

Angular momentum is conserved since gravity is a central force. Area swept per unit time is $$ \begin{align*} \dfd{A}{t} = \frac{1}{2}|\v r\times \v v| = \frac{L}{2m} \end{align*} $$ so it is constant.

Kepler's third law open_in_new
  1. $(\text{Period of orbit})^2 \propto (\text{Semimajor axis})^3$.

$$ \begin{align*} T^2 = \frac{4\pi^2 a^3}{GM} \end{align*} $$ (Derivation)

Often using the apsides (singular apsis) i.e. perihelion (nearest point) and aphelion (furthest point) is useful.

Electric field open_in_new

Electrostatic force open_in_new

For two point charges $q_1,q_2$ with separation $\v r$, the Coulomb force is $$ \begin{align*} \v F = \frac{q_1q_2}{4\pi\epsilon_0 r^2}\vhat r. \end{align*} $$

We define the electric field $\v E$ as $$ \begin{align*} \v E = \frac{\v F_{electric}}{q} \end{align*} $$ so due to a point charge, $$ \begin{align*} \v E = \frac{q}{4\pi\epsilon_0 r^2}\vhat r. \end{align*} $$

The electric flux density $\v D$ is defined as $$ \begin{align*} \int_S \v D\cdot d\v A = Q_\text{enclosed}. \end{align*} $$

Using divergence theorem, we obtain Gauss' law for electric field $$ \begin{align*} \v D &= \epsilon_0\v E, &\int_S \v E\cdot d\v A &= \frac{Q_\text{enclosed}}{\epsilon_0}, &\nabla\cdot\v E = \frac{\rho}{\epsilon_0}. \end{align*} $$

Electrostatic potential open_in_new

Electric potential is defined in a conservative electric field as $$ \begin{align*} \v E = -\nabla\Phi. \end{align*} $$ A point charge $Q$ gives an electrostatic potential $$ \begin{align*} \Phi = \frac{Q}{4\pi\epsilon_0 r}. \end{align*} $$

Voltage is potential difference.

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).

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.

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).

Magnetic field open_in_new

Magnetic pole model open_in_new

This is a historic model.

Oersted observed that a magnetic field wraps around an electric current using the right-hand rule.

A magnet has two poles. Ampere stuck a bar magnet to a rotatable platform around an electric current and observed that there is no torque on the platform.

Therefore magnetic force on the poles $F\propto 1/r$. This means that the work done $W=2\pi r F$ to move a pole around the wire does not depend on $r$.

Define the pole strength $$ \begin{align*} p = \frac{W}{I} \end{align*} $$ where $W$ is the work done to move the pole around a current $I$. Then $$ \begin{align*} F = \frac{pI}{2\pi r} \end{align*} $$

Define the magnetic field $$ \begin{align*} \v H = \frac{\v F}{p} \end{align*} $$ and magnetic flux density $$ \begin{align*} \v B = \mu_0 \v H. \end{align*} $$

Ampere's law open_in_new

Due to a current, $$ \begin{align*} \v B = \frac{\mu_0 I}{2\pi r}. \end{align*} $$

Ampere argued that no work can be extracted by moving a magnet around a wire, so all trajectories should give the same loop integral of $\v H$: $$ \begin{align*} \oint_C \v B\cdot d\v r = \mu_0 I = \mu_0\int_S \v J\cdot d\v A \iff \nabla\times\v B = \mu_0 \v J. \end{align*} $$

With a time-varying electric field, we have to consider charge conservation: we have the continuity equation $$ \begin{align*} \int_{\partial V} \v J\cdot d\v A &= -\dd{t}\int_{V} \rho\, dV &&\iff & \nabla\cdot \v J &= -\dot\rho = -\epsilon_0\nabla\cdot\dv E \end{align*} $$ or physically, if current cannot continue, charges build up as $J = \dot\sigma$. This leads to an increasing electric field $J = \epsilon_0 \dot E$ (displacement current density).

We should have $$ \begin{align*} \nabla\times\v B = \mu_0\left(\v J + \epsilon_0 \dfd{\v E}{t}\right). \end{align*} $$

Biot-Savart law open_in_new

Taking a current element $I\, d\v l$ as the origin, it causes a magnetic field at $\v r$ $$ \begin{align*} d\v B = \frac{\mu_0 I\,d\v l\times \vhat r}{4\pi r^2}. \end{align*} $$

Gauss' law for magnetic field open_in_new

We observe that magnetic field is produced by currents, never by isolated magnetic poles. Therefore $$ \begin{align*} \int_S \v B\cdot d\v A = 0 \iff \nabla\cdot\v B = 0. \end{align*} $$

Magnetic field due to current loops open_in_new

The magnetic field at distance $z$ along the axis from the centre of a current loop with radius $a$ and current $I$ is $$ \begin{align*} B(z) = \frac{\mu_0 I a^2}{2(a^2+z^2)^{3/2}}. \end{align*} $$ (Derivation)

  • Helmholtz coils: to create almost uniform magnetic field, put two current loops with radius $R$ and the same current direction at a distance $R$ apart.

  • Maxwell coils: to createagnetic field with almost constant gradient, put two current loops with radius $R$ and the opposite current direction at a distance $\sqrt{3}R$ apart.

(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.

Electromagnetic field open_in_new

Lorentz force open_in_new

A charge moving in an electric and magnetic field experiences the Lorentz force $$ \begin{align*} \v F = q(\v E + \v v\times\v B). \end{align*} $$ The force on a current is $$ \begin{align*} d\v F = I\,d\v l\times\v B. \end{align*} $$

Inside a uniform magnetic field, cyclotron motion has constant angular frequency: $$ \begin{align*} \omega_c = \frac{qB}{m}. \end{align*} $$

Charged particles spiral around $\v B$ field lines, so an inhomogenous magnetic field traps particles..

Electromagnetic induction open_in_new

Motional emf open_in_new

Charges in a wire moving across a transverse $\v B$ field experiences Lorentz force $\v F = q\v v\times \v B$. The force moves it across a distance of $\v l$, so there is a motional emf $$ \begin{align*} \mathcal{E} = (\v v\times\v B)\cdot\v l. \end{align*} $$

Faraday's law open_in_new

Electromagnetic induction occurs without movement, given by Faraday's law $$ \begin{align*} \mathcal{E} = -\dfd{\Phi_B}{t} \iff \int_{\partial S} \v E\cdot\, d\v l = -\dd{t}\int_S \v B\cdot d\v A \iff \nabla\times\v E = -\dfd{\v B}{t}. \end{align*} $$ where $\v \Phi_B = \int_S \v B\cdot d\v A$ is the magnetic flux.

Lenz's law states that the induced current is in the direction such that the magnetic field due to the induced current opposes the change in magnetic flux.

In the case of a changing magnetic field, $\v E$ is no longer conservative ($\nabla\times(\nabla\Phi) = 0$).

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

Similar to capacitor, we can view the work done to build up a current in an inductor as energy stored in the magnetic field: magnetic field energy density is $$ \begin{align*} U_B = \frac{1}{2\mu_0} B^2. \end{align*} $$

Total energy in electromagnetic field $$ \begin{align*} U_{tot} = \frac{1}{2}\epsilon_0 E^2 + \frac{1}{2\mu_0}B^2. \end{align*} $$

The Maxwell equations open_in_new

$$ \begin{align*} \nabla\cdot \v E &= \frac{\rho}{\epsilon_0} &&\iff & \int_{\partial V} \v E\cdot d\v A &= \frac{1}{\epsilon_0}\int_V \rho\,dV = \frac{Q_{encl}}{\epsilon_0} \\ \nabla\cdot \v B &= 0 &&\iff & \int_{\partial V} \v B\cdot d\v A &= 0 \\ \nabla\times\v E &= -\dfd{\v B}{t} &&\iff & \mathcal{E} = \int_{\partial S} \v E\cdot d\v l &= -\dd{t}\int_S \v B\cdot d\v A = -\dfd{\Phi_B}{t}\\ \nabla\times\v B &= \mu_0\left(\v J + \epsilon_0 \dfd{\v E}{t}\right) &&\iff &\int_{\partial S} \v B\cdot d\v l &= \mu_0\int_{S} \left(\v J + \epsilon_0 \dfd{\v E}{t}\right)\cdot d\v A = \mu_0\left(I + \epsilon_0 \dfd{\Phi_E}{t}\right) \end{align*} $$

Electromagnetic wave open_in_new

In free space ($\rho=0$, $\v J = \v 0$), the fields follow the 3D wave equation $$ \begin{align*} \pdfd[2]{\v E}{t} = \frac{1}{\mu_0\epsilon_0}\nabla^2 \v E \end{align*} $$ so electromagnetic wave travels at speed $c = 1/\sqrt{\mu_0\epsilon_0}$.

A plane wave solution $$ \begin{align*} \begin{cases} \v E(\v r, t) &= \v E_0 \cos(\v k\cdot\v r - \omega t), \\ \v B(\v r, t) &= \v B_0 \cos(\v k\cdot\v r - \omega t) \end{cases} \end{align*} $$ has $$ \begin{align*} E_0 &= cB_0, & \v B &\perp \v E, & \v k \parallel \v E\times \v B. \end{align*} $$ (Derivation)

Energy density is $$ \begin{align*} U = \frac{1}{2}\epsilon_0 E^2 + \frac{1}{2\mu_0}B^2 = \epsilon_0 E^2 = \frac{1}{\mu_0} B^2. \end{align*} $$