Step-by-step solved example
A line passes through (1, 2) and (4, 8). Find the slope, the distance, and a perpendicular slope.
1. Slope
m = (8 − 2)/(4 − 1) = 6/3 = 2. Point-slope: y − 2 = 2(x − 1), so y = 2x.
2. Distance
d = √[(8−2)² + (4−1)²] = √(36+9) = √45 = 6.708… → 6.71.
3. Perpendicular
A perpendicular slope is −1/m = −1/2. The lines meet at 90°, which is not the same as slope 2.
Answer: m = 2, d = 6.71, perpendicular slope = −1/2