Answer:
[tex]y=-3x-1[/tex]
Step-by-step explanation:
we know that
The equation of a line in slope intercept form is
[tex]y=mx+b[/tex]
where
m is the slope
b is the y-intercept
we have the points
(-1,2) and (1,-4)
step 1
Find the slope m
The formula to calculate the slope between two points is equal to
[tex]m=\frac{y2-y1}{x2-x1}[/tex]
substitute the values
[tex]m=\frac{-4-2}{1+1}[/tex]
[tex]m=\frac{-6}{2}[/tex]
[tex]m=-3[/tex]
step 2
Find the y-intercept b
we have
[tex]m=-3[/tex]
point (-1,2)
substitute
[tex]y=mx+b[/tex]
[tex]2=-3(-1)+b[/tex]
solve for b
[tex]2=3+b[/tex]
[tex]b=-1[/tex]
The equation of the line is
[tex]y=-3x-1[/tex]