Finding an equation with given traits

  • Thread starter Thread starter csmitty12
  • Start date Start date
  • Tags Tags
    Fourier Function
AI Thread Summary
The discussion revolves around constructing a periodic function for a Fourier Series project, specifically a square wave with a period of 2. The initial function provided is not periodic, but participants suggest using step functions to create the desired periodic behavior. There is a focus on calculating the Fourier Series for this square wave, particularly with a DC offset. The user seeks guidance on calculating the first 30 terms for two cycles from x = -2 to 2 and is advised to research Gibb's Phenomenon for further understanding. The conversation emphasizes the importance of transforming the initial function into a suitable periodic form for analysis.
csmitty12
Messages
5
Reaction score
0
< Mentor Note -- thread moved to HH from the technical math forums, so no HH Template is shown >[/color]

Consider a function
f(x) = 0, 0 ≤ x < 1
and
f(x) = 1, 1 ≤ x < 2

What is the function and how did you find it? Please help it will be used for a Fourier Series project. I can get the Series stuff fine but I just don't remember how to find a function.
 
Last edited by a moderator:
Physics news on Phys.org
csmitty12 said:
Consider a function
f(x) = 0, 0 ≤ x < 1
and
f(x) = 1, 1 ≤ x < 2

What is the function and how did you find it? Please help it will be used for a Fourier Series project. I can get the Series stuff fine but I just don't remember how to find a function.

csmitty12 said:
The thing is, is that it is supposed to be a periodic function with Period 2. I can't draw it that's all the info I've got.

Welcome to the PF.

What you have specified is not periodic. As robphy indicates, you can use the addition of two step functions to generate the function that you have specified in your first post. There must be more to the problem statement than you have shown us so far.

BTW, is this for a schoolwork assignment or for something else?
 
berkeman said:
Welcome to the PF.

What you have specified is not periodic. As robphy indicates, you can use the addition of two step functions to generate the function that you have specified in your first post. There must be more to the problem statement than you have shown us so far.

BTW, is this for a schoolwork assignment or for something else?
It is for a Fourier Series project. I can get the FS through MATLAB, my only question is how to get the function to use in the FS?
 

Attachments

  • Capture.PNG
    Capture.PNG
    4.4 KB · Views: 469
csmitty12 said:
It is for a Fourier Series project. I can get the FS through MATLAB, my only question is how to get the function to use in the FS?

Oh, that's different (now seeing the actual problem statement). They say to construct a periodic square wave out of that basic function. Do you know how to calculate the Fourier Series of a square wave with a DC offset?
 
berkeman said:
Oh, that's different (now seeing the actual problem statement). They say to construct a periodic square wave out of that basic function. Do you know how to calculate the Fourier Series of a square wave with a DC offset?
So far we have only learned sinusoidal functions and complex representation. I'm not too sure how do do it with a square wave. Any idea where I can get started?
 
Just Google the last part of my last post:

berkeman said:
Fourier Series of a square wave with a DC offset
 
berkeman said:
Just Google the last part of my last post:
Okay so now I understand how to get the equation for the series. Now I'm confused and stuck on the part where it says to calculate the first 30 terms for two cycles, x = -2 to 2. Any hints/suggestions?
 
  • #10
csmitty12 said:
Okay so now I understand how to get the equation for the series. Now I'm confused and stuck on the part where it says to calculate the first 30 terms for two cycles, x = -2 to 2. Any hints/suggestions?

What happens when you google Gibb's Phenomenon?
 

Similar threads

Back
Top