View Feed
group-icon
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12915 Members
Join this group to post and comment.
Aruwin
Aruwin • Jan 27, 2012

Fourier series

Hi everyone. I am studying fourier series.I have a question about this example.
[​IMG]

Please explain to me where does am come from? I dont understand the last part of the calculation where it becomes am Int(-pi-->pi)cos^2mxdx=piam
Arnav Joshi
Arnav Joshi • Jan 27, 2012
Any integral of the form
[​IMG] whenever m not equal to n and m,n are integers.

[​IMG] for all values of m,n where m,n are integers.

whereas [​IMG]

(If you notice there is a summation from n = 1 to infinity.)
Thus in the summation whenever n doesn't equal m we get zero. And in only one case n equals m. In that case the integral becomes pi. And this integral is multiplied by a[sub]n[/sub] , but since n = m hence
a[sub]n[/sub] = a[sub]m[/sub].

Note -
[​IMG]

integrate both the cos terms in the integral you will get zero.

when m = n ,
[​IMG]

= [​IMG]
Reya
Reya • Jan 27, 2012
Integration results become zero when m&n are non negative(positive) integers.
Aruwin
Aruwin • Jan 27, 2012
Thanks for the explanations. I got it now. Now I have another question here.
[​IMG]
And I don't get this part of the solution:
[​IMG]
Isn't bn supposed to be 2/pi ???
Reya
Reya • Jan 27, 2012
Bn is 2/pi only when n=1.

Value of bn changes when n changes.
Aruwin
Aruwin • Jan 27, 2012
Reya
Bn is 2/pi only when n=1.

Value of bn changes when n changes.
It a bit complicated at first.Now I get what you mean 😀
Arnav Joshi
Arnav Joshi • Jan 27, 2012
cos (n pi) = 1 when n is even and it is -1 when n is odd. Thus it is convenient to write cos (n pi) = (-1)[sup]n[/sup].
Thus b[sub]n[/sub] equals 2/(nπ) when (n-1) is odd and 0 when (n - 1) is even.

Aruwin
But even if n is not equals to 1, i got both n as the numerator and denominator so doesn't that make it equals to 1?And hence,times it with 2/pi I get Bn=2/pi
There isn't an n in numerator see the equation of bn again.
Aruwin
Aruwin • Jan 27, 2012
Arnav Joshi
cos (n pi) = 1 when n is even and it is -1 when n is odd. Thus it is convenient to write cos (n pi) = (-1)[sup]n[/sup].
Thus b[sub]n[/sub] equals 2/(nπ) when (n-1) is odd and 0 when (n - 1) is even.



There isn't an n in numerator.
And what about f(x)??I don't understand how the answer turned out like that 😔
Arnav Joshi
Arnav Joshi • Jan 27, 2012
Aruwin
And what about f(x)??I don't understand how the answer turned out like that 😔
That is just the fourier expansion of f(x) in terms of bn.
The fourier series expression is a summation in terms of bn.
[​IMG]
That summation is expanded.
All the a[sub]n[/sub] terms will be zero.
Reya
Reya • Jan 27, 2012
How come?

If you give even values for n, bn=0.
Arnav Joshi
Arnav Joshi • Jan 27, 2012
Reya
How come?

If you give even values for n, bn=0.
bn has a term 1 - (-1)^n in numerator. When n is even you get 1 - 1. When n is odd you get 1 - (- 1). Odd Powers of -1 will give you -1 whereas even powers will give you 1.
Reya
Reya • Jan 27, 2012
Er..I asked how come to aruwin. Sorry for not quoting or mentioning his name 😛
Arnav Joshi
Arnav Joshi • Jan 27, 2012
Reya
Er..I asked how come to aruwin. Sorry for not quoting or mentioning his name 😛
The posts were coming in quick succession in this thread so I also got confused who was asking what. You could say that I had lost the 'thread'.👍
Aruwin
Aruwin • Jan 27, 2012
Arnav Joshi
That is just the fourier expansion of f(x) in terms of bn.
The fourier series expression is a summation in terms of bn.
[​IMG]
That summation is expanded.
All the a[sub]n[/sub] terms will be zero.
In the final part, the summation becomes 1/2 + 2/pi[(sinx)/1 + (sin3x/1)....]

Can you explain why it becomes 2/pi instead of 1/pi and why only sin(odd number)x are the only ones shown??what happened when n is an even number?? Is sin nx = 0 whenever n is an even number???
Arnav Joshi
Arnav Joshi • Jan 27, 2012
Aruwin
In the final part, the summation becomes 1/2 + 2/pi[(sinx)/1 + (sin3x/1)....]

Can you explain why it becomes 2/pi instead of 1/pi and why only sin(odd number)x are the only ones shown??what happened when n is an even number?? Is sin nx = 0 whenever n is an even number???
No , sin nx won't be zero when n is even number. But instead bn will be zero when n is even number.

First aim is to calculate bn using f(x). As you can see from image you posted first :-
[​IMG]
bn comes out to be
1 -(-1)[sup]n[/sup] /(n*pi). When n is even -1[sup]n[/sup] becomes 1 hence b[sub]n[/sub] becomes (1-1)/n*pi. Thus it becomes zero when n is even. And when n is odd it becomes (1 - (-1)) / (n pi) = 2/(n pi).

Now our job is to put these values of bn in the formula for f(x).
[​IMG]

(a[sub]n[/sub] terms are all zero. Other than a[sub]0[/sub]/2 which is 1/2)

Because b[sub]n[/sub] is zero for even n , even terms won't be present in the summation for b[sub]n[/sub]. And all odd terms will be of form 2/(n pi). Hence you will see b[sub]n[/sub]sin (nx) becomes 2sin(3x)/(3 pi) when n =3 . When n = 5 b[sub]n[/sub]sin (nx) becomes 2sin(5x)/(5 pi). And so on for all odd values of n. 2/pi is taken out of bracket as it is common in all sin (nx) terms.
Aruwin
Aruwin • Jan 27, 2012
Arnav Joshi
No , sin nx won't be zero when n is even number. But instead bn will be zero when n is even number.

First aim is to calculate bn using f(x). As you can see from image you posted first :-
[​IMG]
Ok,I got the drift now but there is still one more thing that is bugging me. Now that the equation for Bn can be simplified as (1 - (-1)^n)/n*pi.
But at the very end, the summation becomes different. I don't understand why it becomes
(1+(-1)^n-1).
Arnav Joshi
Arnav Joshi • Jan 28, 2012
Aruwin
Ok,I got the drift now but there is still one more thing that is bugging me. Now that the equation for Bn can be simplified as (1 - (-1)^n)/n*pi.
But at the very end, the summation becomes different. I don't understand why it becomes
(1+(-1)^n-1).
That is because of (-1). (-1)[sup]n[/sup] means -1 has been multiplied by itself n times , that is what 'raised to n' means ,right ? Now all we are doing is taking one '-1' from these n '-1's and are multiplying it with that ' - 'sign , hence that - becomes + and we get 1 + (-1)[sup]n-1[/sup] , as we are now left with (n-1) '-1's.
Aruwin
Aruwin • Jan 28, 2012
Arnav Joshi
That is because of (-1). (-1)[sup]n[/sup] means -1 has been multiplied by itself n times , that is what 'raised to n' means ,right ? Now all we are doing is taking one '-1' from these n '-1's and are multiplying it with that ' - 'sign , hence that - becomes + and we get 1 + (-1)[sup]n-1[/sup] , as we are now left with (n-1) '-1's.
AAAaaa...now I realize that.Thank you so much! But is it ok if I just leave the answer as it is in the first one? I mean, is it ok if I don't take out one of the (-1) out??The value is gonna be the same after all,isn't it?

Share this content on your social channels -