Components of impedance - derivation

Impedance has three components. In general impedance is a vector which is built of complex number.
Z=R+j·XL-j·XC
where
• R=ρ·l/S - resistance [Ω]
• XL=ω·L - inductive reactance [Ω]
• XC=1/(ω·C) - capacitive reactance [Ω]
• ω=2·Π·f - pulsation [rad/s]
Derivation of formulas for inductive reactance XL and capacitive reactance XC.