With a step function of general form y = [x], for every value of x the value of y is equal to the greatest integer that is less than or equal to x. In this case, we would have open circles (depicting that the function exists for all values approaching that point but not at that specific point) on the right because that would be when we approach the next integer, ex: there would be an open circle at (5,4) for the general function above because as the function approaches x = 5, ex: x = 4.5, 4.7, 4.9, 4.999, the greatest integer less than or equal to the x value is still 4, so y will be 4. However the second the value of x reaches 5, the greatest integer less than or equal to x is 5, so the value of y would be 5, leaving an open circle at (5,4) because that value does not lie on the function (you can't input 5 for x and get 4 for y, it would be impossible).
We can then see the place of this open circle changing if we apply transformations to the general form of this function. For example, y = [-x] would give a mirror transformation of a reflection across the y-axis now putting the circles on the left. This is because we are now saying for all values of x, y is equal to the greatest integer that is less than or equal to the opposite sign value of x. For example, as x approaches 5 on this function coming from the right side this time (x decreasing) we would see that for x = 5.5, 5.3, 5.1, 5.00002, y is the greatest integer less than or equal to the opposite of those numbers which is -6 (for example the greatest integer less than or equal to -5.5 is -6), however when the value of x reaches 5, the greatest integer less than or equal to -5 is -5, so the y value at x = 5 will be -5, which would require a open circle at (5,-6) because the function does not exist at this point.
The best way to approach this when graphing a step function is to make a table or plug in some points for x and y values. You can then connect these points and get a general shape of the graph. Try to go in between integers to get some decimal values of x to plug in so you can see how the fraction values of x yield integer values of y. Also make sure to plug in all the integer values so that you can see what happens to the endpoints. Here is an example
y = [-2x]
X |
Y |
-2 |
4 |
-1.5 |
3 |
-1.25 |
2 |
-1 |
2 |
-0.5 |
1 |
0 |
0 |
0.5 |
-1 |
1 |
-2 |
1.25 |
-3 |
1.5 |
-3 |
2 |
-4 |
We can then find the x values of the endpoints which will be at every 0.5x. We can then look at our table and plot them and fill in a solid circle because we know the function exists at that point. Then determine which direction the line goes based off of points in between. In this case for example at x = 1.5, (1.5,-3), we put a solid circle and see that the line goes left from that point because moving left to x value 1.25, we see that the x value is the same as 1.5, so we can draw the line left. Then we must stop at x = 1 because we see that x does not equal -3 any more and must put an open circle there.
I hope this helps. If you have any other questions, let me know.