Circuit laws and energy storage
Intent
Section titled “Intent”- Apply Kirchhoff’s current and voltage laws to a switched circuit, one interval at a time.
- Compute how much an inductor’s current and a capacitor’s voltage change under a constant voltage or current.
- Explain why inductor current and capacitor voltage cannot change instantly, and what that means for a switch.
Theory
Section titled “Theory”Kirchhoff’s laws
Section titled “Kirchhoff’s laws”The currents entering a node sum to zero (Kirchhoff’s current law), and the voltages around a closed loop sum to zero (Kirchhoff’s voltage law) [Alexander & Sadiku 2017, Ch. 2]. A switching converter is a different linear circuit in each interval of the switching period. Within one interval both laws apply, and the element laws below join the intervals together [Erickson & Maksimović 2020, Ch. 2].
The inductor under a constant voltage
Section titled “The inductor under a constant voltage”The voltage across an inductor is its inductance times the rate of change of its current [Alexander & Sadiku 2017, Ch. 6]. With a constant voltage across it, the current changes linearly in time:
- change of inductor current
- inductance
- inductor voltage
- duration
Assumptions, convention and source
- Assumptions
- ideal (lossless) switches and passive components
- constant voltage (inductor) or current (capacitor) during the interval t
- Notes
- integrates the inductor law; the current changes linearly while the voltage is constant. This is the full change, not the half-ripple of the converter pages
- Source
- Alexander & Sadiku 2017, Ch. 6 (Capacitors and Inductors)
- Derivation
- step-by-step sympy derivation
- Equation id
ind.di· equations.yaml entry
This is the whole change during the interval; the converter pages use the half-ripple , half the peak-to-peak change (Erickson’s convention).
The capacitor under a constant current
Section titled “The capacitor under a constant current”The dual law: the current into a capacitor is its capacitance times the rate of change of its voltage, so a constant current changes the voltage linearly [Alexander & Sadiku 2017, Ch. 6]:
- change of capacitor voltage
- capacitance (output capacitor)
- capacitor current
- duration
Assumptions, convention and source
- Assumptions
- ideal (lossless) switches and passive components
- constant voltage (inductor) or current (capacitor) during the interval t
- Notes
- integrates the capacitor law, the dual of the inductor law
- Source
- Alexander & Sadiku 2017, Ch. 6 (Capacitors and Inductors)
- Derivation
- step-by-step sympy derivation
- Equation id
cap.dv· equations.yaml entry
Stored energy
Section titled “Stored energy”An inductor stores energy in its magnetic field, a capacitor in its electric field [Alexander & Sadiku 2017, Ch. 6]:
- energy in the inductor
- dc inductor current
- inductance
Assumptions, convention and source
- Assumptions
- ideal (lossless) switches and passive components
- linear (unsaturated) magnetic material
- Source
- Alexander & Sadiku 2017, Ch. 6 (Capacitors and Inductors)
- Derivation
- step-by-step sympy derivation
- Equation id
ind.E· equations.yaml entry
- energy in the capacitor
- capacitance (output capacitor)
- capacitor voltage
Assumptions, convention and source
- Assumptions
- ideal (lossless) switches and passive components
- Source
- Alexander & Sadiku 2017, Ch. 6 (Capacitors and Inductors)
- Derivation
- step-by-step sympy derivation
- Equation id
cap.E· equations.yaml entry
Inductor current and capacitor voltage cannot change instantly: a jump would change the stored energy in zero time [Alexander & Sadiku 2017, Ch. 6]. When a transistor turns off, the inductor current therefore has to continue somewhere, and a converter gives it a path through a diode or a second switch [Erickson & Maksimović 2020, Ch. 4]. In steady state the current also ends every period where it started, which is volt-second balance.
Worked example
Section titled “Worked example”An example inductor and capacitor, each under a constant excitation:
| Symbol | Value | How it is obtained |
|---|---|---|
| inductor voltage | 12 V | given |
| duration | 5 µs | given |
| inductance | 100 µH | given |
| capacitor current | 1.2 A | given |
| capacitance (output capacitor) | 10 µF | given |
| dc inductor current | 2 A | given |
| capacitor voltage | 12 V | given |
| change of inductor current | 600 mA | Current change of an inductor under a constant voltage |
| change of capacitor voltage | 600 mV | Voltage change of a capacitor under a constant current |
| energy in the inductor | 200 µJ | Energy stored in an inductor |
| energy in the capacitor | 720 µJ | Energy stored in a capacitor |
During the interval the inductor current rises by 600 mA and the capacitor voltage by 600 mV. At the given current the inductor stores 200 µJ; at the given voltage the capacitor stores 720 µJ.
Try it
Section titled “Try it”▶ Open in the equation explorer: Current change of an inductor under a constant voltage
Preset from the example lc-elements
Sweep over its logarithmic range: the current change falls in inverse proportion to the inductance. This is why a larger inductor gives a smaller current ripple at the same voltages and switching frequency.
Bench exercise
Section titled “Bench exercise”Drive a resistor in series with an inductor from a function generator with a square wave whose period is much shorter than the inductance divided by the resistance. The inductor current, seen with a current probe, is then close to a triangle: during each half-period the inductor sees an almost constant voltage. Measure the slope of each ramp and compare it with the inductor equation at the measured voltage across the inductor. Repeat with a capacitor in place of the inductor, a period much shorter than the resistance times the capacitance, and the voltage across the capacitor.
Gotchas
Section titled “Gotchas”- The half-ripple is half. The change on this page is the whole change during the interval; the converter pages’ is half of the peak-to-peak ripple. Mixing the two conventions doubles or halves a result.
- Never leave an inductor’s current without a path. Its current cannot stop instantly [Alexander & Sadiku 2017, Ch. 6], so opening the only path forces a large voltage across the switch until something conducts.
- A discharged capacitor across a stiff source draws a surge. Its voltage cannot jump [Alexander & Sadiku 2017, Ch. 6], so connecting it directly to a voltage source draws a current limited only by the resistance in the loop.
Go deeper
Section titled “Go deeper”- Course 6.002 Circuits and Electronics (Spring 2007)
MIT's first circuits course, with video lectures, notes and problem sets. - Lecture notes 6.002 Lecture Notes
Lecture-by-lecture notes (from the Fall 2000 offering) on circuit laws, energy-storage elements and sinusoidal steady state.
A inductor has a constant across it for . By how much does its current change?
Answer and explanation
Correct answer: B The current changes at the rate of the voltage divided by the inductance, , for .
A capacitor is charged by a constant for . How much does its voltage rise?
Answer and explanation
Correct answer: B The charge delivered is the current times the time, ; divided by the capacitance it gives the voltage change.
How much energy does a inductor store at ?
Answer and explanation
Correct answer: C Half the inductance times the square of the current: .
Which quantity of an ideal inductor cannot change instantly?
Answer and explanation
Correct answer: B The stored energy depends on the current, and a jump in current would need an infinite voltage. The voltage, by contrast, can jump, as it does at every switching edge.
The constant voltage across an inductor is doubled. What happens to the rate of change of its current?
Answer and explanation
Correct answer: C The rate of change of the current is the voltage divided by the inductance.
In a buck converter the inductor current rises by during the on-interval. What is the half-ripple used on the converter pages?
Answer and explanation
Correct answer: B The rise during the on-interval is the peak-to-peak ripple, and is half of it (Erickson's convention).
The numbers in the examples, presets and exercises on this site are synthetic: round teaching values, not data from any real design.