Electronics/RC transient
From Wikibooks, the open-content textbooks collection
When the switch is open, the initial voltage across the capacitor is zero. When the switch closes (which we will refer to as time zero) the capacitor charges via the resistor to V0.
When the switch is closed, the circuit must follow the relationship:

which is derived by analysing the circuit using Kirchoff's Voltage Law.
By letting τ = RC and rearranging the equation:

This is a first order linear differential equation with integrating factor:


Multiplying both sides by the integrating factor:

Note that:
![\frac{d}{dt}[e^{t/\tau}v_c(t)]=\frac{dv_c(t)}{dt}e^{\frac{t}{\tau}}+\frac{1}{\tau}v_c(t)e^{\frac{t}{\tau}}](http://upload.wikimedia.org/math/c/f/e/cfeb9040af535b523fd5cf91877bc703.png)
Substituting and integrating both sides:

where K is the integration constant.
When t=0
Therefore:
When t>0 this gives:



when t<0:
