Initially, there is no charge on the capacitor. When the switch S is connected to terminal ‘a’ in Fig. 1, the capacitor gets charged
gradually to a potential of  volts.
 
Let  seconds time elapse. Then,
 = instantaneous voltage across the capacitor in volts,
 = charge on the capacitor plates in coulombs
 = charging current in amperes,
 
According to KVL,
 
 
 
 
 
 
 
Multiplying both sides by -1,
 
 
Integrating both the sides,
 
 
 
, where K = Constant
 
We know that initially when 
 
 
Hence,
 
 
 
 
  
 
   
 
  
 
If ,then