kamhogo
- 86
- 6
Homework Statement
I am trying to derive the equation for the charge of a capacitor as a function of time: Q (t) = Qmax (1-e^(-t/tau).
Homework Equations
Kirchhoff's loop law
I (t) = dQ(t)/dt
Delta Vbat= Epsilon
Delta Vresistor= -I*R = [-dQ(t)/dt]*R
Delta Vcapacitor= Q/C
Qmax = C*Epsilon
Tau = R*C
The Attempt at a Solution
Kirchhoff's loop law
Epsilon - I*R - (Q/C) = 0
Epsilon - [dQ(t)/dt]*R -(Q/C) =0
[dQ(t)/dt] = [Epsilon -(Q/C) ]/R
= (C*Epsilon -Q)/RC
= (Qmax -Q) / tau
Multiply both sides by dt and divide by Q
dQ(t)/Q = [{(Qmax/Q) - 1}*{1/tau}]dt
Integrate both sides
lnQ(t) ={(Qmax/Q) - 1}*{1/tau}
Take the inverse natural logarithm on both sides
Q(t) = e^[(Qmax/Q) - 1}*{1/tau}]
Voilà. What am I doing wrong. I've been trying to get the right equation for hours. Is what I found equivalent to the equation in the post title? Thanks in advance for any help.
true, except for |0|.