The formula for finding the equation of a line given the point and slope is:
• y - y1 = m (x - x1)
Where,
• (x1,y1) is the coordinate point given
,
• m is the slope
,
• (x, y) other point on the line
And all what you have to do is replace the variables by the values given.
Let's work on an example:
Find the equation of the straight line that has slope m = 4 and passes through the point (–1, –6)
Using the formula, we have:
y - (-6) = 4 (x - (-1))
y + 6 = 4 (x + 1)
y + 6 = 4x + 4
y = 4x + 4 -6
y = 4x - 2