next up previous contents index
Next: Sawtooth wave Up: Classical waveforms Previous: Decomposing the classical waveforms   Contents   Index


Fourier series of the elementary waveforms

In general, given a repeating waveform $X[n]$, we can evaluate its Fourier series coefficients $Y[k]$ by directly evaluating the Fourier transform:

\begin{displaymath}
Y[k] = {1 \over N} {\cal FT}\{X[n]\}(k)
\end{displaymath}


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

but doing this directly for sawtooth and parabolic waves will require massive algebra (or somewhat less if we resort to differential calculus, which would require more mathematics background). Instead, we rely on properties of the Fourier transform to relate the transform of a signal $x[n]$ with its first difference, defined as $x[n] - x[n-1]$. The first difference of the parabolic wave will turn out to be a sawtooth, and that of a sawtooth will be simple enough to evaluate directly, and thus we'll get the desired Fourier series.

In general, to evaluate the strength of the $k$th harmonic, we'll make the assumption that $N$ is much larger than $k$, or equivalently, that $k/N$ is negligible.

We start from the Time Shift Formula for Fourier Transforms (Chapter 9.2.2) setting the time shift to one sample:

\begin{displaymath}
{\cal FT}\{ x[n-1] \} =
\left [ \cos(k \omega) - i \sin (k \omega) \right ]
{\cal FT}\{ x[n] \}
\end{displaymath}


\begin{displaymath}
\approx (1 + i \omega k) {\cal FT}\{ x[n] \}
\end{displaymath}

Here we're using the fact that $\omega k = 2\pi k / N$ is much smaller than unity to make the approximations,

\begin{displaymath}
\cos(\omega k) \approx 1 \; , \; \sin(\omega k) \approx \omega k
\end{displaymath}

which are good to within a negligible error on the order of ${{(k/N)}^2}.$ Now we plug this result in to evaluate:

\begin{displaymath}
{\cal FT}\{ x[n] - x[n-1] \} \approx i \omega k {\cal FT}\{ x[n] \}
\end{displaymath}



Subsections
next up previous contents index
Next: Sawtooth wave Up: Classical waveforms Previous: Decomposing the classical waveforms   Contents   Index
Miller Puckette 2006-03-03