173k views
3 votes
Let the independent and dependent variables of a line be x and y, respectively. Find the equation of the line with the given description.

User Adam Brown
by
4.2k points

1 Answer

3 votes

Answer:


y = mx+b


m =(y_2 -y_2)/(x_2 -x_1)


b = y_1 -m x_1

Or equivalently:


b = y_2 - m x_2

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:


y = mx+b

Where m represent the slope and b the y intercept. The general formula for the slope is given by:


m =(y_2 -y_2)/(x_2 -x_1)

Where
(x_1,y_1) , (x_2,y_2) 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
(x_1,y_1) , (x_2,y_2) and we can solve for b like this:


b = y_1 -m x_1

Or equivalently:


b = y_2 - m x_2

User Ramy Kfoury
by
3.9k points