The switched circuit is above. I am trying to understand how the switch causes the capacitor to charge and discharge. Most of the examples I can find involve using a switch to connect a capacitor to a voltage source, charging it up until the voltage across the capacitor equals the source. Then a switch is used to isolate the capacitor from the source, discharging the capacitor.
This circuit is much more complicated than that. Does closing the switch cause the current to bypass the capacitor, discharging it?