Nathan F. answered 01/09/23
Engineering Student Specializing in Applied Mathematics
First, let's visualize what this question is asking...
We want to know an equation that represents a line from the following two points on a graph: (2,3) and (-2,5).
When talking about a line, there are two properties that we care about: slope (relationship between x and y) and y-intercept (the value of y when x equals 0).
First, let's find the slope. Slope is the relationship between x and y. What happens each time you add an x? Slope between two points is determined by the change in y divided by change in x.
The change in y can be calculated by subtracting 3 from 5
5 - 3 = 2
The change in x can be calculated by subtracting 2 from -2.
-2 - 2 = -4
Divide the change in y by the change in x to find slope.
2 / -4 = -1/2
*You can think of -1/2 as "for every increase in x, y will change by -1/2 "
Now let's find the y intercept using a trick... we know that the y intercept of an equation is the y value when x equals 0, right? And now we know the slope: -1/2.
Slope = change in y / change in x
-1/2 = (3 - yint) / (2 - 0)
Above, we compared the known point (2,3) with the y-intercept (x equals zero).
Let's use some algebra to isolate our unknown (yint)
(-1/2)*(2 - 0) = 3 - yint
-1 - 3 = -yint
-1*(-4) = yint
yint = 4
GREAT! Now we know the two components of the line: the slope and y intercept.
Let's plug them into our equation y = slope (x) + yintercept
y = -1/2x + 4