Lab-in-a-Tab

Magnets & Electromagnetism

A magnet is just moving charge, and moving a magnet makes charge move back. That two-way street runs every motor and every generator on Earth.

Magnetic fieldInductionLenz
Try thisStart with Current in the coil at zero and look at the compasses. Now push it up slowly and watch the ring grow. Then push Current in the coil all the way to the top: does the ring get twenty times bigger, or barely bigger? Afterwards, watch the wiggly line at the bottom as the magnet crosses the middle.
What you're seeingTop half: a coil of wire seen from the side, sitting in a field of little compasses. Each compass points whichever way the total magnetic field pushes it. With no current they all obey the Earth. The dashed red ring is the edge of the coil's territory — inside it, the coil wins. Bottom half: a bar magnet sliding back and forth past a second coil, with the voltage it makes drawn as a line underneath.
What to notice
The wire really does become a magnet — and the voltage is zero exactly when the magnet is in the middle. Cranking the current up five times barely widens the coil's territory, because a magnet's pull dies off with the cube of distance. And the bottom trace has two humps of opposite sign with a zero between them: at the instant the magnet sits dead centre, the field through the coil is at its strongest and yet nothing at all is made. What makes a voltage is not the field. It is the field changing.

Electricity and magnetism are the same thing

Junior level — plain language, no maths

Magnets seem like their own kind of magic - a lump of metal that reaches out and grabs another one from across a gap. For centuries nobody connected them to electricity at all. Then in 1820 a Danish teacher called Hans Christian Ørsted was demonstrating an electric circuit to his class, and noticed that a compass needle sitting nearby twitched every time he switched the current on. That twitch changed physics forever.

What Ørsted had stumbled on is this: an electric current makes a magnetic field. Not a bit of one - a real one. Wind a wire into a coil, push current through it, and you have built a magnet as genuine as any lump of iron, with a north end and a south end. Switch the current off and the magnetism vanishes. Reverse the current and the north end becomes the south end. In the simulation above, turn up the current and watch a whole field of compass needles swing round to obey your coil instead of the Earth.

Then comes the beautiful part, found by Michael Faraday eleven years later: the street runs both ways. Move a magnet near a coil of wire and a current appears in the wire. Not because you connected a battery - there is no battery - but purely because the magnet moved. Push it in, current flows one way. Pull it out, current flows the other way. Hold it perfectly still inside the coil and, no matter how strong the magnet is, nothing at all happens. It is the changing that matters.

Nature also puts up a fight, and this is the part people find spooky. The current that appears always flows in whichever direction opposes what you are doing. Push the magnet in and the coil turns into a magnet that pushes back. Pull it out and the coil grabs at it. That is Lenz's law, and it is really just energy conservation wearing a costume: if the coil helped you instead of fighting you, you would get electricity for free. Every power station on the planet is someone forcing a magnet past a coil against exactly this resistance.

Things worth knowing

  • Ørsted found electromagnetism by accident in 1820, when a compass needle near his demonstration circuit twitched as he switched the current on. He spent three months checking before he dared publish.
  • Almost all the electricity you have ever used was made the same way: something spins a magnet past a coil. Coal, gas, nuclear and wind differ only in what does the spinning.
  • Drop a strong magnet down a copper pipe and it floats down absurdly slowly. Copper is not magnetic - but the falling magnet induces currents in it, and those currents fight the fall.

Fields, flux and Faraday's law

Student level — the core equations

A current-carrying wire is surrounded by a magnetic field that circles it, and the size of that field follows Ampère's law. Wind the wire into a long solenoid and the fields of the individual turns add along the axis, giving a nearly uniform interior field \(B = \mu_0 n I\), where \(n\) is turns per metre. Four thousand turns per metre at 3 A gives about 15 mT - roughly three hundred times the Earth's 50 µT, which is why a compass anywhere near it stops caring about north.

Outside the solenoid the field is a dipole, identical in shape to a bar magnet's, and it falls off as \(1/r^3\). That cube is worth pausing on. The radius at which the coil still beats the Earth's field scales only as \(I^{1/3}\): to double your reach you need eight times the current. Strong magnets are not far-reaching magnets.

Faraday's law handles the reverse direction. Define the magnetic flux through a coil of \(N\) turns and area \(A\) as \(\Phi = NBA\), and the induced electromotive force is \(\mathcal{E} = -\,d\Phi/dt\). Everything in that expression is a rate. A stationary magnet, however powerful, gives \(d\Phi/dt = 0\) and therefore nothing. Move it and the emf follows the gradient of the field, not the field itself - which is why, as a magnet drops through a coil, the induced voltage peaks twice with opposite signs and passes through exactly zero at the instant the magnet is centred and the field through the coil is strongest.

The minus sign is Lenz's law, and it is not decoration. The induced current circulates so that its own magnetic field opposes the change that produced it: an approaching north pole is met by an induced north pole, a departing one by an induced south. Flip the sign and you would have a coil that accelerated the magnet, extracting energy from nowhere. The mechanical work you do against that opposition is exactly the electrical energy you get out. That is a generator.

Key Formulas

Field inside a solenoid\(B = \mu_0 n I\)n = turns per metre
Permeability of free space\(\mu_0 = 4\pi \times 10^{-7}\ \text{T·m/A}\)
Dipole field outside\(B \propto \dfrac{1}{r^3}\)reach scales as I^{1/3}
Magnetic flux\(\Phi = N B A\)
Faraday–Lenz law\(\mathcal{E} = -\dfrac{d\Phi}{dt}\)
Moving magnet\(\mathcal{E} = -NA\,\dfrac{dB}{dx}\,v\)emf follows the gradient
Force on a moving charge\(\vec F = q\,\vec v \times \vec B\)

Things worth knowing

  • The field outside a solenoid falls as 1/r³, so reach scales only as the cube root of current. Eight times the current buys just twice the distance.
  • As a magnet passes through a coil the induced voltage is exactly zero at the moment the magnet is centred - precisely where the field through the coil is largest. What matters is the rate of change, not the size.
  • Lenz's law is conservation of energy in disguise. If the induced current helped the motion instead of opposing it, a single push would spin a generator forever.

From Ørsted to Maxwell, and why magnetism is relativity

Scholar level — full mathematical depth

01Two laws, one field

Ampère's circuital law, \(\oint \vec B \cdot d\vec l = \mu_0 I_{\text{enc}}\), says a current threads a magnetic field around itself. Faraday's law, \(\oint \vec E \cdot d\vec l = -\,d\Phi_B/dt\), says a changing magnetic flux threads an electric field around itself. Written as a pair they already look suspiciously symmetric, and that symmetry is the seed of everything that follows. In differential form: \(\nabla \times \vec B = \mu_0 \vec J\) and \(\nabla \times \vec E = -\partial \vec B / \partial t\).

02The term Maxwell added

Ampère's law as stated is inconsistent: take the divergence of both sides and you get \(\nabla \cdot \vec J = 0\), which is false whenever charge accumulates - as it does on a charging capacitor. Maxwell repaired it with the displacement current, \(\nabla \times \vec B = \mu_0 \vec J + \mu_0 \varepsilon_0\,\partial \vec E/\partial t\). The repair was not cosmetic. With it, the equations in vacuum combine into a wave equation with speed \(c = 1/\sqrt{\mu_0 \varepsilon_0}\) - a number Maxwell could evaluate from purely electrical measurements, and which came out equal to the measured speed of light. Light was revealed to be an electromagnetic wave by an algebraic consistency fix.

03Lenz's sign, and why it cannot be otherwise

The minus sign in Faraday's law is fixed by energy conservation, not convention. Consider a coil of resistance \(R\): the induced current \(I = \mathcal{E}/R\) dissipates \(\mathcal{E}^2/R\), and that power must come from the agent moving the magnet. The retarding force on the magnet is therefore \(F = \mathcal{E}^2/(Rv)\), scaling as \(v\) for a given geometry - which is precisely why a magnet reaches terminal velocity in a copper tube, with eddy currents dissipating exactly the gravitational power input. Reverse the sign and the system becomes a runaway.

04Flux rule versus force law

Feynman flagged the flux rule \(\mathcal{E} = -d\Phi/dt\) as a rare case of a single formula covering two physically distinct mechanisms. When the circuit moves, the emf comes from the magnetic part of the Lorentz force, \(q\vec v \times \vec B\), acting on charges dragged through a static field. When the field changes and the circuit is still, the emf comes from a genuine induced electric field, \(\nabla \times \vec E = -\partial\vec B/\partial t\). Two different terms in the Lorentz force conspire to give the same answer - and there are contrived geometries where the flux rule fails while the force law does not.

05Magnetism as electrostatics seen from a train

The conspiracy is not a coincidence. Take a neutral current-carrying wire and a charge drifting alongside it. In the lab frame the wire is neutral and the force on the charge is purely magnetic. Boost into the charge's frame and the magnetic force vanishes - but the Lorentz contraction of the positive and negative charge densities differs, because they move at different velocities, so the wire is no longer neutral and there is an electric force instead. Same force, different names. Magnetism is what electrostatics looks like from a moving frame, and the factor \(1/c^2\) between them is why magnetic effects at everyday drift velocities of millimetres per second are as strong as they are: the enormous charge densities compensate.

06The missing monopole

Maxwell's equations are almost symmetric under swapping \(\vec E\) and \(\vec B\) - almost, because \(\nabla \cdot \vec B = 0\) has no magnetic-charge counterpart to \(\nabla \cdot \vec E = \rho/\varepsilon_0\). Cut a bar magnet in half and you get two magnets, never an isolated pole. Dirac showed in 1931 that the existence of even one monopole anywhere in the universe would force electric charge to be quantised, in units \(eg = n\hbar c/2\) - which would explain the otherwise unexplained fact that every electron carries exactly the same charge. None has ever been found, and the quantisation of charge remains unexplained.

Key Formulas

Gauss, electric\(\nabla \cdot \vec E = \rho/\varepsilon_0\)
Gauss, magnetic\(\nabla \cdot \vec B = 0\)no monopoles
Faraday\(\nabla \times \vec E = -\dfrac{\partial \vec B}{\partial t}\)
Ampère–Maxwell\(\nabla \times \vec B = \mu_0 \vec J + \mu_0\varepsilon_0 \dfrac{\partial \vec E}{\partial t}\)
Wave speed\(c = \dfrac{1}{\sqrt{\mu_0 \varepsilon_0}}\)
Lorentz force\(\vec F = q(\vec E + \vec v \times \vec B)\)
Dirac quantisation\(eg = \dfrac{n\hbar c}{2}\)

Things worth knowing

  • Maxwell fixed an inconsistency in Ampère's law with the displacement current, and the repaired equations predicted waves travelling at 1/√(μ₀ε₀) — the measured speed of light. Light turned out to be electromagnetism.
  • Magnetism is electrostatics seen from a moving frame. Boost into a drifting charge's frame and the magnetic force becomes an electric one, because Lorentz contraction unbalances the wire's charge densities.
  • Dirac showed that a single magnetic monopole anywhere in the universe would force electric charge to be quantised. Charge is quantised — but no monopole has ever been found.

Sources

Full article on Wikipedia ↗