Line Equation from Two Points
Find the slope-intercept equation through two points.
Build the equation of the line through two points.
The math behind it
slope m = (y₂−y₁)/(x₂−x₁); intercept b = y₁ − m·x₁; equation y = mx + b.
Worked example
(1,2) & (3,6) → y = 2x + 0.
FAQ
Vertical line?
Slope is undefined; the equation is x = constant.