AC circuits and phasors

In an AC circuit each voltage is a sinusoid drawn as a turning arrow, a phasor; a resistor's is in step with the current, an inductor's leads it by $90^\circ$ and a capacitor's lags it by $90^\circ$, so they add head to tail to the impedance $Z = \sqrt{R^2 + (X_L - X_C)^2}$, smallest at resonance.

From Physics 2.