You are on page 1of 4

# Fourier series of a square wave

Homework #2 EM 3413
Nida Tuz Zohra 8/30/2013 Instructor: Dr. Sullivan

Determine the Fourier series if the origin of the square wave in the figure below was shifted to the right by /2.

## The general equation of a Fourier series is ( ) ( ) ( )

Firstly, the Fourier coefficients a0, an and bn can be found using the formula ( ) ( ) ( ) ( ( ) )

But the square wave shifts to the right by /2, therefore the graph looks similar to the following

The square wave is an even function; thusly the Fourier coefficient bn is 0. ( ) Using the formula for a0 and an

( )

( )

( (

( ))

))

))

( ( (

) ) )

## Hence the Fourier series for the square wave is as follows ( ) ( ) ( ) ( ) ( ) ( ( ) ) ( )

Summary Graph of an odd square wave was provided which was shifted to the right by /2 making it an even function. As a result the square wave was split down the middle at the origin unlike the odd square wave. Using predetermined formula the Fourier coefficients and general Fourier series was found. The Fourier series for different number of terms were plotted using MATLAB. Convergence of the solution Although the report started by working on an even square wave, the graph generated a cosine curve that looked similar to the graph of a damping function. It also held resemblance to the graph of a Sinc function as the number of terms to be plotted were increased. Importance of expressing data as a function Data is important but extremely elaborate information. These pieces of information fall into a pattern with its counterparts. This pattern can be condensed into a function from which a plot can be generated. Thusly, scattered bits of information is taken and represented in a meticulous pattern. This condensation of information makes its exchange easier and fewer mistakes are made.