Sub topic 11
LC Oscillations and the Analogy with SHM
This chapter assumes you know the energy stored in a capacitor (U = q²/2C), the energy stored in an inductor (U = ½LI²), self-induced EMF (ε = −L dI/dt), and the equation of simple harmonic motion (SHM). It treats an ideal circuit with no resistance. Resistance is added in the series LCR chapters.
The setup
Take a capacitor of capacitance C that carries charge Q₀ and connect it across an inductor of inductance L. The capacitor starts to discharge through the inductor. The current does not jump to its full value, because the inductor opposes any change in current. The current grows, and the capacitor's energy moves into the magnetic field of the inductor.
When the capacitor is fully discharged, the current is at its maximum. The inductor keeps the current going, so it charges the capacitor again, this time with the opposite polarity. The process then runs backward. This repeats forever if there is no resistance.
Deriving the equation
Let q be the charge on the capacitor at time t, and let I = dq/dt be the current that discharges it. Apply Kirchhoff's loop rule around the circuit. The capacitor voltage is q/C. The inductor's EMF opposes the change in current. Taking I as the rate at which q decreases gives I = −dq/dt, and the loop equation is:
q/C − L dI/dt = 0
Substituting I = −dq/dt:
L d²q/dt² + q/C = 0
Rearranging:
d²q/dt² = −(1/LC) q
This has the same form as the SHM equation d²x/dt² = −ω²x. So the charge oscillates harmonically, with:
- Angular frequency: ω₀ = 1/√(LC)
- Frequency: f₀ = 1/(2π√(LC))
- Period: T = 2π√(LC)
If the capacitor is fully charged at t = 0, the solution is:
- q(t) = Q₀ cos(ω₀t)
- I(t) = −dq/dt = ω₀Q₀ sin(ω₀t), so the peak current is I₀ = ω₀Q₀
The charge and current are 90° out of phase. When q is at its maximum, I is zero, and when q is zero, I is at its maximum.
The mechanical analogy
A mass on a spring obeys m d²x/dt² + kx = 0. Compare this with L d²q/dt² + q/C = 0. Each quantity in one system has a partner in the other.
| Mechanical (mass on spring) | Electrical (LC circuit) |
|---|---|
| Displacement x | Charge q |
| Velocity v = dx/dt | Current I = dq/dt |
| Mass m (inertia) | Inductance L (electrical inertia) |
| Spring constant k | 1/C |
| Potential energy ½kx² | Electric energy q²/2C |
| Kinetic energy ½mv² | Magnetic energy ½LI² |
| ω = √(k/m) | ω = 1/√(LC) |
The partner of the spring constant is 1/C, so a stiffer spring corresponds to a smaller capacitor. A larger L slows the oscillation, just as a larger mass does.
A common mistake is to pair the inductor with the spring because both "store energy." The correct pairing is by role in the equation. The inductor resists changes in current the way mass resists changes in velocity, so L pairs with m.
Energy exchange
The total energy is constant:
U = q²/2C + ½LI² = Q₀²/2C
Substituting the solutions gives:
- Electric energy: U_E = (Q₀²/2C) cos²(ω₀t)
- Magnetic energy: U_B = (Q₀²/2C) sin²(ω₀t)
The two add to Q₀²/2C at every instant. Each energy oscillates at twice the circuit frequency, so each has period T/2. Each reaches its maximum four times per... more precisely, each reaches its maximum twice per full cycle.
The table below lists the key instants in one cycle.
| Time | Charge q | Current I | Electric energy | Magnetic energy |
|---|---|---|---|---|
| 0 | Q₀ | 0 | Q₀²/2C (max) | 0 |
| T/4 | 0 | I₀ | 0 | ½LI₀² (max) |
| T/2 | −Q₀ | 0 | max | 0 |
| 3T/4 | 0 | −I₀ | 0 | max |
| T | Q₀ | 0 | max | 0 |
The two energy maxima are equal, so ½LI₀² = Q₀²/2C. This gives I₀ = Q₀/√(LC) = ω₀Q₀, which agrees with the result found from the solution.
Useful relations for problems
When the charge is q, the current can be found from energy conservation:
½LI² = Q₀²/2C − q²/2C, so I = (1/√(LC)) √(Q₀² − q²)
This matches the SHM relation v = ω√(A² − x²). The energies are equal when q = Q₀/√2. At that instant each holds half of the total energy.
Checking the numbers in code
import math
def lc_oscillation(L, C, Q0):
"""Frequency, period, peak current and total energy of an ideal LC circuit."""
w0 = 1 / math.sqrt(L * C)
f0 = w0 / (2 * math.pi)
T = 1 / f0
I0 = w0 * Q0
energy = Q0**2 / (2 * C)
return f0, T, I0, energy
L = 0.1 # henry
C = 100e-6 # farad
Q0 = 2e-3 # coulomb
f0, T, I0, E = lc_oscillation(L, C, Q0)
print(round(f0, 2), round(T, 4), round(I0, 3), round(E, 4))
# Check: magnetic energy at peak current equals the total energy
print(round(0.5 * L * I0**2, 4))The program prints a frequency of about 50.33 Hz, a period of about 0.0199 s, a peak current of about 0.632 A and a total energy of 0.02 J. The last line prints 0.02 again, because ½LI₀² equals the total energy.
Common errors
- Using the wrong frequency formula. The LC frequency is 1/(2π√(LC)). Putting L/C or LC under the root is a frequent slip.
- Mixing up ω and f. The formula 1/√(LC) gives angular frequency in rad/s. Divide by 2π to get hertz.
- Treating the energy oscillation as having the same period as the charge. The energy exchange has half the period.
- Ignoring polarity. After T/2 the capacitor is charged again, but with the opposite polarity. Energy alone does not show this.
- Changing C or L mid-oscillation without checking what is conserved. If the capacitor plates are moved or a dielectric is inserted while the charge is fixed, the energy changes, and the new frequency uses the new C.
Exercises
Exercise
A 2 µF capacitor charged to 100 V is connected across a 0.5 H inductor of negligible resistance. Find the oscillation frequency in hertz and the maximum current.
Show answer
Q₀ = CV = 2×10⁻⁶ × 100 = 2×10⁻⁴ C. ω₀ = 1/√(LC) = 1/√(0.5 × 2×10⁻⁶) = 1/√(10⁻⁶) = 1000 rad/s. So f₀ = 1000/(2π) ≈ 159 Hz. The maximum current is I₀ = ω₀Q₀ = 1000 × 2×10⁻⁴ = 0.2 A.
Exercise
In an ideal LC circuit with peak charge Q₀, find the charge on the capacitor at the moment when the energy stored in the inductor is three times the energy stored in the capacitor.
Show answer
The total energy is Q₀²/2C. If the magnetic energy is three times the electric energy, the electric energy is one quarter of the total. So q²/2C = (1/4)(Q₀²/2C), which gives q² = Q₀²/4 and q = Q₀/2 (in magnitude).
Exercise
By what factor does the frequency of an LC circuit change if the inductance is quadrupled and the capacitance is made nine times larger?
Show answer
The frequency is proportional to 1/√(LC). The product LC increases by 4 × 9 = 36, so the square root increases by 6. The frequency becomes 1/6 of its original value.