Charging and discharging capacitor, differential equation

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 3K views
BOAS
Messages
546
Reaction score
19

Homework Statement


A circuit consists of a voltage source, voltage ##V## , a resistor, resistance ##R##, and a capacitor, capacitance ##C##, in series.

(i) Show that the charge ##Q(t)## in the capacitor satisfies the equation ##R Q' (t) + Q(t)/C = V ##.

(ii) Suppose that ##R##, ##C## and ##V## are constant and that ##Q## is initially zero. Find an expression for ##Q(t)##. Sketch the solution.

(iii) Suppose instead that ##V = V_{0}## for ##t < T## and ##V = 0## for ##t > T##, where ##V_{0}## is constant and ##Q## is again initially zero. Find the new expression for ##Q(t)##, both for ##t < T## and ##t > T##.

Homework Equations

The Attempt at a Solution


[/B]
I have managed to answer part 1 and 2. I used kirchhoffs loop rule to show that the charge in the capacitor satisfies the given equation, and solved it to find ##Q(t)##.

I found that ##Q(t) = vc(1 - e^{\frac{-t}{RC}})## which is a pretty standard result and satisfies the condition that ##Q(0) = 0##.

I am stuck with part 3. I know that discharging capacitors obey ##Q = Q_{T} e^{-\frac{t}{RC}}##, where ##Q_{T}## is the charge on the capacitor when the voltage is set to zero. (By solving the same differential equation with V = 0)

I have tried writing the charge on the capacitor as a piecewise function for t < T and t > T, but each expression does not equal the other at t = T.

Am I supposed to find a single expression that encapsulates this behaviour?
 
on Phys.org
NascentOxygen said:
Vo adds charge as a decaying exponential to the capacitor throughout time interval T. Then, starting with this value of charge, it drains away in a falling exponential.

##Q_{t < T} = CV_{0}(1 - e^{-\frac{t}{RC}})##

##Q_{t=T} = CV_{0}(1 - e^{-\frac{T}{RC}})##

##Q_{t > T} = Q_{t=T} e^{-\frac{t}{RC}}##

Like this?