Derivation of Fourier Series
📂Fourier AnalysisDerivation of Fourier Series
Definition
The series for 2L-periodic function f is defined as the Fourier series of f as follows:
N→∞limSNf(t)=N→∞lim[2a0+n=1∑N(ancosLnπt+bnsinLnπt)]=2a0+n=1∑∞(ancosLnπt+bnsinLnπt)
Here, each coefficient a0,an,bn is called the Fourier coefficient, and its value is as follows:
a0anbn=L1∫−LLf(t)dt=L1∫−LLf(t)cosLnπtdt=L1∫−LLf(t)sinLnπtdt
Description
The Fourier series represents any function as a series expansion of trigonometric functions, famously developed by the French mathematician Joseph Fourier for solving heat equations. The term “any function” is used because if there is a function defined on a certain interval (a,b), it can be replicated (Ctrl+C, Ctrl+V) to produce a (b−a)-periodic function.
The core principle is to express it as a linear combination of orthogonal trigonometric functions, analogous to decomposing (4,−1,7) as follows in three-dimensional vectors:
(4,−1,7)=a1e^1+a2e^1+a3e^1
Indeed, the Fourier series of f not only has minimal error with f but also converges pointwise under well-defined conditions to f.
f(t)=2a0+n=1∑∞(ancosLnπtt+bnsinLnπt)
Derivation
Regression Analysis
Part 1
The goal is to express the function f(t) as a linear combination of 1,cosLπt,cosL2πt,⋯,sinLπt,sinL2πt,⋯s. Thus, assuming SNf(t)=21α0+n=1∑N(αncosLnπt+βnsinLnπt), f(t) can be represented as follows:
f(t)=SNf(t)+eN(t)
eN(t) is the difference between f(t) and the approximation SNf(t). The smallest difference SNf(t) leads to the closest series expansion to f(t). Let’s define eN as the mean square error.
eN=2L1∫−LL[eN(t)]2dt=2L1∫−LL[f(t)−SNf(t)]2dt
Part 2
eN=2L1∫−LL[f(t)−SNf(t)]2dt=2L1∫−LL[f(t)−21α0−n=1∑N(αncosLnπt+βnsinLnπt)]2dt
Let the coefficients that minimize the mean square error eN be α0, αn, βn, a0, an, respectively. The conditions that minimize eN are called the normal equations.
∂α0∂eN=0, ∂αn∂eN=0, ∂βn∂eN=0(m=1, 2, ⋯, N)
Then, a0, an, bn can be calculated as follows:
Part 2.1 a0
∂α0∂eN=2L1∫−LL∂α0∂[f(t)−21α0−n=1∑N(αncosLnπt+βnsinLnπt)]2dt=2⋅2−1⋅2L1∫−LL[f(t)−21α0−n=1∑N(αNcosLnπt+βnsinLnπt)]dt=2L−1∫−LLf(t)dt+2L1∫−LL21α0dt+2L1∫−LLn=1∑N(αncosLnπt+βnsinLnπt)dt=2L−1∫−LLf(t)dt+2L1∫−LL21α0dt=2L−1∫−LLf(t)dt+21α0=0
The fourth equality holds because the integral of a trigonometric function over one period is 0.
a0=L1∫−LLf(t)dt
Part 2.2 an
Choose any m∈{1,2,…,N}.
∂αm∂eN=2L1∫−LL∂αm∂[f(t)−21α0−n=1∑N(αncosLnπt+βnsinLnπt)]2dt=2⋅2L1∫−LL(−cosLmπt)[f(t)−21α0−n=1∑N(αncosLnπt+βnsinLnπt)]dt=−L1∫−LLf(t)cosLmπtdt+L1∫−LL21α0cosLmπtdt+L1∫−LLn=1∑N(αncosLnπt+βnsinLnπt)cosLmπtdt=−L1∫−LLf(t)cosLmπtdt+L1αm∫−LLcosLmπtcosLmπtdt=−L1∫−LLf(t)cosLmπtdt+αm=0
The fourth and fifth equalities hold due to the orthogonality of trigonometric functions.
an=L1∫−LLf(t)cosLnπtdt(n=1,2,⋯,N)
Part 2.3 bn
Choose any m∈{1,2,…,N}.
∂βm∂eN=2L1∫−LL∂βm∂[f(t)−21α0−n=1∑N(αncosLnπt+βnsinLnπt)]2dt=2⋅2L1∫−LL(−sinLmπt)[f(t)−21α0−n=1∑N(αncosLnπt+βnsinLnπt)]dt=−L1∫−LLf(t)sinLmπtdt+L1∫−LL21α0sinLmπtdt+L1∫−LLn=1∑N(αncosLnπt+βnsinLnπt)sinLmπtdt=−L1∫−LLf(t)sinLmπtdt+L1βm∫−LLsinLmπtsinLmπtdt=−L1∫−LLf(t)sinLmπtdt+βm=0
The fourth and fifth equalities hold due to the orthogonality of trigonometric functions.
bn=L1∫−LLf(t)sinLnπtdt(n=1,2,⋯,N)
Part 3
Using the obtained a0, an, bn to express f(t) results in the same.
f(t)where SNf(t)a0anbn=SNf(t)+eN(t)=2a0+n=1∑N(ancosLnπt+bnsinLnπt)=L1∫−LLf(t)dt=L1∫−LLf(t)cosLnπtdt=L1∫−LLf(t)sinLnπtdt
Taking the limit for N yields
N→∞limSNf(t)=2a0+n=1∑∞(ancosLnπt+bnsinLnπt)
The above series is called the Fourier series of f, and a0, an, bn are called the Fourier coefficients of f.
■