Given the equation of a line, you can graph it either by plotting points generated by the equation or by using the slope and intercept found in the equation.
A linear equation is the equation for a line.
The equation for a line has only constants, and either x and/or y multiplied only by constants.
The equation for the line is given to us; we will learn how to derive that later.
We will look at two ways to graph a line: by points and by "slope intercept".
| Graphing a Line by Points |
|---|
| 1. Solve the equation for y. |
2. Find 3 solution points by plugging in values for x.
|
| 3. Plot the 3 points on a graph and draw a line connecting them. |
Example: graph y = 2x + 1.
| x | y |
|---|---|
| -1 | y = 2(-1) + 1 = -2 + 1 = -1 |
| 0 | y = 2(0) + 1 = 0 + 1 = 1 |
| 1 | y = 2(1) + 1 = 2 + 1 = 3 |
Example: graph 2x + 3y = -12.
| x | y |
|---|---|
| -3 | y = -(2/3)(-3) - 4 = 2 - 4 = -2 |
| 0 | y = -(2/3)(0) - 4 = 0 - 4 = -4 |
| 3 | y = -(2/3)(3) - 4 = -2 - 4 = -6 |
| Graphing a Line Using Slope Intercept Form |
|---|
| 1. Solve the equation for y. |
2. Determine slope and y intercept.
|
| 3. Plot b on the y axis (not the x axis). |
| 4. Starting from b, use rise over run (slope) to find another point on the line. |
| 5. Draw a line connecting the two points. |
Example: graph 3y - 2x + 4 = 0.
| y = (2/3)x - 4 |
| y = mx + b |
Special case: horizontal lines have the form y = b.
Special case: vertical lines have the form x = a.