Periodic Functions
A function f(x) is periodic with period 2L if:
f(x+2L)=f(x)
for all x.
Example: Temperature Variation
Consider a function defined on −L≤x<L and extended periodically. Fourier series represent such functions as sums of sines and cosines.
The Fourier Series
If f(x) is periodic with period 2L and is “sufficiently nice” (piecewise continuous with finite discontinuities), then:
f(x)=2a0+∑n=1∞[ancos(Lnπx)+bnsin(Lnπx)]
Fourier Coefficients
The coefficients are found by integration:
an=L1∫−LLf(x)cos(Lnπx)dx
bn=L1∫−LLf(x)sin(Lnπx)dx
For n=0:
a0=L1∫−LLf(x)dx
Interpretation: a0/2 is the average value of f over one period.
Orthogonality of Trig Functions
The Fourier coefficient formulas come from orthogonality:
∫−LLcos(Lmπx)cos(Lnπx)dx={0Lm=nm=n
∫−LLsin(Lmπx)sin(Lnπx)dx={0Lm=nm=n
∫−LLcos(Lmπx)sin(Lnπx)dx=0
This is analogous to orthogonal vectors — the sines and cosines form an orthogonal “basis”.
Even and Odd Functions
Even Function: f(−x)=f(x)
- bn=0 for all n (no sine terms)
- f(x)=2a0+∑ancos(Lnπx)
Odd Function: f(−x)=−f(x)
- an=0 for all n (no cosine terms)
- f(x)=∑bnsin(Lnπx)
Example: Triangle Wave
Find Fourier series for f(x)=∣x∣ on −1≤x≤1, period 2.

Since f is even: bn=0.
a0=∫−11∣x∣dx=2∫01xdx=1
an=∫−11∣x∣cos(nπx)dx=2∫01xcos(nπx)dx
Integration by parts: an=n2π22[(−1)n−1]
For n even: an=0. For n=2k+1 odd: an=−n2π24.
Result:
∣x∣=21−π24∑k=0∞(2k+1)2cos((2k+1)πx)
Example: Sawtooth Wave
Find Fourier series for f(x)=x on −1<x<1, period 2.

Since f is odd: an=0.
bn=∫−11xsin(nπx)dx
Integration by parts: bn=nπ2(−1)n+1
Result:
x=π2∑n=1∞n(−1)n+1sin(nπx)
=π2(sin(πx)−21sin(2πx)+31sin(3πx)−⋯)
Using Euler’s formula, Fourier series can be written:
f(x)=∑n=−∞∞cneinπx/L
where:
cn=2L1∫−LLf(x)e−inπx/Ldx
Relations: c0=a0/2, cn=(an−ibn)/2 for n>0.