Introduction
In this part we’ll try to understand the concept and power with Fourier series.
Let’s firstly define the what, why and how with Fourier series.
Definition 1 (Fourier series)
Fourier series, is an expansion of a periodic function, into a sum of trigonometric functions.
So the power is really, given a complex periodic function, we can easily represent it as a sum of simple trigonometric functions!
However, before we mathematically define the Fourier series, let’s take a different approach to this.
Signal representation by orthogonal signal set
We can see that, if we only use c1x1 and c2x2, we get something similar for f.
We can say that:
f∼c1x1+c2x2.
Let’s call our error, e.
e=f−(c1x1+c2x2).
Therefore:
f∼c1x1+c2x2+e=c1x1+c2x2+c3x3,in this case.
From linear algebra we know that basis vectors are orthogonal, this means:
ci=xi⋅xif⋅xi=∣xi∣21f⋅xi.
This is really useful, so, from what we know, we can say that.
Given a set of orthogonal real signals, x1(t),x2(t),…,xN(t) over the interval, [t1,t2]:
∫t1t2xm(t)xn(t)dt={0Enm=nm=n
We can approximate, f(t) over the interval, [t1,t2] as:
f(t)∼c1x1(t)+c2x2(t)+…+cNxN(t)=n=1∑Ncnxn(t).
For any cn we can express it as an integral:
cn=∫t1t2xn2(t)dt∫t1t2f(t)xn(t)dt=En1∫t1t2f(t)xn(t)dt.
As before, we will have an error, e(t) as well:
e(t)=f(t)−n=1∑Ncnxn(t).
We’ll also have an error in the energy, defined as:
Ee=∫t1t2f2(t)dt−n=1∑Ncn2En.
As, N→∞, we hope that both of these go to zero.
This is the generalized Fourier series!
Let’s define it properly
Definition 2 (Generalized Fourier series)
f(t)=c1x1(t)+c2x2(t)+…+cNxN(t)=n=1∑Ncnxn(t).If, Ee→0 as N→∞, the set {xn(t)} is a complete set on the interval [t1,t2], for that class of f(t).
{xn(t)} are called basis functions or basis signals.
Theorem 1 (Parseval’s Theorem)
The error energy can approach zero even though e(t) is non-zero at some isolated instants.
∫t1t2f2(t)dt=c12E1+c22E2+…=n=1∑∞cn2En.
Generalization to complex signals
In the most general case, signals are considered to be complex functions.
Therefore, let’s generalize further to the complex world.
∫t1t2xm(t)xn∗(t)dt={0Enm=nm=n
Where, xn∗(t) is the complex conjugate of, xn(t). All equations are the same essentially:
f(t)=c1x1(t)+c2x2(t)+…+cixi(t)+…,
cn=En1∫t1t2f(t)xn∗(t)dt.
Trigonometric Fourier series
If the set, is the following: {1,cosω0t,cos2ω0t,…,cosnω0t,…;sinω0t,sin2ω0t,…,sinnω0t,…}
This is the orthogonal complete, trigonometric set.
ω0 is called the fundamental frequency
nω0 is called the nth harmonic.
We can call the fundamental period for, T0:
T0=ω02π.
Note that T0 is the fundamental period, meaning it can be at any time instant, as long as it’s a period.
∫T0cosnω0tcosmω0tdt=⎩⎨⎧02T0n=mm=n=0
∫T0sinnω0tsinmω0tdt=⎩⎨⎧02T0n=mm=n=0
∫T0sinnω0tcosmω0tdt=0for all n and m.
So:
f(t)=a0+a1cosω0t+a2cos2ω0t+b1sinω0t+b2sin2ω0t+…
So:
f(t)=a0+n=1∑∞(ancosnω0t+bnsinnω0t).
an=∫t1t1+T0cos2nω0tdt∫t1t1+T0f(t)cosnω0tdt,
a0=T01∫t1t1+T0f(t)dt,
an=T02∫t1t1+T0f(t)cosnω0tdt,
bn=T02∫t1t1+T0f(t)sinnω0tdt.
We can write this more compactly.
ancosnω0t+bnsinnω0t=Cncos(nω0t+θn).
Where:
Cn=an2+bn2,
θn=tan−1(an−bn).
So:
f(t)=C0+n=1∑∞Cncos(nω0t+θn).
Exponential Fourier series
Given the set: {ejnω0t}, with, n=0,±1,±2,…, this is a complete, orthogonal set.
Note that, j here is complex.
∫T0ejmω0t(ejnω0t)∗dt=∫T0ej(m−n)ω0tdt={0T0m=nm=n
f(t)=n=−∞∑∞Dnejnω0t,
Dn=T01∫T0f(t)e−jnω0tdt.
Using Euler’s formula, we can switch between trigonometric and exponential series.
Cncos(nω0t+θn)=2Cn(ej(nω0t+θn)+e−j(nω0t+θn))=(2Cnejθn)ejnω0t+(2Cne−jθn)e−jnω0t.
Let’s introduce, Dn:
Dn=21Cnejθn,
D−n=21Cne−jθn.
f(t)=D0+n=1∑∞(Dnejnω0t+D−ne−jnω0t).
In an even more compact form:
f(t)=n=−∞∑∞Dnejnω0t.