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!

Sketching graphs

  1. Sep 19, 2009 #1
    1. The problem statement, all variables and given/known data

    Suppose we define {x} to be the distance from x to the nearest integer.

    a) Sketch the graph of f(x) = {x}
    b) " g(x) = {2x}
    c) " h(x) = {x} + 1/2{x}
    d) " all points (x,y) which satisfy {x} + {y} = 1
    e) " all points (x,y) which satisfy |x| + |y| = 1

    2. Relevant equations

    n/a

    3. The attempt at a solution

    I'm not sure how to begin this...

    I don't understand when it says "{x} to be the distance from x to the nearest integer". (I'm not very good at English, I am an international student...) :confused:

    Can anyone clarify what this is saying and provide some hints?

    A well thanks in advance!
     
  2. jcsd
  3. Sep 19, 2009 #2
    Let x, be the a real variable. You know the graph of f(x)=x.
    Define [x] to be the greatest integer function,ie, the greatest integer less than or equal to x. the function p(x)=[x] would come out as staircase like graph , try it and you'll get it.

    then the graph for g(x)=f(x)-p(x)={x} should be simple. I worked it out and confirmed it.
     
  4. Sep 20, 2009 #3

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    If x= 3.122 then the "nearest integer" is 3 and the "distance to the nearest integer" 3.122- 3= .122.

    If x= 3.512 then the "nearest integer" is 4 and the "distance to the nearest integer" is 4- 3.512= 0.498.

    Do you see why the "nearest integer" is one case is "3" and in the other is "4"?
     
  5. Sep 20, 2009 #4
    ahhh... sorry, my mistake.

    this calls upon the entire bandwagon of step functions. the greatest integer function, the least integer dunction and the fraction-part function. its still easy though.. the graphs can be found on google easy. only the function would now have some conditions.

    sorry to have missed tht out.
     
  6. Sep 21, 2009 #5

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    I am assuming that skeeterrr does is not familiar with 'step functions' to begin with.

    Skeeterrr, just calculate values of f(x) for different values of x, plot the points on the graph and draw the graph from there.
     
  7. Sep 21, 2009 #6
    What is the nearest integer to 1? Is it 0 and 2?
    Or 1?
     
    Last edited: Sep 21, 2009
  8. Sep 23, 2009 #7
    Does the graph look like a bunch of triangles on the x-axis???
     
  9. Sep 24, 2009 #8
    yeah
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Sketching graphs
  1. Sketching Graphs (Replies: 10)

  2. Sketching of graph (Replies: 7)

  3. Sketching graph. (Replies: 3)

  4. Graph sketching (Replies: 4)

  5. Graph sketching (Replies: 1)

Loading...