Solveeit Logo

Question

Question: equation of line connecteing two given points...

equation of line connecteing two given points

Answer

The equation of the line connecting two given points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is:

yy1=y2y1x2x1(xx1)y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1)

(This is valid when x1x2x_1 \neq x_2. If x1=x2x_1 = x_2, the equation is x=x1x = x_1.)

Explanation

Solution

To find the equation of a line connecting two given points, say (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2), follow these steps:

  1. Calculate the slope (m) of the line. The slope is given by the formula: m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1} This formula is applicable when x1x2x_1 \neq x_2.

  2. Use the point-slope form of the equation of a line. The equation of a line with slope mm passing through a point (x1,y1)(x_1, y_1) is: yy1=m(xx1)y - y_1 = m(x - x_1)

  3. Substitute the expression for mm from step 1 into the point-slope form from step 2. This gives the two-point form of the equation of a line: yy1=y2y1x2x1(xx1)y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1) This equation can be rearranged into various standard forms (e.g., Ax+By+C=0Ax + By + C = 0).

Special Case: If x1=x2x_1 = x_2, the line is a vertical line. In this case, the slope is undefined, and the equation of the line is simply x=x1x = x_1 (or x=x2x = x_2).