Consider I have a low pass filter like that in the figure.
simulate this circuit – Schematic created using CircuitLab
I have considered the voltage source to be \$V\$ and the voltage across the capacitor to be \$V_c\$. Since, this source is an AC source, we know that the reactance of the capacitor is \$X_C\$.
What I want to do is, I want to establish an equation expressing the phase difference between the voltage drop across the capacitor and the voltage source.
Here, I shall start by considering:
$$V_C=i_CX_C=\frac {i_C}{\omega C}$$ In order to calculate \$i_C\$, we can use the equation: $$i_C=\frac {dq}{dt}=C\frac{dV_C}{dt}$$ I have tried putting \$V_C=V-V_R\$ but have no idea of what to do next. I couldn't calculate any derivative since the function seems to be bizzare to me.