How to find the Fourier sequence for a function with a period T=2?

  • Thread starter Thread starter TSN79
  • Start date Start date
AI Thread Summary
To find the Fourier sequence for the function defined with a period T=2, the expression for b_n involves integrating f(x) multiplied by sin(nωx) over the interval [0, 1], where ω = π. The discussion reveals confusion regarding whether f(x) is even or odd; it is clarified that f(x) is odd, as it satisfies f(-x) = -f(x). Additionally, the function is noted to be discontinuous at x=0, which complicates the Fourier series representation. The correct approach to find b_n requires integrating over the entire period from -1 to 1, not just the interval [0, 1]. Understanding these properties is crucial for accurately determining the Fourier coefficients.
TSN79
Messages
422
Reaction score
0
A function with a period T=2 is defined as f(x)=\left\{\begin{array}{cc}-1-x,&amp;\mbox{ if }<br /> -1\leq x&lt;0\\1-x, &amp; \mbox{ if }0\leq x&lt;1\end{array}\right
I'm supposed to find the Fourier-sequence. When trying to find b_n the expression becomes b_n=\int_{0}^{1} f(x)*sin(n*\omega*x)dx
\omega=\pi My book says f(x)*sin(n*\omega*x) is an even function, which I can't understand. Doesn't that mean that it should be symetrical about the y-axis? I can't see that it is. What am I not doing right here?
 
Physics news on Phys.org
A function f(x) is even if f(-x) = f(x) and it is odd if f(-x) = -f(x). Your function satisfies neither of these conditions and so f(x) sin(n*omega*x) is neither even nor odd (the sine function is odd).
 
Tide said:
A function f(x) is even if f(-x) = f(x) and it is odd if f(-x) = -f(x). Your function satisfies neither of these conditions and so f(x) sin(n*omega*x) is neither even nor odd (the sine function is odd).
Other major defect of f(x) given is that it's not continuous at 0.Restraing things to one of the 2 intervals,i say Tide is right,on any of the 2 intervals the function f(x) sin (n\omega\x) tis neither even,nor odd.
You should check the text again.
 
TSN79 said:
A function with a period T=2 is defined as f(x)=\left\{\begin{array}{cc}-1-x,&amp;\mbox{ if }<br /> -1\leq x&lt;0\\1-x, &amp; \mbox{ if }0\leq x&lt;1\end{array}\right
I'm supposed to find the Fourier-sequence. When trying to find b_n the expression becomes b_n=\int_{0}^{1} f(x)*sin(n*\omega*x)dx
\omega=\pi My book says f(x)*sin(n*\omega*x) is an even function, which I can't understand. Doesn't that mean that it should be symetrical about the y-axis? I can't see that it is. What am I not doing right here?


Maybe I'm the only one seeing this but f(x) is odd, and the product of two odd functions is an even function.

f(x)=\left\{\begin{array}{cc}-1-x,&amp;\mbox{ if }<br /> -1\leq x&lt;0\\1-x, &amp; \mbox{ if }0\leq x&lt;1\end{array}\right

Now take f(\frac{1}{2}). This is 1-\frac{1}{2} = \frac{1}{2}

Then take f(-\frac{1}{2}). This becomes -1-(-\frac{1}{2}) = -1 + \frac{1}{2} = -\frac{1}{2}.

More generally, f(x), x &gt; 0 is 1-x. Then f(-x), x &gt; 0 is -1-(-x) = -1 + x = x - 1 = -(1-x) = -f(x). The same will hold for x &lt; 0
 
Also, your formula for b_n is wrong. You have to integrate across the entire period, so you should get :

b_n = \int_{-1}^{0} f(x)*sin(n*\omega*x) dx + \int_{0}^{1} f(x)*sin(n*\omega*x) dx

And input the correct form of f(x) based on the relevant interval.
 
Thanks to all of you! I might come back for some more help in a while... :smile:
 
If I draw the line 1-x then this alone would be neither an even or an odd function, right? But if I add the line -1-x, then the two lines are symmetrical about origo. Is this enough to claim that f(x) is an odd function?
 
TSN79 said:
If I draw the line 1-x then this alone would be neither an even or an odd function, right? But if I add the line -1-x, then the two lines are symmetrical about origo. Is this enough to claim that f(x) is an odd function?
The two lines, I believe, are antisymmetrical. Which is enough to claim f(x) is odd.
The best thing to do, however, is what Tide did.
 
I'm also having some trouble finding out whether this function
f(x)=\left\{\begin{array}{cc}0 &amp;\mbox{ if }<br /> -2\leq x&lt;0\\(1/2)x &amp;\mbox{ if }0\leq x&lt;2\end{array}\right
is even or odd (or neither). Could someone guide me through a bit step by step please? I'm trying to use the definitions for even and odd functions, but I haven't gotten the hang of it yet...
 
  • #10
TSN79 said:
If I draw the line 1-x then this alone would be neither an even or an odd function, right? But if I add the line -1-x, then the two lines are symmetrical about origo. Is this enough to claim that f(x) is an odd function?

REad my post, it is an odd function. No Palindrome, Tide did it wrong.
 
  • #11
f(x)=\left\{\begin{array}{cc}0 &amp;\mbox{ if }<br /> -2\leq x&lt;0\\(1/2)x &amp;\mbox{ if }0\leq x&lt;2\end{array}\right

That function is neither odd nor even.

f(1) = 1/2.
f(-1) = 0

IF it was even then f(-1) = 1/2, and if it was odd f(-1) = -1/2.
 
  • #12
franznietzsche said:
REad my post, it is an odd function. No Palindrome, Tide did it wrong.
Actually, I meant you, on your post "maybe I'm the only one...".
I just the wrong name... :rolleyes:
 
  • #13
While dealing with Fourier question, always keep in mind that whatever function that can be expressed in Fourier series has a transformed form of a_0 + \Sigma(a_n\cos\frac{n\Pi x}{L} + b_n\sin\frac{n\Pi x}{L})

Then if you can't remember the formula for each coefficient, we can do it by the conventional way, which is tedious as well.
First,
\int f(x)dx=\int a_0 + \Sigma(a_n\cos\frac{n\Pi x}{L} + b_n\sin\frac{n\Pi x}{L}) dx
We know that any other terms besides a_0 would be cancelled. Thus this enable us to find a_0
Then, to find the coefficient a_n or b_n, we can time the LHS and RHS with their respective trigonometric function. One at a time.
i.e. \int f(x)\cos\frac{n\Pi x}{L}dx=\int a_0\cos\frac{n\Pi x}{L} + \Sigma(a_n(\cos\frac{n\Pi x}{L})^2 + b_n\sin\frac{n\Pi x}{L}\cos\frac{n\Pi x}{L}) dx
Then only a_n(\cos\frac{n\Pi x}{L})^2 will survive in this integration. (Consider the graph of (\cos\frac{n\Pi x}{L})^2 which is always \geq{0}). To find b_n, we can do the same thing. For piece function, we just integrate them at their respective interval.
This method is super tedious and is highly not recommended during exam. In the exam, just memorize the formulas and apply them.
 
Back
Top