Derivation of Fourier Coefficients


Derivation of Fourier Coefficients Swapnil Sunil Jain December 28, 2006

Derivation of Fourier Coefficients

As you know, any periodic function f⁢(t) can be written as a Fourier series like the following

f⁢(t) = c0+∑n=1∞an⁢cos⁡(ωn⁢t)+bn⁢sin⁡(ωn⁢t) (1)

where ωn=n⁢ω0 and ω0=2⁢πT

In the process to find an explicit expression for the coefficients c0,an,bn in terms of f⁢(t), we write (1) in a slightly different way as the following

f⁢(t)=  ⁢c0+a1⁢cos⁡(ω1⁢t)+a2⁢cos⁡(ω2⁢t)+…+ak⁢cos⁡(ωk⁢t)+…
 +b1⁢sin⁡(ω1⁢t)+b2⁢sin⁡(ω2⁢t)+…+bk⁢sin⁡(ωk⁢t)+… (2)

where k is a positive integer.

In order to derive the coefficient c0, we take the integral of both sides of (2) over one period.

∫τf⁢(t)⁢𝑑t=  ⁢∫τc0⁢𝑑t+∫τa1⁢cos⁡(ω1⁢t)⁢𝑑t+∫τa2⁢cos⁡(ω2⁢t)⁢𝑑t+…+∫τak⁢cos⁡(ωk⁢t)⁢𝑑t+…
 +∫τb1⁢sin⁡(ω1⁢t)⁢𝑑t+∫τb2⁢sin⁡(ω2⁢t)⁢𝑑t+…+∫τbk⁢sin⁡(ωk⁢t)⁢𝑑t+…

where τ=[t0,t0+T]. After evaluating the above equation, all the integrals on the right side with a sine or a cosine term drop out (since the integral of a sine or cosine over one period is zero) and we get

∫τf⁢(t)⁢𝑑t=  ⁢c0⁢∫τ𝑑t
⇒∫τf⁢(t)⁢𝑑t=  ⁢c0⁢(T)
⇒c0=  ⁢1T⁢∫τf⁢(t)⁢𝑑t=1T⁢∫t0t0+Tf⁢(t)⁢𝑑t

Now, in order to find ak, we multiply both sides of (2) by cos⁡(ωk⁢t) and we arrive at

f⁢(t)⁢cos⁡(ωk⁢t)=  ⁢c0⁢cos⁡(ωk⁢t)+a1⁢cos⁡(ω1⁢t)⁢cos⁡(ωk⁢t)+a2⁢cos⁡(ω2⁢t)⁢cos⁡(ωk⁢t)+…+ak⁢cos2⁡(ωk⁢t)+…
 +b1⁢sin⁡(ω1⁢t)⁢cos⁡(ωk⁢t)+b2⁢sin⁡(ω2⁢t)⁢cos⁡(ωk⁢t)+…+bk⁢sin⁡(ωk⁢t)⁢cos⁡(ωk⁢t)+…

Then we take the integral of both sides of the above equation over one period and we get

∫τf⁢(t)⁢cos⁡(ωk⁢t)⁢𝑑t=  ⁢∫τc0⁢cos⁡(ωk⁢t)⁢𝑑t+∫τa1⁢cos⁡(ω1⁢t)⁢cos⁡(ωk⁢t)⁢𝑑t+∫τa2⁢cos⁡(ω2⁢t)⁢cos⁡(ωk⁢t)⁢𝑑t+…
 +∫τak⁢cos2⁡(ωk⁢t)⁢𝑑t+…+∫τb1⁢sin⁡(ω1⁢t)⁢cos⁡(ωk⁢t)⁢𝑑t+∫τb2⁢sin⁡(ω2⁢t)⁢cos⁡(ωk⁢t)⁢𝑑t+…
 +∫τbk⁢sin⁡(ωk⁢t)⁢cos⁡(ωk⁢t)⁢𝑑t+…

By using orthogonality relationships or by literally evaluating the above integrals, we get the following

∫τf⁢(t)⁢cos⁡(ωk⁢t)⁢𝑑t=  ⁢∫τak⁢cos2⁡(ωk⁢t)⁢𝑑t
⇒∫τf⁢(t)⁢cos⁡(ωk⁢t)⁢𝑑t=  ⁢ak⁢(T2)
⇒ak=  ⁢2T⁢∫τf⁢(t)⁢cos⁡(ωk⁢t)⁢𝑑t=2T⁢∫t0t0+Tf⁢(t)⁢cos⁡(ωk⁢t)⁢𝑑t

Now, the process of finding bk is similarMathworldPlanetmath. We multiply both sides of (2) by sin⁡(ωk⁢t) and we get

f⁢(t)⁢sin⁡(ωk⁢t)=  ⁢c0⁢cos⁡(ωk⁢t)+a1⁢cos⁡(ω1⁢t)⁢sin⁡(ωk⁢t)+a2⁢cos⁡(ω2⁢t)⁢sin⁡(ωk⁢t)+…+ak⁢cos⁡(ωk⁢t)⁢sin⁡(ωk⁢t)+…
 +b1⁢sin⁡(ω1⁢t)⁢sin⁡(ωk⁢t)+b2⁢sin⁡(ω2⁢t)⁢sin⁡(ωk⁢t)+…+bk⁢sin2⁡(ωk⁢t)+…

Then we take the integral of both sides of the above equation over one period and we arrive at

∫τf⁢(t)⁢sin⁡(ωk⁢t)⁢𝑑t=  ⁢∫τc0⁢cos⁡(ωk⁢t)⁢𝑑t+∫τa1⁢cos⁡(ω1⁢t)⁢cos⁡(ωk⁢t)⁢𝑑t+∫τa2⁢cos⁡(ω2⁢t)⁢cos⁡(ωk⁢t)⁢𝑑t+…
 +∫τak⁢cos⁡(ωk⁢t)⁢sin⁡(ωk⁢t)⁢𝑑t+…+∫τb1⁢sin⁡(ω1⁢t)⁢cos⁡(ωk⁢t)⁢𝑑t+∫τb2⁢sin⁡(ω2⁢t)⁢cos⁡(ωk⁢t)⁢𝑑t+…
 +∫τbk⁢sin2⁡(ωk⁢t)⁢𝑑t+…

By using orthogonality relationships or by literally evaluating the above integrals, we get the following

∫τf⁢(t)⁢sin⁡(ωk⁢t)⁢𝑑t=  ⁢∫τbk⁢sin2⁡(ωk⁢t)⁢𝑑t
⇒∫τf⁢(t)⁢sin⁡(ωk⁢t)⁢𝑑t=  ⁢bk⁢(T2)
⇒bk=  ⁢2T⁢∫τf⁢(t)⁢sin⁡(ωk⁢t)⁢𝑑t=2T⁢∫t0t0+Tf⁢(t)⁢sin⁡(ωk⁢t)⁢𝑑t
Title Derivation of Fourier Coefficients
Canonical name DerivationOfFourierCoefficients1
Date of creation 2013-03-11 19:30:41
Last modified on 2013-03-11 19:30:41
Owner swapnizzle (13346)
Last modified by (0)
Numerical id 1
Author swapnizzle (0)
Entry type Definition