Forest RC circuits

From New IAC Wiki
Revision as of 03:51, 19 January 2011 by Foretony (talk | contribs) (→‎Diff. Eq. sol. method #2)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The circuit diagram below defines a common circuit known as an RC circuit. The circuit involves only a capacitor and a resistor. The resistors role is to impede (resist) the flow of current (iR) and the capacitors role is to store charge (q/C).

RC Circuit.png

Pumping air into a bicycle tire is a fair analogy of this circuits properties. You are the battery, the pump you push is the resistor and the tire is the capacitor. As a battery you push electrons through the resistor (pump) and into the capacitor. The resistor (pump) resists the flow of the electrons into the capacitor. As the capacitor starts to charge up (tire fills with air) it becomes harder to push electrons onto the capacitors plates (add air to the tire). Now the capacitor (tire) starts to resist you pumping making it harder to charge up.

Discharging RC circuit

Let's first describe what happens when a fully charged capacitor is allowed to discharge (You pumped up your bike tire but you forgot to put the stem in the valve and all the air starts leaking out when you take off the pump). Assume we left the battery connected to the above circuit for an infinite amount of time.

If we apply Kirchhoff's loop Theorem by starting at the location of the battery and go around clockwise we would write


[math]V_b - IR - \frac{q}{C} = 0[/math]

If we then replaced the batteries EMF with a wire so it was no longer working to keep the charge on the capacitor. Then we would have the equation

[math]0 - IR - \frac{q}{C} = 0[/math]
[math]\Rightarrow R\frac{-dq}{dt} - \frac{1}{C} q = 0[/math]
[math]\Rightarrow \frac{dq}{dt} + \frac{1}{RC} q = 0[/math]

Another way to arrive at the equation above is to think of the capacitor as being a charged up battery with a voltage of [math]\frac{q}{C}[/math] which is discharging with a current[math] I=-\frac{dq}{dt}[/math].

Then you would have

[math]IR-\frac{q}{C} = (-\frac{dq}{dt} ) R -\frac{q}{C} =0[/math]
[math]\Rightarrow \frac{dq}{dt} + \frac{1}{RC} q = 0[/math]


The above is a first order differential equation which you can integrate directly


Quiz
Integrate the above differential equation for a discharging capacitor to determine the dependence of charge (q) with time (t). Which of the answers below looks most like yours.

A.) [math]ln(q) = \frac{-t}{RC}[/math] B.) [math]q^{-2} = \frac{-t}{RC}[/math] C.) [math]q^{-1} = \frac{-t}{RC}[/math] D.) [math]ln(q) = \frac{t}{RC}[/math]

Answer

Assume the capacitor has been charged up to a total charge Q

[math]\int_Q^q \frac{dq}{q} = - \int_0^t \frac{dt}{RC}[/math]
[math]\ln(q) - \ln(Q) = \frac{-1}{RC} (t-0)[/math]
[math]q = Qe^{-t/RC}[/math]

Charging RC circuit

Let's now assume we waited an infinite amount of time for the capacitor to discharge and we are interested in the charge as a function of time on the capacitor when we turn the battery back on.

Kirchhoff's Loop theorem with the battery inserted says
[math]V_b -IR - \frac{q}{C} = 0[/math]

or

[math]\frac{dq}{dt} + \frac{q}{RC} = \frac{V_b}{R}[/math]

the above differential equation is similar to the equation for a discharging capacitor except that instead of zero on the RHS we have the battery's voltage [math]V_b[/math]. This is called a 1st order differential equation with a source term.

Diff. Eq. sol. method #1

A common and more general technique to solving such a differential equation is to use the solution from the discharging equation (the homogeneous diff. eq.) as a trial solution by inserting constants.

[math]q_{trial} = A + Be^{-t/RC}[/math]

You then substitute this trial solution into the differential equation and apply boundary conditions to determine the coefficients.

[math]\frac{d}{dt} \left ( A + Be^{-t/RC} \right ) + \frac{1}{RC} \left ( A + Be^{-t/RC} \right ) = \frac{V_b}{R}[/math]
[math] \left ( B \frac{-1}{RC}e^{-t/RC} \right ) + \frac{1}{RC} \left ( A + Be^{-t/RC} \right ) = \frac{V_b}{R}[/math]
[math]\Rightarrow \frac{1}{RC} \left ( A \right ) = \frac{V_b}{R}[/math]
[math]A = C V_b[/math]

To determine the other coefficient you apply the boundary condition that q = 0 when t=0

[math]0= A + Be^{-0/RC} = A+B[/math]
[math]A=-B[/math]
[math]q=CV_b (1 - e^{-t/RC}) =Q (1 - e^{-t/RC})[/math]
Note
you can also show that [math]A=CV_b[/math] if you apply the boundary condition that [math]I= \frac{dq}{dt} = 0[/math] when [math]t= \infty[/math].

Diff. Eq. sol. method #2

An important feature of our differential equation for the charging capacitor is that the right hand side is a constant with time (perfect battery). If we differentiate with respect to time we get an equation that is analogous to the differential equation for a discharging capacitor.

[math]\frac{d}{dt} \left (\frac{dq}{dt} + \frac{q}{RC} = \frac{V_b}{R} \right )[/math]
[math]\frac{d^2q}{dt^2} + \frac{1}{RC}\frac{dq}{dt} = 0[/math]

or

[math]\frac{dI}{dt} + \frac{I}{RC} = 0[/math]

the differential equation for the charge(q) in a discharging capacitor is the same as the differential equation for the current I in a charging capacitor.

just copy the solution for a discharging capacitor and replace "q" with "I"
[math]I= I_0e^{-t/RC}[/math]

where[math] I_0= \frac{V_b}{R}[/math] is the current from the battery when the battery has just been turned on.

Note
as the capacitor charges up the current drawn from the battery will be less because the capacitor is working against the electromotive force of the battery.

the equation

[math]I=\frac{V_b}{R}e^{-t/RC} = \frac{dq}{dt}[/math] is just a differential equation for the charge

by directly integrating we have

[math]\int_0^q dq = \int_o^t \frac{V_b}{R}e^{-t/RC} dt[/math]
[math]q = \frac{V_b}{R} \left . \left ( -RC e^{-t/RC}\right ) \right |_0^t[/math]
[math]q = CV_b\left ( 1 - e^{-t/RC}\right ) = Q\left ( 1 - e^{-t/RC}\right ) [/math]