7.2 Discharging Capacitor
Considering a circuit comprising an initially-charged capacitor connected to a resistor through a switch as shown. The capacitor has an initial voltage
, and the switch is open for time
. At time
, the switch is closed so that the capacitor discharges through the resistor. Our objective is to determine the voltage across the capacitor as a function of time,
. We will see that our circuit analysis tools (eg, KCL, KVL, Ohm’s law, the V-I relationships for the capacitor, etc…) lead to a first order differential equation, the solution of which will be
. Before beginning circuit analysis, it can be helpful to speculate what
might look like as a function of time. For
, we know that
; closing the switch at
allows current to flow in the circuit, as charge and stored energy from the capacitor are released and dissipated as heat in the resistor. The capacitor voltage decreases or decays with time, eventually hitting zero as all the energy is depleted. As we shall see, the result is an exponential decay that asymptotically approaches zero.

Applying KCL at the top node shown, and taking note of the fact that
is the voltage across both
and
, as they are connected in parallel, we have
(1) ![]()
Applying the I-V relationships between current and voltage for the capacitor and the resistor,
and
results in the differential equation
(2) ![]()
which, after simple algebraic manipulation is
(3) ![]()
Equation 3 is a linear, homogeneous, first order differential equation with constant coefficients. It is linear since all terms involving
and its derivative are raised to the first power; homogeneous since all terms not involving
are zero (ie, there is no forcing function); first-order since
appears as itself and its first derivative but no higher-order derivatives, and coefficients
and
are constants.
One approach for solving differential equations such as this is to make an educated guess at the form of the solution. In this case, we guess that the solution is of the form
(4) ![]()
where
and
are unknown constants to be determined. We chose this form of solution since
and its derivative differ only by a multiplicative constant, and an appropriate linear combination of these two can sum to
as 3 specifies. Constants
and
are used to keep the solution general at this point; inserting this solution back into the differential equation allows us to begin solving for the unknown constants,
(5) ![]()
differentiating, we have
(6) ![]()
(7) ![]()
This equation must be true for all values of
. Therefore we determine that
from which we determine the unknown constant,
. Our solution at this point can be written as:
(8) ![]()
This is the result for time
. For time
we have
.
At this point, we have the solution but have a remaining constant, K, to determine. Applying the boundary condition vc(0)=Vo yields this constant.

Finally, we have the solution for vc(t) for all time, given and plotted below. While the exponential decay lasts forever, an approximate value for the duration for this transient signal is T=RC seconds.
