I configured a simple series RC circuit. Across the circuit I have placed the terminals of a sinusoidal AC voltage source (I'm using my phone as a function generator). My goal has been to measure the resistor/voltage gain and compare my results with theory.
Data was measured using the RMS voltage setting on a voltmeter across the source $(V_{\rm in})$ and across the resistor $(V_{\rm out})$. I calculated the gain as $V_{\rm out}/V_{\rm in}$, and plotted it against the frequency being generated. I have attached the plot (Figure 1) along with a logarithmic trend line.
Note: $C=10\,\rm \mu F$ and $R=50\,\Omega$.
The trend in Figure 1 is expected; lower frequencies get cut more than high ones. It is to my belief that my issue then resides in my attempts to generate the same plot using theory.
I am looking for a sort of "ground up" explanation of this circuit. So far this is all I have:
If I represent by input signal as $V(t)=A\sin(\omega t),$ where $A$ is the maximum voltage, $\omega$ is the $2\pi$ of the frequency, and $t$ is time, then the current through the circuit as a function of time should be
$$I=\frac{A}{Z}\sin(\omega t+P)$$
where $P$ is the complementary angle to the phase angle given by $\arctan[1/(\omega RC)],$ and $Z$, the impedance, is given by
$$Z=\left(R^2 + \left(\frac{1}{\omega C}\right)^2\right)^{1/2}.$$
After this point, I'm not sure how to get functions of time that describe the voltage across the resistor and capacitor (assuming my equation for current is correct).
Where do I go from here?