Sub topic 6
The four quadrants and the signs of coordinates
What this chapter assumes
You should already be comfortable with positive and negative numbers, with the x-axis, y-axis and origin, and with plotting an ordered pair (x, y). This chapter turns those skills into a quick test. The signs of the two coordinates tell you which region of the plane a point is in, before you plot anything.
How the axes split the plane
The x-axis and the y-axis cross at the origin (0, 0). Together they cut the plane into four open regions. Each region is called a quadrant. The quadrants are numbered with Roman numerals, I to IV, and the numbering runs counterclockwise, starting at the upper right.
- Quadrant I is the upper right. Points move right and up from the origin.
- Quadrant II is the upper left. Points move left and up.
- Quadrant III is the lower left. Points move left and down.
- Quadrant IV is the lower right. Points move right and down.
The axes themselves do not belong to any quadrant. A point on an axis is a boundary case, and the section on axis points below covers it.
The sign rule
Each coordinate answers one question.
- The sign of x says which side of the y-axis the point is on. Positive means right. Negative means left.
- The sign of y says which side of the x-axis the point is on. Positive means above. Negative means below.
Combining the two answers gives the quadrant.
| Quadrant | Sign of x | Sign of y | Example |
|---|---|---|---|
| I | positive | positive | (3, 2) |
| II | negative | positive | (-4, 5) |
| III | negative | negative | (-1, -6) |
| IV | positive | negative | (2, -3) |
Check the sign of x first. It tells you whether the point is on the left or the right. Then check the sign of y to choose between the upper and lower half. Because the two checks are independent, you can do them in either order.
Worked example
Find the quadrant of (-7, 0.5) and of (6, -1/3).
- For (-7, 0.5), x is negative, so the point is left of the y-axis. y is positive, so it is above the x-axis. Left and above is quadrant II.
- For (6, -1/3), x is positive, so the point is right of the y-axis. y is negative, so it is below the x-axis. Right and below is quadrant IV.
The size of a coordinate does not matter for the quadrant. Only the sign does. The point (-0.001, 1000) is in quadrant II, just as (-4, 5) is.
Points on the axes
A coordinate of zero puts the point on a boundary instead of inside a quadrant.
- If y = 0, the point is on the x-axis. Examples are (5, 0) and (-3, 0).
- If x = 0, the point is on the y-axis. Examples are (0, 7) and (0, -2).
- If both are 0, the point is the origin.
A point on an axis is in no quadrant. A common mistake is to say that (0, 7) is in quadrant I because both coordinates are "not negative". Zero is neither positive nor negative, so the sign rule gives no quadrant for it.
A useful way to remember which axis is which: the coordinate that is zero tells you which movement did not happen. If x = 0, there is no horizontal movement from the origin, so the point stays on the vertical axis, which is the y-axis. If y = 0, there is no vertical movement, so the point stays on the x-axis.
The rule as a program
The decision can be written as a function. The order of the checks matters. The zero cases come first, because the quadrant tests assume that neither coordinate is zero.
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))Running it prints quadrant I, quadrant II, quadrant III, quadrant IV and on the y-axis. The last line of the function returns quadrant IV without testing for it. This is safe only because every other case has already returned. If x and y are both nonzero, and the point is not in quadrants I, II or III, it must be in IV.
If you reorder the checks and test the quadrants first, a point such as (0, 7) falls through all three quadrant tests and is wrongly reported as quadrant IV. This is a good example of why edge cases are handled before the general case.
Seeing the quadrants on a plot
The following program draws one point in each quadrant and one at the origin. The black lines are the axes, and equal scale keeps the quadrants square.
import matplotlib.pyplot as plt
points = [(3, 2), (-4, 5), (-1, -6), (2, -3), (0, 0)]
xs = [p[0] for p in points]
ys = [p[1] for p in points]
fig, ax = plt.subplots()
ax.scatter(xs, ys)
for x, y in points:
ax.annotate(f"({x}, {y})", (x, y), textcoords="offset points", xytext=(5, 5))
ax.axhline(0, color="black")
ax.axvline(0, color="black")
ax.set_xlim(-8, 8)
ax.set_ylim(-8, 8)
ax.set_aspect("equal")
ax.grid(True)
plt.show()Two lines are worth noting. axhline(0) draws a horizontal line at y = 0, which is the x-axis. axvline(0) draws a vertical line at x = 0, which is the y-axis. The two names are easy to swap by accident. The letters h and v describe the direction of the line drawn, not the name of the axis.
Reading signs from a description
The rule also works in reverse. If you know the quadrant, you know the signs, even without the numbers.
- A point in quadrant III has a negative x and a negative y. Its coordinates could be (-2, -9) or (-0.5, -0.5).
- A point in quadrant II has a negative x and a positive y.
This reverse reading is useful when a problem gives only partial information. Suppose a point (a, b) is in quadrant IV. Then a > 0 and b < 0. You can say several things about related points without knowing a or b:
- The point (a, -b) has a positive x and a positive y, so it is in quadrant I.
- The point (-a, b) has a negative x and a negative y, so it is in quadrant III.
- The point (b, a) has a negative x and a positive y, so it is in quadrant II. Swapping the coordinates moved the old y-value into the x position, and the old y-value was negative.
The last case shows why order matters in an ordered pair. Swapping the coordinates can change the quadrant.
Products and quotients
The signs of x and y also decide the sign of their product xy.
- In quadrants I and III, x and y have the same sign, so xy is positive.
- In quadrants II and IV, x and y have opposite signs, so xy is negative.
This gives a one-line test for "same side" or "opposite side" situations. If you are told xy > 0, the point is in quadrant I or III. If you are told xy < 0, it is in quadrant II or IV. If xy = 0, at least one coordinate is zero, so the point is on an axis. The same reasoning holds for the quotient x/y whenever y is not zero.
Common errors
- Calling an axis point part of a quadrant. Any point with a zero coordinate is on an axis. It is in no quadrant.
- Numbering the quadrants clockwise. The numbering is counterclockwise from the upper right. Quadrant II is upper left, not lower right.
- Letting the size of a number decide. Only the sign matters. A large negative x is still just "left".
- Treating -x as a negative number. The symbol -x is negative only if x is positive. If x = -3, then -x = 3. When a problem says that x is negative, -x is positive.
- Reading the pair backward. In (-4, 5), the first number is x. Reading it as y puts the point in the wrong place and, often, in the wrong quadrant.
Summary of the decision
Exercises
Exercise
Name the quadrant or axis for each point: (8, -2), (-3, -3), (0, -5), (-6, 1), (4, 0).
Show answer
(8, -2) is in quadrant IV (x positive, y negative). (-3, -3) is in quadrant III (both negative). (0, -5) is on the y-axis because x = 0. (-6, 1) is in quadrant II (x negative, y positive). (4, 0) is on the x-axis because y = 0.
Exercise
The point (a, b) is in quadrant II. In which quadrant is each of these points: (-a, b), (a, -b), (-a, -b), (b, a)?
Show answer
Quadrant II means a < 0 and b > 0. For (-a, b): -a is positive and b is positive, so quadrant I. For (a, -b): a is negative and -b is negative, so quadrant III. For (-a, -b): -a is positive and -b is negative, so quadrant IV. For (b, a): b is positive and a is negative, so quadrant IV.
Exercise
A point has xy < 0 and x > 0. Which quadrant is it in? Explain in one or two sentences.
Show answer
Quadrant IV. Since xy is negative, x and y have opposite signs. Because x is positive, y must be negative, and a positive x with a negative y is quadrant IV.
Exercise
The function locate(x, y) from this chapter has its zero checks removed, so it tests only the four quadrant conditions and returns "quadrant IV" at the end. What does it return for (0, 7) and for (-2, 0)? Why is that wrong?
Show answer
For (0, 7), x > 0 is false and x < 0 is false, so no quadrant test matches and the function falls through to "quadrant IV". For (-2, 0), x < 0 is true but y > 0 and y < 0 are both false, so it also falls through to "quadrant IV". Both points lie on an axis, so neither belongs to any quadrant. The zero checks must come first.