What I was wondering was, if I take my power supply and simply turn the knob up and down to create a sine wave, then what is Q?
If you are creating a 1Hz signal then you are creating an equal amount of 1Hz and -1Hz.
Mathematically cos(x) and cos(-x) are always equal, but when you add sin(x) to sin(-x) you always get zero, so your totaled Q value is zero.
Wrong, this is totally nonsensical. What you're saying is that any sinewave I encounter in nature is somehow "fundamentally" a cosine and definitely not a sine. What the?
I'll take you through it slowly....
Make yourself comfortable with the symmetry in the sin() and cos() functions: sin(x) = -sin(-x) and cos(x) = cos(-x) (see
https://brilliant.org/wiki/symmetry-in-trigonometric-graphs/)
Say you have a cosine wave, with an amplitude of 2:
f(x) = 2cos(x).
You can make it a complex, but with a zero imaginary component.
f(x) = 2cos(x) + i*0
You can decompose that into two halves:
- one a positive frequency (phase advancing with x)
g(x) = cos(x)+i*sin(x)
- one with negative frequency (phase decreasing with x)
h(x) = cos(-x)-i*-sin(-x)
(note that because of the symmetries these are almost the same functions, but with opposite signs on the second imaginary term so they cancel each other out).
That gives you an equivalent function of:
f(x) = 2cos(x) = g(x) + h(x) = cos(x)+i*sin(x) + cos(-x)+i*sin(-x)
And if you want to check then you can use the symmetries to reduce everything back to f(x) = 2cos(x).
f(x) = cos(x)+i*sin(x) + cos(-x)+i*sin(-x)
f(x) = cos(x)+cos(-x) + i(sin(x)+sin(-x))
f(x) = 2cos(x) + i*0
So far so good.
What have we just done?We have split the cos(x) into two complex functions (g(x) and h(x), that when added give you the original, real-valued, signal f(x). If you graph each of these halves on the complex plain, you have two points spinning around (0,0), one spinning, clockwise, the other counter clockwise. However, if you add them together and graph them, you just get a point that moves to along the real axis, tracing out 2cos(x).
Note that both halves start at 1+i*0 when x=0 - but of course you already knew that because they are half of the 2cos() function.
What about Sines?For f(x) = 2sin(x) you can decompose it into a slightly more confusing, less clear halves:
g(x) = sin( x) + i * cos(x)
h(x) = -sin(-x) - i * cos(-x)
Once again see how that uses the symmetries of sin(x) = -sin(-x) and cos(x) = cos(-x), with the imaginary terms cancelling each other out.
One is a function of the 'positive' frequency, the other the 'negative' frequency, which when added together give the original completely real-valued function.
When viewed on the complex plane these are also two points rotating around (0,0) in different directions, but unlike the cos() wave (where both are at 1+0i when x=0), one point is at 0+1i, the other point at 0-1i when x = 0.
Why is this useful?It then becomes pretty visually intuitive why multiplying a baseband signal with a carrier gives the "sum+difference" side bands - the g(x) half gives you the upper side band, the h(x) half gives you the lower side band.
It also becomes pretty clear what is going on when generate / demodulate USB and LSB signals.
It also becomes clear that multiplying by a I+Q carrier is pretty much 'moving the zero point' on the frequency spectrum, and you just need special care for what happens to those pesky 'negative' frequencies.
So what is the point to all this?It is just as valid, and sometimes helpful to view any 'real' signal (such as somebody tracing a sine wave with a PSU) as the sum of positive and negative frequencies that have an imaginary component. I sure makes a lot of SDR math / DSP stuff more intuitive and easier to grok.
This is just like how it is sometime helpful to view a real signal as a summation of sine and cosine waves.
I mean really, is that 3 minute song on the radio music really an nearly infinite group of sine+cosine waves of different phases and amplitudes?