Sub topic 2
Plotting and Reading Points
This chapter assumes you can order positive and negative numbers on a number line and do basic subtraction. A point is written as an ordered pair (x, y). The x-value is the horizontal position, and the y-value is the vertical position. The two axes meet at the origin, (0, 0).
Plotting and reading points
To plot a point, start at the origin. Move x units horizontally: right if x is positive, left if x is negative. Then move y units vertically: up if y is positive, down if y is negative. Mark the spot.
To read a point, reverse the steps. Find the x-value by reading where the point's vertical line meets the x-axis. Find the y-value by reading where its horizontal line meets the y-axis. Always write x first.
The four quadrants and the signs of coordinates
The axes divide the plane into four regions called quadrants. They are numbered I to IV, counterclockwise from the upper right. The signs of x and y tell you which quadrant holds a point:
| Quadrant | Sign of x | Sign of y |
|---|---|---|
| I | positive | positive |
| II | negative | positive |
| III | negative | negative |
| IV | positive | negative |
The following function applies these rules to any point:
def locate(x, y):
if x == 0 and y == 0:
return "origin"
if y == 0:
return "on the x-axis"
if x == 0:
return "on the y-axis"
if x > 0 and y > 0:
return "quadrant I"
if x < 0 and y > 0:
return "quadrant II"
if x < 0 and y < 0:
return "quadrant III"
return "quadrant IV"
print(locate(3, 2))
print(locate(-4, 5))
print(locate(-1, -6))
print(locate(2, -3))
print(locate(0, 7))Points that lie on an axis
A point on the x-axis has y = 0, such as (5, 0). A point on the y-axis has x = 0, such as (0, -3). Points on an axis belong to no quadrant. The origin is the only point that lies on both axes.
Exercise
In which quadrant, or on which axis, does the point (-2, 0) lie?
Show answer
It lies on the x-axis. Its y-value is 0, and its x-value is not 0, so it is on the x-axis and not in any quadrant.