Fourier Series Examples And Solutions

Advertisement

Fourier series provide a powerful way to express periodic functions as sums of simple sine and cosine waves. This mathematical tool is particularly useful in various fields such as engineering, physics, and signal processing. In this article, we will explore the fundamentals of Fourier series, examine several examples, and provide detailed solutions to illustrate how they work.

Understanding Fourier Series



Fourier series decompose periodic functions into a series of sine and cosine functions. The idea is that any periodic function can be represented as a sum of sine and cosine functions, which are orthogonal. The general form of a Fourier series for a function \( f(x) \) defined on the interval \([-L, L]\) is given by:

\[
f(x) = a_0 + \sum_{n=1}^{\infty} \left( a_n \cos\left(\frac{n \pi x}{L}\right) + b_n \sin\left(\frac{n \pi x}{L}\right) \right)
\]

where:
- \( a_0 = \frac{1}{2L} \int_{-L}^{L} f(x) \, dx \) (the average value of the function over one period).
- \( a_n = \frac{1}{L} \int_{-L}^{L} f(x) \cos\left(\frac{n \pi x}{L}\right) \, dx \) (the coefficients for the cosine terms).
- \( b_n = \frac{1}{L} \int_{-L}^{L} f(x) \sin\left(\frac{n \pi x}{L}\right) \, dx \) (the coefficients for the sine terms).

Example 1: Fourier Series of a Square Wave



Let's consider a simple square wave function defined as follows:

\[
f(x) =
\begin{cases}
1 & \text{for } 0 < x < L \\
-1 & \text{for } -L < x < 0
\end{cases}
\]

This function is periodic with period \( 2L \).

Calculating Fourier Coefficients



1. Calculate \( a_0 \):
\[
a_0 = \frac{1}{2L} \int_{-L}^{L} f(x) \, dx = \frac{1}{2L} \left( \int_{0}^{L} 1 \, dx + \int_{-L}^{0} (-1) \, dx \right) = \frac{1}{2L} \left( L - L \right) = 0
\]

2. Calculate \( a_n \):
\[
a_n = \frac{1}{L} \int_{-L}^{L} f(x) \cos\left(\frac{n \pi x}{L}\right) \, dx
\]

Due to the symmetry and properties of the square wave, we find that:
\[
a_n = 0 \quad \text{for all } n
\]

3. Calculate \( b_n \):
\[
b_n = \frac{1}{L} \int_{-L}^{L} f(x) \sin\left(\frac{n \pi x}{L}\right) \, dx = \frac{1}{L} \left( \int_{0}^{L} 1 \sin\left(\frac{n \pi x}{L}\right) \, dx + \int_{-L}^{0} (-1) \sin\left(\frac{n \pi x}{L}\right) \, dx \right)
\]
Evaluating the integrals, we have:
\[
b_n = \frac{2}{n \pi} \left( 1 - (-1)^n \right)
\]
Thus, \( b_n = \frac{2}{n \pi} \) for odd \( n \) and \( b_n = 0 \) for even \( n \).

Final Fourier Series Representation



The Fourier series representation of the square wave is then:

\[
f(x) = \sum_{n=1, \, n \text{ odd}}^{\infty} \frac{2}{n \pi} \sin\left(\frac{n \pi x}{L}\right)
\]

This series converges to the square wave function at all points where the function is continuous.

Example 2: Fourier Series of a Sawtooth Wave



A sawtooth wave can be defined by:

\[
f(x) = \frac{x}{L} \quad \text{for } -L < x < L
\]

This function is periodic with period \( 2L \).

Calculating Fourier Coefficients



1. Calculate \( a_0 \):
\[
a_0 = \frac{1}{2L} \int_{-L}^{L} f(x) \, dx = \frac{1}{2L} \int_{-L}^{L} \frac{x}{L} \, dx = 0
\]

2. Calculate \( a_n \):
\[
a_n = \frac{1}{L} \int_{-L}^{L} \frac{x}{L} \cos\left(\frac{n \pi x}{L}\right) \, dx
\]
The integral evaluates to zero due to symmetry, thus:
\[
a_n = 0 \quad \text{for all } n
\]

3. Calculate \( b_n \):
\[
b_n = \frac{1}{L} \int_{-L}^{L} \frac{x}{L} \sin\left(\frac{n \pi x}{L}\right) \, dx
\]
Evaluating this integral using integration by parts yields:
\[
b_n = \frac{2(-1)^{n+1}}{n \pi}
\]

Final Fourier Series Representation



The Fourier series representation of the sawtooth wave is:

\[
f(x) = \sum_{n=1}^{\infty} \frac{2(-1)^{n+1}}{n \pi} \sin\left(\frac{n \pi x}{L}\right)
\]

This series converges to the sawtooth wave function at all points, demonstrating the versatility of Fourier series in representing different types of periodic functions.

Conclusion



Fourier series provide a robust method for representing periodic functions through sums of sine and cosine terms. The examples of the square wave and sawtooth wave illustrate how to compute Fourier coefficients and derive the series representation. Understanding Fourier series is crucial for various applications in science and engineering, particularly in signal processing, acoustics, and electrical engineering. By mastering the calculations of Fourier coefficients and recognizing how different waves can be represented, one can effectively analyze and synthesize complex periodic functions.

Frequently Asked Questions


What is a Fourier series and how is it used in signal processing?

A Fourier series is a way to represent a periodic function as a sum of sines and cosines. In signal processing, it is used to analyze and synthesize signals, allowing for the decomposition of complex signals into simpler components, making it easier to study their frequency content.

Can you provide an example of a Fourier series for a square wave?

Yes! The Fourier series for a square wave with period T can be expressed as: f(t) = (4/π) Σ (1/n) sin(nω₀t), where n is odd, ω₀ is the fundamental angular frequency, and the summation runs over odd integers n (1, 3, 5, ...).

How do you calculate the coefficients in a Fourier series?

The coefficients a₀, aₙ, and bₙ in a Fourier series are calculated using the formulas: a₀ = (1/T) ∫ f(t) dt (over one period), aₙ = (2/T) ∫ f(t) cos(nω₀t) dt, and bₙ = (2/T) ∫ f(t) sin(nω₀t) dt, where T is the period of the function.

What is the Fourier series representation of the function f(t) = t defined on the interval [-π, π]?

The Fourier series representation of f(t) = t on the interval [-π, π] can be computed to yield f(t) = (π/2) + (1/π) Σ (-1)ⁿ/(n) sin(nt) for n=1 to ∞.

How does the convergence of Fourier series work?

The convergence of Fourier series depends on the properties of the function being represented. A Fourier series converges to the function at points where the function is continuous and converges to the average of the left-hand and right-hand limits at points of discontinuity, according to Dirichlet's conditions.

What are the practical applications of Fourier series in engineering?

Fourier series have numerous applications in engineering, including signal analysis, audio processing, image compression, vibration analysis, and solving differential equations in systems modeling. They help engineers understand and manipulate periodic phenomena in various fields.