ion. The reas
Fourier Series
1.1. Introduction
In engineering, systems are frequently subjected to time-varying periodic forces.
- Static vs. Dynamic Systems: A static system remains under constant forces (e.g., a bridge at rest). A dynamic system varies over time or vibrates (e.g., an RLC circuit oscillating, or a bridge vibrating as a vehicle crosses).
- Core Goal of Fourier Series: To decompose a periodic, non-sinusoidal signal into a linear combination of sines and cosines. This allows engineers to analyze complex time-varying waveforms as a superposition of simple harmonic components.
1.2. Mathematical Definition
For a periodic function with period , the Fourier Series is defined as:
1.2.1. Periodicity
A function is periodic if there exists a positive constant (period or wavelength) such that:
left = -6; right = 6;
top = 2; bottom = -2;
grid = true
---
f(x) = \sin(\frac{\pi x}{2}) + 0.3\cos(\pi x)
f(x) | BLUE | SOLID
(0, 0.3) | open | RED | label:f(x)
(4, 0.3) | open | RED | label:f(x + 2l)
(2, -0.3) | open | BLACK | label:Period T = 2l = 4Figure 1: A periodic wave demonstrating with period ().
1.2.2. Orthogonality & Orthonormality
We treat signals as infinite-dimensional vectors. The inner product (βdot productβ) of two continuous functions and over the interval is:
- Orthogonality: Two functions are orthogonal if their inner product is zero:
- Orthonormality: A function is normalized (orthonormal) if:
The set of functions forms an orthogonal basis over . This is established by the following integral identities (for all integers ):
NOTE
Proof of Orthogonality (Equation 1.4 for and ) Using the product-to-sum identity :
- Case : Both terms are cosine waves integrated over full integer periods, evaluating to .
- Case : The second term becomes , yielding:
left = -\pi; right = \pi;
top = 1.2; bottom = -1.2;
grid = true
---
f(x) = \sin(x)\cos(2x)
f(x) | PURPLE | SOLIDFigure 2: Visualizing Orthogonality. The product shows perfect odd symmetry over , meaning its integral cancels out to exactly 0.
1.2.3. Dirichlet Conditions for Convergence
A function defined on can be represented as a Fourier series if:
- It is absolutely integrable over one period: .
- It has a finite number of maxima and minima within any single period.
- It has a finite number of discontinuities (piecewise continuous) in any single period.
1.3. Derivation of Euler-Fourier Coefficients
1. Deriving (DC Offset / Average)
Integrate both sides of the Fourier Series definition (Equation 1.1) from to :
By orthogonality, the integrals of the pure sines and cosines over a full period are 0. The equation simplifies to:
2. Deriving
Multiply Equation 1.1 by and integrate from to :
Using Equations 1.2 and 1.4, only the cosine product term where survives (evaluating to ):
3. Deriving
Similarly, multiplying Equation 1.1 by and integrating from to isolates (using Equation 1.3):
1.4. Worked Examples
Example 1: Continuous Triangular Wave
Find the Fourier Series for the periodic triangular wave:
1. Calculate :
2. Calculate :
TIP
Integration by Parts Recall Using . For , set , and :
Applying Integration by Parts ():
Using the evaluation identities , , , and :
3. Calculate :
Fourier Series Representation:
left = -6; right = 6;
top = 4; bottom = -1;
grid = true
---
f(x) = |x - 6 \cdot \operatorname{round}(x/6)|
S_1(x) = 1.5 - \frac{12}{\pi^2} \cos(\frac{\pi x}{3})
S_3(x) = S_1(x) - \frac{12}{9\pi^2} \cos(\pi x)
S_5(x) = S_3(x) - \frac{12}{25\pi^2} \cos(\frac{5\pi x}{3})
f(x) | BLACK | SOLID
S_1(x) | RED | DASHED
S_3(x) | GREEN | DASHED
S_5(x) | BLUE | SOLIDFigure 3: Periodic triangular wave () with Fourier approximations (1 component), (2 components), and (3 components) demonstrating fast convergence.
Example 2: Piecewise Discontinuous Function
Find the Fourier Series for:
1. Calculate :
2. Calculate :
The second integral is . Applying integration by parts to the first integral:
3. Calculate :
- Integral 2:
- Integral 1: Set :
- Total :
Fourier Series Representation:
left = -2; right = 2;
top = 2; bottom = -1;
grid = true
---
p(x) = x - 2 \cdot \operatorname{floor}(\frac{x+1}{2})
f(x) = \{p(x) < 0: p(x) + 1, 1\}
S_1(x) = 0.75 + \frac{2\cos(\pi x)}{\pi^2} + \frac{\sin(\pi x)}{\pi}
S_3(x) = S_1(x) + \frac{2\cos(3\pi x)}{9\pi^2} - \frac{\sin(2\pi x)}{2\pi} + \frac{\sin(3\pi x)}{3\pi}
S_7(x) = S_3(x) + \frac{2\cos(5\pi x)}{25\pi^2} - \frac{\sin(4\pi x)}{4\pi} + \frac{\sin(5\pi x)}{5\pi} - \frac{\sin(6\pi x)}{6\pi} + \frac{\sin(7\pi x)}{7\pi}
f(x) | BLACK | SOLID
S_1(x) | RED | DASHED
S_3(x) | GREEN | DASHED
S_7(x) | BLUE | SOLIDFigure 4: Reconstructing the piecewise signal. Ringing oscillations (Gibbs Phenomenon) occur around the jump discontinuities at .
left = 0.7; right = 1.3;
top = 1.3; bottom = -0.3;
grid = true
---
p(x) = x - 2 \cdot \operatorname{floor}(\frac{x+1}{2})
f(x) = \{p(x) < 0: p(x) + 1, 1\}
S_{20}(x) = 0.75 + \sum_{n=1}^{20} (\frac{2\cos((2n-1)\pi x)}{(2n-1)^2 \pi^2} + \frac{(-1)^{n+1}\sin(n\pi x)}{n\pi})
f(x) | BLACK | SOLID
S_{20}(x) | BLUE | SOLID
(0.95, 1.09) | cross | RED | label:Overshoot (~9%)Figure 5: Detailed view of the Gibbs Phenomenon at the discontinuity . The overshoot height remains constant at of the jump size, compressing in width as harmonic order increases.
1.5. Symmetry Analysis: Even & Odd Functions
Using symmetry properties saves significant calculation time by instantly setting certain coefficients to zero.
- Even Functions: (y-axis reflection symmetry). E.g., .
- Odd Functions: (origin rotation symmetry). E.g., .
left = -3; right = 3;
top = 5; bottom = -5;
grid = true
---
E(x) = x^2
O(x) = 0.2x^3
E(x) | GREEN | SOLID | label:Even (y-axis symmetry)
O(x) | ORANGE | SOLID | label:Odd (origin symmetry)Figure 6: Comparison of even parity () and odd parity ().
Parity Product Rules:
- (e.g., )
Symmetric Limits of Integration:
Over a symmetric interval :
- For an odd function, the net area cancels: .
- For an even function, the area is doubled: .
Simplified Coefficients:
- If is Even:
- If is Odd:
1.6. Half-Range Expansions
When a function is defined only on the domain , it can be artificially extended to to produce either a pure cosine or pure sine series:
- Cosine Expansion (Even Extension): Set for . Yields a series with only cosine terms ().
- Sine Expansion (Odd Extension): Set for . Yields a series with only sine terms ().
Example 3: Cosine and Sine Half-Range Extensions
Given the function:
1. Cosine Expansion (Even Extension)
Extend symmetrically about the y-axis to .
- Calculate :
- Calculate :
- Cosine Series:
left = -4; right = 4;
top = 1.5; bottom = -0.5;
grid = true
---
p(x) = |x - 4 \cdot \operatorname{round}(x/4)|
f(x) = \{p(x) < 1: 1, 0\}
S_5(x) = 0.5 + \sum_{n=1}^{5} (\frac{2\cos(0.5(4n-3)\pi x)}{(4n-3)\pi} - \frac{2\cos(0.5(4n-1)\pi x)}{(4n-1)\pi})
f(x) | BLACK | SOLID
S_5(x) | BLUE | SOLIDFigure 7: Cosine half-range expansion (even periodic extension of the pulse) with its 5-term Fourier approximation.
2. Sine Expansion (Odd Extension)
Extend anti-symmetrically about the origin to .
- .
- Calculate :
NOTE
Evaluating Cases:
- If is odd (): .
- If is even but not divisible by 4 (): .
- If is a multiple of 4 (): .
- Sine Series:
left = -4; right = 4;
top = 1.5; bottom = -1.5;
grid = true
---
q(x) = x - 4 \cdot \operatorname{round}(x/4)
f(x) = \{0 < q(x) < 1: 1, -1 < q(x) < 0: -1, 0\}
S_5(x) = \frac{2}{\pi} \sum_{n=1}^{5} \frac{\sin(0.5(2n-1)\pi x) + \sin((2n-1)\pi x)}{2n-1}
f(x) | BLACK | SOLID
S_5(x) | RED | SOLIDFigure 8: Sine half-range expansion (odd periodic extension of the pulse) with its 5-term Fourier approximation.
1.7. Engineering Interpretation & Signal Power
From an engineering perspective, Fourier Series decomposes a signal into:
- DC component (): The statistical mean value or average level of the signal.
- AC component (Summation): Alternating signals at integer harmonics of the fundamental frequency:
Power Spectrum
If is a voltage signal, the power dissipated in a resistor is proportional to . The power of individual harmonics is given by:
- Amplitude of -th harmonic:
- Power contribution of -th harmonic:
1.8. Error, Convergence, & Parsevalβs Theorem
To analyze reconstruction quality, we define:
- -th Partial Sum:
- Mean Square Error (MSE):
NOTE
Deriving the Mean Square Error Formula (Equation 1.12) Expanding the squared term in Equation 1.11:
Substituting and using the Euler-Fourier coefficient integrals:
Squaring and integrating (cross-products vanish due to orthogonality):
Combining terms:
Besselβs Inequality & Parsevalβs Identity
Because , Equation 1.12 establishes Besselβs Inequality:
As , the mean square error converges to (), turning the inequality into Parsevalβs Identity:
Physical Meaning: The total average power of a periodic signal is equal to the sum of the power contributions of its DC component and all its AC harmonics. Power is conserved when moving from the time domain (right) to the frequency domain (left).