1
$\begingroup$

Let's assume that I was given the following circuit:

enter image description here

Where the capacitor is fully charged at 6V, and a switch (not shown) will be closed at time t=0. From this, let's say that I pick the following directions of my currents in order to do nodal analysis (assume ground is on the middle bottom node):

enter image description here

My simplified KCL equations would end up being:

$I_{capacitor}(t) = -\frac{1}{4k} V_c(t)$

Since the capacitor is discharging, the equation becomes:

$ -C \frac{dV_c(t)}{dt} = -\frac{1}{4k} V_c(t) $

Solving this differential equation yields:

$ V_c(t) = 6e^{2.5t} $

This is clearly wrong, as this solution diverges.

However, if I reverse the directions of the resistor currents to this:

enter image description here

Then my simplified DE equation becomes:

$ -C \frac{dV_c(t)}{dt} = \frac{1}{4k} V_c(t) $

Which results in the solution:

$ V_c(t) = 6e^{-2.5t} $

Which is the correct solution.

So how do I know which direction to make my currents before I even solve the differential equation?

$\endgroup$

1 Answer 1

1
$\begingroup$

You don’t change the sign because the capacitor is discharging. The fundamental equation presupposes the current flowing into the capacitor (as you have it in your drawing). The negative sign will take care of itself in the solution (discharging).

$$ C \frac{dV_c(t)}{dt} = -\frac{1}{4k} V_c(t) $$

The fundamental capacitor equation being, $$i(t)=C\frac{dv}{dt}$$

enter image description here

If you want to define your current as leaving the capacitor then you need to include a negative sign in your dv/dt term.

$\endgroup$
2
  • $\begingroup$ Ahhh I see now. I worked through both cases once again given that the derivative is positive if current enters the positive terminal of the capacitor (like I have in my diagram), and both cases now give the correct exponent. I also tried making the current leave the positive terminal, and also ended up with the same answer. So just to verify that I understand: If I pick the current to enter the positive end of the capacitor, I do $ +C \frac{dV}{dt} $, and if pick the current to leave the positive terminal, I do $ -C \frac{dV}{dt} $? $\endgroup$ Commented Nov 16, 2020 at 0:20
  • 1
    $\begingroup$ Good deal. Yes, your understanding is correct $\endgroup$ Commented Nov 16, 2020 at 0:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.