Question
Question: How do you write an equation in slope intercept form given two points?...
How do you write an equation in slope intercept form given two points?
Solution
We first find the slope-intercept form for any point P(x,y) and also find the equation of the line. In this case we actually take the help of the origin where O(0,0). Then we take two arbitrary points and place them on the equation of the line and find the value of the slope and its equation.
Complete step-by-step solution:
We need to find the equation of the line which is inclined at a given angle with the positive direction of the axis of x and cuts off a given intercept from the axis of y.
Suppose the line AB intersects the X-axis at D and the y-axis at C. if the line makes an angle α with the positive direction of X-axis and OC=c. We have to find the equation of the line AB.
Let P(x,y) be any point on the line AB. We draw perpendicular PM on OX and CE perpendicular on PM. Since, CE∣∣DM, we have ∠PCE=∠CDM=α.
We also have PM=y;OC=c;CE=OM=x.
Then we have PE=PM−EM=PM−OC=y−c.
Therefore, from the right-angled ΔPCE, we get tanα=CEPE=xy−c.
We assume that the slope is m where m=tanα which gives m=tanα=xy−c.
The equation becomes y=mx+c.
Now if two points are given of the line where P(x,y) and Q(x1,y1), the only change happens in the slope. For the above problem we took the second point as the origin.
Now both P(x,y) and Q(x1,y1) goes through y=mx+c.
This gives y=mx+c and y1=mx1+c. Subtracting we get y−y1=mx−mx1=m(x−x1).
The value of m becomes m=(x−x1)(y−y1). The equation becomes (y−y1)=m(x−x1).
Note: We could have used the same process where we replace the origin value O(0,0) with the point Q(x1,y1). The shifting of the origin will be sufficed to do that.