Why Does the Fourier Series Java Applet Show a Dot for Cosines but Not Sines?

Click For Summary

Homework Help Overview

The discussion revolves around the behavior of a Java applet demonstrating Fourier series, specifically focusing on the representation of cosine and sine terms. The original poster is confused about the presence of a dot under cosines while there is none under sines when the number of terms is set to zero.

Discussion Character

  • Exploratory, Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Participants explore the significance of the dot under cosines, questioning why it appears when the terms are zero, and why it has a magnitude of zero. There are discussions about the constant term in the Fourier series and the implications of the function being zero.

Discussion Status

Some participants have provided insights into the nature of the constant term and its relationship with the cosine function, while others have clarified the behavior of sine terms in relation to odd functions. Multiple interpretations of the applet's behavior are being explored, with no explicit consensus reached.

Contextual Notes

Participants are discussing the mathematical properties of Fourier series, particularly in relation to odd and even functions, and how these properties affect the representation in the applet. There is an ongoing examination of integration bounds and the implications of the function being a square wave.

purejoker
Messages
9
Reaction score
0
Fourier series ...

Hi, everyone, I’m new to these forums. I’m just doing some work on Fourier analysis, and just have a few curious questions, I just need to clear up, and so I understand it better.

I have been playing around with the java applet for Fourier series from this website:
http://www.falstad.com/fourier/
check attachmebt...

My question:

The red line is meant to represent the synthesised signal, if the number of terms is set to zero, the red line is flat. But there is a white dot under cosines, and none at all under sines. Also if you place the cursor over the white dot in the cosines, it shows the magnitude. This also appears as zero.

What I don’t understand is why there is dot in the cosines and none in the sines, if the terms are set to zero shouldn’t they both have no dots? And why does the dot in the cosines have a magnitude zero?

I’m a bit confused about this can some help?

Thanks alots
 

Attachments

  • Untitled-1.jpg
    Untitled-1.jpg
    31.9 KB · Views: 472
Physics news on Phys.org


the dot under cosines represents the constant term a_0, or a_0cos(0x). the reason that this is zero is because the function is zero. notice that if you raise or lower the dot, the function remains a constant function, with a higher or lower value appropriately.

you can do this for any of the given functions. changing the first cosine term just adds a constant.
 


the redline is flat because the terms are zero.

the cosine has a dot which is zero which comes from:

a0 = 2/T ∫ x(t) dt

is this right?
 


i'm not sure of your bounds of integration, but you have the right idea. the reason it is lumped in with the cosines is because it is really ∫x(t)cos(0x)dt.
 


if i increase the numbers of terms, the sines get different magnitude values to match the square wave, but all the cosines values are still zero, why is that?
 


square wave is an odd function, so its Fourier series will only have sine terms.
 


x(t) = ½ a0 + Σ an.cos(n.ω.t) + Σ bn.sin(n.ω.t)

this bit basically always equal zero

Σ an.cos(n.ω.t) = 0 in a square wave.

i get it thanks a lot!
 


right. you can see this is true because a_n=∫x(t)cos(nωt)dt. x(t) is odd, cos(nωt) is even, so their product is odd and a symmetric integral over an odd function is 0.

thank you too for showing me that applet. excellent way to show Fourier series graphed.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
3
Views
3K
  • · Replies 139 ·
5
Replies
139
Views
11K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K