Show solutionHide solution
Let the line pass through the two points \((x_1,y_1)\) and \((h,k)\), and let its slope be \(m\).
By the definition of the slope of a line through two distinct points,
\[m=\frac{\text{change in }y}{\text{change in }x}=\frac{k-y_1}{h-x_1},\]provided \(h\ne x_1\) (so the line is not vertical).
Multiplying both sides by \(h-x_1\) gives
\[k-y_1=m(h-x_1).\]This is exactly the required result. It is the point-slope form of the equation of the line: the slope \(m\) equals the rise \(k-y_1\) divided by the run \(h-x_1\).
Note on the vertical case: If \(h=x_1\), the denominator is zero and the slope is undefined, so the formula does not apply; in that case the line is vertical with equation \(x=x_1\).