7.4 Charging and Discharging Case
Combining the results of the previous two chapters, we now consider the case in which a capacitor, having an initial voltage Vo, is charged by battery voltage VB, in the circuit shown. Rather than developing the differential equation for this case, we provide sketches and the governing formula by combining our previous results. The capacitor voltage is initially Vo, and it exponentially approaches VB with time. Two cases are plotted, one in which VB>Vo, and the other in which VB<Vo.
The governing equation for this case is given below. We also show the results of a simple check for this equation, verifying that it predicts vc(t) equal to Vo at t=0 and VB when t approaches infinity.