Answer:
The correct option is D.
Explanation:
If a line passing through two points, then the equation of line is

From the given graph it is clear that the line is passing through the points (-1,2) and (0,-1), so the equation of line is





The correct formula for the function is y=-3x-1, therefore the correct option is D.