Hi. When trying to derive the equation for voltage across a discharging capacitor in series with a resistor using Kirchhoff's laws, I got stuck. My attempt was that the voltage gain across the capacitor should equal the voltage drop across the resistor, therefore q(t)/C = i(t)*R, or q(t) - RC*q'(t) = 0. Solving this yields an equation similar to the actual equation, but it yields v(t) = V*e^(t/RC) when it should be V*e^(-t/RC). I have scoured the internet, and every other proof uses the KVL equation as q(t)/C + i(t)*R = 0, seemingly treating i(t)*R as a voltage rise instead of a drop. I am simply confused as to the logistics of this equation, and why it is + i(t)*R instead of - i(t)*R. Thank you for your help, in advance!