Lesson 12 of 15
Energy in Capacitor & Inductor
Stored Energy
Capacitors and inductors don't dissipate energy like resistors — they store it.
Capacitor
A capacitor stores energy in the electric field between its plates:
E_C = ½ · C · V²
Units: farads × volts² = joules
Inductor
An inductor stores energy in its magnetic field:
E_L = ½ · L · I²
Units: henries × amperes² = joules
Total Energy in RLC Circuit
The total stored energy at any instant:
E_total = ½·C·V_C² + ½·L·I²
In an underdamped RLC circuit, energy oscillates between the capacitor and inductor, gradually dissipated by R.
Practical Examples
| Component | Value | Condition | Energy |
|---|---|---|---|
| Capacitor | 1 mF | 5V | 12.5 mJ |
| Capacitor | 1 mF | 10V | 50 mJ |
| Inductor | 1 H | 2A | 2 J |
| Capacitor | 100 μF | 100V | 0.5 J |
Note: energy scales as V² for capacitors — doubling the voltage stores 4× the energy.
Applications
- Camera flash: large capacitor discharged quickly through a xenon tube
- Power supply filtering: capacitor releases stored energy during current spikes
- Inductive kickback: inductor's stored energy causes voltage spike when current is interrupted
Your Task
Implement double stored_energy(double c, double vc, double l, double il) that returns the total stored energy E = ½·C·V_C² + ½·L·I_L².
TCC compiler loading...
Loading...
Click "Run" to execute your code.