How to find the equation of a line when given two points?
Straight lines are a very important topic one must understand in order to do well in coordinate geometry. They are used to graphically represent linear equations and fin their applications in various fields related to engineering and science. For understanding them, we first need to understand how an equation is represented by a straight line.
Answer: If two points: (x1, y1) and (x2, y2) are given, then the equation of the line having these two points is: y - y1 = m (x - x1); where m = (y2 - y1)/(x2 - x1)
Let's have a look at the explanation of the problem.
Let's assume the two points to be (x1, y1) and (x2, y2).
To find the equation of a given straight line, we first need to know its slope.
Hence, we know that slope is given by perpendicular/base.
Therefore, slope (m) = (y2 - y1) / (x2 - x1).-------( 1)
After that, we use the point-slope form to arrive at the final solution.
Therefore, using y - y1 = m (x - x1), we get: y - y1 = (y2 - y1)(x - x1) / (x2 - x1). [ from equation 1 ]