next up previous contents index

[ENGN2211 Home]

Solution via Differential Equations

Let's write v=vC for short, and

\begin{displaymath}i =\frac{v_g-v}{R}
\end{displaymath}

KCL (node at top of capacitor) gives

\begin{displaymath}\frac{v_g-v}{R} = C \frac{dv}{dt}
\end{displaymath}

since the current through the resistor (left) equals the current through the capacitor (right).

Rewriting, we get the differential equation  (for t>0):

 \begin{displaymath}\frac{dv}{dt} + \frac{v}{RC} = \frac{v_g}{RC}
\end{displaymath} (24)

with initial condition v(0-)=2V.

Let's solve this differential equation. There are many ways of doing this, and you may use your favourite method; here we use a method which applies also to higher-order equations, and is quite general. The solution is the sum

v(t) = vh(t) + vp(t)

where

\begin{displaymath}v_h(t)=Ke^{-\frac{t}{RC}} \quad\quad {\rm homogeneous \ solution}
\end{displaymath}

  and

\begin{displaymath}v_p(t) = A \quad {\rm (a\ constant)} \quad\quad {\rm particular \ solution}
\end{displaymath}

 

The homogeneous solution follows because the characteristic equation is

 \begin{displaymath}0 = s + \frac{1}{RC}
\end{displaymath} (25)

 

The constant A defining the particular solution is found by plugging it into the differential equation:

\begin{displaymath}0 + \frac{A}{RC} = \frac{5}{RC}
\end{displaymath}

since dA/dt = 0 (derivative of a constant is zero) and vg=5. Solving gives A=5, and so the particular solution is vp(t)=5 V for $t \geq 0$, and hence the solution at this stage of the computation is

\begin{displaymath}v(t)= 5 + Ke^{-\frac{t}{RC}}, t \geq 0 .
\end{displaymath}

We can now find the constant K using the initial condition. Set t=0 and note that by the continuity principle for capacitors,

v(0+) = v(0-) = 2V

and so

2 = 5 + K

giving K = -3. Therefore the complete capacitor voltage waveform is

 \begin{displaymath}v(t) = 5 - 3e^{-\frac{t}{RC}} \ {\rm V}, \ t\geq 0 .
\end{displaymath} (26)

This is illustrated in Figure 26. Looking at the graph we see that the voltage rises from its initial value of 2V to its final steady state value of 5V. The response is transient in nature.


  
Figure 26: First-order RC circuit.
\begin{figure}
\begin{center}
\epsfig{file=images/firstimg2.eps}\end{center}\end{figure}

The current can be obtained in either of two ways. The first method uses Ohm's law for capacitors:


\begin{displaymath}i(t)=C \frac{dv(t)}{dt} = 3 e^{-\frac{t}{RC}} \quad {\rm mA}, \quad t \geq 0
\eqno{(13)}\end{displaymath}

Alternatively, we can apply KVL:

\begin{displaymath}i(t) = \frac{v_g(t)-v(t)}{R} = 3 e^{-\frac{t}{RC}} \quad {\rm mA}, \quad t
\ge 0 .
\end{displaymath}

The current, whose value at time t=0- is 0 mA, rises suddenly to 3 mA at time t=0+, and then decays to zero as the capacitor is charged.


next up previous contents index

[ENGN2211 Home]

ANU Engineering - ENGN2211