There is an opportunity to write the KCL for the time before and the time after the switch is
closed.
Before the switch can is closed, the main power is shut on and we watch the capacitor fully
charge after some time.
The very instant the power (not the switch!) is shut on…The current is at a maximum, as if
the capacitor were simply a wire, (‘ the capacitor acts a s a short circuit…’)
ππ
For an instant, πΌπΌπ‘π‘<0 = πΌπΌ0 = π
π
π π , if we use 1V and 1kΩ, this makes 1mA of current.
π π
But we also observe that this voltage begins to change right away!
Since the two components are in series we know that their currents are equal.
πΌπΌπ
π
= πΌπΌπΆπΆ →
πππ
π
πππππΆπΆ
= πΆπΆ
π
π
π π
ππππ
Also, KVL would deduce that the Source voltage is the sum of the voltages across the loop.
(the left one in this case)
πππ π = πππ
π
π π + πππΆπΆ → ππππ = πππ π − πππ
π
π π →
πππππ
π
π π πππ
π
π π
+
=0
ππππ
π
π
π π πΆπΆ
πππππ
π
π π
πππππΆπΆ
= −
ππππ
ππππ
Could we swap them around to solve for VC, yep, but this will do for now…
Assume a solution: πππ
π
π π = ππππ ππππ
ππππππ ππππ +
Next,
ππππ ππππ
1
= 0 → ππ = −
π
π
π π πΆπΆ
π
π
π π πΆπΆ
−π‘π‘
−ππππ π
π
π π πΆπΆ
π
π
π π πΆπΆ
−π‘π‘
ππππ π
π
π π πΆπΆ
+ π
π
πΆπΆ = 0 → ππ − ππ = 0
π π
O_o
To solve for a, consider the conditions at t=0
ππ
For an instant the current pushing through the components is 1ma or I0 = π
π
π π , in general.
−π‘π‘
π π
−π‘π‘
πππππ
π
π π πππ
π
π π
πππ π
−ππππ π
π
π π πΆπΆ ππππ π
π
π π πΆπΆ
πππ π
+
=
→
+
=
→ ππ − ππ = πππ π ; ππππππ π‘π‘ = 0
ππππ
π
π
π π πΆπΆ π
π
ππ πΆπΆ
π
π
π π πΆπΆ
π
π
π π πΆπΆ
π
π
ππ πΆπΆ
We know, that the instant the power is shut ON, the voltage in the resistor is equal to Vs…
But the math says otherwise?
At this point we need to force the math to reveal what we know is true, so we will use truth
found within this equation to excavate what is happening for this circuit.
Maing a true statement is what we do now…
As long we don’t break the equality we will be ο¬ne..
ππ − ππ = πππ π = 2πππ π − πππ π
1−1=
πππ π 2πππ π − πππ π
=
ππ
ππ
2πππ π
2πππ π
=
ππ
ππ
To which the only solution for ‘a’ is that ππ = πππ π
Finally, we have the voltage for the resistor
−
−π‘π‘
πππ
π
ππ = πππ π ππ π
π
ππ πΆπΆ
To solve for the capacitor, plug this into the KVL.
−π‘π‘
πππ π = πππ
π
π π + πππΆπΆ = πππ π ππ π
π
ππ πΆπΆ + πππΆπΆ
−π‘π‘
πππΆπΆ = ππππ (1 − ππ π
π
ππ πΆπΆ )
As you can see, when we power
ON the circuit, the resistor voltage
drops as the capacitor voltage
rises. Next let’s see what happens
after we let the capacitor fully
charge and ο¬ip the switch.
When we ο¬ip the switch the right side of the circuit goes from one state to the next. As seen
above.
The capacitor has fully charged and will act as a ‘voltage-source’ until it depletes
completely.
We can model the current or the voltage, let’s model the current.
Since the components are in series, the current running through them is the same.
πΆπΆ
πΌπΌπΆπΆ = πΌπΌπ
π
πππππΆπΆ πππ
π
=
ππππ
π
π
Take note that at the instance the switch is ο¬ipped, we have πππ π potential for the circuit.
ππ
ππππ
ππ
Therefore, πΌπΌ0π
π
= π
π
ππ . Using KVL to replace πππΆπΆ . Leads to; −πΆπΆ πππππ
π
= π
π
π
π
πΆπΆ
πππππ
π
πππ
π
+
=0
ππππ
π
π
π‘π‘
In similar fashion as before the solution for the resistor voltage is ππππ ππ −π
π
π
π
Likewise, the voltage
for the capacitor is
π‘π‘
πππΆπΆ = ππππ (1 − ππ −π
π
π
π
)
Modeling the switch
action requires the use
of piecewise functions.
Checkout the
DESMOS! And build the circuit in EveryCircuit.Com to see it in action.
https://www.desmos.com/calculator/bk6ogo3i6i