Sub topic 8
Graphing Lines and Reading Graphs
Assume you can plot ordered pairs, simplify fractions, solve linear equations, and use slope-intercept form, \(y=mx+b\). In this chapter, you will connect an equation to its graph and extract information from a graph.
Graphing a Line from an Equation
A linear equation makes a straight-line graph. The form
\[ y=mx+b \]
shows two important features:
- \(m\) is the slope, or the change in \(y\) for each change in \(x\).
- \(b\) is the \(y\)-intercept, the point where the line crosses the \(y\)-axis.
To graph \(y=2x-3\):
- Plot the \(y\)-intercept, \((0,-3)\).
- Use the slope \(2=\frac{2}{1}\). Move up 2 units and right 1 unit.
- Plot \((1,-1)\), then \((2,1)\).
- Draw a straight line through the points and extend it in both directions.
A negative slope moves downward as you move from left to right. For example, a slope of \(-\frac{1}{2}\) means move down 1 unit and right 2 units.
def points_on_line(m, b, x_values):
return [(x, m * x + b) for x in x_values]
print(points_on_line(2, -3, [-1, 0, 1, 2]))
# [(-1, -5), (0, -3), (1, -1), (2, 1)]Reading Information from a Graph
A graph can reveal an equation's key values.
- The \(y\)-intercept is the \(y\)-value when \(x=0\).
- The \(x\)-intercept is the \(x\)-value when \(y=0\).
- The slope can be found using two points:
\[ m=\frac{y2-y1}{x2-x1}. \]
- The line rises from left to right when its slope is positive.
- The line falls from left to right when its slope is negative.
- A steeper line has a greater absolute value of slope.
For example, suppose a graph passes through \((2,1)\) and \((6,9)\). Its slope is
\[ m=\frac{9-1}{6-2}=\frac{8}{4}=2. \]
Use either point to find the intercept:
\[ 1=2(2)+b, \qquad b=-3. \]
Therefore, the equation is \(y=2x-3\).
Common Graphing Errors
A frequent error is reversing the slope formula. Subtract the \(y\)-coordinates in the same order as the \(x\)-coordinates. Either
\[ \frac{y2-y1}{x2-x1} \]
or
\[ \frac{y1-y2}{x1-x2} \]
works, but mixing the orders changes the sign.
Another error is confusing the intercepts. The \(y\)-intercept has \(x=0\), while the \(x\)-intercept has \(y=0\). To find an intercept algebraically, set the other variable equal to zero.
A graph may not show exact intercepts or labeled points. Use the grid carefully and select points where the line crosses grid intersections. On the GRE, you may also use the answer choices or estimate the slope when an exact value is unnecessary.
Exercise
A line passes through (0, 4) and (3, 10). What is its equation?
Show answer
Its slope is (10 - 4) / (3 - 0) = 2, and its y-intercept is 4. Therefore, the equation is y = 2x + 4.