[Physics] In an AC circuit which voltage lags the current in a capacitor: Source voltage or capacitor voltage

electric-circuits

In a circuit with just a resistor and a capacitor I'm trying to figure out which voltage is being referred to that is lagging the current(which is the same current throughout the entire SERIES AC circuit). The voltage which leads or lags is the same voltage referred to by $$I(t)=C\frac{dV(t)}{dt}$$ which comes from the derivative of $$V(t) = \frac{Q(t)}{C} = \frac{1}{C}\int_{t_0}^t I(\tau) \mathrm{d}\tau + V(t_0)$$
Therefore the voltage which lags is the voltage drop across the capacitor because the charges are added above to the plates of the capacitor so the voltage refers to it.
In an AC circuit, the voltage source is forced to alternate with a cosine wave and the phase difference between the source current driven by $$V_0\cos(\omega t)\tag{1}$$ and the voltage which I'm asking about comes from:
$$I = C \frac{dV}{dt} = -\omega {C}{V_\text{0}}\sin(\omega t)\tag{2}$$
which is the same as
$$I = {I_\text{0}}{\cos({\omega t} + {90^\circ})}$$

The voltage used in this formula was the source voltage not the voltage drop across the capacitor which defines Capacitance. The voltage across the capacitor is not instantaneous and in fact exponentially decays up to the applied voltage as shown by a constant DC voltage circuit where :
$$V_0 = v_\text{resistor}(t) + v_\text{capacitor}(t) = i(t)R + \frac{1}{C}\int_{t_0}^t i(\tau) \mathrm{d}\tau$$
Taking the derivative:
$$RC\frac{\mathrm{d}i(t)}{\mathrm{d}t} + i(t) = 0$$
Solving the first order:
$$I(t) = \frac{V_0}{R} \cdot e^{\frac{-t}{\tau_0}}$$
Assuming initially the resitor is $V_0$ the voltage of capacitor:
$$V(t) = V_0 \left( 1 – e^{\frac{-t}{\tau_0}}\right)$$

Thus I'm confused about where the $90^\circ$ voltage lag comes from. If it's because of the derivative of the source voltage why is formula 2 even applicable to the source voltage. Second question: What is the formula for the voltage reached by the capacitor in an ac circuit. It appears as if it is the source max voltage but I don't believe/understand that.
Here is an identically solved using a sin source Voltage:

enter image description here
$$I_C+I_{max}\sin(\omega t +90^\circ)$$
In the above derivation, the source voltage is again mixed with the formula for the voltage stored across a capacitor or I'm to believe the maximum source voltage is somehow reached on the exponential decay to the voltage on a capacitor during a cycle.

Could someone either explain why the source voltage is used as if it was the capacitor voltage or the identically reversed inductor or refer me to a source that explains it?

Sources:

(1)https://en.wikipedia.org/wiki/Capacitor

(2)http://www.electronics-tutorials.ws/accircuits/ac-capacitance.html

Best Answer

The defining equation for a capacitor is $Q=CV_{\rm C}$ and when that equation is differentiated with respect to time one gets $\dfrac{dQ}{dt} = I = C\dfrac{dV_{\rm C}}{dt}$
So the current is proportional to the rate of change of voltage across the capacitor Applying a sinusoidal voltage to a capacitor results it the following current and voltage graphs.

enter image description here

Notice that the current is determined by the gradient of the voltage against time graph. being a maximum at time $a$ and zero at times $b$and $d$.
Whatever the current is doing the voltage does a quarter of a period (equivalent to $90^\circ$) later.
So the current is a maximum at time $a$ and the voltage is a maximum at a later time $b$.
We say that current leads the voltage across a capacitor by $90^\circ$.
In the graph $V_{\rm C}(t)=V_{\rm max} \sin \omega t$ and so the current is $I(t) =\omega CV_{\rm max} \cos\omega t$ with a peak current $I_{\rm max}=\omega CV_{\rm max}$.

When you add a series resistor to the circuit the current is the same in all parts of the circuit.
The voltage across the capacitor still lags the current by $90^\circ$ and the voltage across the resistor will be in phase with the current.
The (applied) voltage across both components will lag the current through the circuit at some value between $0^\circ$ and $90^\circ$ depending on the values of the capacitance of the capacitor, the resistance of the resistor and the frequency of the applied voltage.

Here I have considered what are called steady state conditions and so there are no transients which would be characterised by an exponential function and a time constant.

The difference for an inductor is that the defining equation is $V_{\rm L} = L \dfrac{dI}{dt}$ and the voltage across an inductor leads the current by $90^\circ$.

Update as a result of a comment

I think that what you are asking about is the transient behaviour which occurs when you first connect a capacitor to the voltage source. If by chance you make this connection to an uncharged capacitor when the voltage of the supply is zero then there is no transient and the circuit currents and voltages are as per the graph shown above. If on the other that is not so you will have a combination of the transient (the exponential function you have described) and the steady state. After about 10 time constants (10CR) the transients would have decayed away and all that is left is steady state

Now with an "ideal" circuit with no resistance the time constant is zero and the circuit settles down to steady state behaviour "instantly". However with a finite resistance in the circuit then there will be a transient behaviour which you tend to to see because it decays away.

I can show you this idea of a transient in action by using the "Circuit Sandbox" which is available in the edX Circuits and Electronics course, a course I thoroughly recommend even if it just to be able to used the circuit simulator.

Here is the result of a simulation where there is dc voltage of 1 V across a capacitor and after one second a sinusoidal voltage of peak value 1 V and frequency 1 Hz is applied across a resistor and a capacitor connected in series.
The graph is voltage across the capacitor in volts against time in seconds.

You can see very clearly the transient behaviour (the exponential decay) and then the steady state behaviour.

enter image description here

The 10RC s just a rule of thumb where $e^{-10} \approx 4.5 \times 10^{-5}$ and the decay has effective finished.
Others use 5RC which corresponds to a decrease of $e^{-5} \approx 6.7 \times 10^{-3}$.

Update 2
Here is the supply voltage shown in red and the voltage across the capacitor shown in cyan.
The supply voltage and voltage across the capacitor start at $+1 \, \rm V$ and then a $\pm 1 \, \rm V$ sinusoidal voltage is added after 1 second.
It clearly shows the $90^\circ$ phase shift.

enter image description here