You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The signal generated by an oscillator can be modeled as a function of time
$O(t)$ where $t$ denotes time, and $O \colon \mathbb{R} \to \mathbb{R}$.
An oscillator has a waveform associated with it which determines the shape of
the signal. A waveform is a periodic function; for example, in the simplest
case, it can be the good old trigonometric sine function. A bare
$O(t) = \sin(t)$ signal can be thought of as a wave which oscillates once every
$2\pi$ seconds.
To make it oscillate once every second instead (ie. at 1 Hz), we need to scale
its input by $2\pi$, so it becomes
$$
O(t) = \sin(2\pi \cdot t)
$$
To make it oscillate 10 times per second (ie. at 10 Hz), its input needs to be
scaled even more:
$$
O(t) = \sin(2\pi \cdot 10 \cdot t)
$$
To make it oscillate at a constant frequency $f$, the input needs to be
multiplied by $f$:
$$
O(t) = \sin(2\pi \cdot f \cdot t)
$$
If we also want this signal to start at a different portion of the sine wave at
$t = 0$ seconds, then we need to shift its input by some number
$\varphi \in \mathbb{R}$, which is called the phase or phase offset:
$$
O(t) = \sin(2\pi \cdot f \cdot t + \varphi)
$$
We can also change the signal's amplitude by multiplying the whole thing by
some number $A \in \mathbb{R}$:
$$
O(t) = A \cdot \sin(2\pi \cdot f \cdot t + \varphi)
$$
Now let's think for a moment: what does $2\pi \cdot f \cdot t + \varphi$
actually represent here?
Well, the input to the sine function can be thought of as an angle measured in
radians (hence the $2\pi$). And
whatever this angle is measuring (e.g. it could be the rotation of a
tonewheel), seems to be changing
over time, since we have a time-dependent term in there. The trick is that the
"rate of change" of this angle
is what frequency actually measures, telling us how many full rotations are
completed per second, just like velocity in physics measures how many meters
are traveled per second. Therefore, $2\pi \cdot f \cdot t + \varphi$ here
represents the total rotation of something (e.g. a tonewheel) that has
accumulated over $t$ seconds. In other words, we aren't just multiplying
frequency and time together, what we're acutally doing here is that we are
summing infinitesimally small rotations (i.e. changes of angle) over a length
of time! So our equation should really look like this:
$$
O(t) = A \cdot \sin \left(2\pi \cdot \int_{0}^{t} f \ d\tau + \varphi \right)
$$
And this isn't just some arbitrary, unnecesessary pedantry, because it actually
makes a huge difference when we replace the constant frequency with one that is
changing over time, which we are going to need if we want to model frequency
modulation that is all about changing the frequency rapidly in each moment.
Finally, we can replace $\sin(t)$ with some other periodic function
$W \colon \mathbb{R} \to \mathbb{R}$ to get a different waveform (like
sawtooth, triangle, etc.):
$$
O(t)
= A \cdot W \left(
2\pi \cdot \int_{0}^{t} f(\tau) \ d\tau + \varphi
\right)
$$
Modulator and Carrier
We have two oscillators, the Modulator and the Carrier. In the simplest case,
they are connected in a way which lets the Modulator to affect one of the
parameters of the Carrier. For example, for each $t$ moment in time, we
add the momentary signal value of the Modulator to the selected parameter of
the Carrier.
To see how Phase Modulation (PM) and Frequency Modulation (FM) are related to
each other, we are going to mathematically model FM, and see if we can throw
enough algebra at it to turn it into PM, then look at what happens to the
modulator function in the process.
The signals generated by the two oscillators will be modeled as functions of
time, like we have seen above: $M(t)$ and $C(t)$ for the Modulator and the
Carrier respectively, $M \colon \mathbb{R} \to \mathbb{R}$ and
$C \colon \mathbb{R} \to \mathbb{R}$.
For simplicity's sake, let's define $M(t)$ with a constant frequency
$f_M \in \mathbb{R}$, and a constant amplitude $A_M \in \mathbb{R}$,
with zero phase offset ($\varphi_M = 0$), and with a waveform
$W_M \colon \mathbb{R} \to \mathbb{R}$:
Now let's define the Carrier's function with varying frequency; similarly to
the above, $A_C \in \mathbb{R}$ is the amplitude, $\varphi_C \in \mathbb{R}$ is
the phase offset, $f_{FM} \colon \mathbb{R} \to \mathbb{R}$ is the varying
frequency, and $W_C \colon \mathbb{R} \to \mathbb{R}$ is the waveform:
Let's say that the Carrier's own frequency is a constant $f_C \in \mathbb{R}$,
and this is what we are modulating with $M$, so $f_{FM}(\tau)$ can be
expressed as
$$
f_{FM}(\tau) = M(\tau) + f_C
$$
It can already be seen that modulating the frequency by some function is
equivalent to modulating the phase by an antiderivative of that function (see
Fundamental theorem of calculus),
and those two are only equivalent in very special cases, but let's see the math
in detail now.
Turning FM into PM
Substituting $f_{FM}(\tau) = M(\tau) + f_C$ into equation $(2)$ and then
expanding $M$, we get
Thanks to Fourier, we know that
periodic functions can be expressed as sums of sinusoids, so for simplicity's
sake, let's consider only those waveforms for the Modulator where, for some
$N \in \mathbb{N}$, $W_M$ can be written as
which is indeed the same as if we added a constant offset to $\varphi_C$ and
then modulated it by a slight variation of the original modulator signal which
would have an amplitude of $A_{FM}$ and a phase offset of $- \frac{\pi}{2}$
(see equation $(1)$ ):
Therefore for $N = 1$, phase modulation and frequency modulation are indeed
equivalent.
But for $N \gt 1$, if we express the frequency modulated $C(t)$ signal as a
phase modulated signal, as can bee seen from equation $(11)$, we get a
modulator signal which has a significantly different harmonic content from the
original $M(t)$ (because the original $B_n$ coefficients of $W_M$ get replaced
with $\frac{B_n}{n}$ ):
(And indeed, $\hat{M_N}(t)$ is an antiderivative of $M(t)$.)
Thus, modulating the frequency with a harmonically complex $M(t)$ signal is
significantly different from modulating directly the phase with it, therefore,
in the general case, PM is not always equivalent to FM.