Step by step
The question
Question: find the equation of the line through (1, 1) and (1, 4).
Every line that is not straight up and down is y = mx + b.
m is the slope.
b is where the line crosses the y-axis: where we start.
So we need m and b.
1 Find the slope
We call the slope m.
m = rise over run.
The top is the change in y: second y minus first y.
The bottom is the change in x: second x minus first x.
Put the numbers in.
The second point is (1, 4).
The first point is (1, 1).
4 minus 1 is 3.
1 minus 1 is 0.
The bottom is 0.
We cannot divide by 0.
So there is no number for the slope.
We say the slope is undefined.
A straight up and down line is not y = mx + b.
Every point on it has x = 1.
So the line is x = 1.