Where x=-1:
Y= (-1)^2 - 4(-1)
Y= 1 - -4
Y= 5
Where x=-2:
Y= (-2)^2 - 4(-2)
Y= 4 - - 8
Y= 12
Now we calculate the gradient/slope:
m= y2-y1/x2-x1
m= (12 - 5)/(-2 - -1)
m= 7/-1
Finally, the y-intercept:
y= -7x + c
Using any of the known points from earlier (-1,5) or (-2,12)
5= -7(-1) + c
5 -7 = (7 - 7) + c
-2 = c
The equation is y = -7x - 2