Sub topic 8
Graphing Lines and Reading Graphs
This chapter assumes you can compute slope from two points, write a line in slope-intercept form y = mx + b, and find x- and y-intercepts. Here you will use those skills to draw a line quickly and to read information off a graph, which is how GRE questions usually present lines.
Why graphing matters on the GRE
Many GRE coordinate geometry questions give you a picture or ask you to picture one. You rarely need a precise drawing. A quick sketch that shows the correct slope direction, the intercepts, and the quadrants the line passes through is usually enough to answer or to check an algebraic result.
Two methods cover almost every case:
- Slope-intercept method: Start at the y-intercept, then move by rise over run.
- Intercept method: Plot the x-intercept and the y-intercept, then connect them.
Method 1: Slope-intercept graphing
Take y = (2/3)x - 2.
- The y-intercept is b = -2, so plot (0, -2).
- The slope is 2/3. That means rise 2, run 3. From (0, -2), move up 2 and right 3 to reach (3, 0).
- Repeat to get a third point as a check: up 2 and right 3 again gives (6, 2).
- Draw a line through the points and extend it in both directions.
For a negative slope such as -3/4, you can rise -3 and run 4 (down 3, right 4), or rise 3 and run -4 (up 3, left 4). Both land on the same line.
def points_on_line(m, b, xs):
"""Return (x, y) points on y = m*x + b for each x in xs."""
return [(x, m * x + b) for x in xs]
print(points_on_line(2 / 3, -2, [0, 3, 6]))
# [(0, -2.0), (3, 0.0), (6, 2.0)]The output matches the points found by counting rise and run. If a point you plot by hand does not satisfy the equation, a sign was lost somewhere.
Method 2: Intercept graphing
This method is fastest when the equation is in standard form Ax + By = C. Take 3x + 4y = 12.
- Set x = 0: 4y = 12, so y = 3. The y-intercept is (0, 3).
- Set y = 0: 3x = 12, so x = 4. The x-intercept is (4, 0).
Plot both points and draw the line. The slope follows from the intercepts: moving from (0, 3) to (4, 0) is a rise of -3 over a run of 4, so m = -3/4.
def intercepts(A, B, C):
"""Intercepts of Ax + By = C. Returns None where no intercept exists."""
x_int = C / A if A != 0 else None
y_int = C / B if B != 0 else None
return x_int, y_int
print(intercepts(3, 4, 12)) # (4.0, 3.0)When the intercept method fails
If C = 0, as in 2x - 5y = 0, both intercepts are the origin (0, 0). You get only one point, so pick another x, such as x = 5, to find y = 2 and plot (5, 2). The same happens for any line through the origin.
Reading a line from its graph
To find the equation from a picture:
- Find the y-intercept: where the line crosses the vertical axis. That is b.
- Choose two clear lattice points (points with integer coordinates) on the line and compute the slope.
- Write y = mx + b.
For example, suppose a line crosses the y-axis at (0, 1) and passes through (4, 7). Then m = (7 - 1)/(4 - 0) = 3/2, so y = (3/2)x + 1.
Use points far apart when you compute slope. Points that are close together make it easy to misread a grid square.
What the sign of the slope tells you
You can often answer a question from the shape of the line without computing anything.
| Slope | Line direction (left to right) | Example |
|---|---|---|
| m > 0 | Rises | y = 2x + 1 |
| m < 0 | Falls | y = -x + 4 |
| m = 0 | Horizontal | y = 3 |
| undefined | Vertical | x = -2 |
A larger absolute value of m means a steeper line. A line with m = -5 is steeper than a line with m = 2, even though it falls.
Which quadrants does a line cross?
A GRE question might ask: "Does the line y = -2x + 6 pass through Quadrant III?" Sketch it.
- The y-intercept is (0, 6), on the positive y-axis.
- The x-intercept is (3, 0), on the positive x-axis.
- The slope is negative, so the line falls to the right.
The line passes through Quadrants I, II (to the left of the y-axis, where y is large and positive), and IV (to the right of x = 3, where y is negative). It never enters Quadrant III. In Quadrant III both x and y are negative, but when x < 0 here, y = -2x + 6 is greater than 6.
A general rule: a line with nonzero slope that does not pass through the origin crosses exactly three quadrants. A line with a positive slope and positive y-intercept crosses I, II, and III. A line with a negative slope and positive y-intercept crosses I, II, and IV.
Check one row yourself. For m > 0 and b < 0, such as y = x - 2, the line passes through (0, -2), which is on the negative y-axis. It rises to cross the x-axis at (2, 0). To the left of the origin it stays below the x-axis, in Quadrant III. Between x = 0 and x = 2 it is in Quadrant IV. Past x = 2 it is in Quadrant I.
Comparing two lines on one graph
Two lines drawn on the same axes let you compare slopes and intercepts at a glance.
- The line that is higher at x = 0 has the larger y-intercept.
- The line that rises faster has the larger slope.
- Where the lines cross, both have the same x and y. To the right of the crossing, the line with the larger slope is above the other. To the left, it is below.
Suppose line p is y = 2x + 1 and line q is y = -x + 7. Line p starts lower (b = 1 versus 7) but has a larger slope. They cross at (2, 5). For x > 2, line p is above line q. For x < 2, line q is above line p.
def which_is_higher(m1, b1, m2, b2, x):
y1, y2 = m1 * x + b1, m2 * x + b2
if y1 > y2:
return "line 1"
if y2 > y1:
return "line 2"
return "equal"
print(which_is_higher(2, 1, -1, 7, 0)) # line 2
print(which_is_higher(2, 1, -1, 7, 2)) # equal
print(which_is_higher(2, 1, -1, 7, 5)) # line 1Reading a graph that is not drawn to scale
GRE figures are often labeled "not drawn to scale" or give only some coordinates. In that case:
- Trust the labeled numbers, not the apparent lengths or angles.
- Use only what is stated: quadrant locations, the signs of coordinates, and any given points.
- Do not assume a line has slope 1 because it looks like it does.
For a quantitative comparison question, try two different drawings that fit the given information. If they give different answers, the correct choice is that the relationship cannot be determined.
Common errors
- Swapping rise and run. Slope is rise over run, vertical change over horizontal change. A slope of 3/4 means up 3 and right 4, not up 4 and right 3.
- Dropping the sign of b. In y = 2x - 5, the y-intercept is -5, so the line crosses below the origin.
- Reading the x-intercept as the y-intercept. The x-intercept has y = 0. The y-intercept has x = 0.
- Misreading the axis scale. If each grid square on the y-axis is 2 units, a rise of 3 squares is 6, not 3. Check the tick labels on both axes before you compute a slope.
- Forgetting the whole line extends. A line drawn through Quadrants I and II on the page continues forever. It may cross another quadrant outside the drawn region.
Worked example
A line has equation 2x - 3y = 6. Which quadrants does it pass through, and what is its slope?
- Set x = 0: -3y = 6, so y = -2. The y-intercept is (0, -2).
- Set y = 0: 2x = 6, so x = 3. The x-intercept is (3, 0).
- Slope = (0 - (-2)) / (3 - 0) = 2/3.
- The slope is positive and b is negative, so the line crosses Quadrants I, III, and IV.
Check with a point: at x = 6, y = (2/3)(6) - 2 = 2. Substituting into 2x - 3y gives 12 - 6 = 6, which matches.
Exercise
A line passes through (0, -4) and (6, 0). (a) Write its equation in slope-intercept form. (b) Does the line pass through Quadrant II? (c) At x = 9, what is y?
Show answer
(a) The slope is (0 - (-4)) / (6 - 0) = 2/3, and the y-intercept is -4, so y = (2/3)x - 4. (b) No. The slope is positive and b is negative, so the line crosses Quadrants I, III, and IV only. For x < 0 the line has y < -4, so it is below the x-axis. (c) y = (2/3)(9) - 4 = 6 - 4 = 2.
Exercise
Line p is y = 3x - 2 and line q is y = -x + 6. Which line is higher at x = 0, and which is higher at x = 4?
Show answer
At x = 0, p gives -2 and q gives 6, so q is higher. At x = 4, p gives 3(4) - 2 = 10 and q gives -4 + 6 = 2, so p is higher. The lines cross at x = 2, where both have y = 4, and p has the larger slope, so it is above q to the right of that point.
Exercise
Line k has equation 5x + 2y = 0. Explain why the intercept method gives only one point, and then give a second point that lies on k.
Show answer
Setting x = 0 gives y = 0, and setting y = 0 gives x = 0, so both intercepts are the origin (0, 0). Choose another x, such as x = 2: 10 + 2y = 0, so y = -5. The point (2, -5) lies on k. The slope is -5/2, so k crosses Quadrants II and IV.