Answer:
y = -4x + 1
Explanation:
We find the equation of a line passing through two given points using the generalized slope-intercept which is
y = mx + b
m is the slope(gradient) of the line and b is the y-intercept i.e. the y-value where it crosses the y-axis. This is nothing but the value of y when x 0
Start by finding the slope first
Slope, m = (y2-y1)/(x2-x1)
Taking(x1, y1) as (-1, 5) and (x2, y2) as (2, -7)
we get
y2 - y1 = -7 -5 = -12
x2 - x1 = 2 - (-1) = 1 2 + 1 = 3
m = -12/3 = -4
Equation would be
y = -4x + b
To find b, choose a known value for x and its corresponding y value and solve for b
Let's take (-1, 5)
Subbing this into the equation gives
5 = (-4)(-1) + b
5 = 4 + b
or b = 1
So the equation of the line in slope-intercept form is
y = -4x + 1