Answer:
The function that gives all the points on the line is y = 1-0.5x
Explanation:
To calculate the function, we need to give the equation of the straight line that joins the two points.
mathematically, we can represent the equation of a straight line as;
y = mx + c
where m is the slope and c is the y-intercept
Let’s first calculate the slope using the two points we have
mathematically
m = (y2-y1)/(x2-x1)
where (x1,y1) = (2,0) and (x2,y2) = (-2,2)
Plugging these values into the equation we have;
y = (2-0)/(-2-2) = 2/(-4) = -1/2 or simply -0.5
Now we need to get c
The equation in its current state is
y = -0.5x + c
we can use any of the points to get c.
Let’s use (2,0); here x = 2 and y = 0
0 = -0.5(2) + c
0 = -1 + c
c = 1
Thus our equation is;
y = -0.5x + 1
or simply
y = 1-0.5x