1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Finding an equation with given traits

  1. May 2, 2015 #1
    < Mentor Note -- thread moved to HH from the technical math forums, so no HH Template is shown >

    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: May 2, 2015
  2. jcsd
  3. May 2, 2015 #2

    robphy

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

  4. May 2, 2015 #3
  5. May 2, 2015 #4

    berkeman

    User Avatar

    Staff: Mentor

    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?
     
  6. May 2, 2015 #5
    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?
     

    Attached Files:

  7. May 2, 2015 #6

    berkeman

    User Avatar

    Staff: Mentor

    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?
     
  8. May 2, 2015 #7
    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?
     
  9. May 2, 2015 #8

    berkeman

    User Avatar

    Staff: Mentor

    Just Google the last part of my last post:

     
  10. May 2, 2015 #9
    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?
     
  11. May 2, 2015 #10

    berkeman

    User Avatar

    Staff: Mentor

    What happens when you google Gibb's Phenomenon?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted