took me a while to find sinN(x) expansion formula. found them here.
for odd N:
cosN(x)=12(N−1)[2k<N∑k=0(N2k)cos((N−2k)x)]sinN(x)=(−1)⌊N/2⌋2(N−1)[2k<N∑k=0(−1)k(N2k)sin((N−2k)x)]
for even N:
cosN(x)=12(N−1)[2k<N∑k=0(N2k)cos((N−2k)x)]+12N(NN/2)sinN(x)=(−1)N/22(N−1)[2k<N∑k=0(−1)k(N2k)cos((N−2k)x)]+12N(NN/2)
For third order nonlinearity (N=3):
cos3(x)=34cos(x)+14cos(3x)
if we have a nonlinear system y=Gx+a3x3, G is linear gain and a3 is the magnitude of thrid order nonlinearity, then for a single tone signal, x=A0cos(w0t),
y=(G+3a3A204)A0cos(w0t)+a3A304cos(3w0t)
G+C, where C=3a3A204 represents the gain compression (when PNA transmits a tone and measures a tone at the same frequency as the input tone; output tone power is not G× input tone power. third order nonlinearity impact the tone power at the output; it's obvious but good to clearly show that third order nonlinearity impacts fundamental power).
HDdBc3=20×log10|3+4Ga3A20|
Pout=(G+C)2A20PdBout=dB20(G+C)+PdBin
P1dB compression is the input or output power for which, [dB20(G)+PdBin]−PdBout=1.
dB20(GG+C)=1GG+C=1.1221+CG=0.8913C=−0.1087×GA20=0.145×G|a3|P1dBin=−1.4dBm+dB10(G)−dB10(|a3|)
Substituting Eq. 14 in Eq. 7 results in HD3 of −27.8 dBc at P1dBin input power level.