how to find slope from two points
To find the slope from two points, use the slope formula and plug in the coordinates of the points.
Slope formula (the key idea)
If you have two points on a line, (x1,y1)(x_1,y_1)(x1β,y1β) and (x2,y2)(x_2,y_2)(x2β,y2β), 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 yyy divided by change in xxx).
Stepβbyβstep method
- Label your points
- First point β (x1,y1)(x_1,y_1)(x1β,y1β)
- Second point β (x2,y2)(x_2,y_2)(x2β,y2β)
It doesnβt matter which you call β1β or β2β as long as you stay consistent (top and bottom use the same order).
- Find the change in y (rise)
- Compute y2βy1y_2-y_1y2ββy1β.
- Find the change in x (run)
- Compute x2βx1x_2-x_1x2ββx1β.
- Divide rise by run
- m=y2βy1x2βx1m=\dfrac{y_2-y_1}{x_2-x_1}m=x2ββx1βy2ββy1ββ.
- Simplify the fraction
- Reduce the fraction if possible. A negative sign can go in the numerator, denominator, or in front of the whole fraction (they all mean the same slope).
Concrete example
Say the line goes through (1,β2)(1,-2)(1,β2) and (3,β6)(3,-6)(3,β6).
- Label:
- (x1,y1)=(1,β2)(x_1,y_1)=(1,-2)(x1β,y1β)=(1,β2)
- (x2,y2)=(3,β6)(x_2,y_2)=(3,-6)(x2β,y2β)=(3,β6)
- Compute rise:
- y2βy1=β6β(β2)=β6+2=β4y_2-y_1=-6-(-2)=-6+2=-4y2ββy1β=β6β(β2)=β6+2=β4
- Compute run:
- x2βx1=3β1=2x_2-x_1=3-1=2x2ββx1β=3β1=2
- Divide:
- m=β42=β2m=\dfrac{-4}{2}=-2m=2β4β=β2
So the slope of the line through those two points is β2-2β2.
Handy HTML table of quick facts
Hereβs a small HTML table summarizing the core ideas:
html
<table>
<tr>
<th>Concept</th>
<th>Details</th>
</tr>
<tr>
<td>Slope formula</td>
<td>m = (yβ - yβ) / (xβ - xβ) [web:1][web:3]</td>
</tr>
<tr>
<td>Meaning of slope</td>
<td>βRise over runβ: change in y divided by change in x [web:3]</td>
</tr>
<tr>
<td>Point labeling</td>
<td>You can swap which point is 1 or 2, as long as you stay consistent in numerator and denominator [web:1][web:3]</td>
</tr>
<tr>
<td>Zero slope</td>
<td>If yβ = yβ, the slope is 0 (horizontal line) [web:3]</td>
</tr>
<tr>
<td>Undefined slope</td>
<td>If xβ = xβ, denominator is 0 and slope is undefined (vertical line) [web:3][web:10]</td>
</tr>
</table>
Tiny story to remember it
Imagine youβre hiking from one campsite to another on a straight trail.
- The x-coordinate is how far youβve walked forward.
- The y-coordinate is how high above sea level you are.
If your second campsite is higher than the first, the βriseβ
y2βy1y_2-y_1y2ββy1β is positive, and the slope is positive: youβve been
climbing.
If itβs lower, the rise is negative, and the slope is negative: youβve been
going downhill.
TL;DR:
Label the points (x1,y1)(x_1,y_1)(x1β,y1β) and (x2,y2)(x_2,y_2)(x2β,y2β), then
compute m=y2βy1x2βx1m=\dfrac{y_2-y_1}{x_2-x_1}m=x2ββx1βy2ββy1ββ, simplify, and
thatβs your slope.
Information gathered from public forums or data available on the internet and portrayed here.