RC Circuit - Step Response

The RC circuit can act as a simple integrator or a first order low-pass filter. It is analysed here.

We start by considering the following circuit:

circuit diagram
Figure 1

If a voltage (Vin) is applied at t = 0, what is the form of the output?

For a capacitor:

  dVc
i  =  C divides
  dt

Since there is a single path for the current, we can write:

VR   dVc
divides  =  i  =  C divides
R   dt

Substituting and rearranging:

  dVc  
Vin - Vc  =  RC divides (1)
  dt  

Now separate the variables:
  1  
1.dt  =  RC divides  dVc
  Vin - V c  

Integrating:
Integral   Integral 1  
1.dt  =  RC divides  dVc
  Vin - V c  

Thus:
t   =   - CR . ln(Vin - Vc )  +  const

When: t = 0,  Vc = 0 :

0   =   - CR . ln(Vin )  +  const

Therefore:
const   =   CR . ln(Vin )

Thus:
t   =   CR . ln(Vin )  - CR . ln(Vin - Vc )

t  
divides   =    ln(Vin )  -  ln(Vin - Vc )
CR  

  leftbracket Vin  rightbracket
ln divides
  Vin - Vc

And:
  leftbracket t rightbracket   Vin 
exp divides  =  divides
  CR   Vin - Vc

Rearranging:
  leftbracket t rightbracket  
(Vin - Vc ) exp divides  =  Vin
  CR  

Rearranging:
  Vin
Vin - Vc   =  divides
  exp{ t / CR }

Rearranging:
  leftbracket  - t  rightbracket
Vc   =  Vin - Vin . exp divides
   CR 

Giving the result:

  leftbracket   leftbracket  - t  rightbracket rightbracket  
Vc   =  Vin 1 - exp divides (2)
     CR   

for t = 0, Vc = 0
and, as t tends to , Vc tends to Vin

A plot of this response (for: C = R = Vin = 1) is given in figure 2 below.

exponential voltage rise
Figure 2

CR - the product of resistance (Ohms) and capacitance (Farads) - has the unit of seconds, and is referred to as the time constant. The Greek letter t (tau) is usually used to denote this variable.

The output voltage (Vc) reaches 63.2% of its final value in 1 time constant (1 second in this case). In general, the time taken to reach a particular value is related to the number of time constants given in the table below.

Number of time constants required to reach a proportion of the final value
t 2t 3t 4t 5t 6t 7t
63.2% 86.5% 95.0% 98.2% 99.3% 99.7% 99.9%

Reducing the value of t (i.e. reducing R or C) means that the output will change faster and that any given voltage will be reached sooner.

Last updated: 25 Mar 2006;   © Lawrence Mayes, 2006