A function is defined as followed:
Where f(t+2)=f(t) that is, f(t) has period 2.
i) Draw a plot of the function f(t). Comment fully on whether the function is even or odd or none of these.
ii) Find the first four non-zero coefficients for the Fourier series expansion of the function f(t)
iii) Using eg. excel, draw a plot of the partial sum of the Fourier series which uses just there first four non-zero terms and comment on it in relation to your plot (i)
SOLUTION This solution is FREE courtesy of BrainMass!
The function looks like:
This function is neither even function since , nor it is an odd function since
For example, while
However we can write the function as:
And is an odd function and it looks like
The general expansion of a function over the symmetric interval is given by:
Since the cosine function is even and is odd, then the integrand is odd.
When we integrate an odd function over a symmetric interval, the result is identically 0.
So if we want to expand into a Fourier series, we need only calculate the coefficients of the sine series.
In this case :
This is a simple integral to evaluate:
Since we can write:
However, we see that for even n the coefficient is zero, hence we can write for the non-zero coefficients:
But since we are interested in the function , we can write:
The first four terms are:
It looks like:
However, if we use the first 30 terms it looks like:
Note the large oscillations next to the points of discontinuity in the function, known as the "Gibbs phenomenon".
By the way if we would have tried to calculate the cosine coefficients of directly we would have gotten:
But for we get:
And the leading coefficient in the expansion is , as expected.