Deriving Capacitor Voltage for a Discharging Capacitor

  • #1
Potatochip911
318
3

Homework Statement


I'm trying to derive the voltage waveform across the capacitor for a discharging capacitor that has been fully charged by a DC power supply ##v_0##, i.e. ##v_c(t=0)=v_0## and then at ##t=0## the switch is flipped and the capacitor starts to discharge.
RC.png



Homework Equations



The Attempt at a Solution



From KVL we obtain
$$v_c=\frac{q}{c}=iR$$
Taking the time derivative of this and since capacitor is discharging ##-\frac{dq}{dt}=i##... $$-\frac{i}{RC}=\frac{di}{dt}\\ -\int_0^t \frac{dt}{RC}=\int_{i_0}^{i}\frac{di}{i}\\ -\frac{t}{RC}=\ln (\frac{i}{i_0})\\ i=i_0e^{-\frac{t}{RC}}$$
Now to solve for ##i_0## at t=0 ##\frac{q}{c}=i_0Re^{-\frac{t}{RC}}## becomes $$\frac{v_0}{c}=i_0R\\ i_0=\frac{v_0}{RC}\Longrightarrow i=\frac{v_0}{RC}e^{-\frac{t}{RC}}$$
Finally from KVL $$v_c=iR=\frac{v_0}{C}e^{-\frac{t}{RC}}$$

which is not the correct answer.
 

Answers and Replies

  • #3
Potatochip911
318
3
Of course it isn't. You can see it is dimensionally incorrect.(Vo/C doesn't give voltage).

Where does this come from?

I got that from the KVL equation (q/c=ir) and at t=0 so ##\frac{q(0)}{c}=i(0)R##
 
  • #4
ehild
Homework Helper
15,543
1,915
Q/C=Vo, not Vo/C .
 
  • Like
Likes Potatochip911
  • #5
Potatochip911
318
3
Q/C=Vo, not Vo/C .
Whoops, after making the proper substitution then we get ##i_0=\frac{v_0}{R}\Longrightarrow i=\frac{v_0}{R}e^{-\frac{t}{RC}}\Longrightarrow V_c=iR=v_0e^{-\frac{t}{RC}}## which is the correct expression :)
 
  • #6
ehild
Homework Helper
15,543
1,915
It is useful to check the dimensions during a derivation. :smile:
 
  • Like
Likes Potatochip911

Suggested for: Deriving Capacitor Voltage for a Discharging Capacitor

Replies
2
Views
205
Replies
4
Views
923
  • Last Post
Replies
15
Views
405
Replies
2
Views
453
Replies
18
Views
324
  • Last Post
Replies
6
Views
605
Replies
2
Views
246
Replies
6
Views
371
Replies
2
Views
314
Top