Skip to content

Alternating current

The source on this page swings its voltage back and forth as a sine wave. The first four circuits are shown in their steady state, slowed so that one cycle takes about four seconds. The playground’s graph has two views: the voltage and current as waves, each drawn against its own peak so that the lag between them shows, and the same quantities as rotating arrows, phasors.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

A resistor does not care which way the current goes. At every instant the current is the voltage divided by the resistance, so the two waves rise, fall and reverse together. Heat is produced whichever way the charge flows. The average power is half the peak power, which is why AC is quoted by its RMS values: a 220 V supply has a peak of 311 V and heats a resistor exactly as 220 V of direct current would.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

A coil’s voltage depends on how fast the current is changing, not on how big it is. The current is changing fastest as it passes through zero, so that is when the voltage is at its peak. The current reaches its own peak a quarter of a cycle later. Over a cycle the coil takes energy in as its magnetic field builds and gives all of it back as the field collapses, so on average it uses no power at all. The faster the alternation, the more the coil opposes it.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

No charge crosses the gap in a capacitor, yet current flows in the wires all the time, as the plates are charged one way and then the other. The current is largest when the voltage is changing fastest, as it passes through zero, and is zero for an instant when the capacitor is full. So here the current reaches its peak a quarter of a cycle before the voltage. A capacitor blocks direct current completely and passes alternating current more easily the higher its frequency: the opposite of a coil.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

All three in one loop, carrying the same current. The coil’s voltage is a quarter cycle ahead of that current and the capacitor’s a quarter cycle behind, so the two are always opposite and partly cancel. Whichever is larger decides whether the current lags or leads the source.

Now change the frequency. Raising it strengthens the coil’s opposition and weakens the capacitor’s. At one frequency the two are equal and cancel completely. The source then sees only the resistor, and the current is as large as it can be. Switch the graph to phasors there: the arrows for L and C are equal and opposite, and each may be several times longer than the source’s. That is resonance. Tuning a radio is choosing which frequency a circuit like this resonates at.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

A charged capacitor connected to a coil, and no resistance. The capacitor starts to empty through the coil. The coil resists the growing current, then, once the capacitor is empty, resists its dying away: it keeps the current going and charges the capacitor up the other way round. Then the whole thing runs back. Energy passes between the capacitor’s electric field and the coil’s magnetic field, exactly as it passes between a spring and a moving mass. With no resistance it would go on for ever.