How to Find the Equation of a Line with Two Points

To find the equation of a line given two points, you can follow these steps:

  1. Identify the Points: Assume you have two points, (x1, y1) and (x2, y2).
  2. Calculate the Slope: The slope (m) of the line through these two points can be calculated using the formula:
  3. m = (y2 – y1) / (x2 – x1)

  4. Use the Point-Slope Form: With the slope calculated, you can use the point-slope form of the equation of a line:
  5. y – y1 = m(x – x1)

  6. Simplify to Slope-Intercept Form: If desired, you can rearrange the equation to obtain the slope-intercept form (y = mx + b) by solving for y.

For example, if your points are (1, 2) and (3, 4):

  1. Calculate the slope:
  2. m = (4 – 2) / (3 – 1) = 2 / 2 = 1

  3. Use the point-slope form using point (1, 2):
  4. y – 2 = 1(x – 1)

  5. Simplify to:
  6. y = x + 1

This is the equation of the line that passes through the two points.

More Related Questions