Question
Question: equation of line connecteing two given points...
equation of line connecteing two given points
The equation of the line connecting two given points (x1,y1) and (x2,y2) is:
y−y1=x2−x1y2−y1(x−x1)
(This is valid when x1=x2. If x1=x2, the equation is x=x1.)
Solution
To find the equation of a line connecting two given points, say (x1,y1) and (x2,y2), follow these steps:
-
Calculate the slope (m) of the line. The slope is given by the formula: m=x2−x1y2−y1 This formula is applicable when x1=x2.
-
Use the point-slope form of the equation of a line. The equation of a line with slope m passing through a point (x1,y1) is: y−y1=m(x−x1)
-
Substitute the expression for m from step 1 into the point-slope form from step 2. This gives the two-point form of the equation of a line: y−y1=x2−x1y2−y1(x−x1) This equation can be rearranged into various standard forms (e.g., Ax+By+C=0).
Special Case: If x1=x2, the line is a vertical line. In this case, the slope is undefined, and the equation of the line is simply x=x1 (or x=x2).