Return to the Purplemath home page

 


powered by FreeFind

 

Print-friendly page

 

 

The Distance Formula

The Distance Formula is a variant of the Pythagorean Theorem that you used back in geometry. Here's how we get from the one to the other:

 

Suppose you're given the two points (–2, 1) and (1, 5), and they want you to find out how far apart they are. The points look like this:

  

 plotted points

  

 

You can draw in the lines that form a right-angled triangle, using these points as two of the corners:

  

 right triangle

  

 

It's easy to find the lengths of the horizontal and vertical sides of the right triangle: just subtract the x-values and the y-values:

  

 lengths
   

Then use the Pythagorean Theorem to find the length of the third side (which is the hypoteneuse of the right triangle):

    c2 = a2 + b2

...so:   Copyright © Elizabeth Stapel 1999-2009 All Rights Reserved

    c = 5

This format always holds true. Given two points, you can always plot them, draw the right triangle, and then find the length of the hypoteneuse. The length of the hypoteneuse is the distance between the two points. Since this format always works, it can be turned into a formula:

    Distance Formula:

    Given the two points (x1, y1) and (x2, y2), the distance between these points is given by the formula:

Don't let the subscripts scare you. They only indicate that there is a "first" point and a "second" point; that is, that you have two points. Whichever one you call "first" or "second" is up to you.

  • Find the distance between the points (–2, –3) and (–4, 4).

    Just plug them in to the Distance Formula:

      d = sqrt(53)

    Then the distance is sqrt(53), or about 7.28, rounded to two decimal places.


The commonest mistake made when using the Formula is to accidentally mismatch the x-values and y-values. Don't subtract an x from a y, or vice versa; make sure you've paired the numbers properly.

Also, don't get careless with the square-root symbol. If you get in the habit of omitting the square root and then "remembering" to put it back in when you check your answers in the back of the book, then you'll forget the square root on the test, and you'll miss easy points.

You also don't want to be careless with the squaring inside the Formula. Remember that you simplify inside the parentheses before you square, not after, and remember that the square in on everything inside the parentheses, including the minus sign, so the square of a negative is a positive.

In other words, if you do each step completely, instead of sloppily or in your head, then you're much more likely to get the right answers.

By the way, it is almost always better to leave the answer in "exact" form (the square root "sqrt(53)" above). Rounding is usually reserved for the last step of word problems. If you're not sure which format is preferred, do both, like this:

    d = sqrt(53), or about 7.28

Now YOU try it!


Very often you will encounter the Distance Formula in veiled forms. That is, the problem will not explicitly state that you need to use the Distance Formula; instead, you have to notice that you need to find the distance, and then remember the Formula. For instance:

  • Find the radius of a circle, given that the center is at (2, –3) and the point (–1, –2) lies on the circle.

    The radius is the distance between the center and any point on the circle, so find the distance:

      d = sqrt[ (2 + 1)^2 + (-3 + 2)^2 ] = sqrt(10)

    Then the radius is sqrt(10), or about 3.16, rounded to two decimal places.

  • Find all points (4, y) that are 10 units from the point (–2, –1).
  • I'll plug the two points and the distance into the Distance Formula:

      10 = sqrt[(-2 - 4)^2 + (-1 - y)^2] = [y^2 + 2y + 37]

    Now I'll square both sides, so I can get to the variable:

      100 = y^2 + 2y + 37, so 0 = y^2 + 2y - 63

    This means y = 9 or y = 7, so the two points are (4, –9) and (4, 7).

If you're not sure why there are two points that solve this exercise, try drawing the (2, 1) and then drawing a circle with radius 10 around this. Then draw the vertical line through x = 4. You'll see that it crosses the circle (being all the points ten units from the center) at (4, 9) and (4, 7).

Top  |  Return to Index

Cite this article as:

Stapel, Elizabeth. "The Distance Formula." Purplemath. Available from
    http://www.purplemath.com/modules/distform.htm. Accessed
 

 

Lessons index
Learning forums
Lessons on CD




Purplemath:
  Linking to this site
  Printing pages
  Donating
  School licensing


Reviews of
Internet Sites:
   Free Help
   Practice
   Et Cetera

The "Homework
   Guidelines"

Study Skills Survey

Tutoring ($$)


This lesson may be printed out for your personal use.

Content copyright protected by Copyscape website plagiarism search
  

  Copyright © 2006-2009  Elizabeth Stapel   |   About   |   Terms of Use

 

 Feedback   |   Error?