Help with Triangle Wave using complex exponential Fourier Series

Click For Summary

Discussion Overview

The discussion revolves around the application of the Fourier Series to a triangle wave function, specifically focusing on the calculation of Fourier coefficients. Participants explore the properties of odd and even functions in relation to the integration process required for solving the Fourier Series of the triangle wave.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant describes their struggle with calculating the Fourier coefficients for a triangle wave, noting they have successfully computed the constant term but are having difficulty with the coefficients.
  • Another participant suggests leveraging the odd nature of the triangle wave to simplify the integration process, proposing an alternative interval for integration.
  • There is a clarification regarding the properties of even and odd functions, with explanations on how these properties affect the integration of the Fourier Series terms.
  • Participants discuss the implications of the function being odd, correcting an earlier mischaracterization of the function as even.
  • A participant expresses gratitude for the assistance received and indicates progress in their understanding, leading to further assignments related to the topic.

Areas of Agreement / Disagreement

Participants generally agree on the properties of odd and even functions and their implications for integration in the context of Fourier Series. However, there was initial confusion regarding the classification of the triangle wave function, which was later corrected.

Contextual Notes

The discussion includes assumptions about the properties of functions and their behavior under integration, which may depend on specific definitions and contexts. There are unresolved aspects regarding the complete calculation of Fourier coefficients.

Who May Find This Useful

Students and researchers working on Fourier Series, particularly those dealing with wave functions and their properties in mathematical analysis.

Milani
Messages
3
Reaction score
0
I'm participating in research this summer and it's has to do with the Fourier Series. My professor wanted to give me practice problems before I actually started on the research. He gave me a square wave and I solved that one without many problems, but this triangle wave is another story. I've been stuck on it for a day or two and wanted to see if I'm even on the right track because I'm very,very lost. Here is the problem: The triangle wave has a period of 4 and starts at (0,0) to (1,1). Then from (1,1) to (3,-1). And then (3,-1) to (4,0). I solved a0 and got 0. Solving for ak is where I'm having a problem. I tried to type the problem out on here but I couldn't get the code to work properly, so instead I took a picture.

My question is, did I solve the first one correctly? I didn't solve the (-t+2) or (t-4) integrals yet, just the very first one listed.
 

Attachments

  • IMG_0225.jpg
    IMG_0225.jpg
    42.2 KB · Views: 1,579
  • IMG_0226.jpg
    IMG_0226.jpg
    32.3 KB · Views: 1,207
Physics news on Phys.org
[edited with a correction: the given function is odd, not even]

Here is a suggestion which will make the calculation much easier. Your triangle wave is an odd function: it satisfies ##s(t) = -s(-t)## for all ##t##. Also, you can integrate over any period of the function, so instead of integrating from 0 to 4, you can integrate from -2 to 2, which will allow you to exploit the oddness of the function. The formula for ##a_k## simplifies as follows:
$$\begin{align}
a_k &= \int_{-2}^{2}s(t)e^{-ik\omega t} dt \\
&= \int_{-2}^{2} s(t)(\cos(k\omega t) - i \sin(k \omega t)) dt \\
&= -i \int_{-2}^{2} s(t) \sin(k \omega t) dt \\
&= -2i \int_{0}^{2} s(t) \sin(k \omega t) dt
\end{align}$$
 
Last edited:
jbunniii you said that it's an even function so is that why the isin(kwt) is no longer there when you simplied it?
 
Yes, that's right. The cosine is an even function, and sine is an odd function. Also, an even function times an even function is even, an odd function times an odd function is even, and an even function times an odd function is odd.

Therefore if ##s(t)## is even, then ##s(t)\cos(k\omega t)## is even, and ##s(t)\sin(k\omega t)## is odd.

If ##s(t)## is odd, then ##s(t)\cos(k\omega t)## is odd, and ##s(t)\sin(k\omega t)## is even.

If you integrate an odd function over an interval of the form ##[-x,x]##, the result is zero.

If you integrate an even function over an interval of the form ##[-x,x]##, the result is two times the integral over ##[0,x]##.

You should verify all of these facts if you're not sure - they follow directly from the definition of even and odd and basic calculus manipulations. They will frequently be useful when working with Fourier series.
 
Last edited:
Oh wait, I misinterpreted your function. If you plot it, you will see that it is actually an ODD function, not even. I'll edit my first post accordingly.
 
OK, I fixed the first post. Sorry for the confusion. :redface:
 
Thanks so much for the help jbunniii! :D
I eventually got it and showed it to my mentor today, he's now assigned me a new triangle wave to solve and plot in MATLAB.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
Replies
3
Views
944
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
6K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
17
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K