Expand the function f(x) = x^3 in a Fourier sine series

In summary: So the \int{{{x}^{3}}\sin \left( k\pi x \right)dx=0\]In summary, the homework statement is: Homework is a series of equations that must be solved.
  • #1
Ylle
79
0

Homework Statement


Expand the function f(x) = x3 in a Fourier sine series on the interval 0 <= x <= 1


Homework 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]


The Attempt at a Solution



Well, I first calculate bk 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 x3 is an odd equation which means that the sine parts are the only ones who are non-zero => 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
 
Physics news on Phys.org
  • #2
Show your integration. Hint: What happened to the cosine terms?
 
  • #3
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
Ahhhh... I've missed that part.
So I just integrate as normal, without removing the cosine part ?
 
  • #5
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
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 ?
 
Last edited:
  • #7
You can't cut that part out. For the odd function cutting out cos terms, that only applies for the entire an.
 
  • #8
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 bk in the first equation I posted.
 
  • #9
Better, but still not correct. Double check your integration.
 
  • #10
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 ? :)
 
Last edited:
  • #11
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
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 :)
 
Last edited:
  • #13
But, anyways, even though the integral is wrong. Wouldn't the whole thing become zero anyways, after I put bk into the equation where it's multiplied by sin(k*x*pi) ?
 
Last edited:
  • #14
First question: What is your indefinite integral?
Second question: Did you double-check your integration by differentiating the result?

To answer your question, the {bk} will not be zero. [itex]\sin(k\pi x)[/itex] is zero only for a few special values of k and x.
 
  • #15
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
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.
  1. First you evaluate the {bk}s. These will just be a bunch of numbers. In this case, each bk will be non-zero.
  2. Then you form the sine series using the {bk}s. You do not evaluate this because you don't know x. Yet. This series is just another way of writing f(x).

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 bk, 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
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
Ylle said:
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

You have it right here. Only the sin parts go to 0, the cos values alternate + and - because [tex]\cos(n\pix)[/tex] is 1 for n even and -1 for n odd. Evaluate the limits of the integral and don't forget the constant multiplier, and then you have the bn term in general.
 
  • #19
Ylle said:
So the definite integral is still wrong?:
Yes.

Ylle said:
[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]
That is correct.

The sine term vanishes at both x=0 and x=1, and the cosine term vanishes at x=0. All that is left is the cosine term at x=1:

[tex]\int_0^1x^3\sin( k\pi x)dx =
\left(\frac{6}{{{\left( k\pi \right)}^{3}}}-\frac{1}{k\pi } \right)\cos(k\pi)[/tex]

This simplifies a bit more as zcd hinted. Use [itex]\cos(k\pi)=(-1)^k[/itex].
 
  • #20
Ahhh, I just forgot to write the cosine part with my solution. My bad...
But again, ty very much.
 

FAQ: Expand the function f(x) = x^3 in a Fourier sine series

What is a Fourier sine series?

A Fourier sine series is a mathematical representation of a periodic function using a series of sine functions. It is used to decompose a function into its individual sine components, allowing for easier analysis and manipulation.

How do you expand a function into a Fourier sine series?

To expand a function f(x) into a Fourier sine series, you need to integrate f(x) multiplied by sine functions of different frequencies over a specific interval. This interval should be equal to the period of the function. This process is known as Fourier analysis.

Why is it useful to expand a function into a Fourier sine series?

Expanding a function into a Fourier sine series allows for easier analysis and manipulation of the function. It also helps in solving differential equations, finding the average value of a function, and approximating functions using a finite number of terms.

What is the general form of a Fourier sine series?

The general form of a Fourier sine series is given by f(x) = a0 + Σn=1 to ∞ (ansin(nx) + bncos(nx)), where a0, an, and bn are constants determined by the function f(x) and its period.

How do you determine the coefficients in a Fourier sine series?

The coefficients an and bn in a Fourier sine series can be determined by integrating f(x) multiplied by sine and cosine functions, respectively, over the period of the function. This process is known as Fourier analysis and involves solving a system of equations to find the values of the coefficients.

Similar threads

Replies
5
Views
985
Replies
1
Views
1K
Replies
1
Views
907
Replies
16
Views
1K
Replies
5
Views
960
Replies
3
Views
1K
Back
Top