how to find slope with two points
To find the slope with two points, you use a simple formula and plug in the coordinates.
Step 1: Know the slope formula
If your two points are
(x1,y1)(x_1,y_1)(x1β,y1β) and (x2,y2)(x_2,y_2)(x2β,y2β),
then the slope mmm is
m=y2βy1x2βx1m=\frac{y_2-y_1}{x_2-x_1}m=x2ββx1βy2ββy1ββ
This is often described as βrise over runβ: change in y divided by change in x.
Step 2: Label your points
Take your actual points and label them consistently. Example: Suppose your two points are (1,β2)(1,-2)(1,β2) and (3,β6)(3,-6)(3,β6).
- Let (x1,y1)=(1,β2)(x_1,y_1)=(1,-2)(x1β,y1β)=(1,β2)
- Let (x2,y2)=(3,β6)(x_2,y_2)=(3,-6)(x2β,y2β)=(3,β6)
You could swap them (make the first one point 2 and the second one point 1) and youβd still get the same slope as long as you stay consistent in the formula.
Step 3: Plug into the formula
Using the example (1,β2)(1,-2)(1,β2) and (3,β6)(3,-6)(3,β6):
m=y2βy1x2βx1=β6β(β2)3β1=β6+22=β42=β2m=\frac{y_2-y_1}{x_2-x_1} =\frac{-6-(-2)}{3-1} =\frac{-6+2}{2} =\frac{-4}{2} =-2m=x2ββx1βy2ββy1ββ=3β1β6β(β2)β=2β6+2β=2β4β=β2
So the slope is β2-2β2.
Step 4: Important tips and special cases
- It doesnβt matter which point is βpoint 1β and which is βpoint 2β as long as you use them in the same order in numerator and denominator.
- If x2βx1=0x_2-x_1=0x2ββx1β=0, then you are dividing by zero, which means the line is vertical and the slope is undefined.
- You may also see the equivalent form y1βy2x1βx2\frac{y_1-y_2}{x_1-x_2}x1ββx2βy1ββy2ββ; it gives the same answer because youβre multiplying top and bottom by β1-1β1.
Quick mini story to remember it
Imagine walking up or down a hill between two spots on a hiking trail.
- The change in height (up or down) is your rise (y2βy1y_2-y_1y2ββy1β).
- The distance forward along the trail is your run (x2βx1x_2-x_1x2ββx1β).
Slope is just βhow steep that hill feelsβ = rise Γ· run.
Very short version (TL;DR)
- Label your points (x1,y1)(x_1,y_1)(x1β,y1β), (x2,y2)(x_2,y_2)(x2β,y2β).
- Compute m=y2βy1x2βx1m=\dfrac{y_2-y_1}{x_2-x_1}m=x2ββx1βy2ββy1ββ.
- Simplify the fraction; if the denominator is 0, the slope is undefined.
Information gathered from public forums or data available on the internet and portrayed here.