In the graph below, the left vertical axis of the graph is the magnitude of voltage, the green line indicating the input voltage, blue line indicating the capacitor/inductor voltage. The right vertical axis is the phase difference of the voltages. It shows that the phase lag (in the dotted blue line) slowly increases from 0 to -90° at low frequencies. We know that the impedance of a capacitor is Z=1/(iωC), if Z changes with ω, shouldn't i be constant, hence the phase difference always be 90°?
The opposite scenario occurred in the case of an inductor, where the phase change tends to zero when the AC frequency increases. Why is that so? Would appreciate it if provided both mathematical and logical reasoning.