Sub topic 1
Capacitors and Inductors: The i-v Relations
Prerequisites
This chapter assumes you know Ohm's law, Kirchhoff's voltage and current laws, and series and parallel resistor combinations. You should also be comfortable with derivatives, integrals, and the exponential function. Nothing else is needed. This chapter sets up the component equations that every later transient analysis uses.
Why these two elements matter
A resistor has an algebraic relation between voltage and current: v = iR. The answer at any instant depends only on that instant. Capacitors and inductors are different. Their relations involve a derivative or an integral, so they depend on what happened before. This is the reason circuits containing them have transients: voltages and currents that take time to settle after a change.
The capacitor
An ideal capacitor stores energy in an electric field. Its capacitance C is measured in farads (F). With the passive sign convention (current enters the terminal with the higher voltage reference), the relations are:
- Current from voltage: i = C dv/dt
- Voltage from current: v(t) = v(t₀) + (1/C) ∫ i dτ, integrated from t₀ to t
Two consequences follow:
- If the voltage is constant, dv/dt is zero, so the current is zero. In DC steady state a capacitor acts like an open circuit.
- A sudden jump in voltage would need infinite current, because dv/dt would be infinite. Real circuits do not allow this.
The energy stored is w = ½ C v², in joules.
The inductor
An ideal inductor stores energy in a magnetic field. Its inductance L is measured in henries (H). With the passive sign convention:
- Voltage from current: v = L di/dt
- Current from voltage: i(t) = i(t₀) + (1/L) ∫ v dτ, integrated from t₀ to t
The mirror-image consequences:
- If the current is constant, the voltage is zero. In DC steady state an inductor acts like a short circuit.
- A sudden jump in current would need infinite voltage.
The energy stored is w = ½ L i².
Side by side
| Property | Capacitor | Inductor |
|---|---|---|
| Unit | farad (F) | henry (H) |
| Current-voltage rule | i = C dv/dt | v = L di/dt |
| DC steady state | Open circuit | Short circuit |
| Stored energy | ½ C v² | ½ L i² |
| State variable | Voltage v | Current i |
A worked example
A 10 µF capacitor has a voltage that ramps from 0 V to 5 V in 2 ms.
The slope is dv/dt = 5 V / 2 ms = 2500 V/s. The current is i = C dv/dt = (10 × 10⁻⁶ F)(2500 V/s) = 25 mA. The current is constant because the ramp is linear.
The same numbers on a 10 mH inductor, with the current ramping from 0 A to 5 A in 2 ms, give v = L di/dt = (10 × 10⁻³ H)(2500 A/s) = 25 V.
The following Python code checks the capacitor case numerically by estimating the derivative from samples.
C = 10e-6 # farads
t = [0.0, 1e-3, 2e-3] # seconds
v = [0.0, 2.5, 5.0] # volts, linear ramp
for k in range(1, len(t)):
dvdt = (v[k] - v[k - 1]) / (t[k] - t[k - 1])
i = C * dvdt
print(f"interval {k}: i = {i * 1000:.1f} mA")Both intervals print 25.0 mA.
Common errors
- Ignoring the sign convention. If the current points out of the positive terminal, a minus sign appears in i = C dv/dt and v = L di/dt.
- Forgetting the initial value. The integral forms need v(t₀) or i(t₀). Without it the answer is incomplete.
- Treating a capacitor as an open circuit or an inductor as a short circuit during a transient. These shortcuts apply only after a long time with constant sources.
- Mixing units. Use farads, henries, seconds, volts and amperes. A value in µF or mH must be converted first.
Exercise
A 2 mH inductor carries a current that rises linearly from 0 A to 3 A in 6 ms. What is the voltage across it, and how much energy is stored at 6 ms?
Show answer
The slope is di/dt = 3 A / 6 ms = 500 A/s. The voltage is v = L di/dt = (2 × 10⁻³)(500) = 1 V, constant during the ramp. The energy is w = ½ L i² = ½ (2 × 10⁻³)(3²) = 9 mJ.
Exercise
A 100 nF capacitor is charged to 12 V and then held with no current flowing. What is the current through it, and how much energy does it store?
Show answer
With constant voltage, dv/dt = 0, so the current is 0 A. The energy is w = ½ C v² = ½ (100 × 10⁻⁹)(12²) = 7.2 µJ.