We should find the slope and the y-intercept and for this we have a special form, the .
y=mx+b,
In the above equation, m represents the and b the of the line. Let's rewrite our equation a little bit so that it more closely resembles this form. It will make it easier to identify the slope and intercept.
y=21⇔y=0x+21
We see above that the slope is 0 and the y-intercept is 21.
Since we know two points on the line, we can use the to find its slope.
m=x2−x1y2−y1
We are given the points (-2,2) and (-6,2). Note that, when substituting these values into the slope formula, it doesn't matter which point we choose to use as (x1,y1) or (x2,y2), both will give the same result.
m=-2−(-6)2−2orm=-6−(-2)-2−2
Here, we will use the points in the given order and solve for m.
m=x2−x1y2−y1
m=-2−(-6)2−2
m=0
The slope of the line that passes through the given points is 0. This means that as x increases, y neither increases nor decreases. The graph will be a and has the same y-value for all points. Thus, the y-intercept will be at y=2.