---
title: An inductor's current ramping, in field view
heading: A magnetic field that resists being built
eyebrow: C2 · Lesson 2 · An inductor's current ramping
xp: 40
---

::: hook
Connect an inductor to a battery through a resistor and the current doesn't jump to $V/R$. It rises gradually, because building the magnetic field inside the coil takes time and energy. As the field grows, the changing flux induces a voltage that opposes the battery (Lenz's law, B6.2), holding the current back. It's the capacitor story with the roles swapped: the inductor resists changes in current the way a capacitor resists changes in voltage.

::: play
- A cross-section of a long coil: current flows into the page along the top row of windings and out along the bottom. The arrows are the magnetic field. Press Play: one second of animation is one millisecond.
- Watch the field grow inside the coil while the current readout climbs. When is the inductor's voltage largest?
- Change L or R. The time constant here is τ = L/R.
:::
:::

```sim plot
view: flow
x: x = -2..2 cm
y: y = -1.2..1.2 cm
time: tt
slider: L = 10..100 step 10 = 50 mH
slider: R = 10..100 step 10 = 50 Ω
slider: V = 1..12 step 1 = 5 V
dx: (1.001 - exp(-(tt - 6*L/R*floor(tt/(6*L/R)))/(L/R)))*(atan((x + 1)/(y - 0.3)) - atan((x - 1)/(y - 0.3)) - atan((x + 1)/(y + 0.3)) + atan((x - 1)/(y + 0.3)))
dy: -(1.001 - exp(-(tt - 6*L/R*floor(tt/(6*L/R)))/(L/R)))*(0.5*ln(((x + 1)^2 + (y - 0.3)^2)/((x - 1)^2 + (y - 0.3)^2)) - 0.5*ln(((x + 1)^2 + (y + 0.3)^2)/((x - 1)^2 + (y + 0.3)^2)))
arrows: scaled
heads: on
grid: 18
path: u, 0.3 | over: u = -1..1 | label: windings, current in
path: u, -0.3 | over: u = -1..1 | label: windings, current out
readout: time in ms = tt - 6*L/R*floor(tt/(6*L/R))
readout: current in mA = 1000*V/R*(1 - exp(-(tt - 6*L/R*floor(tt/(6*L/R)))/(L/R)))
readout: inductor voltage in V = V*exp(-(tt - 6*L/R*floor(tt/(6*L/R)))/(L/R))
readout: stored energy in mJ = 1000*0.5*(L/1000)*(V/R*(1 - exp(-(tt - 6*L/R*floor(tt/(6*L/R)))/(L/R))))^2
```

::: predict
## The switch closes on a 5 V source, 50 Ω and 50 mH. At the first instant, how fast does the current start to rise?

- [ ] 0.1 A/s
- [x] 100 A/s
- [ ] It jumps straight to 100 mA
- [ ] 0: it can't rise at all

::: reveal
100 A/s. At $t = 0$ the current is zero, so nothing drops across the resistor and the whole 5 V is across the inductor. Since $v = L\,di/dt$, the current starts rising at $5/0.05 = 100$ A/s. If it kept that pace it would reach its final 100 mA in 1 ms, which is exactly τ = L/R. It slows as the current builds, because more of the voltage then drops across R.
:::
:::

::: nameit
## Current in an inductor

**The rule.** An inductor's voltage is set by how fast its current changes (B6.6):

$$v_L = L\frac{di}{dt}$$

A sudden jump in current would need infinite voltage, so an inductor's current is always continuous. Its voltage can jump.

**The field.** Inside a coil the field is proportional to the current, $B = \mu Ni/\ell$ for a long solenoid, so the field's growth tracks the current. The changing flux through the turns induces the voltage $L\,di/dt$, which opposes the change.

**The equation.** KVL around the loop:

$$V = iR + L\frac{di}{dt}$$

Starting from zero current:

$$i = \frac{V}{R}\left(1 - e^{-t/\tau}\right) \qquad v_L = Ve^{-t/\tau} \qquad \tau = \frac{L}{R}$$

**The duality.** Swap voltage and current, C and L, and resistance and conductance, and the capacitor's equations become the inductor's:

| | Capacitor | Inductor |
|---|---|---|
| defining law | $i = C\,dv/dt$ | $v = L\,di/dt$ |
| can't jump | voltage | current |
| at DC (steady) | open circuit | short circuit |
| first-order τ | $RC$ | $L/R$ |
| stored energy | $\tfrac12Cv^2$ in E | $\tfrac12Li^2$ in B |

**Units.** Henries per ohm is seconds: 50 mH / 50 Ω = 1 ms.
:::

::: example
## 5 V is applied to a 10 mH inductor carrying no current. How fast does the current rise, and what is it after 200 µs?

::: solution
1. **Rate of rise.**
   $$\begin{aligned} \frac{di}{dt} &= \frac VL \\ &= \frac{5}{0.01} \\ &= 500\ \text{A/s} \end{aligned}$$
2. **Current after 200 µs.** The current rises in a straight line, so
   $$\begin{aligned} i &= 500\ \text{A/s} \times 200\ \mu\text{s} \\ &= 100\ \text{mA} \end{aligned}$$

**Answer:** the current rises in a straight line at 500 A/s, and is 100 mA after 200 µs.
:::
:::

::: example
## A solenoid has 200 turns over 10 cm with a 1 cm² cross-section. What is its inductance, and its field at 1 A?

::: solution
1. **Inductance.**
   $$\begin{aligned} L &= \frac{\mu_0N^2A}{\ell} \\ &= \frac{4\pi \times 10^{-7} \times 200^2 \times 10^{-4}}{0.1}\ \text{H} \\ &= 50\ \mu\text{H} \end{aligned}$$
2. **Field inside at 1 A.**
   $$\begin{aligned} B &= \frac{\mu_0NI}{\ell} \\ &= 2.5\ \text{mT} \end{aligned}$$

**Answer:** the inductance is 50 µH, and the field inside is 2.5 mT at 1 A.
:::
:::

::: example
## In a buck converter, the 4.7 µH inductor has 7.5 V across it while the switch is on for 1 µs. How much does its current rise?

::: solution
1. **Rate of rise.** $v = L\frac{di}{dt}$, so with a constant voltage the current ramps at
   $$\begin{aligned} \frac{di}{dt} &= \frac{7.5}{4.7 \times 10^{-6}}\ \text{A/s} \\ &= 1.6\ \text{A}/\mu\text{s} \end{aligned}$$
2. **Rise in 1 µs.**
   $$\begin{aligned} \Delta i &= \frac{v\,\Delta t}{L} \\ &= 1.6\ \text{A} \end{aligned}$$
3. **When the switch turns off.** The voltage reverses and the current ramps back down.
4. **What the inductor does.** Its current can't jump, so it smooths the switch's on-off chopping into a steady output with a small triangular ripple.

**Answer:** the current rises by 1.6 A while the switch is on.
:::
:::

::: check
given: L = 10 | 47 | 100; R = 22 | 33 | 68
answer: L/R
unit: ms
tolerance: 0.5%

## A {L} mH inductor is in series with {R} Ω. What is the time constant?

::: right
Right. $\tau = L/R$ = {answer}.
:::

::: misses
- [L*R] Divide: $\tau = L/R$.
- [R/L] It's L over R.
- [any] Not yet. $\tau = L/R$; mH/Ω gives ms.
:::
:::

::: check
given: V = 5 | 12 | 24; L = 10 | 50 | 200
answer: V/(L/1000)
unit: A/s
tolerance: 0.5%

## A {V} V source is switched across a {L} mH inductor through a resistor, with no current yet. How fast does the current start to rise?

::: right
Right. All of $V$ is across L at first: $di/dt = V/L$ = {answer}.
:::

::: misses
- [V*L/1000] Divide by L.
- [V/L] Convert mH to H.
- [any] Not yet. $di/dt = v_L/L$.
:::
:::

::: check
given: V = 5 | 12; R = 10 | 50 | 100; n = 1 | 2 | 3
answer: 1000*V/R*(1 - exp(-n))
unit: mA
tolerance: 0.5%

## A {V} V source drives {R} Ω and an inductor in series. What current flows after {n} time constant(s)?

::: right
Right. $\frac{V}{R}(1 - e^{-n})$ = {answer}.
:::

::: misses
- [1000*V/R*exp(-n)] That's how far it still has to go.
- [1000*V/R] It hasn't reached the final value yet.
- [any] Not yet. $i = \frac{V}{R}(1 - e^{-t/\tau})$.
:::
:::

::: check
given: V = 5 | 9 | 12; n = 1 | 2 | 3
answer: V*exp(-n)
unit: V
tolerance: 0.5%

## A {V} V source drives a resistor and an inductor in series, starting from zero current. What is the inductor's voltage after {n} time constant(s)?

::: right
Right. $Ve^{-n}$ = {answer}: it starts at the full source voltage and fades.
:::

::: misses
- [V*(1 - exp(-n))] That's the resistor's voltage. The inductor's voltage decays.
- [any] Not yet. $v_L = Ve^{-t/\tau}$.
:::
:::

::: check
kind: match

## Match each property to the part it describes.

- its voltage can't jump :: capacitor
- its current can't jump :: inductor
- acts as an open circuit at DC :: a charged capacitor
- acts as a short circuit at DC :: an inductor carrying steady current

::: right
Right. The two are duals: each statement about one becomes a statement about the other when voltage and current swap.
:::
:::

::: check
kind: parts
given: V = 3 | 7.5 | 20; L = 1 | 4.7 | 22; t = 0.5 | 2

## An inductor of {L} µH has {V} V across it for {t} µs.

::: part
answer: V/L
unit: A/µs
tolerance: 0.5%

### At what rate does its current rise?

::: misses
- [any] $\frac{di}{dt} = \frac vL$.
:::
:::

::: part
answer: V*t/L
unit: A
tolerance: 0.5%

### By how much has it risen?

::: misses
- [any] $\Delta i = \frac{v\Delta t}{L}$.
:::
:::
:::

::: check
kind: derivation
vars: V = 0.1..100, L = 0.000001..1, t = 0.0000001..0.01, a = 0..10

## An inductor L starting at current a has V across it for time t.

::: step
answer: a + V*t/L

### What's its current?
:::

::: step
answer: L*(a + V*t/L)^2/2

### What energy does it hold?
:::

::: right
Right. The voltage sets the slope; the current carries on from where it started.
:::
:::

::: explain
## Why does the current through an inductor rise gradually instead of jumping when a voltage is applied?

::: model
The current makes a magnetic field in the coil, and any change in that field changes the flux through the turns, which induces a voltage opposing the change. A sudden jump in current would mean an instant change in flux, which would induce an unlimited opposing voltage. So the current can only change at the rate $V/L$ that the applied voltage allows, and it rises gradually, slowing as the resistor takes more of the voltage.
:::
:::

::: practice

::: check
given: L = 1 | 10 | 100; R = 2.2 | 10 | 47
answer: L/R
unit: ms
tolerance: 0.5%

## τ for {L} mH and {R} Ω?

::: misses
- [L*R] Divide.
- [any] $L/R$.
:::
:::

::: check
given: V = 10 | 20; R = 4 | 5
answer: V/R
unit: A
tolerance: 0.5%

## What final current flows when {V} V drives an inductor through {R} Ω?

::: misses
- [0] At steady state the inductor is a short circuit.
- [any] $V/R$.
:::
:::

::: check
given: L = 10 | 100; di = 10 | 100 | 1000
answer: L*di/1000
unit: V
tolerance: 0.5%

## A {L} mH inductor's current changes at {di} A/s. What voltage is across it?

::: misses
- [L*di] Convert mH to H.
- [any] $v = L\,di/dt$.
:::
:::
:::
