next up previous contents index
Next: Sawtooth waves and symmetry Up: Classical waveforms Previous: Classical waveforms   Contents   Index

Symmetries and Fourier series

Before making a quantitative analysis of the Fourier series of the classical waveforms, we pause to make two useful observations about symmetries in waveforms and the corresponding symmetries in the Fourier series. First, a Fourier series might consist only of even or odd-numbered harmonics; this is reflected in symmetries comparing a waveform to its displacement by half a cycle. Second, the Fourier series may contain only real-valued or pure imaginary-valued coefficients (corresponding to the cosine or sine functions). This is reflected in symmetries comparing the waveform to its reversal in time.

In this section we will assume that our waveform has an integer period $N$, and furthermore, for simplicity, that $N$ is even (if it isn't we can just up-sample by a factor of two). We know from Chapter 9 that any (real or complex valued) waveform $X[n]$ can be written as a Fourier series (whose coefficients we'll denote by $A[k]$):

\begin{displaymath}
X[n] = A[0] + A[1]{U^n} + \cdots + A[N-1]{U^{(N-1)n}}
\end{displaymath}

or, equivalently,

\begin{displaymath}
X[n] =
A[0] + A[1](\cos(\omega n) + i \sin(\omega n)) + \cdots
\end{displaymath}


\begin{displaymath}
+ A[N-1](\cos(\omega (N-1) n) + i \sin(\omega (N-1) n))
\end{displaymath}

where $\omega=2\pi/N$ is the fundamental frequency of the waveform, and

\begin{displaymath}
U = \cos(\omega) + i \sin(\omega)
\end{displaymath}

is the unit-magnitude complex number whose argument is $\omega $.

To analyze the first symmetry we delay the signal $X[n]$ by a half-cycle. Since ${U^{N/2}} = -1$ we get:

\begin{displaymath}
X[n+N/2] = A[0] - A[1]{U^n} + A[2]{U^{2n}} \pm \cdots
\end{displaymath}


\begin{displaymath}
+ A[N-2]{U^{(N-2)n}} - A[N-1]{U^{(N-1)n}}
\end{displaymath}

In effect, a half-cycle delay changes the sign of every other term in the Fourier series. We combine this with the original series in two different ways. Letting $X'$ denote half the sum of the two:

\begin{displaymath}
X'[n] = {{X[n] + X[n+N/2]}\over 2} =
A[0] + A[2]{U^{2n}} + \cdots + A[N-2]{U^{(N-2)n}}
\end{displaymath}

and $X''$ half the difference:

\begin{displaymath}
X''[n] = {{X[n] - X[n+N/2]}\over 2} =
A[1]{U^n} + A[3]{U^{3n}} + \cdots + A[N-1]{U^{(N-1)n}}
\end{displaymath}

we see that $X'$ consists only of even-numbered harmonics (including DC) and $X''$ only of odd ones.

Furthermore, if $X$ happens to be equal to itself shifted a half cycle, that is, if $X[n] = X[n+N/2]$, then (looking at the definitions of $X'$ and $X''$) we get $X'[n] = X[n]$ and $X''[n] = 0$. This implies that, in this case, $X[n]$ has only even numbered harmonics. Indeed, this should be no surprise, since in this case $X[n]$ would have to repeat every $N/2$ samples, so its fundamental frequency is twice as high as normal for period $N$.

In the same way, if $X[n] = -X[n+N/2$], then $X$ can have only odd-numbered harmonics. This allows us easily to split any desired waveform into its even- and odd-numbered harmonics. (This is equivalent to using a comb filter to extract even or odd harmonics; see Chapter 7.)

To derive the second symmetry relation we compare $X[n]$ with its time reversal, $X[-n]$ (or, equivalently, since $X$ repeats every $N$ samples, with $X[N-n]$). The Fourier series becomes:

\begin{displaymath}
X[-n] =
A[0] + A[1](\cos(\omega n) - i \sin(\omega n)) + \cdots
\end{displaymath}


\begin{displaymath}
+ A[N-1](\cos(\omega (N-1) n) - i \sin(\omega (N-1) n))
\end{displaymath}

(since the cosine function is even and the sine function is odd). In the same way as before we can extract the cosines by forming $X'[n]$ as half the sum:

\begin{displaymath}
X'[n] = {{X[n] + X[-n]}\over 2} =
A[0] + A[1]\cos(\omega n)+ \cdots + A[N-1]\cos(\omega (N-1) n)
\end{displaymath}

and $X''[n]$ as half the difference divided by $i$:

\begin{displaymath}
X''[n] = {{X[n] - X[-n]}\over {2i}} =
A[1]\sin(\omega n)+ \cdots + A[N-1]\sin(\omega (N-1) n)
\end{displaymath}

So if $X[n]$ satisfies $X[-n] = X[n]$ the Fourier series consists of cosine terms only; if $X[-n] = -X[n]$ it consists of sine terms only; and as before we can decompose any $X[n]$ (that repeats every $N$ samples) as a sum of the two.



Subsections
next up previous contents index
Next: Sawtooth waves and symmetry Up: Classical waveforms Previous: Classical waveforms   Contents   Index
Miller Puckette 2006-12-30