Simple RC Circuits

RC time constant

Consider a capacitor initially charged to Vinit, and connected to a resistor:
Here we will apply the Kirchoff Voltage Law (described in the next chapter) for this loop (this is similar to the Loop Law we used in Hydraulic systems): Vr+Vc=0 or Vr=-Vc

Because the same current runs through each element (current is a through variable): ir = ic.

One of the homework problems which may be assigned will let you explore this discharge numerically. Here, we'll do it analytically.

Using the constitutive law of the capacitor and resistor
Vc = 1/C qc 

Vr = R ir

and the relation between charge and current, qc' = ic , together with the voltage and current relations next to the figure above, we can obtain a differential equation of motion
qc' = - (1/RC) qc
If you would rather see it in terms of current, take its time derivative:
ic' = - (1/RC) ic
Or in terms of voltage, using (5)
Vc' = - (1/RC) Vc
All of these equations of motion have an easy solution, e.g.
Vc = A e - t /RC
which you should check. You might wonder how we guessed this solution - as you will learn as you study differential equations further in the next course, a differential equation can often be recognized as belonging to a particular class of equations which has a particular type of solution. If you look at this equation, you see that it states that the derivative of something is equal to a constant times itself. And what is the derivative of itself??? A simple exponential. The exact form of the exponential can be obtained by trial and error, or by using constants and matching terms such that the original diff eq and initial/boundary conditions are satisfied. In (9), we have already obtained the constant in the exponential itself such that the differential equation is satisfied, but A can be any constant and (9) holds true. However for this solution to be valid for the problem at hand, we must choose A such that we match the stated initial condition that Vc = Vinit at t=0. For that to be so, A must be Vinit, so the specific solution is
Vc = Vinit e - t /RC
You can see that the voltage (and the current, and the charge) all decay away with time. The decay time constant is RC. This is a result worth remembering. Whenever there's a capacitor and a resistor around, there is a time period t=RC which is characteristic of the action.

Charging up a capacitor

That was discharing a capacitor, but what happens if the capacitor is initially discharged, then placed in a circuit with a resistor and a battery? Here is such a circuit. Note that there is a switch in the circuit above the battery which will be closed at time t=0. At t=0, VC=0.
To analyze this circuit, we will apply the Kirchoff Voltage Law that we will see in more detail in the next section. The polarities of my meters has been assigned consistently with our convention:
VR+VC - VB = 0
Because the same current runs through each element (current is a through variable): iR = iC = i
Our constitutive laws of the two elements are:
VC = 1/C qC

VR = R iR

Again, starting with our current/charge relation for the capacitor,
qC' = iC = VR/R = ( VB - VC )/R

qC' = VB /R - (1/RC) qC

Since we are not so interested in charge per se, but more so in the voltage changing across the capacitor, we can rewrite this diffeq using the constitutive law of the capacitor again:
Again, we have a differential equation in which the derivative of something is equal to a constant times itself, plus another constant. We anticipate an exponential solution for this and the following is the solution for (11):
Again, you should check this solution to convince yourself that it indeed satisfies the diffeq (11) and the initial condition, VC(t=0)=0.

So, what does this equation mean? Let's plot it, using VB=9 volts, R=2 ohms, C=10F:
This is the voltage in the capacitor as a function of time. It charges up exponentially until the capacitor reaches the voltage of the battery, 9 volts. After this point in time, nothing happens!
So, if after a certain time, VC=constant, what does that mean? This is the steady-state condition, meaning no more changes with time. Thus in steady state, V'C= 0. Since the constitutive law of the capacitor states that VC= 1/C qC, which we can also write as V'C= 1/C iC, therefore in steady state iC=0! In fact, if we plot the current in the system as a function of time, we see that it starts off at some initial value, then decays to zero at the same time as the voltage in the capacitor reaches 9 volts:

From these two examples, we see that RC circuits have a time constant associated with them which is R*C (convince yourself that the units of ohms*farads really equals seconds!) and that such circuits could effectively be used as timers. We also see that the capacitor allows a current through only until it has reached an equilibrium voltage, at which point the current stops.