What is mains hum?
Mains hum is the 50 Hz signal from the power grid leaking into circuits where it doesn’t belong. The UK grid alternates at 50 Hz (60 Hz in the US), and every mains cable, transformer and appliance around you is effectively a weak 50 Hz transmitter. If any of that couples into an audio or sensor circuit, you hear or measure a continuous low buzz at 50 Hz and its harmonics (100 Hz, 150 Hz…). That buzz is the “hum”: the deep drone you hear from cheap speakers, guitar amps with poor cables, or any circuit with its input lead dangling.
How it gets in (three doors)
1. Capacitive (electric-field) pickup. A mains wire and your signal wire form a tiny capacitor through the air. Tiny capacitance, but a high-impedance input needs almost no current to develop millivolts across it. This is why touching a scope probe with your finger displays a 50 Hz wave: your body is the antenna.
2. Magnetic (inductive) pickup. Mains current creates an alternating magnetic field; any LOOP of wire in your circuit is a one-turn transformer secondary in that field, and an EMF at 50 Hz is induced around it. Bigger loop area = more hum, which is why signal and return wires are kept together (twisted pairs make the loop area almost zero and alternate its sign every twist).
3. Power-supply ripple. Your own DC supply is made FROM the mains by rectifying and smoothing it. Imperfect smoothing leaves a residue riding on the DC rail; after a full-wave bridge rectifier the residue is at 100 Hz (both half-cycles get folded up, so the ripple frequency is twice the mains). If the rails wobble, the wobble leaks into the output. This is exactly the ripple calculation in the rectifier exam question: a bigger smoothing capacitor means smaller ripple, less hum.
Why AE2 cares: small signals lose
A sensor signal can be a few millivolts. If the wiring picks up even 10 mV of hum, the interference is bigger than the information, and an amplifier is loyal to neither: it amplifies both by the same gain. Filtering is awkward here because 50 Hz is often INSIDE the band you want (audio, ECG). The real fix exploits geometry instead:
Run the signal on TWO wires and subtract them at a differential amplifier. The wanted signal is applied BETWEEN the wires (differential), but hum couples onto both wires almost identically (common mode) because they sit side by side in the same field. Subtraction keeps the difference and cancels what is common: signal survives, hum vanishes. How well a real amplifier pulls this off is its CMRR (common-mode rejection ratio), and that is precisely why the instrumentation-amplifier exam question quotes a CMRR and asks for the smallest differential input you can still discern against interference.
The defence checklist
Keep loops small (twisted pair), shield cables (grounded screen intercepts capacitive pickup), avoid ground loops (two paths to ground = one big loop = one-turn secondary), smooth and regulate supplies (kills the 100 Hz ripple door), and measure differentially with high CMRR when the signal is small. Musicians’ folklore, “it stopped buzzing when I touched the metal chassis”, is this physics: your touch grounded the shield.
One-liner to keep: mains hum = 50 Hz leakage from the grid, entering by capacitance, induction, or supply ripple; it is common-mode on a wire pair, which is why differential amplifiers with high CMRR are the cure.