BIT1749 said:
you said that voltage across the capacitor lags behind that current.But my question was regarding the source voltage that lags behind current (according to the equation derived,which is impossible...)
The phase difference between source voltage and current depends on the resistance in the circuit. There is always some resistance also, when you connect a capacitor to a voltage source. If nothing else, the source has some internal resistance.
When you switch on the AC source to the capacitor, there is a transient current, and after a very short time the current follows the periodicity of the source voltage. We speak about phase difference in that state.
So assume the emf of the AC source is E (the time dependence is Esin(ωt)). The circuit contains the source, the capacitor C and the resistor R, connected in series. The net impedance is Z=R-j/(ωC), with magnitude √((RωC)
2+1)/(ωC) and phase θ=arctan(-1/(RωC)). The current is I=E/Z, which has opposite phase as the impedance: ψ=arctan(1/(RωC)). That is positive, so you can consider that the current leads the source voltage.
This is valid only when some time has elapsed after connecting the source to the capacitor. Initially, the capacitor is not charged and it behaves like a short - a wire, so the initial current is E/R, in phase with the source voltage. After a while the current follows the periodicity of the source voltage, with the phase difference ψ=arctan(1/(RωC)) - leads the voltage, and the phase difference is close to pi/2. It means that the time dependence of current is I=Iosin(ωt+ψ). But you get the same function if you subtract 2pi from the phase I=Iosin(ωt+ψ-2pi), and then the current lags behind the voltage.

That the current leads the voltage does not mean that causality is hurt.
ehild