I am having a difficultly with producing \$S, P, Q \$ and \$D\$ from Instantaneous Power \$p(t)\$.
Let's say that both voltage and current are clear sine waves. Then:
\$p(t) = Vsin(ωt+φ_V) \cdot Isin(ωt+φ_I)\$
and by using the identity
\$sinA sinB = \frac{1}{2} (cos(A-B) - cos(A+B)) \$
instantaneous power can be written as
\$p(t) = \frac{VI}{2}cos(φ_V-φ_I) - \frac{VI}{2}cos(2ωt+φ_V+φ_I)\$
Now, it can be proved that at a pure sine wave \$A_{RMS} = \frac{A_{peak}}{\sqrt2} \$, hence:
\$P = V_{RMS}I_{RMS} \cdot cos(φ_V-φ_I)\$.
How to prove that \$Q = V_{RMS}I_{RMS}\cdot sin(φ_V-φ_I)\$ and \$S = V_{RMS}I_{RMS}\$?
Moreover, how to prove that
\$P = \sum_{k=1}^\infty V_{RMS}I_{RMS} \cdot cos(φ_V-φ_I) \\ Q=\sum_{k=1}^\infty V_{RMS}I_{RMS} \cdot sin(φ_V-φ_I) \\ D = \sqrt{\sum_{k\ne j}^{\infty} U_k^2I_j^2 +U_j^2I_K^2 - 2 U_kI_kU_jI_jcos(φ_k-φ_j)}\$
when voltage and current are not sines, but arbitrary, periodic waveforms?
I don't expect from anyone to provide me with the full proof, but to show me the right direction.
EDIT:
In order to prove that \$Q = V_{RMS}I_{RMS}\cdot sin(φ_V-φ_I)\$ - for pure sine waves - one must analyze the current to two components. One that's in phase with the voltage and one that's \$\pm90^o \$ out of phase. By drawing the phasors \$\vec{V}, \vec{I_X}\$ and \$ \vec{I_Y}\$ this becomes obvious.