Find the Fourier series of a 'broken' function which is periodic in 2L

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
7 replies · 3K views
knowlewj01
Messages
100
Reaction score
0

Homework Statement



Sketch the function:

[itex]f(x) = \begin{Bmatrix} \frac{-x}{a} & 0 \leq x \leq a \\ \frac{x-L}{L-a} & a \leq x \leq L[/itex]

where f(x) is an odd function and is periodic in 2L.
And a is a constant less than L/2

Find the Fourier series for the function f(x).



Homework Equations





The Attempt at a Solution



I have attached a rough sketch of the function, its not perfect but good enough to get the general idea. We can see that the function is odd and Discontinuous at f(a) and f(a+L)

the general formula for the Fourier series is:

[itex]\frac{a_0}{2} + \sum_{n=1}^{\infty} a_n cos\left(\frac{n\pi x}{L}\right) + b_n sin\left(\frac{n\pi x}{L}\right)[/itex]

we are told that the function is odd, hence all the a_n terms must be 0.

so the Fourier series is in the form:

[itex]\sum_{n=1}^{\infty} b_n sin(\frac{n\pi x}{L})[/itex]

to find the b_n terms use the formula:


[itex]b_n = \frac{1}{2L} \int_{-L}^L f(x) sin(\frac{n\pi x}{L}) dx[/itex]

odd function * odd function = even function, so:

[itex]b_n = \frac{1}{L} \int_0^L f(x) sin(\frac{n\pi x}{L}) dx[/itex]


so.. do i then split this up into 2 separate integrals:

[itex]b_n = \frac{1}{L}\left[ \int_0^a \left(\frac{-x}{a}\right) sin(\frac{n\pi x}{L}) dx + \int_a^L \left(\frac{x-L}{L-a}\right) sin(\frac{n\pi x}{L})\right][/itex]

am i able to do this?

the thing that is confusing me the most is wether i am using the right values for L (ie, not sure wether its supposed to be 1/L , 2/L , 1/2L etc)

I followed this through and ended up with a horrible expression containing terms in:

[itex]sin\left(\frac{n \pi a}{L}\right)[/itex]

and

[itex]cos\left(\frac{n \pi a}{L}\right)[/itex]


thanks
 

Attachments

  • Sketch.png
    Sketch.png
    3.5 KB · Views: 550
Last edited:
Physics news on Phys.org
I've worked the integrals through and ended up with the solution:

[itex]f(x) = \sum_{n=1}^{\infty} \frac{-2L^2}{an^2 \pi^2 (L-a)} sin\left(\frac{n \pi a}{L}\right) sin\left(\frac{n \pi x}{L}\right)[/itex]

I'm not sure if this is right. I've never seen any examples where the sin and cos terms havn't become 0 or (-1)^n.
 
Also, I have never seen that way of finding the factor outside the integration

[itex]\omega = \frac{2 \pi}{T}[/itex]

does that work every time? just use T = period.
 
looks right then, thanks. How did you make that curve? Matlab, or Mathematica or something? You just reminded me that i need to get a copy of one of them :)
 
knowlewj01 said:
Also, I have never seen that way of finding the factor outside the integration

[itex]\omega = \frac{2 \pi}{T}[/itex]

does that work every time? just use T = period.
Yes, this relationship between the angular frequency and period always holds.
knowlewj01 said:
looks right then, thanks. How did you make that curve? Matlab, or Mathematica or something? You just reminded me that i need to get a copy of one of them :)
I used Mathematica.
 
Thanks for Your help