Help with Triangle Wave using complex exponential Fourier Series

In summary, your professor gave you a problem with a triangle wave and you were having difficulties solving it. You eventually figured out the problem and showed it to your mentor.
  • #1
Milani
3
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,485
  • IMG_0226.jpg
    IMG_0226.jpg
    32.3 KB · Views: 1,128
Physics news on Phys.org
  • #2
[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:
  • #3
jbunniii you said that it's an even function so is that why the isin(kwt) is no longer there when you simplied it?
 
  • #4
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:
  • #5
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.
 
  • #6
OK, I fixed the first post. Sorry for the confusion. :redface:
 
  • #7
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.
 
  • #8
Nice job!
 

Related to Help with Triangle Wave using complex exponential Fourier Series

1. What is a triangle wave?

A triangle wave is a non-sinusoidal waveform that resembles a triangle shape. It is characterized by a linear rise in amplitude from 0 to its maximum value, followed by a linear decrease back to 0.

2. How can a complex exponential Fourier series be used to represent a triangle wave?

A complex exponential Fourier series is a mathematical technique used to represent a periodic waveform as a sum of complex sinusoidal functions. By using a specific formula, this series can accurately represent a triangle wave by combining multiple sine and cosine functions.

3. What are the advantages of using a complex exponential Fourier series for a triangle wave?

Using a complex exponential Fourier series can provide a more compact and simplified representation of a triangle wave compared to other methods, such as using a series of discrete samples. It also allows for easy manipulation and analysis of the wave's properties.

4. Are there any limitations to using a complex exponential Fourier series for a triangle wave?

One limitation is that the series may require an infinite number of terms to accurately represent the triangle wave, making it computationally intensive. Additionally, the series may not be as intuitive to interpret as other representations of the waveform.

5. How can the accuracy of a complex exponential Fourier series for a triangle wave be improved?

The accuracy of the series can be improved by increasing the number of terms used in the summation. Additionally, using a modified version of the formula, such as the Gibbs phenomenon correction, can also improve the accuracy of the representation.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
271
  • Calculus and Beyond Homework Help
Replies
3
Views
401
  • Calculus and Beyond Homework Help
Replies
3
Views
352
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
397
Replies
4
Views
337
  • Calculus and Beyond Homework Help
Replies
1
Views
565
  • Engineering and Comp Sci Homework Help
Replies
3
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
17
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
Back
Top