
The voltage across the capacitor equals the source voltage, so its charge is
q=Cε=Cε0sinωt
The current is the rate of flow of charge:
I=dtdq=ωCε0cosωt=1/ωCε0sin(ωt+2π)
I=I0sin(ωt+2π),I0=XCε0, XC=ωC1
The current leads the voltage by π/2: it is largest when the voltage is zero and changing fastest, since the capacitor charges fastest then.
