Worked solution: find the equation of the line through (1,2) and (3,8)
Step-by-step working for this straight line and coordinate geometry problem, produced and checked by the solver.
Coordinates Answer checked
Answer
- Gradient = change in y change in x
- Substitute
- Use and substitute one point to find c
- Write the equation
- Check with the other point
Change the numbers and solve your own
The method in brief
- Gradient m = (y2 - y1) ÷ (x2 - x1): rise over run.
- Put the gradient and one point into y - y1 = m(x - x1), then tidy to y = mx + c.
- Midpoint = ((x1 + x2) ÷ 2, (y1 + y2) ÷ 2).
- Distance = √((x2 - x1)² + (y2 - y1)²), which is Pythagoras on the two differences.
Full guide: Straight lines and coordinates.