Whittaker's History (1910), reviewed › The review's files › sim/whittaker/partC/

w6_faraday_rotation.py

In the investigation at sim/whittaker/partC/w6_faraday_rotation.py · last changed in commit 28bc522, 22 November 2026 · 4,851 bytes


#!/usr/bin/env python3
"""W6.13: the magnetic rotation of light (Faraday 1845), Airy's equations
(1846) and Verdet's inverse-square law (1863), against modern values.

Whittaker 1910, pp. 214-215: with an extra term mu d^(r+s) Z / dx^r dt^s in the
wave equation, the rotation per unit length is a multiple of
mu / (tau^(r+s-1) c1^(r+1)), tau the period. Verdet found the rotation
"approximately proportional to the inverse square of the wave-length", so
r + s = 3. Airy's first choice (r,s) = (0,1) gives no wavelength dependence.

Part A checks Whittaker's exponent rule numerically from the dispersion
relation of circular waves.                                        [D]
Part B tests Verdet's law and the size of the effect for fused silica with
Becquerel's formula V = (e/2 m_e c) lambda dn/dlambda (1897), using the
Sellmeier equation of Malitson (1965) for n(lambda).                [S]

Terms: Y, Z transverse displacements (electric-field components in the
modern reading); c1 wave speed; mu a coefficient proportional to the
magnetic field; V the Verdet constant, rotation per unit path per unit
field; n the refractive index; e, m_e the electron's charge and mass.

Inputs marked "from memory": Malitson's coefficients; the measured Verdet
constant of fused silica.

Run: OMP_NUM_THREADS=1 ~/aspden-review-venv/bin/python3 w6_faraday_rotation.py
"""
import subprocess
import numpy as np
from scipy.optimize import brentq

print("git HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], cwd="/home/doug/aetherscience.org",
                                  capture_output=True, text=True).stdout.strip())

# ---------------- Part A: Whittaker's exponent rule ----------------
# Circular wave Y = cos(kx - wt), Z = +-sin(kx - wt). Substituting into
#   Ytt = c1^2 Yxx + mu d^(r+s)Z/dx^r dt^s,  Ztt = c1^2 Zxx - mu d^(r+s)Y/dx^r dt^s
# gives, for the two handednesses, w^2 = c1^2 k^2 -+ mu k^r w^s (up to the
# sign fixed by r, s). The rotation per unit length is half the difference of
# the two wavenumbers at fixed w. We solve for k numerically.
c1 = 1.0
mu = 1e-6

def k_of_w(w, r, s, sign):
    f = lambda k: w**2 - c1**2 * k**2 - sign * mu * k**r * w**s
    return brentq(f, 0.5 * w / c1, 1.5 * w / c1)

print("\nA. Rotation per unit length theta(w) ~ w^p from the dispersion relation [D]")
for (r, s) in [(0, 1), (2, 1), (0, 3), (1, 2), (0, 5)]:
    ws = np.array([1.0, 2.0, 4.0, 8.0])
    th = np.array([0.5 * abs(k_of_w(w, r, s, +1) - k_of_w(w, r, s, -1)) for w in ws])
    p = np.polyfit(np.log(ws), np.log(th), 1)[0]
    print(f"  (r,s)=({r},{s}): r+s={r+s}, fitted exponent p = {p:.3f}  (Whittaker: r+s-1 = {r+s-1})")
print("  Verdet's law theta ~ 1/lambda^2 ~ w^2 needs r+s = 3, as Whittaker says.")

# ---------------- Part B: fused silica ----------------
e = 1.602176634e-19
m_e = 9.1093837139e-31
c = 299792458.0

def n_silica(lam_um):
    """Malitson 1965 Sellmeier equation for fused silica, lambda in micrometres (from memory)."""
    l2 = lam_um**2
    return np.sqrt(1 + 0.6961663 * l2 / (l2 - 0.0684043**2)
                     + 0.4079426 * l2 / (l2 - 0.1162414**2)
                     + 0.8974794 * l2 / (l2 - 9.896161**2))

def verdet_becquerel(lam_um):
    """V in rad/(T m): (e/2 m c) * lambda * dn/dlambda, magnitude."""
    h = 1e-4
    dn = (n_silica(lam_um + h) - n_silica(lam_um - h)) / (2 * h)   # per micrometre
    return (e / (2 * m_e * c)) * lam_um * dn   # lambda*dn/dlambda is dimensionless

print("\nB. Fused silica: Becquerel's formula with Malitson's n(lambda) [S; inputs from memory]")
lams = np.array([0.40, 0.45, 0.50, 0.55, 0.589, 0.65, 0.70])
V = np.array([-verdet_becquerel(l) for l in lams])  # dn/dlambda < 0 in the visible; take magnitude
for l, v in zip(lams, V):
    print(f"  lambda = {l*1e3:4.0f} nm: n = {n_silica(l):.5f}, V_Becquerel = {v:6.3f} rad/(T m), "
          f"V*lambda^2 = {v*l**2:.4f}")
p = np.polyfit(np.log(lams), np.log(V), 1)[0]
print(f"  fitted V ~ lambda^p with p = {p:.2f} over 400-700 nm  (Verdet's law: -2, 'approximately')")

V_meas_589 = 3.7   # rad/(T m), fused silica at 589 nm, from memory (about 3.67)
V_B_589 = -verdet_becquerel(0.589)
print(f"\n  At 589 nm: Becquerel {V_B_589:.2f} rad/(T m); measured about {V_meas_589:.2f} (from memory); "
      f"ratio gamma = {V_meas_589/V_B_589:.2f}")
print("  The ratio (the 'magneto-optic anomaly', about 0.6 for silica) is the known")
print("  shortfall of the classical electron formula; the wavelength law holds.")

# A number for a reader: rotation of a 1 cm silica rod in 1 T at 589 nm.
theta = V_meas_589 * 1.0 * 0.01
print(f"\n  Example: 1 cm of silica in 1 T rotates 589 nm light by {np.degrees(theta):.2f} degrees.")
print("  Faraday's heavy glass (borosilicate of lead) has a Verdet constant several")
print("  times larger; his rotation was 'a few degrees' with an electromagnet (Exp. Res. 2152 sqq.).")