Algebra Basics: Slope And Distance - Math Antics - YouTube

Channel: unknown

[6]
Hi, I’m Rob. Welcome to Math Antics!
[9]
In our video about Basic Linear Functions,
[11]
we learned that the equation y = mx + b can be used
[15]
to represent any linear function on the 2D coordinate plane.
[19]
In this video, we’re going to dive a little deeper and learn two new equations:
[23]
one for calculating the slope of any line,
[26]
and the other for calculating the distance between any two points on a line.
[30]
To do that, the first thing we need is two points.
[36]
Yeah! Two points!!
[38]
Uh actually, I meant two points on the coordinate plane, but nice shot anyway.
[43]
We’re gonna name these points “Point 1” and “Point 2”
[47]
As you know from Geometry, a line can be defined by any two points.
[51]
All you need to do is “connect the dots” to get a line segment.
[55]
And you can get the infinite line by extending that line segment in either direction.
[59]
Our goal in this video is to learn how to find the slope of a line segment like this
[64]
and to calculate the distance between its two endpoints.
[67]
The key to accomplishing those goals is to realize that you can use any line segment to make a right triangle.
[73]
To do that, start from the point that is the highest on the coordinate plane
[77]
and draw a vertical line straight down towards the bottom of the coordinate plane.
[81]
Next, move to the other point and draw a horizontal line until it intersects the vertical line you just drew.
[87]
See
 now you have a right triangle.
[90]
The vertical and horizontal sides of the right triangle
[93]
are perpendicular to each other so they form a right angle.
[96]
And the original diagonal line segment is now the hypotenuse of the new triangle.
[102]
Temporarily, we’re going to call the horizontal side of the triangle “change in x”
[106]
and the vertical side “change in y”, which are awkwardly long names,
[110]
but that’s exactly what the two sides represent.
[113]
Imagine starting at Point 1 and then slowly moving along our line segment towards Point 2.
[119]
As you do that, the X and Y coordinates that you’re located at are changing, right?
[124]
Your X- coordinate is changing because you’re traveling to the right,
[127]
and your Y-coordinate is changing because you’re traveling up.
[131]
And when you finally get to Point 2,
[132]
the total change in your X-coordinate would be the length of the horizontal side of the triangle,
[138]
and the total change in your Y-coordinate would be the length of the vertical side of the triangle.
[143]
That’s cool, but the names “change in X” and ”change in Y” are kinda long.
[148]
Fortunately, mathematicians have a shorter way of saying the same thing.
[152]
They use the greek letter “delta” as an abbreviation for the words “change in”.
[157]
That means you can just write or say “delta X” to mean the “change in X”
[162]
and “delta Y” to mean the “change in Y”.
[165]
Okay, now that we know what those sides represent and we’ve got nice names for them,
[169]
how do we actually calculate the lengths of those sides?
[172]
To do that, we just need the coordinates of the two points that form our line.
[176]
Since we named them Point 1 and Point 2, it makes sense for us
[180]
to call their coordinate values “X1 and Y1” for Point 1 and “X2 and Y2” for Point 2.
[187]
We write the 1s and 2s as subscripts after the variables
[190]
so we don’t mistakenly think it means X times 1 or X times 2.
[194]
The subscript numbers are simply a way of distinguishing the different variables in the problem
[199]
so we can keep track of which is which.
[201]
Anyway, to calculate the (delta X), you need to find the difference between the X-coordinates of the two points.
[208]
In other words, you need to subtract the X-value of the 1st point from the X-value of the 2nd point.
[213]
So (delta X) = X2 − X1
[218]
Likewise, to calculate (delta Y), you need to find the difference between the Y-coordinates of the two points.
[224]
So (delta Y) = Y2 − Y1
[228]
These simple equations for finding (delta X) and (delta Y) are important
[232]
because they’re used in the equations for slope and distance, which is what I want to show you now.
[238]
The equation for the slope of a line looks like this:
[241]
Slope = (delta Y) over (delta X).
[244]
Remember that the fraction line means division, so (delta Y) over (delta X)
[249]
is the same as (delta Y) divided by (delta X).
[253]
You might also see the slope equation written in expanded form like this.
[257]
The only difference is that the (delta X) and (delta Y) have been written out
[261]
to show the subtractions you need to do to get those values from the coordinates.
[265]
Either way you want to write it is fine.
[268]
And some of you may have heard this same equation expressed using different terminology.
[272]
Have you ever heard someone say that “slope = rise over run”?
[276]
“Rise” and “Run” are just different names that are sometimes used to describe the change in Y and the change in X.
[283]
The idea is that if you were to “run” along the line in the X direction,
[287]
you would “rise” by a certain amount while you did that.
[289]
Or would you?
[291]
What if the line has a negative slope?
[292]

which means that as you move in the positive X direction, the Y value decreases instead of increases?
[298]
That would be like going downhill instead of uphill and the word “rise” seems less fitting in that case.
[304]
Because of that, we’ll just use (delta Y) over (delta X) in this video.
[308]
But it’s certainly not wrong to use the terms “rise” and “run”,
[312]
especially if it help you remember the formula.
[314]
But if you do, just remember that the “rise” can also be negative.
[319]
Now that you’ve seen the equation for slope,
[321]
let’s see the equation for calculating the distance between two points on the line.
[325]
Distance equals the square root of [(delta X) squared plus (delta Y) squared].
[331]
Hmmm
 does this equation remind you of anything you may have seen before?
[335]
It certainly reminds me of something I’ve seen before! You stole my theorem!
[340]
Ah
Um
 Hi there Pythagoras. I
 I didn’t steal your theorem.
[344]
I’m just borrowing it so I can calculate some stuff.
[348]
Don’t worry
 I’ll give you credit for it.
[350]
Oh
well
 I guess as long as you give me credit.
[354]
Do you remember how The Pythagorean Theorem tells us the relationship between the three sides of any right triangle?
[361]
That means that if you know the lengths of two of the sides, you can calculate the length of the third side.
[366]
Well, we just saw that if you turn a line segment into a right triangle,
[371]
you can calculate the lengths of two sides which would be (delta X) and (delta Y), right?
[376]
So we can just plug those values into The Pythagorean Theorem.
[380]
You’re used to seeing that theorem in this form: ‘a squared’ + ‘b squared’ = ‘c squared’.
[385]
Since ‘a’ and ‘b’ are the lengths of the horizontal and vertical sides,
[390]
we can plug in (delta X) and (delta Y) instead.
[393]
And instead of ‘c squared’ for the hypotenuse side, let’s use ‘d squared’
[397]
because the length of the hypotenuse equals the “distance” between our two points.
[403]
To solve for ‘d’ (or distance), we take the square root of both sides and we get:
[407]
d = the square root of [(delta X) squared + (delta Y) squared].
[412]
This special form of The Pythagorean Theorem is usually called “The Distance Formula” in Algebra
[418]
because you can use it to find the distance between any two points on the coordinate plane.
[423]
And just like with the Slope Equation, you’ll often see it in expanded form
[427]
where the (delta X) and (delta Y) are written out as the subtractions X2 − X1 and Y2 − Y1.
[435]
Alright, now that we have our equations for slope and distance, let’s see them in action.
[440]
Suppose we’re given two coordinates and we’re asked to find the slope of the line they form,
[444]
and the distance between those points on the coordinate plane.
[447]
The first thing we need to do is name the coordinates since they aren’t named already.
[452]
And even though it’s not really necessary, if you’re like me,
[454]
you might want to draw a little sketch of the problem to help you visualize what’s going on.
[459]
The equations for slope and distance both use (delta X) and (delta Y)
[463]
so let’s calculate those values first.
[466]
(delta X) = X2 − X1,
[470]
and in this problem, X2 = 4 and X1 = -2.
[475]
So (delta X) equals 4 minus -2 which is just 6.
[480]
Next we calculate (delta Y).
[482]
(delta Y) = Y2 − Y1
[485]
and in this problems, Y2 = 3 and Y1 = 0.
[490]
That means (delta Y) = 3 minus 0 which is just 3.
[494]
Great, now we have our (delta X) and (delta Y) values
[498]
and you can confirm that we got them correct by looking at our graph.
[502]
The length of the (delta X) side is 6 units, and the length of the (delta Y) side is 3 units.
[508]
Now let’s plug those delta values into the equations for slope and distance.
[513]
Slope = (delta Y) over (delta X).
[516]
We just found that (delta Y) = 3 and (delta X) = 6,
[520]
so our slope equals 3 over 6, which simplifies to one-half or 0.5
[526]
That was easy, now let’s plug those deltas into our Distance Equation to see how far apart those points are.
[532]
Doing that tells us that the distance = the square root of (‘6 squared’ + ‘3 squared’).
[538]
‘6 squared’ = 36 and ‘3 squared’ = 9.
[542]
36 + 9 = 45,
[545]
so the distance between the points would be the square root of 45.
[549]
You could also simplify the answer to ‘3 root 5’
[552]
or use a calculator to convert it to a decimal which would be 6.708 (rounded to 3 places).
[559]
That wasn’t so bad, was it?
[561]
But let’s try one more example to make sure you’ve got it.
[563]
Again, we’re given two points, but this time they’re already shown on the coordinate plane for us.
[569]
We’ll label this one that’s farthest to the left, Point 1 and the other one Point 2.
[574]
That means this point’s coordinates will be X1 and Y1
[577]
and this point’s coordinates will be X2 and Y2.
[581]
First, we plug those coordinate values in to the delta equations.
[584]
(delta X) = X2 − X1 which is 1 minus -3.
[589]
So (delta X) = 4
[592]
(delta Y) = Y2 − Y1 which is -2 minus 5.
[597]
So (delta Y) = -7
[600]
Again, we see that those delta values agree with the graph
[603]
and the right triangle formed by the line between the two points.
[606]
Or do they?
[607]
One of our deltas is negative, but a length can’t be negative can it?
[611]
Well no, but remember that deltas are really a difference between coordinate values, so they can be negative.
[617]
The lengths of the triangle’s sides are really the Absolute Values of the deltas.
[622]
But the signs of the deltas are important because they help us get the correct slope,
[626]
since a slope can be positive or negative.
[630]
Now that we have our deltas, let’s plug them into our equation for slope.
[634]
Slope = (delta Y) over (delta X) which would be -7 over 4.
[639]
We could just leave the slope like that as an improper fraction.
[642]
But we could also convert it into mixed number form,
[645]
or get the decimal value with a calculator, which is -1.75
[650]
Now that we’ve found the slope,
[651]
let’s find the distance between the points by plugging the deltas we already calculated into that equation.
[656]
That gives us distance = the square root of (‘4 squared’ + ‘negative 7 squared’)
[662]
‘4 squared’ = 16 and ‘negative 7 squared’ = 49.
[666]
That means the distance is the square root of (16 + 49) or the square root of 65.
[673]
That root can’t be simplified, but we can use a calculator to convert it to a decimal if we want to,
[678]
giving us a distance of 8.062 (rounded to three decimal places).
[683]
Alright, so now you know how to calculate the slope of a line if you know any two points along that line.
[689]
You also know how to calculate the distance between any two points on a line using the so called Distance Formula.
[696]
Also known as The Pythagorean Theorem, invented by ME, Pythagoras.
[702]
Ah yes
 thank you for reminding us Pythagoras.
[706]
Remember that the key to success in math is to practice,
[709]
so be sure to try some slope and distance problems on your own.
[712]
As always, thanks for watching Math Antics and I’ll see ya next time.
[717]
Learn more at www.mathantics.com