Gradient and length between two points
Question: is and is . Find the length of and the gradient of .
Step 1. Compute the run and the rise once, and reuse them:
Step 2. Length — Pythagoras on the differences:
Step 3. Gradient — rise over run, keeping the coordinates in the same order top and bottom:
Step 4. Read the sign: a negative gradient means the line slopes downwards from left to right — consistent with being lower and to the right of . ✓
The same two numbers (run and rise) power both formulas — compute them once, use them twice.
⚠ Watch out: In the gradient, subtract in the same order in numerator and denominator ( over ); mixing orders flips the sign. In the length, the squares erase the minus signs — a distance can never be negative, and , not .