Capacitors and inductors are the two energy-storage elements. A capacitor stores energy in an electric field set up by its voltage, and an inductor stores energy in a magnetic field set up by its current.

Resistors only turn energy into heat. Capacitors and inductors store it and give it back later, so circuits with them have a time element even when the source is DC. What they do now depends on what happened before. Everything in Ch 8 comes from the two element laws on this page.

Intuition

The big idea (the “explain it to a 5 year old” version)

Both parts are stubborn, and they are stubborn about different things:

  • A capacitor is stubborn about its voltage. It doesn’t like the voltage across it changing quickly, so it takes time to fill up (or empty out) its voltage.
  • An inductor is stubborn about its current. It doesn’t like the current through it changing quickly, so it takes time to build up (or stop) its current.

The reason is that each one stores energy in a field, and a field can’t be built up or torn down in zero time:

  • A capacitor stores energy in an electric field between its plates. The field comes from the charge sitting on the plates, and that charge is what sets the voltage (). Charge only gets onto the plates by flowing in as current, which takes time. So the voltage can’t jump, and changing it quickly needs a large current.
  • An inductor stores energy in a magnetic field around its coil. The field comes from the current. If the current changes, the field changes, and a changing field induces a voltage in the coil that opposes the change (Lenz’s law). A steady current makes a steady field, which induces nothing. So the current can’t jump, and changing it quickly needs a large voltage across the coil.
CapacitorInductor
What it’s stubborn aboutVoltageCurrent
Where the energy is storedElectric field (set by the charge, so by )Magnetic field (set by the current)
What takes timeCharge flowing onto the platesCurrent building up the field
If you try to change it instantlyNeeds a huge currentInduces a huge voltage
After a long time at DCFully charged, so the current stops: openCurrent steady, so the field stops changing and no voltage is induced: short

Everything below is just this picture with the math attached.

The capacitor

A capacitor is two conductors (plates) separated by an insulator called the dielectric (Figure 1, left). Push current into one terminal and charge builds up on that plate, while the same amount of charge leaves the other plate, which leaves it at . No charge actually crosses the gap. The separated charge sets up an electric field between the plates, and that field is where the energy is stored.

The more charge on the plates, the bigger the voltage between them. The ratio is the capacitance:

  • : charge on the plates (C)
  • : capacitance, in farads (F)
  • : permittivity of the dielectric
  • : plate area; : gap between the plates

Bigger plates or a smaller gap hold more charge per volt. Real values range from picofarads (pF) to millifarads (mF), and 1 F is huge.

Where comes from. Current is the rate charge arrives, . Differentiate :

So a capacitor’s current depends on how fast its voltage changes, not on the voltage itself. A capacitor sitting at a steady 100 V carries no current at all. To change its voltage quickly you need a large current, and to change it instantly you’d need an infinite one.

Water analogy: a capacitor is like a tank with a stretchy rubber membrane across the middle. Water (charge) pushed in one side bulges the membrane and pushes the same amount out the other side, so it looks like water flows "through" even though none actually crosses. The bulge (voltage) builds up gradually and pushes back.

Why a capacitor takes time to charge. Connect an empty capacitor to a battery through a resistor. At the first instant the capacitor has no voltage, so the whole battery voltage sits across the resistor and the current is at its biggest (). That current piles charge onto the plates, so the capacitor’s voltage rises. But as it rises, there’s less voltage left across the resistor, so the current shrinks, so the voltage rises more slowly. It’s like filling a bucket where the hose gets weaker the fuller the bucket gets. The voltage creeps toward the battery voltage but never needs to jump:

After one time constant the capacitor is about 63% charged, and after about it’s essentially full. A bigger (a bigger bucket) or a bigger (a thinner hose) both make it slower.

Try it below. Charge the capacitor through a resistor, then discharge it, or open the switch. Watch the plates fill up and the current die away as catches up.

Interactive capacitor diagram (open this page on the site to use it).

The inductor

An inductor is a coil of wire (Figure 1, right). Current through the coil sets up a magnetic field through its middle, and that field is where the energy is stored. The total magnetic flux linking the coil, , is proportional to the current, and the ratio is the inductance:

  • : flux linkage (Wb·turns)
  • : inductance, in henries (H)
  • : number of turns; : permeability of the core
  • : cross-sectional area of the coil; : its length

More turns, a bigger coil or an iron core all give more inductance. Real values range from microhenries (µH) to a few henries.

Where comes from. Faraday’s law says a changing flux induces a voltage, . Differentiate :

So an inductor’s voltage depends on how fast its current changes. A steady current, however large, produces no voltage. By Lenz’s law the induced voltage always opposes the change that caused it. Try to speed the current up and the inductor pushes back, and try to stop it and the inductor pushes forward to keep it going. That’s the inductor’s “inertia”, and it’s the reason an LC circuit overshoots and rings.

How to picture it: current makes a magnetic field, and a field that is changing induces a voltage that fights the change. The field never opposes a steady current. When the current rises, the induced voltage acts against the rise, and when it falls, the induced voltage acts to keep it up. That's why the current can't change instantly. And when you open a switch on a coil that is carrying current, the field collapses fast, which induces a large voltage spike.

Why an inductor takes time to build up current. Connect an inductor to a battery through a resistor. At the first instant the current is 0 (it can’t jump), so there’s no voltage across the resistor, and the whole battery voltage sits across the inductor. A big means a big , so the current starts climbing. As the current climbs, the resistor takes more of the battery voltage, so less is left across the inductor, so the climb slows down. The current creeps up to its final value :

It’s the mirror image of the capacitor: the same 63% after one and about to finish. A bigger (more field to build) makes it slower, but a bigger makes it faster, since the final current is smaller and there’s less to build up to.

Figure 1: A capacitor stores energy in the electric field between its plates (left). An inductor stores energy in the magnetic field through its coil (right). Figure 1: A capacitor stores energy in the electric field between its plates (left). An inductor stores energy in the magnetic field through its coil (right).

Here’s the same circuit with an inductor. The field grows with the current, and the voltage is what jumps. Try opening the switch while the coil is energized.

Interactive inductor diagram (open this page on the site to use it).

Passive sign convention

Both laws assume the passive sign convention, where the current arrow points into the terminal of the voltage. If your current arrow points into the terminal instead, put a minus sign in front: , .

Most sign errors in the Ch 8 slopes come from this. Before writing , check that is the current flowing into the capacitor's terminal.

The two elements are mirror images

Swap and and every capacitor result turns into an inductor result. This is called duality, and it means you really only have to learn one of them:

CapacitorInductor
Physical formTwo plates and an insulatorA coil of wire
Stores energy inElectric fieldMagnetic field
Defining relation
Element law
Integral form
Stored energy
Can’t jumpVoltage Current
Can jumpCurrent Voltage
At DC steady stateOpen circuit ()Short circuit ()
In series
In parallel
Impedance
Mechanical analogySpringMass

The rest of this page goes through each row.

Integral form

Integrating the element law from a starting time gives the value at any later time:

The integral adds up everything that’s happened since , and the last term is where it started. That’s the “memory”. A capacitor’s voltage now depends on all the current that has ever flowed into it, not just the current right now. It’s also why you need initial conditions to solve any circuit with a C or L in it.

Stored energy

The power into any element is . For a capacitor, substitute and integrate from an uncharged state ():

The inductor works the same way with :

Three things follow from these:

  • The energy is never negative (it’s a square), so an ideal C or L can only give back energy it took in earlier. It can’t generate any.
  • Ideal capacitors and inductors don’t dissipate. If is positive the element is absorbing and storing energy, and if it’s negative the element is releasing what it stored. Over a full cycle of a steady AC signal, they absorb and release the same amount.
  • The energy only depends on (or ). That’s the link to continuity, coming up next.

Why and can’t jump

Say a capacitor’s voltage jumped from to in zero time. Then:

  • is infinite, so would be infinite.
  • Equivalently, the stored energy would change from to in zero time, which needs infinite power.

Neither is possible in a real circuit, so capacitor voltage is continuous. The same argument with shows inductor current is continuous. At a switching instant :

The other variable has no such protection. A capacitor’s current can jump instantly (it only sets the slope of the voltage), and so can an inductor’s voltage. On a graph, a jump in shows up as a sudden change of slope (a corner) in , never a step (see Example 1 below).

At you can replace a capacitor with a voltage source of value , and an inductor with a current source of value . Ch 8 Step 3 uses exactly this.

The easiest way to see all of this is as slopes. Drag along the graph: the current through a capacitor (or the voltage across an inductor) is just the slope of the curve above it, scaled by (or ).

Interactive slope diagram (open this page on the site to use it).

DC steady state

When a DC circuit has been on for a long time, every voltage and current has stopped changing, so every derivative is 0:

  • Capacitor: . No current flows, so it acts like an open circuit. It still holds whatever voltage it charged to.
  • Inductor: . There’s no voltage across it, so it acts like a short circuit. It still carries whatever current is flowing.

These are the two rules for finding initial values (the circuit before switching) and final values (as ) in Ch 8.

There’s also a matching pair of rules for the instant a source is first switched on, if nothing was stored beforehand. An uncharged capacitor () acts like a short at that instant, and an inductor with no current () acts like an open. They then gradually change toward their DC steady-state behaviour.

Series and parallel

Capacitors combine like resistors the other way around, and inductors combine exactly like resistors.

Capacitors in parallel add. Every capacitor has the same voltage , and the currents add:

Physically, parallel capacitors are like one capacitor with a bigger plate area.

Capacitors in series combine like parallel resistors. They all carry the same current, so they all gain the same charge, and the voltages add: , which gives . For two, . Physically, it’s like one capacitor with a wider gap.

Inductors in series add, because they carry the same current and their voltages add: . Inductors in parallel combine like parallel resistors.

Memory aid: behaves like . behaves like (a conductance), so it flips.

Impedance: how they behave at different frequencies

For a sinusoid at angular frequency , becomes multiplication by , so each element acts like a frequency-dependent resistance called impedance:

FrequencyCapacitorInductor
DC (): open: short
Very high (): short: open

This matches the DC steady-state rules above, and it’s also why a sudden change (which has very high frequencies in it) gets through a capacitor but is blocked by an inductor. It’s the basis of filters in Ch 14.

Mechanical analogy

ElectricalMechanicalWhy
CapacitorSpringStores energy in how far it’s “stretched” (its charge, which sets its voltage)
InductorMassStores energy in how fast it’s “moving” (its current), and resists changes in it (inertia)
ResistorFrictionTurns energy into heat

A charged capacitor connected to an inductor behaves like a stretched spring with a mass on it, and it oscillates at . Adding resistance (friction) makes the oscillation die out. That’s the whole story of Ch 8.

Real components

Real parts are close to ideal, but not quite:

  • Capacitors leak a little, since a very large resistance in parallel lets the charge slowly drain away. They also have a small series resistance (ESR) and a maximum voltage rating, and going over it breaks down the dielectric. Electrolytic capacitors are polarized and have to be connected the right way around.
  • Inductors are made of wire, so they have a winding resistance in series. At DC a real inductor is a small resistor, not a perfect short. Inductors with iron cores also saturate at high current, and then drops.

In ELE 302 problems, assume ideal elements unless the question says otherwise.

Key formulas

Capacitor

Inductor

Continuity

Charging from zero through a resistor (source )

Combinations

Impedance

  • , : capacitor voltage and current; , : inductor voltage and current (passive sign convention)
  • : capacitance (F); : inductance (H)
  • , : stored energy (J)
  • : the time you start integrating from, usually 0

Worked example

Example 1: Capacitor voltage from its current

A capacitor starts at . Its current is for , then for , then 0. Find and the stored energy at , 2 and 4 s.

Show answerHide answer
  1. : integral form, with :
  2. : start from (the voltage can’t jump, even though the current does):
  3. : no current, so the voltage just holds: .
  4. Energy, :

Figure 2: Example 1. The current jumps at t = 2 and t = 4, but the voltage only changes slope. Figure 2: Example 1. The current jumps at and , but the voltage only changes slope.

From 0 to 2 s the capacitor absorbs . From 2 to 4 s the current reverses and it gives back to the circuit. After 4 s it holds onto the remaining 4 J indefinitely (an ideal capacitor doesn’t leak).

Example 2: Inductor voltage from its current

The current in a inductor is 0 for and for . Find , and the energy stored as .

Show answerHide answer
  1. Check continuity: ✓
  2. Element law: The voltage jumps from 0 to 10 V at . That’s fine, since only the inductor’s current has to be continuous.
  3. As : (the inductor becomes a short, as at DC steady state) and , so

Example 3: Combining elements

(a) A and a capacitor in series, with that pair in parallel with a . (b) A and a inductor in parallel, with that pair in series with a .

Show answerHide answer

(a) Series first: . Then parallel adds: .

(b) Parallel first: . Then series adds: .

Common mistakes

  • Thinking capacitor current or inductor voltage has to be continuous. Only and are
  • Mixing up the combination rules. Capacitors in parallel add and inductors in series add
  • Forgetting the initial value ( or ) when using the integral form
  • Ignoring the passive sign convention, which flips the sign of or
  • Treating a capacitor at DC steady state as having zero voltage. It has zero current, but it can still hold a voltage
  • Thinking a large voltage on a capacitor means a large current. The current depends on how fast the voltage changes
  • Mixing up which one is stubborn about what. Capacitors resist changes in voltage, and inductors resist changes in current
  • Thinking a bigger always slows things down. It does for , but gets faster with bigger

Seen in