Sub topic 5
The voltage-current law v = L di/dt
What this chapter covers and what it assumes
This chapter states the inductor's voltage-current law, shows how to apply it to common current waveforms, and lists the mistakes that appear most often. It assumes you know the following:
- Ohm's law and Kirchhoff's voltage and current laws.
- Basic derivatives and integrals.
- The passive sign convention: current enters the terminal marked with the plus sign of the voltage.
- The earlier chapters' picture of an inductor as a coil whose inductance L is measured in henries, and of Faraday's law as the reason a changing current induces a voltage.
The law
For an ideal inductor with inductance L, the voltage across it depends on how fast the current through it changes:
v(t) = L * di(t)/dtHere v is in volts, L is in henries, i is in amperes, and t is in seconds. The law holds when v and i follow the passive sign convention. That means the reference arrow for i points into the terminal where v has its plus mark, so current flows through the inductor from the plus terminal to the minus terminal.
Three consequences follow directly.
- The voltage depends on the slope of the current, not on its value. A large steady current gives zero voltage. A small current that changes quickly can give a large voltage.
- The sign of v matches the sign of di/dt. A rising current gives positive v. A falling current gives negative v.
- The unit of inductance follows from the law: 1 H = 1 V·s/A. One henry produces 1 V when the current changes at 1 A/s.
If you reverse the reference direction of either v or i, a minus sign appears: v = -L di/dt. Decide the reference directions before you write the equation.
Why the law has this form
Faraday's law says the voltage induced in a coil equals the rate of change of the flux linkage λ, which is the flux multiplied by the number of turns. For a linear inductor the flux linkage is proportional to the current:
λ = L * iDifferentiating gives v = dλ/dt = L di/dt. The constant L is fixed by the coil's geometry and core material. The law therefore assumes that L does not depend on the current. That assumption fails when a core saturates, which a later chapter covers.
Worked example: a constant current ramp
A current that rises linearly by 2 A in 1 ms flows through a 10 mH inductor. The slope is constant, so the voltage is constant:
L = 10e-3 # inductance in henries (10 mH)
di = 2.0 # current change in amperes
dt = 1e-3 # time interval in seconds (1 ms)
v = L * di / dt # voltage during a constant current ramp
print(v) # 20.0 voltsThe slope is 2 A / 1 ms = 2000 A/s, and 10 mH × 2000 A/s = 20 V. If the current then fell back to 0 A over the next 1 ms, the slope would be -2000 A/s and the voltage would be -20 V.
Applying the law to a waveform
When the current is given as a piecewise function, differentiate each piece separately. The table below shows the result for common shapes.
| Current i(t) | Slope di/dt | Voltage v(t) |
|---|---|---|
| Constant, I₀ | 0 | 0 |
| Linear ramp, k·t | k | L·k (constant) |
| Sine, I·sin(ωt) | ωI·cos(ωt) | ωLI·cos(ωt) |
| Exponential rise, I(1 − e^(−t/τ)) | (I/τ)·e^(−t/τ) | (LI/τ)·e^(−t/τ) |
Two points about the table are worth noting. First, the sine row shows that voltage leads current by 90 degrees, because cosine is a sine shifted a quarter cycle earlier. The ratio of peak voltage to peak current is ωL, which later becomes the inductive reactance. Second, the exponential row is the shape of the RL step response. The voltage starts at its largest value and decays as the current settles.
A triangular current gives a square-wave voltage, and the same reasoning applies to any piecewise-linear current. The voltage is constant on each segment and jumps at the corners, where the slope changes.
The diagram below shows the working procedure.
What the law implies about discontinuities
The law places a limit on how the current can behave. If the current jumped instantly, di/dt would be infinite, and an ideal inductor would need infinite voltage. A real circuit does not supply infinite voltage, so the current through an inductor is continuous. The voltage across an inductor, by contrast, can jump. A later chapter develops this point, and it matters for every switching problem.
Worked example: voltage from a sinusoidal current
A current i(t) = 0.5 sin(1000t) A flows through a 20 mH inductor. Differentiate:
- di/dt = 0.5 × 1000 × cos(1000t) = 500 cos(1000t) A/s.
- v(t) = 0.020 × 500 cos(1000t) = 10 cos(1000t) V.
The peak voltage is 10 V. The peak current is 0.5 A. Their ratio is 20 Ω, which equals ωL = 1000 × 0.020. When the current is at its peak, the voltage is zero, because the slope is zero at the peak.
Checking an answer numerically
You can verify a hand calculation by approximating the derivative with finite differences. The script below computes the voltage across a 10 mH inductor for a current that ramps up, holds, and ramps down.
L = 10e-3 # henries
dt = 1e-4 # time step in seconds
# Current samples every 0.1 ms: ramp 0 -> 2 A, hold, ramp 2 -> 0 A
i = [0.0, 0.5, 1.0, 1.5, 2.0, 2.0, 2.0, 1.0, 0.0]
for k in range(1, len(i)):
v = L * (i[k] - i[k - 1]) / dt
print(f"step {k}: v = {v:.1f} V")The output shows 50 V on the four rising steps, 0 V on the two flat steps, and -100 V on the two falling steps. The falling ramp is twice as steep as the rising ramp, so its voltage is twice as large and opposite in sign.
Common errors
- Using v = L·i. The voltage is proportional to the slope of the current, not to the current. A 5 A steady current through an ideal inductor produces 0 V.
- Ignoring the sign convention. If i points out of the plus terminal, the law becomes v = -L di/dt. Draw the arrows first.
- Mixing units. Convert millihenries and milliseconds before dividing. A ratio such as 10 mH / 1 ms is 10 V/A only after conversion: 0.010 / 0.001 = 10.
- Differentiating across a corner. At a corner of a piecewise-linear current, the slope is undefined. Report the voltage on each side of the corner instead of one value at it.
- Assuming the voltage must be continuous. It does not have to be. The step in v at a corner is normal. A step in i is not.
- Applying the law to a real coil without checking its limits. Winding resistance adds an i·R term, and a saturated core makes L fall. Both are covered later in this tutorial.
Summary of the working model
- The inductor voltage is L times the rate of change of current.
- Constant current means zero voltage, a rising current gives positive voltage, and a falling current gives negative voltage, all under the passive sign convention.
- Current must be continuous. Voltage may jump.
- The law is linear in L, so doubling the inductance doubles the voltage for the same current waveform.
Exercise
A 40 mH inductor carries a current that rises from 0 to 3 A in 2 ms, stays at 3 A for 3 ms, then falls to 1 A in 1 ms. Find the voltage across it during each of the three intervals, using the passive sign convention.
Show answer
Interval 1: di/dt = 3 A / 2 ms = 1500 A/s, so v = 0.040 × 1500 = 60 V. Interval 2: the current is constant, so di/dt = 0 and v = 0 V. Interval 3: di/dt = (1 − 3) A / 1 ms = -2000 A/s, so v = 0.040 × (-2000) = -80 V.
Exercise
The current through a 5 mH inductor is i(t) = 4 sin(200t) A. Write v(t) and state the peak voltage.
Show answer
di/dt = 4 × 200 × cos(200t) = 800 cos(200t) A/s. Then v(t) = 0.005 × 800 cos(200t) = 4 cos(200t) V. The peak voltage is 4 V, which equals ωL times the peak current: 200 × 0.005 × 4.
Exercise
An inductor's current is measured at 2 A and is perfectly constant. A student says the voltage across the ideal inductor is L × 2 A. What is wrong with this, and what is the actual voltage?
Show answer
The law uses the derivative of the current, not the current itself. A constant current has di/dt = 0, so the voltage is 0 V whatever the value of L.