Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: How to sketch a function?

  1. Dec 6, 2011 #1
    The function f(x) is periodic with period 2[itex]\pi[/itex] and is defined by
    f(x) = -cos(x) when -[itex]\pi[/itex]<x<0
    = cos(x) when 0<x<[itex]\pi[/itex]

    Sketch f from x=-3[itex]\pi[/itex] to 3[itex]\pi[/itex].


    My question is, when -[itex]\pi[/itex]<x<0 and 0<x<[itex]\pi[/itex], how am I supposed to graph the function from -3[itex]\pi[/itex] to 3[itex]\pi[/itex]?
    1. The problem statement, all variables and given/known data



    2. Relevant equations



    3. The attempt at a solution
     
  2. jcsd
  3. Dec 6, 2011 #2

    eumyang

    User Avatar
    Homework Helper

    Remember what was said in the beginning:
    "The function f(x) is periodic with period 2π..." (emphasis mine)
    You are shown how to graph f(x) from -π to π. Since f(x) is periodic, how would the graph of f(x) from π to 3π would look?
     
  4. Dec 6, 2011 #3
    I have managed to come up with something (very roughly) like this:

    k0h5op.jpg

    Is this how it should be done?
     
  5. Dec 6, 2011 #4

    ehild

    User Avatar
    Homework Helper

    Yes, it is correct.

    ehild
     
  6. Dec 6, 2011 #5
    Not sure if I've done something wrong. The question states that "The function f(x) is periodic with period 2π", but at the moment my graph looks like it's only with period 1π.
     
  7. Dec 6, 2011 #6

    ehild

    User Avatar
    Homework Helper

    If something is periodic with pi, it is also periodic with 2pi.:smile:

    Check. Choose an x and see if you get the same f(x) as in the graph.

    x=-pi/3 for example. f(-pi/3)=-cos(pi/3)=-1/2. If x=-2pi/3, cos(2pi/3)=-0.5, f(-2pi/3)=-cos(2pi/3)=0.5.



    ehild
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook