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)..
For starters, assume the function of voltage, v(t), at time 0 is v(0)=V0. This is important for later. At any time t, the current through the capacitor and resistor is:
i(C)=CdtdviR=RvApplying KCL at the top node gives us:
iC+iR=0Substituting the expressions for iC and iR gives us:
Cdtdv+Rv=0Rearranging gives us the first-order linear ODE:
dtdv+RC1v=0This ODE is of the form dxdy+P(x)y=Q(x), where P(x)=RC1 and Q(x)=0 (see here for notes on the integrating factor method).
The integrating factor is thus:
μ(t)=e∫RC1 dt=eRCtMultiplying both sides of the ODE by the integrating factor gives us:
eRCtdtdv+RC1eRCtv=0Recognize that the left-hand side is the result of the product rule (the 1/RC coefficient comes from differentiating eat→aeat), so can be rewritten as:
(eRCtv)′=0Now, integrating with respect to t gives:
eRCtv=CFinally, we can solve for v:
v(t)=Ce−RCtC is a constant that can be solved for using an initial condition. For example, if we know that v(0)=V0, then we can solve for C:
v(0)=Ce−RC0=C=V0Thus, the solution to the ODE is (with τ=RC as per electrical engineering convention):
v(t)=V0e−t/τ