Distance Formula & Midpoint Formula
The Distance Formula
Review: The Pythagorean Formula
In both beginning and intermediate algebra, one of the topics introduced is the pythagorean formula. This formula states that for any right triangle, if c is the lenth of the hypotenuse (the longest side), and a and b are the lengths of the other two sides, then:
c2=a2+b2
We use this formula to derive the Distance Formula.
Consider the following scenario. We have two points P = (x1,y1)and R =
(x2,y2). We want to find the distance between P and R.
First we start by drawing a right triangle, with the corner with the right angle at Q = (x2,y1). We notice that the side with length d, which is opposite the point Q, is the hypotenuse. The lengths of the other two sides are
∣x2−x1∣and
∣y2−y1∣. See the figure below:
Notice that, since we have created a right triangle, we can apply the Pythagorean formula with a=∣x2−x1∣∣and
b=∣y2−y1∣and
c=d.This gives us,
d2=∣x2−x1∣2+∣y2−y1∣2=(x2−x1)2+(y2−y1)2
And when we consider that d is a distance so it is always non-negative, and we take the square root of both sides of this equation, we get the distance formula.
Distance Formula
d=√(x2−x1)2+(y2−y1)2
Example:
Find the distance between the points (−2,3) and
(5,7).
Solution:
d=√(x2−x1)2+(y2−y1)2=√(−2−1)2+(5−7)2
=√(−3)2+(−2)2=√9+4=√13
In this case, the exact answer would be that the distance between the points is √13 units. This answer is an irrational number, but if we want a decimal answer we can approximate the
√13 by using a calculator, and we get ~3.61.
The Midpoint Formula
The midpoint formula helps us find the midpoint of a line segment connecting point (x1,y1)to point
(x2,y2). To do this what we need to do is to find the mean of the two x coordinates and the mean of the two y coordinates.
Midpoint = (x1+x22,y1+y22)
Example:
Find the midpoint of a line segment connecting (−3,−7) and
(1,4).
Solution:
Midpoint = (x1+x22,y1+y22)=
(−3+12,−7+42)=(−22,−32)=(−1,−32)