For vertical lines, slope is undefined—this form cannot be used.
Exam strategy
If given two points, calculate slope first and then substitute to find intercept.
Sketch by plotting the intercept and using the slope to find another point.
Summary
The slope–intercept equation \(y=mx+c\) is the most direct way to describe a line: \(m\) controls its steepness, and \(c\) tells where it crosses the y-axis.
Worked examples
Show / hide (10) — toggle with E
Write equation of line with slope 3 and y-intercept -2.
\( Equation: y=mx+c \)
\( m=3, c=-2 \)
\( y=3x-2 \)
Answer:
\( y=3x-2 \)
Line crosses y-axis at 5 and has slope -1. Write equation.
\( y=mx+c \)
\( m=-1, c=5 \)
\( y=-x+5 \)
Answer:
\( y=-x+5 \)
Find line with slope ½ and y-intercept 4.
\( y=mx+c \)
\( m=½, c=4 \)
\( y=½x+4 \)
Answer:
\( y=½x+4 \)
Equation of horizontal line with y-intercept 7.
\( Slope m=0 \)
\( y=c=7 \)
Answer:
\( y=7 \)
Line has slope -3 and intercept 2. Write equation.
\( y=mx+c \)
\( y=-3x+2 \)
Answer:
\( y=-3x+2 \)
Find line with slope 4 and y-intercept -5.
\( y=mx+c \)
\( m=4, c=-5 \)
\( y=4x-5 \)
Answer:
\( y=4x-5 \)
Equation of line slope -2.5 with y-intercept 6.
\( y=mx+c \)
\( m=-2.5, c=6 \)
\( y=-2.5x+6 \)
Answer:
\( y=-2.5x+6 \)
Line has slope ⅓ and intercept -4. Write equation.
\( y=mx+c \)
\( m=⅓, c=-4 \)
\( y=⅓x-4 \)
Answer:
\( y=⅓x-4 \)
Write equation of line slope -7 and y-intercept 0.