Source-free RC Circuit

RC circuits are made of a resistor and a capacitor. When the circuit is source-free, it means there is no external voltage or current source connected to the circuit. That is, after the energizing source is removed, the circuit will continue to operate based on the energy stored in the capacitor. As such, this circuit can be described with a first-order linear differential equationA differential equation that contains only the first derivative of the unknown function (for example, dv/dt)..

Source-free RC circuit schematic

For starters, assume the function of voltage, v(t)v(t), at time 00 is v(0)=V0v(0)=V_0. This is important for later. At any time tt, the current through the capacitor and resistor is:

i(C)=CdvdtiR=vRi(C)=C\frac{dv}{dt} \quad \quad i_R=\frac{v}{R}

Applying KCL at the top node gives us:

iC+iR=0i_C+i_R=0

Substituting the expressions for iCi_C and iRi_R gives us:

Cdvdt+vR=0C\frac{dv}{dt}+\frac{v}{R}=0

Rearranging gives us the first-order linear ODE:

dvdt+1RCv=0\frac{dv}{dt}+\frac{1}{RC}v=0

This ODE is of the form dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x), where P(x)=1RCP(x)=\frac{1}{RC} and Q(x)=0Q(x)=0 (see here for notes on the integrating factor method).

The integrating factor is thus:

μ(t)=e1RC dt=etRC\mu(t)=e^{\int \frac{1}{RC}~dt}=e^{\frac{t}{RC}}

Multiplying both sides of the ODE by the integrating factor gives us:

etRCdvdt+1RCetRCv=0e^{\frac{t}{RC}}\frac{dv}{dt}+\frac{1}{RC}e^{\frac{t}{RC}}v=0

Recognize that the left-hand side is the result of the product rule (the 1/RC1/RC coefficient comes from differentiating eataeate^{at} \rightarrow ae^{at}), so can be rewritten as:

(etRCv)=0\left(e^{\frac{t}{RC}}v\right)'=0

Now, integrating with respect to tt gives:

etRCv=Ce^{\frac{t}{RC}}v=C

Finally, we can solve for vv:

v(t)=CetRCv(t)=Ce^{-\frac{t}{RC}}

C is a constant that can be solved for using an initial condition. For example, if we know that v(0)=V0v(0)=V_0, then we can solve for CC:

v(0)=Ce0RC=C=V0v(0)=Ce^{-\frac{0}{RC}}=C=V_0

Thus, the solution to the ODE is (with τ=RC\tau =RC as per electrical engineering convention):

v(t)=V0et/τv(t)=V_0e^{-t/\tau}