Circuit with resistor, switch and capacitor

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
62 replies · 7K views
Yup. Looks good.
 
Physics news on Phys.org
This is great!

But you mentioned in post #13
gneill said:
That is the "starting from the basics" approach, yes.

The thing is this, in the next task I'm asked to verify the result using a numerical method; ie. using a differential equation! (forward Euler for instance)

But I/we have solved it, by simply assuming the "form" of the function; I guess I am puzzled by the "starting from the basics" approach" you mentioned...

How does one go about finding the differential equation?
 
johann1301h said:
How does one go about finding the differential equation?
One writes the circuit equations using the differential or integral forms for the capacitor voltage or current, then solve the resulting differential equation. So for example, for the simple case of a charged capacitor discharging through a resistor, writing KCL:

##C \frac{dV}{dt} +\frac{V}{R} = 0##

##\frac{dV}{dt} = -\frac{V}{R C}##

##\frac{dV}{V} = -\frac{dt}{R C} ##

and so on