Register to reply 
Expand the function f(x) = x^3 in a Fourier sine series 
Share this thread: 
#1
Sep309, 12:47 PM

P: 79

1. The problem statement, all variables and given/known data
Expand the function f(x) = x^{3} in a Fourier sine series on the interval 0 <= x <= 1 2. Relevant equations [tex]\[f\left( x \right)=\sum\limits_{k=1}^{\infty }{{{b}_{k}}\sin \left( k\pi x/a \right)}0<x\le a\][/tex] and [tex]\[{{b}_{k}}=\frac{2}{a}\int_{0}^{a}{f\left( x \right)\sin \left( k\pi x/a \right)dx}\][/tex] 3. The attempt at a solution Well, I first calculate b_{k} which becomes: [tex]\[{{b}_{k}}=2\left( \left( \frac{3}{{{\left( k\pi \right)}^{2}}}\frac{6}{{{\left( k\pi \right)}^{4}}} \right)\sin \left( k\pi \right) \right)\][/tex], since x^{3} is an odd equation which means that the sine parts are the only ones who are nonzero => Cosine parts disappear. And then I just insert that in the first equation. But the I start thinking, sin(pi) = 0, så everything ends up being 0 here :S What have I done wrong ? Regards 


#2
Sep309, 01:21 PM

Mentor
P: 15,065

Show your integration. Hint: What happened to the cosine terms?



#3
Sep309, 05:10 PM

P: 200

I think you're misunderstanding the part about cos parts disappearing. That only applies for [tex]a_{n}=\int_{T}^{T} f(x)\cos(\frac{n\pi x}{T})\,dx[/tex].



#4
Sep309, 05:13 PM

P: 79

Expand the function f(x) = x^3 in a Fourier sine series
Ahhhh... I've missed that part.
So I just integrate as normal, without removing the cosine part ? 


#5
Sep309, 05:14 PM

Mentor
P: 15,065

No, you misunderstood my question. What is
[tex]\[{{b}_{k}}=\frac{2}{a}\int_{0}^{a}{f\left( x \right)\sin \left( k\pi x/a \right)dx}\][/tex] Your result, [tex]\[{{b}_{k}}=2\left( \left( \frac{3}{{{\left( k\pi \right)}^{2}}}\frac{6}{{{\left( k\pi \right)}^{4}}} \right)\sin \left( k\pi \right) \right)\][/tex] is not correct. 


#6
Sep309, 05:27 PM

P: 79

Well, as I thought I just cut out the cosine part I just gave that answer, but with the cosine it becomes:
[tex]\[{{b}_{k}}=2\left( \left( \frac{3}{{{\left( k\pi \right)}^{2}}}\frac{6}{{{\left( k\pi \right)}^{4}}} \right)\sin \left( k\pi \right)+\left( \frac{6}{{{\left( k\pi \right)}^{3}}}\frac{1}{k\pi } \right)\cos \left( k\pi \right) \right)\][/tex] That is for [0, 1]. Or am I wrong ? 


#7
Sep309, 05:32 PM

P: 200

You can't cut that part out. For the odd function cutting out cos terms, that only applies for the entire a_{n}.



#8
Sep309, 05:36 PM

P: 79

Yeah, I understand that now. But wouldn't that mean that the integral would be the one as I posted above ? And then just add that to the b_{k} in the first equation I posted.



#9
Sep309, 05:37 PM

Mentor
P: 15,065

Better, but still not correct. Double check your integration.



#10
Sep309, 05:44 PM

P: 79

Ahhh, didn't see that.
sin(pi) = 0, so all the sine parts disappears, and cos(0) = 1 and cos(pi) = 1 So we get: [tex]\[{{b}_{k}}=2\left( \left( \frac{6}{{{\left( k\pi \right)}^{3}}}\frac{1}{k\pi } \right) \right)=2\left( \frac{6}{{{\left( k\pi \right)}^{3}}}\frac{1}{k\pi } \right)\][/tex] Or am I wrong again ? :) 


#11
Sep309, 06:05 PM

Mentor
P: 15,065

Still wrong. Your indefinite integral is wrong (well, it was wrong before you edited it away), which made your definite integral wrong as well.
Show your work. When you get a hairy integral, it is always a good idea to check your work by differentiating to see if you obtain the original expression. That or ask a computer to do the integration for you, but that's no fun. 


#12
Sep309, 06:08 PM

P: 79

So this is the wrong definite integral ?:
[tex]\[{{b}_{k}}=2\left( \left( \frac{6}{{{\left( k\pi \right)}^{3}}}\frac{1}{k\pi } \right) \right)=2\left( \frac{6}{{{\left( k\pi \right)}^{3}}}\frac{1}{k\pi } \right)\][/tex] And I see now. I just thought that x could only be natural numbers. But I see now :) Thank you very much DH :) 


#13
Sep309, 06:24 PM

P: 79

But, anyways, even though the integral is wrong. Wouldn't the whole thing become zero anyways, after I put b_{k} into the equation where it's multiplied by sin(k*x*pi) ?



#14
Sep309, 06:38 PM

Mentor
P: 15,065

First question: What is your indefinite integral?
Second question: Did you doublecheck your integration by differentiating the result? To answer your question, the {b_{k}} will not be zero. [itex]\sin(k\pi x)[/itex] is zero only for a few special values of k and x. 


#15
Sep309, 06:48 PM

P: 79

1. My indefinte is: [tex]\[\int{{{x}^{3}}\sin \left( k\pi x \right)dx=}\left( \left( \frac{3{{x}^{2}}}{{{\left( k\pi \right)}^{2}}}\frac{6}{{{\left( k\pi \right)}^{4}}} \right)\sin \left( k\pi x \right)+\left( \frac{6x}{{{\left( k\pi \right)}^{3}}}\frac{{{x}^{3}}}{k\pi } \right)\cos \left( k\pi x \right) \right)\][/tex]
2. Yes, I would say I've doublechecked :) 3. And I don't understand. No matter what number I put instead of k and x in sin(x*pi*k) it becomes zero :S 


#16
Sep309, 07:05 PM

Mentor
P: 15,065

That looks much better. How did you go from that (correct) indefinite integral to the (incorrect) definite integral?
You apparently don't understand the basic concept.
You can find the value of the series for some particular x by plugging in that particular value of x. All you are doing here is evaluating the [itex]\sin(k\pi x)[/itex], multiplying by the already known b_{k}, and summing. There is no integration in this step. For example, for x=1/1000 you won't find a zero term until k=1000. 


#17
Sep309, 07:14 PM

P: 79

So the definite integral is still wrong?:
[tex]\[{{b}_{k}}=2\left( \left( \frac{6}{{{\left( k\pi \right)}^{3}}}\frac{1}{k\pi } \right) \right)=2\left( \frac{6}{{{\left( k\pi \right)}^{3}}}\frac{1}{k\pi } \right)\][/tex] And I see now. I just thought that x could only be natural numbers. But I see now :) Thank you very much DH :) 


#18
Sep309, 08:00 PM

P: 200




Register to reply 
Related Discussions  
Fourier series for exponentials.. even or odd function?  General Math  4  
Fourier series periodic function  Calculus & Beyond Homework  0  
Differentiate Fourier Sine Series  Calculus & Beyond Homework  0  
Can a fourier series of a function just be a constant?  Calculus & Beyond Homework  1  
Fourier series of a lineer function  Calculus  6 