Skip to main content
Sandbox Physics
Volume 3 · Electricity, Magnetism and Circuits

How do capacitors and inductors respond to a changing voltage?

Calculate RC and RL time constants, follow energy around an LC loop and use a frequency sweep to find where the impedance phase changes sign.

Before you start: Chapter 2, Chapter 3 and Chapter 5 on capacitance, loop equations and inductance. Volume 2 Chapter 2 and Chapter 3 on damping and driven resonance.

After this chapter you can: Find a switching time constant and read resistance, phase and resonance from a series circuit’s impedance.

When a switch connects a circuit to a voltage source, a capacitor's voltage and an inductor's current take time to change. With a sinusoidal source, the same component laws determine how far the current leads or lags the voltage. At series resonance, the capacitor and inductor produce equal and opposite contributions to the total voltage.

6.1 Watch a circuit settle after a switch closes

6.1.1 A resistor limits how fast a capacitor charges

Connect an ideal resistor RR and an initially uncharged capacitor CC in series to a constant source VsV_s at t=0t=0. Write qq for the signed charge on the capacitor plate that the positive current i=dq/dti=dq/dt enters. The voltage drops around the loop add to the source voltage.

Vs=Ri+qC,vC(t)=Vs(1−e−t/τC),τC=RC.V_s=Ri+\frac{q}{C},\qquad v_C(t)=V_s\bigl(1-e^{-t/\tau_C}\bigr),\qquad \tau_C=RC .

Immediately after switching, the capacitor voltage is still zero and the current is Vs/RV_s/R. As the capacitor charges, less of the source voltage appears across the resistor, so the current falls. After one time constant the capacitor has reached 1−e−1≈0.6321-e^{-1}\approx0.632 of its final voltage.

If the source is removed and the capacitor is left across the resistor, the loop equation has zero on the source side. The capacitor voltage falls to zero from its value at the switch, multiplying by e−1e^{-1} every time constant. The current reverses relative to charging.

6.1.2 An inductor limits how fast the current builds

Now connect RR and an ideal inductor LL in series to the same constant source, starting with zero current. The inductor voltage drop is positive at the terminal where the growing positive current enters. Kirchhoff's loop rule gives

Vs=Ri+Ldidt,i(t)=VsR(1−e−t/τL),τL=LR.V_s=Ri+L\frac{di}{dt},\qquad i(t)=\frac{V_s}{R}\bigl(1-e^{-t/\tau_L}\bigr),\qquad \tau_L=\frac{L}{R}.

Immediately after switching, the current is still zero, so the full source voltage appears across the inductor. As the current approaches Vs/RV_s/R, the inductor voltage falls to zero. If the source is removed and the inductor still has a closed path through the resistor, the current starts at its value just before switching and decays by e−1e^{-1} each time constant.

6.1.3 Compare two analytic switching records

For the RC loop use R=2.00 kΩR=2.00\,\mathrm{k\Omega} and C=10.0 μFC=10.0\,\mu\mathrm F. For the RL loop use R=10.0 ΩR=10.0\,\Omega and L=0.200 HL=0.200\,\mathrm H. Both use Vs=5.00 VV_s=5.00\,\mathrm V and have a time constant of 20.0 ms20.0\,\mathrm{ms}. The resistor and the energy-storing component set the rate of change together.

Table 6.1 Analytic step responses for the two ideal series loops. The RC voltage and RL current reach the same fraction of their own final values at each time.
Time after the stepCapacitor voltageInductor current
0 ms0\,\mathrm{ms}0 V0\,\mathrm V0 A0\,\mathrm A
20.0 ms20.0\,\mathrm{ms}3.16 V3.16\,\mathrm V0.316 A0.316\,\mathrm A
40.0 ms40.0\,\mathrm{ms}4.32 V4.32\,\mathrm V0.432 A0.432\,\mathrm A
60.0 ms60.0\,\mathrm{ms}4.75 V4.75\,\mathrm V0.475 A0.475\,\mathrm A

6.2 Exchange energy in a free LC loop

Connect a charged capacitor to an ideal inductor with zero resistance and no source. Let q(0)=Q0q(0)=Q_0 and i(0)=0i(0)=0. Keep positive current defined into the plate that carries charge qq. The loop law is

Lq¨+qC=0,ω0=1LC,q(t)=Q0cos⁡(ω0t).L\ddot q+\frac{q}{C}=0,\qquad \omega_0=\frac{1}{\sqrt{LC}},\qquad q(t)=Q_0\cos(\omega_0t).

This is the same oscillator equation as for a mass and spring, with charge in place of displacement. The current rises in magnitude as the capacitor discharges. Once the charge crosses zero, the current keeps flowing and charges the capacitor with the opposite polarity.

U=q22C+Li22.U=\frac{q^2}{2C}+\frac{Li^2}{2}.

The circuit exchanges energy between the electric field of the capacitor and the magnetic field of the inductor. With zero resistance, the sum stays constant. After one quarter period, all the initial electric energy is magnetic. A small series resistance dissipates energy, so the free oscillation decays. With enough resistance, the charge can settle without oscillating.

6.3 Use impedance once the sinusoidal response settles

6.3.1 Add the voltage drops with their phases

In a series RLC circuit the same current flows through all three components. In the steady sinusoidal response, write voltage and current as the real parts of complex amplitudes times ejωte^{j\omega t}, with j2=−1j^2=-1 and ω=2πf\omega=2\pi f. The complex amplitudes, or phasors, encode magnitude and phase. Taking a time derivative of a sinusoid in this convention multiplies its phasor by jωj\omega.

The resistor voltage is in phase with the current. The inductor voltage leads the current by a quarter cycle because its voltage is proportional to the derivative of the current. The capacitor voltage lags the current by a quarter cycle because its voltage is proportional to charge, the integral of current. Dividing the total voltage phasor by the current phasor gives the impedance.

Z=R+j(ωL−1ωC),∣Z∣=R2+(ωL−1ωC)2,ϕ=arg⁡Z.Z=R+j\left(\omega L-\frac{1}{\omega C}\right),\qquad |Z|=\sqrt{R^2+\left(\omega L-\frac{1}{\omega C}\right)^2},\qquad \phi=\arg Z .

Here ϕ\phi is the voltage phase minus the current phase. Below resonance the imaginary part is negative and current leads voltage. Above resonance the imaginary part is positive and current lags. When the two reactive terms cancel, the impedance magnitude is smallest. This occurs at the angular frequency ω0\omega_0 of the ideal free LC loop.

6.3.2 Average the power over one period

The source drives the series loop with a sinusoidal voltage. Let VrmsV_{\mathrm{rms}} and IrmsI_{\mathrm{rms}} be the effective voltage and current, each equal to its peak magnitude divided by 2\sqrt 2. Averaging the instantaneous voltage times current gives

P‾=VrmsIrmscos⁡ϕ=Irms2R.\overline P =V_{\mathrm{rms}}I_{\mathrm{rms}}\cos\phi =I_{\mathrm{rms}}^2 R.

Over a full cycle each ideal storage element returns the energy it took in. The resistor dissipates energy every cycle. At resonance ϕ=0\phi=0, so the current is in phase with the voltage and the power factor is one.

6.4 Find the phase change in a saved sweep

Open LCR & Impedance Analyzer and click Reset. The default capacitor model contains C=1.00 μFC=1.00\,\mu\mathrm F, series inductance L=100 nHL=100\,\mathrm{nH} and series resistance about 0.100 Ω0.100\,\Omega. The ideal series calculation predicts resonance near 503 kHz503\,\mathrm{kHz}.

Use the Frequency control to move the saved-record cursor through the three settings below. Read Saved compensated impedance magnitude and Saved compensated phase. The first and last settings have opposite phase signs. Between them the magnitude approaches the model's series resistance.

Table 6.2 Three rounded points from the default simulated sweep, after fixture compensation.
FrequencyImpedance magnitudeVoltage phase minus current phase
447 kHz447\,\mathrm{kHz}0.125 Ω0.125\,\Omega−37.1∘-37.1^\circ
501 kHz501\,\mathrm{kHz}0.100 Ω0.100\,\Omega−1.51∘-1.51^\circ
562 kHz562\,\mathrm{kHz}0.122 Ω0.122\,\Omega+35.1∘+35.1^\circ
Simulated LCR sweep near its series resonanceThe compensated impedance passes through a minimum near 500 kilohertz. At lower frequencies the impedance phase is negative. It rises through zero as the frequency increases.

Figure 6.1 Compensated impedance magnitude and phase near the minimum of the default simulated sweep. Each point is a saved frequency, and both panels share the same frequency axis. The phase changes sign between saved points.

The series fit uses the compensated voltage and current observations across the sweep. Its resonance estimate is near 503 kHz503\,\mathrm{kHz}, between the available sample frequencies. The Lab measures simulated steady sinusoidal response. The switch records in Table 6.1 are separate analytic solutions of the ideal time-domain equations.

6.5 Exercises

  1. A series RC loop has R=10.0 kΩR=10.0\,\mathrm{k\Omega} and C=5.00 μFC=5.00\,\mu\mathrm F. The initially uncharged capacitor starts charging from a constant source. When does it reach about 63.2%63.2\% of the source voltage?
  2. A series RL loop is connected to a constant source with initial current zero. At the first instant after closing the switch, what voltage appears across the resistor and across the inductor?
  3. An RL loop begins to decay from 0.800 A0.800\,\mathrm A after the source is removed. A resistor remains in the closed loop. If the time constant is 40.0 ms40.0\,\mathrm{ms}, what current remains after that time?
  4. An isolated ideal LC loop starts with a charged capacitor and zero current. How is its energy distributed after one quarter of a period? What changes if the capacitance is multiplied by four?
  5. A steady sinusoidal current drives an ideal inductor. Does the inductor voltage lead or lag the current? By how much?
  6. A series RLC circuit is at resonance. What is the total impedance? Do the individual capacitor and inductor voltages vanish?
  7. At series resonance, the effective current is 2.00 A2.00\,\mathrm A and the resistance is 3.00 Ω3.00\,\Omega. Find the mean power dissipated.
  8. A compensated series sweep shows a small negative voltage-minus-current phase at one sampled frequency and a positive phase at the next higher sample. What can you infer about the resonance frequency in the series RLC model?
Exercise 1

The time constant is RC=50.0 msRC=50.0\,\mathrm{ms}. At one time constant, the voltage has reached 1−e−11-e^{-1} of the final voltage.

Exercise 2

The current is still zero at the first instant, so the resistor voltage is zero. The entire source voltage is across the inductor, which sets the initial positive rate of change of current.

Exercise 3

It remains in the original direction and falls to 0.800e−1 A≈0.294 A0.800e^{-1}\,\mathrm A\approx0.294\,\mathrm A. The current decays by the same factor each time constant.

Exercise 4

At a quarter period, the capacitor charge is zero and all energy is in the inductor. Multiplying the capacitance by four halves ω0\omega_0 and doubles the period.

Exercise 5

It leads by a quarter cycle, or π/2\pi/2. The voltage is proportional to the derivative of the current, which reaches its positive peak a quarter cycle before the current reaches its own positive peak.

Exercise 6

The impedance is Z=RZ=R. The two reactive voltages are equal in magnitude and opposite in phase, so their sum vanishes. Each component can still have a nonzero voltage.

Exercise 7

Use Irms2RI_{\mathrm{rms}}^2R. The mean power is 12.0 W12.0\,\mathrm W. The reactive elements exchange energy but absorb zero net energy over the period.

Exercise 8

The zero phase lies between the two samples in the model. A model fit can estimate where it lies inside that interval. The nearest saved point represents its own sampled frequency.

Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

LCR & Impedance Analyzer →Sweep synchronous voltage and current, acquire open/short/load standards and separate fixture errors from a component’s own parasitics.

Sources and reading scope

  1. OpenStax, University Physics Volume 2, §10.5 RC Circuits

    A series RC loop gives exponential charging and discharging, with the resistance and capacitance setting the time scale.

  2. OpenStax, University Physics Volume 2, §14.4 RL Circuits

    The section solves the current after switching and relates its time constant to inductance and resistance.

  3. OpenStax, University Physics Volume 2, §14.5 Oscillations in an LC Circuit

    In the ideal LC loop the energy shifts periodically between the capacitor and inductor, with their values setting the frequency.

  4. OpenStax, University Physics Volume 2, §15.3 RLC Series Circuits with AC

    The section adds the voltage phasors for a resistor, inductor and capacitor to find series impedance and phase.

  5. OpenStax, University Physics Volume 2, §15.4 Power in an AC Circuit

    The section gives mean power in terms of rms voltage, rms current and the power factor.

  6. OpenStax, University Physics Volume 2, §15.5 Resonance in an AC Circuit

    The section derives the resonance condition for a driven series RLC loop from the cancellation of the two reactances.

Keep reading

What this page links to directly

See this series on the content map →

Interactive Physics Textbook · Reading path

Electricity, Magnetism and Circuits

  1. ArticleHow do charges interact through an electric field?
  2. ArticleHow does electric potential reveal the electric field?
  3. ArticleHow do currents divide at junctions and around loops?
  4. ArticleWhy does a magnetic field bend a moving charge?
  5. ArticleWhy does changing magnetic flux produce an emf?
  6. You are hereHow do capacitors and inductors respond to a changing voltage?
  7. ArticleHow do electric and magnetic fields travel as a wave?
1 more group

Other articles that use the same experiments

Each experiment from this article that another series also uses, followed by the articles there.

  1. LabLCR & Impedance Analyzer
  2. ArticleWhy a capacitor can behave like an inductor
Something broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy