Table of Contents
Understanding Capacitor Charging and Discharging in DC Circuits ⚡
In this chapter you explore how capacitors behave over time when they are connected to DC sources. You will see that, unlike resistors, capacitors do not respond instantly. Instead, their voltage and current change gradually, following very specific and predictable curves.
You will focus on simple circuits that contain a resistor, a capacitor, and a DC voltage source. These are often called RC circuits. The behavior you learn here is the basis for timing circuits, filters, and many control and signal processing applications later on.
The Basic RC Charging Circuit 🔋
Consider a circuit with a DC voltage source $V$, a resistor $R$, and a capacitor $C$ in series, with a switch that can connect or disconnect the source. Initially the capacitor is uncharged, so its voltage is zero.
When the switch is closed and the capacitor begins to charge, the source voltage is applied across the series combination of the resistor and capacitor. At the very beginning, the capacitor behaves like a short circuit, so the entire source voltage appears across the resistor and the initial current is at its maximum.
As time passes, charge accumulates on the capacitor plates, the voltage across the capacitor increases, and the current decreases. Eventually the capacitor voltage approaches the source voltage and the current approaches zero. At that point the capacitor is considered fully charged for practical purposes.
In summary, for a simple series RC charging circuit with a DC source:
- At the instant of switching on, the capacitor voltage is zero and the current is maximum.
- Over time, the capacitor voltage rises and the current falls.
- After a long time, the capacitor voltage is essentially equal to the source voltage and the current is essentially zero.
Exponential Charging Behavior 📈
The key feature of capacitor charging in an RC circuit is that the voltage and current do not change in a straight line with time. They follow exponential curves.
Let the circuit have:
- DC source voltage $V$,
- resistance $R$,
- capacitance $C$,
- capacitor voltage as a function of time $v_C(t)$, where $t$ is time measured from the moment the switch is closed.
The voltage across the capacitor during charging is given by
$$v_C(t) = V \left(1 - e^{-\frac{t}{RC}}\right)$$
The current through the resistor and capacitor during charging is
$$i(t) = \frac{V}{R} e^{-\frac{t}{RC}}$$
At $t = 0$:
- $v_C(0) = 0$,
- $i(0) = \dfrac{V}{R}$.
As $t \to \infty$:
- $v_C(t) \to V$,
- $i(t) \to 0$.
The exponential term $e^{-\frac{t}{RC}}$ starts at 1 when $t = 0$ and gradually decreases toward 0 as time increases. This is what causes the smooth, curved rise of capacitor voltage and decay of current.
A useful way to visualize this is:
- The capacitor voltage starts at 0 and approaches $V$ gradually, getting closer and closer but never mathematically reaching it.
- The charging current starts at a maximum value of $V / R$ and decreases gradually towards zero.
Time Constant and the Speed of Response ⏱️
The product of resistance and capacitance plays a central role in how fast the capacitor charges or discharges. This product is called the time constant.
The time constant of an RC circuit is
$$\tau = R C$$
It has units of seconds.
Physically, the time constant tells you how quickly the exponential process occurs. A larger time constant means a slower response; a smaller one means a faster response.
During charging, after a time equal to one time constant $\tau$:
- The capacitor voltage has risen to about 63.2% of its final value,
- The current has dropped to about 36.8% of its initial value.
Mathematically, substituting $t = \tau = RC$ into the charging formula gives
$$v_C(\tau) = V \left(1 - e^{-1}\right) \approx 0.632 V$$
and
$$i(\tau) = \frac{V}{R} e^{-1} \approx 0.368 \frac{V}{R}$$
The following table summarizes approximate capacitor voltage and current at different multiples of the time constant during charging:
| Time | $v_C(t)$ as % of $V$ | $i(t)$ as % of initial current $I_0 = V/R$ |
|---|---|---|
| $t = 0$ | 0 % | 100 % |
| $t = 1\tau$ | 63.2 % | 36.8 % |
| $t = 2\tau$ | 86.5 % | 13.5 % |
| $t = 3\tau$ | 95.0 % | 5.0 % |
| $t = 4\tau$ | 98.2 % | 1.8 % |
| $t = 5\tau$ | 99.3 % | 0.7 % |
After about $5 \tau$, the capacitor is usually considered fully charged for practical purposes, since the voltage is more than 99% of the final value and the current is very small.
Discharging a Capacitor 🔋➡️0V
Now consider the same capacitor, already charged to some initial voltage $V_0$, and then connected so that it discharges through a resistor $R$ with no external source driving it.
At the instant the discharge path is connected, the capacitor has its maximum voltage $V_0$. This voltage drives current through the resistor. As current flows, the stored charge in the capacitor decreases, so the capacitor voltage drops. This reduces the current, so the discharge slows as time goes on.
If $v_C(t)$ is the capacitor voltage during discharge, starting from $V_0$ at $t = 0$, then the voltage and current are
Voltage during discharge:
$$v_C(t) = V_0 e^{-\frac{t}{RC}}$$
Current during discharge:
$$i(t) = -\frac{V_0}{R} e^{-\frac{t}{RC}}$$
The negative sign in the current expression simply indicates that the current direction during discharge is opposite to the direction during charging.
At $t = 0$:
- $v_C(0) = V_0$,
- $i(0) = - \dfrac{V_0}{R}$.
As $t \to \infty$:
- $v_C(t) \to 0$,
- $i(t) \to 0$.
Again, the same time constant $\tau = RC$ controls how fast the discharge occurs.
At $t = \tau$ during discharge the voltage and current are
$$v_C(\tau) = V_0 e^{-1} \approx 0.368 V_0$$
$$i(\tau) = -\frac{V_0}{R} e^{-1} \approx -0.368 \frac{V_0}{R}$$
So after one time constant, the capacitor voltage has dropped to about 36.8% of its initial value, and similar values occur at higher multiples of $\tau$ as given in the next table.
| Time | $v_C(t)$ as % of $V_0$ | $i(t)$ magnitude as % of initial |
|---|---|---|
| $t = 0$ | 100 % | 100 % |
| $t = 1\tau$ | 36.8 % | 36.8 % |
| $t = 2\tau$ | 13.5 % | 13.5 % |
| $t = 3\tau$ | 5.0 % | 5.0 % |
| $t = 4\tau$ | 1.8 % | 1.8 % |
| $t = 5\tau$ | 0.7 % | 0.7 % |
Again, after about $5 \tau$, the capacitor is effectively discharged for most purposes.
Initial and Final Conditions 🧩
When analyzing charging and discharging, it is very important to identify the initial and final values of the capacitor voltage and the current in the circuit.
A capacitor follows a key rule about its voltage at the instant of switching. Its voltage cannot change instantaneously. This means that right at the moment a switch changes position, the capacitor voltage immediately after the switch moves is equal to the capacitor voltage immediately before.
The voltage across a capacitor cannot change instantaneously.
$$v_C(0^+) = v_C(0^-)$$
Here $0^-$ means just before the switching event, and $0^+$ means just after.
For a simple RC charging problem, you usually have:
- Initial capacitor voltage $v_C(0)$, often zero if the capacitor was uncharged.
- Final voltage the capacitor will approach after a long time, which is determined by the DC source and the resistors.
For example, if:
- $v_C(0) = 0$ at $t = 0$,
- Final value is $V$,
then the charging equation can be written as
$$v_C(t) = V + \left[v_C(0) - V \right] e^{-\frac{t}{RC}}$$
This is a more general form that works for any initial voltage and any final voltage. If $v_C(0) = 0$, it simplifies to the earlier formula for charging.
Similarly, for discharging from an initial voltage $V_0$ to a final voltage of 0, the general expression reduces to
$$v_C(t) = 0 + \left[V_0 - 0 \right] e^{-\frac{t}{RC}} = V_0 e^{-\frac{t}{RC}}$$
Recognizing the initial and final values is useful in more complex circuits, where the capacitor may not always start from zero or end at the supply voltage.
Current Direction and Physical Picture 🔄
During charging, electrons move through the resistor under the influence of the applied voltage. One plate of the capacitor gains electrons and becomes negatively charged, while the other plate loses electrons and becomes positively charged. This separation of charge builds up the capacitor voltage.
At the start of charging, the capacitor behaves much like a short circuit, so current is at its maximum. As the capacitor voltage grows, the voltage across the resistor is reduced, and the current decreases.
During discharging, there is no external source driving the current. Instead, the electric field stored in the capacitor pushes the charges back through the resistor. The current direction is opposite to that during charging. As charges move and the capacitor voltage falls, the driving force for current weakens, so the current decreases until it reaches zero.
This visual picture helps you remember:
- Charging: current is driven by the source and the capacitor voltage grows toward the source voltage.
- Discharging: current is driven by the capacitor itself and the capacitor voltage decays toward zero.
Influence of R and C on Charging and Discharging ⚙️
The values of the resistor and the capacitor together control how quickly the capacitor charges and discharges through the time constant $\tau = RC$.
- If $R$ is large, current is smaller and the charging and discharging processes are slower.
- If $R$ is small, current is larger and the processes are faster.
- If $C$ is large, more charge is needed to reach a given voltage, so charging and discharging take longer.
- If $C$ is small, less charge is needed and the processes are faster.
These effects are summarized in the table below:
| Parameter change | Effect on time constant $\tau = RC$ | Result on charging / discharging speed |
|---|---|---|
| Increase $R$ | $\tau$ increases | Slower |
| Decrease $R$ | $\tau$ decreases | Faster |
| Increase $C$ | $\tau$ increases | Slower |
| Decrease $C$ | $\tau$ decreases | Faster |
In many practical circuits, selecting appropriate values for $R$ and $C$ is essentially choosing the desired timing behavior.
Piecewise Charging and Discharging in Simple Switching Circuits 🔁
In more practical situations a capacitor may alternately charge and discharge as switches move or digital signals drive transistors on and off.
For example, imagine a circuit where a capacitor is connected to a DC source through one resistor when a switch is up, and connected to ground through another resistor when the switch is down. When the switch changes position, the capacitor begins a new exponential journey from its current voltage toward a new final voltage determined by the new circuit configuration.
Each interval can be treated as a separate charging or discharging process with:
- Its own initial voltage (the capacitor voltage at the moment the switch changes).
- Its own final voltage (determined by the new circuit).
- Its own effective resistance $R$, and the same or a different $C$.
The general expression that applies in each interval is useful here:
For any RC interval,
$$v_C(t) = v_{\text{final}} + \left[v_{\text{initial}} - v_{\text{final}}\right] e^{-\frac{t}{RC}}$$
In this expression $t$ is measured from the beginning of that particular interval. This idea of breaking time into intervals with different initial and final conditions is a basic method for understanding more complex capacitor circuits that change configuration over time.
Practical Safety Note When Discharging Capacitors ⚠️
Although you are working conceptually here, it is important to recognize that a charged capacitor can store energy and may retain voltage even after being disconnected from a power source. During discharging the stored energy is released, often as heat in the resistor.
In real work, a resistor is often used intentionally to discharge a capacitor safely, controlling the current and limiting the speed of discharge to avoid damage or hazards. Even when a circuit appears to be off, a large capacitor may still hold a significant voltage for a noticeable time, especially if the effective resistance in the discharge path is large.
Understanding the exponential decay and the time constant helps you estimate how long a capacitor may remain charged enough to be a concern.
Summary 🧾
In a DC RC circuit, capacitors do not respond instantly. Instead, their voltage and current evolve over time following exponential curves described by the time constant $\tau = RC$.
During charging, the capacitor voltage rises from its initial value toward a final value set by the source and resistors, while current falls from an initial maximum toward zero. During discharging, the capacitor voltage falls from its initial value toward zero, and current decreases toward zero as well. After about five time constants, the process is effectively complete for most practical purposes.
These time-dependent behaviors, expressed through the exponential formulas and the concept of the time constant, form the foundation for timing, pulse shaping, and many other functions in electronic circuits that you will encounter later.