Comment by jacquesm
It's not complicated. It's just very basic capacitor behavior. If there is a tricky part here then it is in the bit that is glossed over: the switches. But congrats on getting it! Analog is fun, you can get incredibly complex behavior out of a handful of components.
I was trying to figure out where the cursed part comes into it; I assume it's the switching, that typical circuit analysis just doesn't involve discrete states that are swapped between?