To find the equation of the line, parallel to the line y=-ax+b, that passes through the point (-1,2), you have to keep in mind that the slope of two parallel lines is equal.
The slope of the known line is the coefficient of the x-term. in this case, the slope is equal to "-a"
Once you have determined the slope of the line, you can use the point-slope form to find the equation of the line:
Where
m is the slope of the line
(x₁,y₁) are the coordinates of one point of the line:
The coordinates of the point of the line are x₁= -1 and y₁= 2 and the slope is m=-a, so that:
So, the equation of the line, parallel to y=-ax+b, passes through the point (-1,2) is y-2=-a(x+1)