Skip to content
Tutorials Center
My learning

Topics

Lesson 31 of 48 ยท Capacitors, Inductors and Transients

RC and RL Transients

Solve first-order circuits with the three-number method: initial value, final value and time constant. Worked RC and RL examples and charging plots.

Every first-order circuit, no matter how many resistors it has, behaves the same way after a switch: the voltage or current slides from its starting value to its final value along an exponential curve. You do not need to solve a differential equation each time. You need three numbers: where it starts, where it ends and how fast it moves. This lesson shows how to find them for RC and RL circuits.

An RC circuit with a 5 V source, switch, 10 kilohm resistor and 100 microfarad capacitor beside the charging curve with markers at each time constant
The capacitor voltage reaches 63.2 % after one time constant and 99.3 % after five.

What you will learn

  • The general first-order formula and the meaning of each term.
  • How to find the initial value, final value and time constant for RC and RL circuits.
  • How to use a Thรฉvenin resistance when the circuit has more than one resistor.
  • How long a circuit takes to reach a given level.

Key terms

Initial value x(0โบ): the value just after the switch operates, found from continuity (capacitor voltage and inductor current are unchanged).

Final value x(โˆž): the value after a long time, found with C open and L short.

Time constant ฯ„: RC for an RC circuit and L/R for an RL circuit, where R is the Thรฉvenin resistance seen by the storage element.

Step response: the transient after a sudden change of a source.

The universal formula

For a quantity x(t) in a first-order circuit:

x(t) = x(โˆž) + [x(0โบ) โˆ’ x(โˆž)] e^(โˆ’t/ฯ„)

At t = 0 the exponent is zero, so x = x(0โบ). As t grows, the exponential dies out and x โ†’ x(โˆž). At t = ฯ„ the gap between the value and its final value has shrunk to 36.8 % (eโปยน) of its start. So 63.2 % of the journey is done after one ฯ„:

Time Fraction of the way
1ฯ„ 63.2 %
2ฯ„ 86.5 %
3ฯ„ 95.0 %
4ฯ„ 98.2 %
5ฯ„ 99.3 %

The time to reach a given level is found by inverting: t = ฯ„ ln[(x(0โบ) โˆ’ x(โˆž)) / (x โˆ’ x(โˆž))].

The three-number recipe

  1. Initial value. Use continuity: v_C(0โบ) = v_C(0โป) and i_L(0โบ) = i_L(0โป). If you need another variable (like a resistor voltage), solve the circuit at t = 0โบ with the capacitor replaced by a voltage source of its initial voltage and the inductor by a current source of its initial current.
  2. Final value. Replace C by an open circuit and L by a short, and solve for the steady state with the new source values.
  3. Time constant. Find the Thรฉvenin resistance Rth seen by the capacitor or inductor. Then ฯ„ = Rth C or ฯ„ = L / Rth.
  4. Substitute into the universal formula.

Example 1: the basic RC charge

The picture shows a 5 V source connected through a switch and a 10 kฮฉ resistor to a 100 ยตF capacitor, initially empty. Close the switch at t = 0.

  • Initial: v(0โบ) = 0.
  • Final: capacitor open, no current, no drop in R: v(โˆž) = 5 V.
  • Time constant: ฯ„ = RC = 10 000 ร— 100ร—10โปโถ = 1 s.

v(t) = 5 (1 โˆ’ e^(โˆ’t)) volts. At t = 1 s: 3.16 V; at t = 3 s: 4.75 V. The current i = (5 โˆ’ v)/R = 0.5 e^(โˆ’t) mA starts at 0.5 mA and fades away.

If we now open the switch and connect the capacitor to a discharge resistor, the same formula applies with x(โˆž) = 0: v(t) = V0 e^(โˆ’t/ฯ„).

Example 2: a network with two resistors

A 12 V source is switched at t = 0 through a 2 kฮฉ resistor to a node. A 4 kฮฉ resistor connects the node to ground and a 10 ยตF capacitor (initially uncharged) is in parallel with it.

  • Initial: v(0โบ) = 0.
  • Final: capacitor open: v(โˆž) = 12 ร— 4/(2 + 4) = 8 V.
  • Thรฉvenin resistance seen by the capacitor (source off): 2k โˆฅ 4k = 1.333 kฮฉ. So ฯ„ = 1333 ร— 10ร—10โปโถ = 13.33 ms.

v(t) = 8 (1 โˆ’ e^(โˆ’t/13.33 ms)). At 20 ms: 8 (1 โˆ’ e^(โˆ’1.5)) = 6.22 V. To reach 6 V: t = โˆ’ฯ„ ln(1 โˆ’ 6/8) = 13.33 ร— 1.386 = 18.5 ms.

Notice how the Thรฉvenin idea from the previous chapter simplified the task: any single capacitor in a resistive network sees one equivalent source and one equivalent resistor.

Example 3: an RL circuit

A 12 V source is switched onto a 6 ฮฉ resistor in series with a 30 mH inductor.

  • Initial: i(0โบ) = 0.
  • Final: inductor shorted: i(โˆž) = 12 / 6 = 2 A.
  • ฯ„ = L/R = 0.03 / 6 = 5 ms.

i(t) = 2 (1 โˆ’ e^(โˆ’t/5 ms)) A. At the start the inductor voltage is the whole 12 V (v_L = L di/dt, and the current is rising fastest at t = 0); it decays as v_L = 12 e^(โˆ’t/5 ms) volts. At t = 5 ms, i = 1.264 A.

Opening the switch. If you try to interrupt 2 A in an inductive circuit instantly, di/dt becomes huge and so does the induced voltage. This is why relays and motors have a flyback diode: it gives the current a path to decay along while the voltage stays small. Spark plugs and ignition coils use this effect on purpose.

Common misconceptions

"The time constant is the time to finish." One ฯ„ is only 63 % done; practical settling takes about 5 ฯ„.

"Resistor R in ฯ„ = RC is the resistor in series." It is the Thรฉvenin resistance seen by the capacitor, which in networks can combine several resistors.

"Bigger L means faster." For RL, ฯ„ = L/R: a larger L makes the response slower; a larger R makes it faster.

Try it

This program implements the universal formula and solves the two RC examples and the RL example. Try changing the capacitor or resistor values and watch how ฯ„ and the time to reach a level change.

Python First-order solver

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The second program charges the capacitor from Example 1 for five seconds, then discharges it through the same resistor, and marks each time constant.

Python Charge and discharge

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check ยท 6 questions

of 6 answered You scored / 6 ยท perfect!

  1. 1. What is the time constant of a 2 kฮฉ resistor charging a 50 ยตF capacitor?

    ฯ„ = RC = 2000 ร— 50ร—10โปโถ = 0.1 s = 100 ms.
  2. 2. An uncharged capacitor charges toward 10 V. How much of 10 V is reached after exactly one time constant?

    1 โˆ’ eโปยน = 0.632, so 6.32 V.
  3. 3. For an RL circuit the time constant is

    ฯ„ = L / R: more inductance means slower; more resistance means faster.
  4. 4. A 6 ฮฉ resistor and a 30 mH inductor are switched onto 12 V. What is the final current?

    In steady state the inductor is a short, so i = 12 / 6 = 2 A.
  5. 5. A capacitor with initial voltage 8 V discharges through a resistor with ฯ„ = 2 s. What is v after 2 s?

    v = 8 eโปยน = 8 ร— 0.3679 = 2.94 V.
  6. 6. Why do relay coils usually have a diode across them?

    Interrupting inductor current abruptly produces a very high voltage; a flyback diode lets the current decay safely.

Summary

  • First-order response: x(t) = x(โˆž) + [x(0โบ) โˆ’ x(โˆž)] e^(โˆ’t/ฯ„).
  • Initial value from continuity, final value from C open / L short, ฯ„ = Rth C or L / Rth.
  • 63.2 % after 1ฯ„, about 99 % after 5ฯ„.
  • Opening an inductor's circuit abruptly creates a voltage spike.

Next: Series RLC circuits