How Does Charge in a Capacitor Satisfy the Given Differential Equation?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
67 replies · 7K views
TFM said:
So the first one, where t < T

[tex]Q = V_0C(1 - e^{-\frac{t}{RC}})[/tex]

For the second, the Voltage is 0, so are we using the voltage stored in the Capacitor, or should the equation just be 0?

TFM

I cannot view the attachment yet, but if I'm reading it correctly, this will be essentially a discharging circuit. So since the capacitor already has charge on it, it will have a voltage.

As long as the capacitor has a charge, it will have a potential difference across it, and as long as the resistor has a current, it will have a potential difference across it. So the terms in the differential equation (which are just the volts across each part of the circuit) are not all zero until I=0 and Q=0.

So the first change for this differential equation (relative to the original one) is that V=0. There is one more; what would it be, and so what would the final diff. eq. be?
 
Physics news on Phys.org
So will the equation be:

[tex]V_0 = R\frac{dQ}{dt} + V_{cap}[/tex]

?

TFM
 
TFM said:
So will the equation be:

[tex]V_0 = R\frac{dQ}{dt} + V_{cap}[/tex]

?

TFM

You know that V0=0 here. What formula gives you the voltage across the capacitor? Also, be careful with your signs.
 
So

[tex]0 = R\frac{dQ}{dt} + V_{cap}[/tex]

[tex]V_{cap} = \frac{Q}{C}[/tex]

So:

[tex]-\frac{Q}{C} = R\frac{dQ}{dt} + V_{cap}[/tex]

?

TFM
 
TFM said:
So

[tex]0 = R\frac{dQ}{dt} + V_{cap}[/tex]

[tex]V_{cap} = \frac{Q}{C}[/tex]

So:

[tex]-\frac{Q}{C} = R\frac{dQ}{dt} + V_{cap}[/tex]

(You meant to eliminate the Vcap in this last equation right, since you replaced is with Q/C?)

The signs are not right. In first equation you have:

[tex] 0 = R \frac{dQ}{dt} + V_{\rm cap}[/tex]

This comes from Kirchoff's loop rule. How did you choose the signs of both of those to be positive?
 
I see - in the first part, we had a Voltage Source, so

[tex]V = R \frac{dQ}{dt} + V_{\rm cap}[/tex]

In this part, we just have the capacitor, no independent Voltage Source, so

[tex]0 = R \frac{dQ}{dt} - V_{\rm cap}[/tex]

[tex]V_{\rm cap} = R \frac{dQ}{dt}[/tex]

and since

[tex]V_{cap} = \frac{Q}{C}[/tex]

[tex]\frac{Q}{C} = R \frac{dQ}{dt}[/tex]

?

TFM
 
TFM said:
I see - in the first part, we had a Voltage Source, so

[tex]V = R \frac{dQ}{dt} + V_{\rm cap}[/tex]

In this part, we just have the capacitor, no independent Voltage Source, so

[tex]0 = R \frac{dQ}{dt} - V_{\rm cap}[/tex]

[tex]V_{\rm cap} = R \frac{dQ}{dt}[/tex]

and since

[tex]V_{cap} = \frac{Q}{C}[/tex]

[tex]\frac{Q}{C} = R \frac{dQ}{dt}[/tex]

?

TFM

TFM,

Sorry, I should have corrected one thing about the sign of the diff. eq. When doing Kirchoff's I was thinking of the terms for using the regular Ohm's law version (before plugging in the I=dQ/dt). In that case you would get:

0 = I R - Q C

So one term has a positive sign, and the other is negative--this is what Kirchoff's gives you.

Now the question is what do we put in for I? In this case, the current is related to the decrease in charge of the capacitor (it is discharging, so as time goes on the charge decreases). So we use:

[tex] I = - \frac{dQ}{dt}[/tex]

Plugging this in leads to a minus sign in your last equation:

[tex]- \frac{Q}{C} = R \frac{dQ}{dt}[/tex]

(I was still thinking in terms of the pure Kirchoff's relationships, not yet thinking about putting both terms in terms of Q. Sorry!)

With this last equation, you can separate variables, choose limits, and integrate to get the result for t > T.
 
So:


[tex]- \frac{Q}{C} = R \frac{dQ}{dt}[/tex]

Multiply out the C:

[tex]-Q = RC \frac{dQ}{dt}[/tex]

Divide by Q:

[tex]-1 = \frac{RC}{Q} \frac{dQ}{dt}[/tex]

split the integral

[tex]-dt = \frac{RC}{Q} dQ[/tex]

remove the RC from one side

[tex]- \frac{1}{RC} dt = \frac{1}{Q} dQ[/tex]

set limits:

[tex]\int^t_T -\frac{1}{RC} dt = \int^Q_0 \frac{1}{Q} dQ[/tex]

Does this look okay?

TFM
 
TFM said:
So:


[tex]- \frac{Q}{C} = R \frac{dQ}{dt}[/tex]

Multiply out the C:

[tex]-Q = RC \frac{dQ}{dt}[/tex]

Divide by Q:

[tex]-1 = \frac{RC}{Q} \frac{dQ}{dt}[/tex]

split the integral

[tex]-dt = \frac{RC}{Q} dQ[/tex]

remove the RC from one side

[tex]- \frac{1}{RC} dt = \frac{1}{Q} dQ[/tex]

set limits:

[tex]\int^t_T -\frac{1}{RC} dt = \int^Q_0 \frac{1}{Q} dQ[/tex]

Does this look okay?

TFM

Everything looks good except that the initial charge is not zero. Since the time integral starts at t=T, the charge integral must start with the charge that is on the capacitor at that time.
 
Would it start with charge Q, and go down to zero, so that:

[tex]\int^t_T -\frac{1}{RC} dt = \int^0_Q \frac{1}{Q} dQ[/tex]

which would integrate to:

[tex][-\frac{t}{RC}]^t_T = [lnQ]^0_Q[/tex]

[tex]-\frac{t}{RC} + \frac{T}{RC} = -lnQ[/tex]

?

TFM
 
TFM said:
Would it start with charge Q, and go down to zero, so that:

[tex]\int^t_T -\frac{1}{RC} dt = \int^0_Q \frac{1}{Q} dQ[/tex]

No; if we wait a long enough time, the charge will go to zero. But we want to find an expression that will give us the charge at any time after t=T, and so you would not want to set the charge=0.


So call the lower limit QT or Qi or something; that is the charge on the capacitor at time T, which you already know (you've already done the part that gives you the charge at any time up to T).

The final charge is Q which is the charge at some time t.
 
So:

[tex]\int^t_T -\frac{1}{RC} dt = \int^{Q_t}_Q \frac{1}{Q} dQ[/tex]

[tex][-\frac{t}{RC}]^t_T = [lnQ]^{Q_t}_Q[/tex]

so:

[tex]-\frac{t}{RC} + \frac{T}{RC} = lnQ_T-lnQ[/tex]

And this is for:

t > T

?

TFM
 
TFM said:
So:

[tex]\int^t_T -\frac{1}{RC} dt = \int^{Q_t}_Q \frac{1}{Q} dQ[/tex]

Almost; QT is the lower limit.

Then integrate the same as before, and solve for Q. After that you can also replace QT with its real value.
 
OKay, so

[tex]\int^t_T -\frac{1}{RC} dt = \int_{Q_t}^Q \frac{1}{Q} dQ[/tex]

[tex]\int^t_T -\frac{1}{RC} dt = \int_{Q_t}^Q \frac{1}{Q} dQ[/tex]

This would give:

[tex]-\frac{t}{RC} + \frac{T}{RC} = lnQ - lnQ_T[/tex]

Also, you say to replace Q_T with its true value, would that be It?

?

TFM
 
TFM said:
OKay, so

[tex]\int^t_T -\frac{1}{RC} dt = \int_{Q_t}^Q \frac{1}{Q} dQ[/tex]

[tex]\int^t_T -\frac{1}{RC} dt = \int_{Q_t}^Q \frac{1}{Q} dQ[/tex]

This would give:

[tex]-\frac{t}{RC} + \frac{T}{RC} = lnQ - lnQ_T[/tex]

Also, you say to replace Q_T with its true value, would that be It?

?

TFM

I think you need to solve for Q, the same way as you did in the previous part: combine ln functions, etc.

Once you have Q by itself, you can then plug in the value for QT, which is the charge on the capacitor at time T. How can you determine what QT should be?
 
So:

[tex]-\frac{t}{RC} + \frac{T}{RC} = lnQ - lnQ_T[/tex]

Goes to:

[tex]-\frac{t}{RC} + \frac{T}{RC} = ln\left(\frac{Q}{Q_T}\right)[/tex]

Take exponentials:

[tex]e^{-\frac{t}{RC}} + e^{\frac{T}{RC}} = \frac{Q}{Q_T}[/tex]

[tex]Q_T\left(-frac{t}{RC} + e^{\frac{T}{RC}}\right) = Q[/tex]

So now I have to find Q_T

Would it be:

[tex]Q = VC(1 - e^{-\frac{t}{RC}})[/tex]

?

TFM
 
TFM said:
So:

[tex]-\frac{t}{RC} + \frac{T}{RC} = lnQ - lnQ_T[/tex]

Goes to:

[tex]-\frac{t}{RC} + \frac{T}{RC} = ln\left(\frac{Q}{Q_T}\right)[/tex]

Take exponentials:

[tex]e^{-\frac{t}{RC}} + e^{\frac{T}{RC}} = \frac{Q}{Q_T}[/tex]

The left side is not correct. When you take the exponential of both sides, the entire left side goes in one exponential function, because:

[tex] e^{a+b} \neq e^a + e^b[/tex]




[tex]Q_T\left(-frac{t}{RC} + e^{\frac{T}{RC}}\right) = Q[/tex]

So now I have to find Q_T

Would it be:

[tex]Q = VC(1 - e^{-\frac{t}{RC}})[/tex]

That's right; you use this formula with t=T to find QT.
 
So:

[tex]e^{-\frac{t}{RC} + \frac{T}{RC}}} = \frac{Q}{Q_T}[/tex]

[tex]Q_Te^{-\frac{t}{RC} + \frac{T}{RC}}} = Q[/tex]

and:

[tex]Q_T = VC(1 - e^{-\frac{T}{RC}})[/tex]

Finally giving:

[tex](VC(1 - e^{-\frac{T}{RC}}))Te^{-\frac{t}{RC} + \frac{T}{RC}}} = Q[/tex]

?

TFM
 
TFM said:
So:

[tex]e^{-\frac{t}{RC} + \frac{T}{RC}}} = \frac{Q}{Q_T}[/tex]

[tex]Q_Te^{-\frac{t}{RC} + \frac{T}{RC}}} = Q[/tex]

and:

[tex]Q_T = VC(1 - e^{-\frac{T}{RC}})[/tex]

Finally giving:

[tex](VC(1 - e^{-\frac{T}{RC}}))Te^{-\frac{t}{RC} + \frac{T}{RC}}} = Q[/tex]

I think it's just a typo, but that T right before the e should not be there.

You can make your exponential function look nicer (if you like) by using:

[tex] e^{-\frac{t}{RC} + \frac{T}{RC}}} = e^{- \frac{t-T}{RC} }[/tex]

It's not different, but it emphasizes that it is the time interval that's important.
 
So:

[tex]e^{-\frac{t}{RC} + \frac{T}{RC}}} = \frac{Q}{Q_T}[/tex]

is the same as:

[tex]e^{-\frac{t-T}{RC}} = \frac{Q}{Q_T}[/tex]

and

[tex]Q_Te^{-\frac{t-T}{RC}} = Q[/tex]

[tex]Q_T = VC(1-e^{-\frac{T}{RC}})[/tex]

so:

[tex]VC(1-e^{-\frac{T}{RC}})e^{-\frac{t-T}{RC}} = Q[/tex]

Which is the final product for t>T

TFM
 
TFM said:
So:

[tex]e^{-\frac{t}{RC} + \frac{T}{RC}}} = \frac{Q}{Q_T}[/tex]

is the same as:

[tex]e^{-\frac{t-T}{RC}} = \frac{Q}{Q_T}[/tex]

and

[tex]Q_Te^{-\frac{t-T}{RC}} = Q[/tex]

[tex]Q_T = VC(1-e^{-\frac{T}{RC}})[/tex]

so:

[tex]VC(1-e^{-\frac{T}{RC}})e^{-\frac{t-T}{RC}} = Q[/tex]

Which is the final product for t>T

TFM

That looks right to me.
 
Just to confirm, for t < T, the equation is:

[tex]Q = VC(1 - e^{-\frac{t}{RC}})[/tex]

?

TFM
 
TFM said:
Just to confirm, for t < T, the equation is:

[tex]Q = VC(1 - e^{-\frac{t}{RC}})[/tex]

?

TFM

That looks right to me. If you look in your book, you should find formulas that match these and you can verify the parts.
 
Thanks!

Final part now, which I have a feeling is practically the same as the last two parts.

Suppose instead that [tex]V = V_0sin\omega t[/tex], where [tex]V_0[/tex] and ω are constants. Find the general solution for Q(t). (You may assume that [tex]\int e^{t/\alpha} sin\omega t dt = \alpha e^{t/\alpha}\frac{(sin \omega t - \alpha \omega cos \omega t)}{1 + \alpha ^2\omega^2} + Constant[/tex] )

So do I use the formula

[tex]V = R\frac{dQ}{dt} + \frac{Q}{C}[/tex]

and replace the V, so that

[tex]V_0sin\omega t = R\frac{dQ}{dt} + \frac{Q}{C}[/tex]

?

TFM
 
Assuming that this is the right equation,

[tex]CV_0sin\omega t = CR\frac{dQ}{dt} + Q[/tex]

[tex]CV_0sin\omega t - Q = CR\frac{dQ}{dt}[/tex]

[tex]CV_0sin\omega t dt - Q dt = CR dQ[/tex]

Does this look correct?

Edit: I think I should actually of done:

[tex]CV_0sin\omega t - Q = CR\frac{dQ}{dt}[/tex]

[tex]CV_0sin\omega t = CR + Q\frac{dQ}{dt}[/tex]

Does this look better?

?

TFM
 
Last edited:
TFM said:
Thanks!

Final part now, which I have a feeling is practically the same as the last two parts.

Suppose instead that [tex]V = V_0sin\omega t[/tex], where [tex]V_0[/tex] and ω are constants. Find the general solution for Q(t). (You may assume that [tex]\int e^{t/\alpha} sin\omega t dt = \alpha e^{t/\alpha}\frac{(sin \omega t - \alpha \omega cos \omega t)}{1 + \alpha ^2\omega^2} + Constant[/tex] )

So do I use the formula

[tex]V = R\frac{dQ}{dt} + \frac{Q}{C}[/tex]

and replace the V, so that

[tex]V_0sin\omega t = R\frac{dQ}{dt} + \frac{Q}{C}[/tex]

This equation is correct; I think the path you were going down in your next post after this was a wrong turn. (When the voltage was constant, we could take it to the charge integral; here that cannot be done.)

If you divide by R, you get and shuffle the terms, you get:

[tex] \frac{dQ}{dt} + \frac{Q}{RC} = \frac{V_0}{R} \sin\omega t[/tex]


How would you solve this differential equation? Note that there is a homongenous and non-homogenous part to the solution.
 
So:

[tex]V = R\frac{dQ}{dt} + \frac{Q}{C}[/tex]

And Divide by R:

[tex]\frac{V}{R} = \frac{dQ}{dt} + \frac{Q}{RC}[/tex]

[tex]V = V_0sin\omega t[/tex]

So:

[tex]\frac{V_0sin\omega t}{R} = \frac{dQ}{dt} + \frac{Q}{RC}[/tex]

[tex]\frac{V_0sin\omega t}{R} - \frac{Q}{RC} = \frac{dQ}{dt}[/tex]

[tex]\frac{V_0sin\omega t}{R} - \frac{1}{RC} = \frac{1}{Q}\frac{dQ}{dt}[/tex]

[tex]\frac{V_0sin\omega t}{R}dt - \frac{1}{RC}dt = \frac{1}{Q}dQ[/tex]

Does this look right?

TFM
 
TFM said:
So:

[tex]V = R\frac{dQ}{dt} + \frac{Q}{C}[/tex]

And Divide by R:

[tex]\frac{V}{R} = \frac{dQ}{dt} + \frac{Q}{RC}[/tex]

[tex]V = V_0sin\omega t[/tex]

So:

[tex]\frac{V_0sin\omega t}{R} = \frac{dQ}{dt} + \frac{Q}{RC}[/tex]

[tex]\frac{V_0sin\omega t}{R} - \frac{Q}{RC} = \frac{dQ}{dt}[/tex]

[tex]\frac{V_0sin\omega t}{R} - \frac{1}{RC} = \frac{1}{Q}\frac{dQ}{dt}[/tex]

This line does not follow from the previous one; if you divide by Q, the first term will have Q in the denominator.

But I was saying that this problem is different from the previous one; the procedure you followed for the previous problem is not the procedure to solve this one.

In my last post, I had that the diff. eq. was:

[tex]\frac{dQ}{dt} + \frac{Q}{RC} = \frac{V_0}{R} \sin\omega t[/tex]

This has the form:

[tex] \frac{dx}{dt} + c x = f(t)[/tex]

with c being a positive constant here. When you have a diff. eq. in this form, how can you solve it? (Have you studied how to solve differential equations yet?) It has to do with the fact that the solution will have a homogenous and inhomogenous part.
 
So:

[tex]\frac{V_0sin\omega t}{R} - \frac{Q}{RC} = \frac{dQ}{dt}[/tex]

[tex]\frac{dQ}{dt} + \frac{Q}{RC} = \frac{V_0sin\omega t}{R}[/tex]

It seems to be a mixture of Linear with Constant Coefficients

[tex]x' + ax = b --> x = Ce^{-at} + \frac{b}{a}[/tex]

and linear:

[tex]x' + p(t)x = q(t) --> e^Fx = \int e^F q(t)dt + C, F = \int p(t) dt[/tex]

?

TFM
 
TFM said:
So:

[tex]\frac{V_0sin\omega t}{R} - \frac{Q}{RC} = \frac{dQ}{dt}[/tex]

[tex]\frac{dQ}{dt} + \frac{Q}{RC} = \frac{V_0sin\omega t}{R}[/tex]

It seems to be a mixture of Linear with Constant Coefficients

[tex]x' + ax = b --> x = Ce^{-at} + \frac{b}{a}[/tex]

and linear:

[tex]x' + p(t)x = q(t) --> e^Fx = \int e^F q(t)dt + C, F = \int p(t) dt[/tex]

?

TFM

Looks good; what do you get when you apply that last one to the problem?