When an inductor and a capacitor are connected together, energy passes back and forth between them, so the voltage and current oscillate as sine waves at .
This is why second-order circuits can ring instead of just decaying. In Ch 8 the oscillation always comes with some resistance, which makes it die out. This page looks at the pure LC case first so you can see what the resistance is fighting against. It builds on the element laws in Capacitors and Inductors.
Intuition
Two kinds of stored energy
The two elements store energy in different forms:
- A capacitor stores energy in its electric field, . That energy depends on its voltage.
- An inductor stores energy in its magnetic field, . That energy depends on its current.
Neither can hold onto its energy once the other is connected across it. A charged capacitor wants to push current, and an inductor carrying current wants to keep pushing it. Put them together and each one keeps handing its energy to the other.
Figure 1: An LC circuit. The current flows out of the capacitor’s terminal and through the inductor.
Following one cycle
Start with the capacitor charged to and no current flowing, then let the circuit go. The numbers below match the circled numbers in Figure 2.
- Start. The capacitor is fully charged and the current is 0. All the energy is in the capacitor.
- The capacitor discharges. Its voltage pushes current through the inductor. The inductor resists sudden changes in current (), so the current builds up gradually instead of all at once. As charge leaves the capacitor its voltage falls while the current rises, so energy moves from the electric field into the magnetic field. A quarter of the way through, the capacitor voltage reaches 0 and the current is at its maximum. All the energy is now in the inductor.
- The inductor keeps the current going. An inductor can’t stop its current instantly (its current is continuous), so the current keeps flowing the same way even though nothing is pushing it anymore. That current piles charge onto the capacitor the other way around, so the capacitor voltage goes negative. Halfway through, the current has dropped to 0 and the capacitor is charged to . All the energy is back in the capacitor, just with the opposite polarity.
- The whole thing runs in reverse. The capacitor now discharges the other way, and the current flows backwards and reaches its most negative value when passes through 0 again.
- Back to the start. After one full period the capacitor is at again with no current, exactly like step 1, and the cycle repeats forever.
Here’s the same cycle as a table:
| Stage | Where the energy is | ||
|---|---|---|---|
| 1 | Maximum | 0 | All in the capacitor’s electric field |
| 2 | 0 | Maximum | All in the inductor’s magnetic field |
| 3 | Maximum, reversed | 0 | All in the capacitor again |
| 4 | 0 | Maximum, reversed | All in the inductor again |
Why the current keeps flowing at stage 2, when the capacitor is empty and pushes nothing: the current has built up a magnetic field. As the current is forced to fall, the field shrinks, and a shrinking field induces a voltage that opposes the fall (Lenz's law). That induced voltage is what pushes charge onto the capacitor the other way. At every instant is the same, so whenever one goes up the other goes down by the same amount.
Figure 2: Capacitor voltage (gold) and current (gray) over one period. The circled numbers are the stages in the list above.
Notice that the voltage and current are a quarter cycle (90°) apart. The current is at its peak exactly when the voltage passes through zero, and the current is zero exactly when the voltage is at a peak. That’s the energy changing hands, because when one element holds all of it the other holds none.
Energy is conserved
With no resistor, nothing turns the energy into heat, so the total never changes:
That gives you a useful link between the peak voltage and the peak current. At stage 1 all the energy is in the capacitor (), and at the quarter-cycle point all of it is in the inductor (). Setting them equal:
The mass-on-a-spring analogy
A mass on a spring does exactly the same thing. Stretch the spring and let go, and the mass speeds up as the spring relaxes, shoots past the middle because of its inertia, stretches the spring the other way, stops, and comes back. The two systems match up term by term:
| LC circuit | Mass on a spring |
|---|---|
| Charge on the capacitor, | Position of the mass, |
| Current, | Velocity, |
| Capacitor, energy | Spring, energy |
| Inductor, energy , resists changes in current | Mass, energy , resists changes in velocity (inertia) |
| Mass | |
| Spring stiffness | |
| Resistor | Friction |
The inductor’s “inertia” is what makes the circuit overshoot past 0 V instead of just settling there. Without an inductor (an RC circuit) the voltage just decays to zero and never goes negative, like a spring in thick honey with no mass to carry it past the middle.
The frequency formula makes sense through the analogy too. A heavier mass (bigger ) or a softer spring (bigger , since ) swings more slowly.
Where the sine wave comes from
You can get the oscillation straight from the element laws. In Figure 1, the current flows out of the capacitor’s terminal, so by the passive sign convention . The inductor is connected directly across the capacitor, so it has the same voltage, . Substituting the first into the second:
This is the Ch 8 standard form with (no resistance) and . Its characteristic equation has roots , which are purely imaginary, so the response is a sine wave that never decays (see Second-Order Differential Equations). With and :
Adding resistance
Real circuits always have some resistance, and a resistor acts like friction. On every swing it turns some of the energy into heat, so each swing is smaller than the last. How fast that happens is the damping, :
- A little resistance (): it still oscillates, but inside a shrinking envelope. That’s the underdamped case.
- A lot of resistance (): the energy gets drained before it can swing even once, so it just creeps to zero. That’s the overdamped case, like a spring in honey.
- Exactly enough (): the fastest return to zero without overshooting. That’s critically damped.
Figure 3: Adding resistance to an LC circuit. The pure LC case would keep oscillating at full size forever.
Whether more resistance means more or less damping depends on where it’s connected. See Damping in Series and Parallel RLC.
Key formulas
Resonant frequency, period and frequency in hertz
Energy conservation and peak values (no resistance)
Pure LC response, starting from , (current direction as in Figure 1)
- : resonant (natural) frequency, rad/s
- : period, s; : frequency, Hz
- : peak capacitor voltage; : peak current
- : inductance (H); : capacitance (F)
Worked example
Example 1: A capacitor discharging into an inductor
A capacitor charged to is connected to a inductor at . There’s no resistance. Find (a) the frequency and period of the oscillation, (b) the stored energy and the peak current, (c) and , and (d) the current at the moment the capacitor voltage is 3 V.
Show answerHide answer
(a)
(b) All the energy starts in the capacitor:
At the peak current all of it is in the inductor:
Check: ✓
(c)
(d) At the capacitor holds . The rest, , is in the inductor:
Part (d) didn't need or at all. Energy conservation is often the quickest way to relate voltage and current in an LC circuit.
Common mistakes
- Thinking the current is largest when the capacitor voltage is largest. It’s the opposite, and the current peaks when passes through zero
- Expecting the capacitor to just discharge to 0 V and stop. The inductor’s current carries it past zero and charges it the other way
- Mixing up (rad/s) and (Hz). They differ by a factor of
- Forgetting that a real circuit’s resistance makes the oscillation decay, so a pure LC answer that never dies out only applies when
Related
- Capacitors and Inductors: the element laws and stored energy
- Damping in Series and Parallel RLC: what resistance does to the oscillation
- Second-Order Differential Equations: solving the equation in general