So, the slope is in fact a change in y divided by a change in x:
To get this change, we can choose two points in the line.
In this case, we can pick the points marked, (0, -5) and (3, -1).
The change in y will be the difference between the y values. It is important to use the points in the same order to calculate the change in y and in x. so let's denote:
Point 1 - (0, -5)
Point 2 - (3, -1)
Let's see the difference from Point 1 to Point 2:
So, the slope is:
The y-intercept is the y-value in which the line intersects the y-axis, the vertical one. We can see that this happens at exaclty the point (0, -5), so the y-intercept is y = -5.
The line equation in the slope-intercept form is:
Where m is the slope and b is the y-intercept. We already saw that:
So, the equation is: