When you derive the voltage equation for an RC circuit using KCL, they normally show both resistor current $i_r$ and capacitor current $i_c$ as leaving the same node. In reality the current is getting sourced from the discharging capacitor and flows in one direction.
However, when I use the later case I get exponential growth instead of exponential decay when i solve the DE for voltage. Why is that?
Case 1:
$$i_c + i_r = 0$$
$$C\frac{dV}{dt} + \frac{V}{R} = 0$$
$$v~dv = -\frac{1}{RC}~dt$$
$$\int \limits_{v(0)}^{v(t)} \frac{1}{v} ~dv = -\frac{1}{RC}~\int \limits_{0}^{t}d\tau$$
$$ln(v_1/v_0) = \frac{-1}{RC}(t - 0)$$
$$v(t) = v(0)e^{-t/(RC)}$$
exponential delay. good.
Case 2:
$$i_c - i_r = 0$$
$$C\frac{dV}{dt} - \frac{V}{R} = 0$$
$$v~dv = \frac{1}{RC}~dt$$
$$\int \limits_{v(0)}^{v(t)} \frac{1}{v}~dv = \frac{1}{RC}~\int \limits_{0}^{t}d\tau$$
$$ln(v_1/v_0) = \frac{1}{RC}(t - 0)$$
$$v(t) = v(0)e^{t/(RC)}$$
??Exponential growth?? bad.
I remember in school many years ago they said you can assign the current arrows anyway you want, its just the sign comes out minus if you assign the direction wrong, and it corrects itself.
I'm wondering how to make case 2 have exponential delay, the same as case 1.