<!--support, this is good and keep it around--> |

### Problem

Why, when assembling an I/Q modulator or demodulator using MIXER_B/MIXER_F, is a phase shift of +90 degrees applied to the LO signal rather than -90 degrees?

### Solution

In an ideal I/Q modulator or demodulator, the I channel is mixed with cos(2*π*fLO*t), while the Q channel is mixed with -sin(2*π* fLO*t):

Using the identity:

cos(fLO) = cos(s)Â·cos(t) - sin(s)Â·sin(t)

We can relate -sin(2*π*fLO*t) to cos(2*π*fLO*t) by:

cos(fLO + π/2) = cos(fLO)Â·cos(π/2) - sin(fLO)Â·sin(π/2) = -sin(fLO)

Therefore, applying a 90 degree phase shift to cos(2*π*fLO*t) is identical to -sin(2*π*fLO*t).