I fail to see how does the output is always at the same voltage for both halfs of an AC cycle. What I mean is that let's pretend Vin is 10V. Now if R=Xc, the voltages across both components are the same (5V). But what if for example the frequency of the signal decreases a bit. This will increase Xc and now more voltage will fall across the capacitor. Let's say that now 4V are attained across R and 6V across Xc. Here it gets complicated and I hope you help me with this one:
Does this mean that for one half of the cycle, when the +10V are on the side of R you will have 10-4=6V output, and for the other half when +10V are at the side of the capacitor you will get 10-6=4V output?