Answer:
[tex]y = mx+b[/tex]
[tex] m =\frac{y_2 -y_2}{x_2 -x_1}[/tex]
[tex] b = y_1 -m x_1[/tex]
Or equivalently:
[tex] b = y_2 - m x_2[/tex]
Step-by-step explanation:
If we are assuming that we have:
x independent variable
y dependent variable
And we want to find an equation of the line, we have the following general expression:
[tex]y = mx+b[/tex]
Where m represent the slope and b the y intercept. The general formula for the slope is given by:
[tex] m =\frac{y_2 -y_2}{x_2 -x_1}[/tex]
Where [tex] (x_1,y_1) , (x_2,y_2)[/tex] are the minimum required points in order to estimate the slope.
In order to find the y intercept we just need to use one of the points selected [tex] (x_1,y_1) , (x_2,y_2)[/tex] and we can solve for b like this:
[tex] b = y_1 -m x_1[/tex]
Or equivalently:
[tex] b = y_2 - m x_2[/tex]