Use the slope formula
with and
Then use the point-slope form:
Don't substitute anything for x or y, but only for m, x1 and y1.
Then simplify until you get it down to the slope-intercept form:
Edwin
your two points are (2,5) and (-3,-1)
let (2,5) be (x1,y1)
let (-3,-1) be (x2,y2)
slope is equal to (y2-y1)/(x2-x1) = (-1-5)/(-3-2) = -6/-5 = 6/5.
straight line equation becomes y = 6/5 * x + b
to find the value of b, replace x and y with the value from one of the points and solve.
i chose (2,5)
y = 6/5 * x + b becomes 5 = 6/5 * 2 + b which becomes 5 = 2.4 + b.
solve for b to get b = 5 - 2.4 = 2.6.
the value of b is 2.6 and the equation becomes:
y = 6/5 * x + 2.6
since 6/5 = 1.2, the equation can also be shown as y = 1.2 * x + 2.6
replacing x with 2 gets y = 5
replacing x with -3 gets y = -1
this confirms the points are on the line.
a graph of the equation shows the same, as shown below.
In my experience, I have seen many students plug numbers into the formula for finding the slope and getting the numbers in the wrong places, which of course leads to wrong answers to the problems.
I strongly encourage students to have a mental picture of the two given points and calculate the slope using the "rise over run" definition.
It's simpler if you always move left to right (in the positive direction). So given the two points (2,5) and (-3,-1) I would picture starting at (-3,-1) and moving to (2,5).
In moving from (-3,-1) to (2,5), I move 5 units in the positive x direction; in doing so I move from -1 to 5, a difference of 6, in the y direction. Then "rise over run" gives me 6/5 -- and I don't need to worry if I got all the numbers in the right places in a formula.
Once you have the slope of 6/5, there are many ways to get to the equation of the line. For me, the easiest is to use the slope-intercept form of a linear equation "y=mx+b" with one of the given (x,y) points to find b.
y = mx+b
5 = (6/5)(2)+b
5 = 12/5+b
b = 5-12/5 = 25/5-12/5 = 13/5