Learn About Fourier Coefficients - LEKULE BLOG

## Thursday, 7 January 2016

Electronic oscillators, which are extremely useful in laboratory testing of equipment, are specifically designed to create non-sinusoidal periodic waveforms. Moreover, non-sinusoidal periodic functions are important in analyzing non-electrical systems. Problems that involve fluid flow, mechanical vibration, and heat flow all make use of different periodic functions. This article will detail a brief overview of a Fourier series, calculating the trigonometric form of the Fourier coefficients for a given waveform, and simplification of the waveform when provided with more than one type of symmetry.
Any periodic signal can be represented as a sum of sinusoids where the frequencies of the sinusoids in the sum are composed of the frequency of the periodic signal and integer multiples of that frequency. Using a periodic signal like a square wave to test the quality factor of a bandpass or band reject filter. In order to do this, a square wave whose frequency is the same as the center frequency of a bandpass filter is chosen.

### Fourier Series Overview

An analysis of heat flow in a metal rod led the French mathematician Jean Baptiste Joseph Fourier to the trigonometric series representation of a periodic function. This representation of a periodic function is the starting point for finding the steady-state response to periodic excitations of electric circuits. What was discovered was that a periodic function can be represented by an infinite sum of sine or cosine functions that are related harmonically. The period of any trigonometric term in the infinite series is an integral multiple, or harmonic, of the period T of the periodic function. To visualize an understanding, below are a few waveforms produced by function generators used in laboratory testing.

The Fourier series shows that f(t) can be described as
$f\left(t\right)={a}_{v}+\sum _{n=1}^{\mathrm{\infty }}{a}_{n}\mathrm{cos}\left(n{\omega }_{0}t\right)+{b}_{n}\mathrm{sin}\left(n{\omega }_{0}t\right)$

(1.1) Fourier series representation of a periodic function
Where is the integer sequence 1,2,3,...
In Eq. 1.1,
${a}_{v}$
,
${a}_{n}$
, and
${b}_{n}$
are known as the Fourier coefficients and can be found from f(t). The term
${\omega }_{0}$
(or
$\frac{2\pi }{T}$
) represents the fundamental frequency of the periodic function f(t). The integral multiples of
${\omega }_{0}$
, i.e.
$2{\omega }_{0},3{\omega }_{0},4{\omega }_{0}$
and so on, are known as the harmonic frequencies of f(t). Thus
$n{\omega }_{0}$
is the nth harmonic term of f(t).

Before discussing Fourier coefficients, the conditions in a Fourier series need to be explained. For a periodic function f(t) to be a convergent Fourier series, the following conditions need to be met:
1. f(t) be single-valued,
2. f(t) have a finite number of discontinuities in the periodic interval,
3. f(t) have a finite number of maxima and minima in the periodic interval,
4. the integral
${\int }_{{t}_{0}}^{{t}_{0}+T}\mid f\left(t\right)\mid dt$
exists,
These 4 conditions are known as Dirichlet's conditions, and are sufficient condition, not necessary conditions. Thus if f(t) meets these requirements, it can be expressed as a Fourier series. Nonetheless, if f(t) does not meet these requirements, it still can be expressed as a Fourier series; the necessary conditions on f(t)  are not known.

### The Fourier Coefficients

Having defined a periodic function over its period, the following Fourier coefficients are determined from the relationships:
${a}_{v}=\frac{1}{T}{\int }_{{t}_{0}}^{{t}_{0}+T}f\left(t\right)dt,$
(1.2)

${a}_{k}=\frac{2}{T}{\int }_{{t}_{0}}^{{t}_{0}+T}f\left(t\right)\mathrm{cos}\left(k{\omega }_{0}t\right)dt,$
(1.3)

${b}_{k}=\frac{2}{T}{\int }_{{t}_{0}}^{{t}_{0}+T}f\left(t\right)\mathrm{sin}\left(k{\omega }_{0}t\right)dt,$
(1.4)

In Eqs. 1.3 and 1.4, the subscript k indicated the kth coefficient in an integer sequence 1,2,3,...Noting that
${a}_{v}$
is the average value of f(t)
${a}_{k}$
is twice the average value of
$f\left(t\right)\mathrm{cos}\left(k{\omega }_{0}t\right)$
, and
${b}_{k}$
is twice the average value of
$f\left(t\right)\mathrm{sin}\left(k{\omega }_{0}t\right)$
.

To gain a better understanding of how Eqs 1.2-1.4 came from Eq 1.1, simple derivations can be used through integral relationships which hold true when and are integers:
${\int }_{{t}_{0}}^{{t}_{0}+T}\mathrm{sin}\left(m{\omega }_{0}t\right)dt=0$
for all m,      (1.6)

${\int }_{{t}_{0}}^{{t}_{0}+T}\mathrm{cos}\left(m{\omega }_{0}t\right)dt=0$
for all m,      (1.7)

${\int }_{{t}_{0}}^{{t}_{0}+T}\mathrm{cos}\left(m{\omega }_{0}t\right)\mathrm{sin}\left(n{\omega }_{0}t\right)dt=0$
for all and n,      (1.8)

${\int }_{{t}_{0}}^{{t}_{0}+T}\mathrm{sin}\left(m{\omega }_{0}t\right)\mathrm{sin}\left(n{\omega }_{0}t\right)dt=0$
for all
$m\ne n$

$=\frac{T}{2},$
for all n      (1.9)

${\int }_{{t}_{0}}^{{t}_{0}+T}\mathrm{cos}\left(m{\omega }_{0}t\right)\mathrm{cos}\left(n{\omega }_{0}t\right)dt=0$
for all
$m\ne n$

$=\frac{T}{2},$
for all      (1.10)

In order to derive Eq 1.3, both sides of Eq 1.2 need to be integrated over one period:
${\int }_{{t}_{0}}^{{t}_{0}+T}f\left(t\right)dt={\int }_{{t}_{0}}^{{t}_{0}+T}\left({a}_{v}+\sum _{n=1}^{\mathrm{\infty }}{a}_{n}\mathrm{cos}\left(n{\omega }_{0}t\right)+{b}_{n}\mathrm{sin}\left(n{\omega }_{0}t\right)\right)dt$

${\int }_{{t}_{0}}^{{t}_{0}+T}{a}_{v}dt+\sum _{n=1}^{\mathrm{\infty }}\left({a}_{n}\mathrm{cos}\left(n{\omega }_{0}t\right)+{b}_{n}\mathrm{sin}\left({a}_{n}\mathrm{cos}\left(n{\omega }_{0}t\right)\right)dt$

$={a}_{v}T+0$
(1.11)

To derive the expression for the kth value of
${a}_{n}$
, Eq 1.2 need to be multiplied by
$\mathrm{cos}\left(k{\omega }_{0}t\right)$
and then both sides need to be integrated over one period of f(t):

${\int }_{{t}_{0}}^{{t}_{0}+T}f\left(t\right)\mathrm{cos}\left(k{\omega }_{0}t\right)dt={\int }_{{t}_{0}}^{{t}_{0}+T}{a}_{v}\mathrm{cos}\left(k{\omega }_{0}t\right)dt$

$+\sum _{\mathrm{\infty }}^{n=1}{\int }_{{t}_{0}}^{{t}_{0}+T}\left({a}_{n}\mathrm{cos}\left(n{\omega }_{0}t\right)cos\left(k{\omega }_{0}t\right)+{b}_{n}\mathrm{sin}\left(n{\omega }_{0}t\right)\mathrm{sin}\left(k{\omega }_{0}t\right)\right)dt$

$=0+{a}_{k}\left(\frac{T}{2}\right)+0$
(1.12)

Lastly, the expression for the kth value of
${b}_{n}$
by multiplying both sides of Eq. 1.2 by
$\mathrm{sin}\left(k{\omega }_{0}t\right)$
and then integrating each side over one period of f(t). The following example explains how to use Eqs. 1.3 - 1.5 to calculate the Fourier coefficients for a specific periodic function.

Finding the Fourier series of a Triangular Waveform with No Symmetry:
In this example, you are asked to find the Fourier series for the given periodic voltage shown below
When using Eqs. 1.3 - 1.5 to solve for
${a}_{v}$
,
${a}_{k}$
, and
${b}_{k}$
, the value of
${t}_{0}$
can be chosen to be any value. For this specific periodic voltage, the best value is zero. If a value other than that of zero, integration would become difficult. The expression for v(t) between 0 and T is:

${v}_{t}=\left(\frac{{V}_{m}}{T}\right)t$

The equation for
${a}_{v}$
is:

${a}_{v}=\frac{1}{T}{\int }_{0}^{T}\left(\frac{{V}_{m}}{T}\right)tdt=\frac{1}{2}{V}_{m}$

The value found above is the average value of the waveform shown above. The equation for the kth value of
${a}_{n}$
is:

${a}_{k}=\frac{2}{T}{\int }_{0}^{T}\left(\frac{{V}_{m}}{T}\right)t\mathrm{cos}\left(k{\omega }_{0}t\right)dt$

$=\frac{2{V}_{m}}{{T}^{2}}\left(\frac{1}{{k}^{2}{w}_{0}^{2}}\mathrm{cos}\left(k{\omega }_{0}t\right)+\frac{t}{k{\omega }_{0}}\mathrm{sin}\left(k{\omega }_{0}t\right)\right)$
Evaluated from 0 to T.

$=\frac{2{V}_{m}}{{T}^{2}}\left[\frac{1}{{k}^{2}{\omega }_{0}^{2}}\left(\mathrm{cos}\left(2\pi k-1\right)\right]=0$
for all k

The equation for the kth value of
${b}_{n}$
is:

${b}_{k}=\frac{2}{T}{\int }_{0}^{T}\left(\frac{{V}_{m}}{T}\right)t\mathrm{sin}\left(k{\omega }_{0}t\right)dt$

$=\frac{2{V}_{m}}{{T}^{2}}\left(\frac{1}{{k}^{2}{\omega }^{2}}\mathrm{sin}\left(k{\omega }_{0}t\right)-\frac{t}{k{\omega }_{0}}\mathrm{cos}\left(k{\omega }_{0}t\right)\right)$
Evaluated from 0 to T.

$=\frac{2{V}_{m}}{{T}^{2}}\left(0-\frac{T}{k{\omega }_{0}}\mathrm{cos}\left(2\pi k\right)\right)$

$=\frac{-{V}_{m}}{\pi k}$

Finally, the Fourier series for v(t) is:
$v\left(t\right)=\frac{{V}_{m}}{2}-\frac{{V}_{m}}{\pi }\sum _{n=1}^{\mathrm{\infty }}\frac{1}{n}\mathrm{sin}\left(n{\omega }_{0}t\right)$

$v\left(t\right)=\frac{{V}_{m}}{2}-\frac{{V}_{m}}{\pi }\mathrm{sin}\left({\omega }_{0}t\right)-\frac{{V}_{m}}{2\pi }\mathrm{sin}\left(2{\omega }_{0}t-\frac{{V}_{m}}{3\pi }\mathrm{sin}\left(3{\omega }_{0}t\right)-...$

### Coming Up

At this point, you should have an understanding of what a Fourier series is, what the Fourier coefficients are, and the calculations to find the trigonometric form of the Fourier coefficients for a periodic waveform. Future articles will detail average power with periodic functions as well as analyzing a circuit's response to a waveform using the Fourier coefficients talked about in this article. Another topic that will be covered is the four types of symmetry that can be used to simplify the evaluation of the Fourier coefficients as well as the effect of symmetry on the Fourier coefficients.