Setting up differential equations for voltage

AI Thread Summary
The discussion revolves around setting up differential equations for voltages V1 and V2 across capacitors C1 and C2 in a circuit. The initial equations proposed include dV1/dt=I1/C1 and dV2/dt=I2/C2, with I1 and I2 expressed in terms of V1 and V2. Participants highlight issues with the circuit rules and the need for correct signs in the equations, particularly emphasizing that dV1/dt should include a negative sign due to the relationship between current and charge in capacitors. The conversation also touches on the possibility of solving the equations manually or using Mathematica, with suggestions to simplify the system to two equations with two unknowns for clarity. Overall, the focus is on ensuring the equations accurately reflect the circuit dynamics.
jerry fan
Messages
6
Reaction score
0
Let V1 be the voltage across C1 and V2 be the voltage across C2. I want to solve for V1 and V2 as a function of time.

My idea was to use dV1/dt=I1/C1 and dV2/dt=I2/C2. Then using circuit rules i can express I1 and I2 as functions of V1 and V2 and substitute them into the previous diff eqs. Finally i throw the differential equations into mathematica and solve. However, I'm having issues with using circuit rules.

I1 is the current in C1 branch and points to the left
I2 is the current in C2 branch and points to the right
IRL is the current in IRL branch and points to the right

This is what I've come up with so far:
V1 - V2 + I2 * R2 =0
V1 = IRL * RL
I1 = IRL + I2

Are these equations and method of finding V1 and V2 as a function of time right? Thanks
circuit with capacitors.png
 
Last edited:
Engineering news on Phys.org
Hello Jerry, and welcome to PF :smile: !

Do you know how to solve this problem in case C1 is absent ?
 
BvU said:
Hello Jerry, and welcome to PF :smile: !

Do you know how to solve this problem in case C1 is absent ?

If C1 is absent, then V2=I*(R2+RL). Then dV2/dt=V2/(C2*(R2+RL))is that correct?
 
You wanted to solve for V1 and V2 and wrote down
V1 - V2 + I2 * C2 =0
V1 = IRL * RL
I1 = IRL + I2

so can you solve those ?

Now you add V2 = I * (R2+RL) but you don't tell me what I is. I suppose you mean I2 ?

---

Could you also explain a little where V1 - V2 + I2 * C2 = 0 comes from ? Do you see that it can't be right ? The dimensions don't match.
 
BvU said:
You wanted to solve for V1 and V2 and wrote downso can you solve those ?

Now you add V2 = I * (R2+RL) but you don't tell me what I is. I suppose you mean I2 ?

---

Could you also explain a little where V1 - V2 + I2 * C2 = 0 comes from ? Do you see that it can't be right ? The dimensions don't match.
oh my bad i meant R2. I dindt label I because its could be labeled IRL or I2
 
So by now we are at the following picture, right ?

2Caps.jpg


In that case I wholeheartedly agree with what you wrote in post #1: it's correct.

[edit] correction ! dV1/dt=I1/C1 isn't correct !

You now have five equations with five unknowns. You might remove a few but that's up to you.
Sure you want to "throw it all into mathematica" ?

If C1 is absent, then V2=I*(R2+RL). Then dV2/dt=V2/(C2*(R2+RL))is that correct?
Yes. Would you need mathematica in that case , or could you solve it on your own ?

[edit] same correction: needs a minus sign
 
Last edited:
BvU said:
So by now we are at the following picture, right ?

View attachment 87552

In that case I wholeheartedly agree with what you wrote in post #1: it's correct.

You now have five equations with five unknowns. You might remove a few but that's up to you.
Sure you want to "throw it all into mathematica" ?

Yes. Would you need mathematica in that case , or could you solve it on your own ?
Yes, that exactly what I had in mind. Thanks for the confirmation. I havn't had to use circuits in a while so I am pretty rusty. I can solve by hand but i have to use them later so i decided that might as well get mathematica to solve for me.
 
Check the signs. I edited and re-edited #6.

There are only two degrees of freedom in the problem; I suggest you work it out so far that you only solve two equations with two unknowns ...
 
BvU said:
Check the signs. I edited and re-edited #6.

There are only two degrees of freedom in the problem; I suggest you work it out so far that you only solve two equations with two unknowns ...
in #6 what is wrong with dV1/dt=I1/C1? i solved the equations by hand and got
I1=((R2 - RL)*V1 + RL*V2) / (R2 RL)
and
I2= (-V1+V2)/R2

At this point I cannot substitute I1 and I2 into the equation dV/dt=I/C?
 
  • #10
It should be dV1/dt= ## \bf - ## I1/C1
 
  • #11
BvU said:
It should be dV1/dt= ## \bf - ## I1/C1
Can you explain why there needs to be a negative sign there?
 
  • #12
For the capacitor you have Q = CV so I = dQ/dt = C dV/dt : A positive I means the Q increases hence the V increases.

Your definition of I1 let's Q decrease if I1 is positive
 
Back
Top