To graph y=mx+b, plot the y-intercept (0,b), then use the slope as rise over run to find a second point. For m=23, move right 2 and up 3. Draw the line through both points.
The x-intercept is where y=0. For 2x+5y=10, setting y=0 gives x=5, and setting x=0 gives y=2. Plot (5,0) and (0,2) and connect them.
Two special lines show up often. A horizontal line like y=4 has slope 0 and is a constant function. A vertical line like x=4 has undefined slope, because the run is 0 and you can't divide by 0. A vertical line fails the vertical line test, so it is not a function.
A system of two linear equations asks where two lines meet. The lines can cross once (one solution), be parallel (no solution), or be the same line (infinitely many solutions). You can solve by graphing, substitution, or elimination.
Worked example. Solve y=2x+1 and y=−x+7. Both equal y, so set them equal. 2x+1=−x+7 gives 3x=6, so x=2. Then y=2(2)+1=5. The lines cross at (2,5).
- x-intercept: A point where a graph intersects the x-axis, found by setting y=0y = 0y=0 and solving for xxx.
- Undefined slope: The slope of a vertical line, which has zero run and so cannot be calculated.
- Inconsistent system: A system with no solution, which happens when the two lines are parallel.
Check yourself: How many solutions does the system y=3x−2 and y=3x+5 have? (Answer: None. The slopes are equal and the intercepts are different, so the lines are parallel and never meet.)
| What the lines look like | Slopes and intercepts for nonvertical lines | Number of solutions |
|---|
| Cross at one point | Different slopes | One |
| Parallel | Same slope, different intercepts | None |
| Same line | Same slope, same intercept | Infinitely many |