Property
The slope of the line joining points P1(x1,y1) and P2(x2,y2) is
m=x2−x1y2−y1ifx2=x1 Examples
- To find the slope of the line through (1,2) and (4,8), we let (x1,y1)=(1,2) and (x2,y2)=(4,8). The slope is m=4−18−2=36=2.
- The slope of the line containing points (−2,5) and (3,−5) is calculated as m=3−(−2)−5−5=5−10=−2.
- For the points (5,−3) and (−1,−1), the slope is m=−1−5−1−(−3)=−62=−31. It doesn't matter which point you choose as first or second.
Explanation
This formula is a precise way to calculate 'rise over run.' It finds the vertical change (the 'rise,' y2−y1) and divides it by the horizontal change (the 'run,' x2−x1) between any two points on a line.