Lesson Explainer: Distance on the Coordinate Plane: Pythagorean Formula | Nagwa Lesson Explainer: Distance on the Coordinate Plane: Pythagorean Formula | Nagwa

Lesson Explainer: Distance on the Coordinate Plane: Pythagorean Formula Mathematics • Third Year of Preparatory School

Join Nagwa Classes

Attend live Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

In this explainer, we will learn how to find the distance between two points on the coordinate plane using the Pythagorean theorem.

We can begin by recalling the Pythagorean theorem, which relates the length of the longest side of a right triangle to the lengths of the other two sides. A right triangle has one right angle and always one longest side, called the hypotenuse.

Definition: The Pythagorean Theorem

The Pythagorean theorem states that, in any right triangle, the square of the hypotenuse is equal to the sum of the squares of the two shorter sides.

For a hypotenuse, 𝑐, and the two shorter sides, π‘Ž and 𝑏, the Pythagorean theorem states that π‘Ž+𝑏=𝑐.

We can apply this theorem to find the distance between two points on a coordinate grid. Let us consider the following example with the points (3,4) and (βˆ’2,1). We observe how we can form a right triangle with the hypotenuse as the line joining these two points. A right angle is created at the coordinates (3,1), where the vertical line from (3,4) and the horizontal line from (βˆ’2,1) meet.

We can observe that the horizontal distance from (βˆ’2,1) to (3,1) is 5 units, and the vertical distance from (3,1) to (3,4) is 3 units.

We could then apply the Pythagorean theorem, π‘Ž+𝑏=π‘οŠ¨οŠ¨οŠ¨, to find the hypotenuse, 𝑐, with π‘Ž=3 and 𝑏=5, which gives 3+5=𝑐9+25=𝑐34=π‘βˆš34=𝑐.

Therefore, the hypotenuse, which is the distance between the two points, can be written as √34 units.

So, at a basic level, we can count the squares, or units, to find the horizontal and vertical distances between two coordinates and then apply the Pythagorean theorem. This may be a satisfactory method for lower-value, or easier-to-graph, coordinates. However, we can use the Pythagorean theorem to do this for any points without graphing, by considering the values of their coordinates and deriving a general formula.

We consider a more general situation, where we seek to find the distance, 𝑑, between two coordinates, (π‘₯,𝑦) and (π‘₯,𝑦).

We can create a right triangle with these two coordinates, using the line between them as the hypotenuse, along with a third vertex, (π‘₯,𝑦). This creates a right triangle. The length of the hypotenuse will be equal to the distance, 𝑑, between the two coordinates.

In the diagram above, the horizontal distance between the points is (π‘₯βˆ’π‘₯) and the vertical distance is (π‘¦βˆ’π‘¦). The value of these distances must always be positive in order for our method to work. Therefore, in order to generalize for any arbitrary positive or negative values of π‘₯, π‘¦οŠ§, π‘₯, or π‘¦οŠ¨, we will need to use absolute value symbols to indicate that the length is a positive number. The absolute value of any number is positive. So, the horizontal distance between the coordinates can be represented by |π‘₯βˆ’π‘₯| and the vertical distance by |π‘¦βˆ’π‘¦|.

We can then apply the Pythagorean theorem to find the hypotenuse, 𝑑, as (π‘₯βˆ’π‘₯)+(π‘¦βˆ’π‘¦)=𝑑(π‘₯βˆ’π‘₯)+(π‘¦βˆ’π‘¦)=𝑑.

Note that when using this formula, we do not need to use the absolute value symbols because the terms (π‘₯βˆ’π‘₯) and (π‘¦βˆ’π‘¦) are being squared. Any squared number will be positive; hence, we will not have any issues with β€œnegative distances.”

We have now derived a formula to calculate the distance between any two points on the coordinate plane, which we can define formally below. This formula is often referred to as the distance formula.

Definition: The Distance between Two Points on the Coordinate Plane

The distance, 𝑑, between two points with coordinates (π‘₯,𝑦) and (π‘₯,𝑦) is given by 𝑑=(π‘₯βˆ’π‘₯)+(π‘¦βˆ’π‘¦).

We will now see how we can apply this formula in the following examples.

Example 1: Finding the Distance between a Point and the Origin

Find the distance between the point (βˆ’2,4) and the point of origin.

Answer

To find the distance between these two points, we can recall the distance formula, which allows us to find a distance, 𝑑, between two points, (π‘₯,𝑦) and (π‘₯,𝑦). This distance is given by 𝑑=(π‘₯βˆ’π‘₯)+(π‘¦βˆ’π‘¦).

Substituting (0,0), the origin, as coordinates (π‘₯,𝑦) and (βˆ’2,4) as (π‘₯,𝑦) into the distance formula, gives 𝑑=(βˆ’2βˆ’0)+(4βˆ’0)=(βˆ’2)+4=√4+16=√20.lengthunits

We can further simplify this value as 2√5.lengthunits

We can note that the choice of which coordinates we designate as (π‘₯,𝑦) and (π‘₯,𝑦) does not matter. For example, if we had chosen the coordinates the other way round, the calculation would have been given as 𝑑=(0βˆ’(βˆ’2))+(0βˆ’4)=2+(βˆ’4)=√4+16=√20.lengthunits

This is a result of the process of squaring each of the values of (π‘¦βˆ’π‘¦) and (π‘₯βˆ’π‘₯), which produces a positive result.

Using either calculation produces the solution that the distance between (βˆ’2,4) and the point of origin is 2√5.lengthunits

In the next example, we will solve a word problem by finding the distance between two points on the coordinate plane.

Example 2: Solving a Real-World Problem by Finding the Distance between Two Points

Fares is making a map of his local area measured in metres. The coffee shop is at (βˆ’5,βˆ’4) and the Italian restaurant is at (0,6). Find the distance between the coffee shop and the Italian restaurant giving the answer to one decimal place.

Answer

We can find the distance between the coffee shop and the Italian restaurant by finding the distance between their coordinates. We can recall that to find the distance, 𝑑, between two points, (π‘₯,𝑦) and (π‘₯,𝑦), we calculate 𝑑=(π‘₯βˆ’π‘₯)+(π‘¦βˆ’π‘¦).

We can assign either of the coordinates to either of the (π‘₯,𝑦) and (π‘₯,𝑦) values. So, setting (π‘₯,𝑦)=(βˆ’5,βˆ’4) and (π‘₯,𝑦)=(0,6), we can substitute these into the distance formula, giving 𝑑=(0βˆ’(βˆ’5))+(6βˆ’(βˆ’4))=√5+10=√25+100=√125.m

As we are asked for an answer to one decimal place, we can find a decimal equivalent to the value of √125 and approximate, which gives 𝑑=11.180β€¦β‰ˆ11.2.mm

Therefore, the distance between the coffee shop and the Italian restaurant, to one decimal place, is 11.2.m

In the next example, we will see how to find a missing coordinate given the distance between two points.

Example 3: Finding an Unknown Coordinate Using the Distance between Two Points

The distance between (π‘Ž,5) and (1,1) is 5. What are the possible values of π‘Ž?

Answer

To calculate the value of π‘Ž, we can use the given information about the distance between the two coordinates. The distance, 𝑑, between two points, (π‘₯,𝑦) and (π‘₯,𝑦), is given by 𝑑=(π‘₯βˆ’π‘₯)+(π‘¦βˆ’π‘¦).

In this question, we have the value 𝑑=5 and the coordinates (1,1), which we can substitute for the (π‘₯,𝑦) values. We can use the coordinates (π‘Ž,5) as the (π‘₯,𝑦) values. Substituting these into the distance formula gives 5=(π‘Žβˆ’1)+(5βˆ’1)=(π‘Žβˆ’1)+4=(π‘Žβˆ’1)+16.

We can square both sides and simplify, which gives 5=(π‘Žβˆ’1)+1625βˆ’16=(π‘Žβˆ’1)9=(π‘Žβˆ’1)±√9=(π‘Žβˆ’1).

Since the square of a negative number is still positive, we must account for both the positive and the negative roots. We can do this using the Β± sign. The equation can now be written as Β±3=(π‘Žβˆ’1).

We now have two equations, π‘Žβˆ’1=3 and π‘Žβˆ’1=βˆ’3, which we can solve for π‘Ž: π‘Žβˆ’1=3π‘Žβˆ’1=βˆ’3π‘Ž=3+1π‘Ž=βˆ’3+1π‘Ž=4π‘Ž=βˆ’2

Thus, the solutions for π‘Ž are π‘Ž=βˆ’24.or

We can understand this solution by representing the problem in a sketch. We were given the complete coordinates (1,1). We were also given (π‘Ž,5), which we could think of as a point with an unknown π‘₯-coordinate but a 𝑦-coordinate of 5. That means that the missing coordinate must lie somewhere on the line with the equation 𝑦=5.

We are given that the distance of (1,1) from (π‘Ž,5) is 5 units, so there are two possibilities.

The coordinates of the two points at a distance of 5 units from (1,1) and that lie on the line 𝑦=5 are (βˆ’2,5) and (4,5). Note that there are infinite possible coordinates that lie at a distance of 5 units from (1,1); all these coordinates would form a circle of radius 5 units from this coordinate. However, since we are constrained by the fact that the 𝑦-coordinate is 5, there are just two possible solutions. Therefore, π‘Ž=βˆ’24.or

So far, we have established how to find the distance between two points on the coordinate plane. We can now move forward to finding a number of lengths within one problem, for example, finding the lengths of sides of geometric shapes plotted on a grid. In the next example, we will see how we can find the perimeter of a shape given its coordinates.

Example 4: Finding the Perimeter of a Triangle given Its Vertices’ Coordinates Using the Pythagorean Theorem

Given 𝐴(4,5), 𝐡(5,5), and 𝐢(βˆ’4,βˆ’7), what is the perimeter of △𝐴𝐡𝐢?

Answer

It can often be helpful to begin a problem such as this by sketching a diagram. Plotting the three coordinates and joining them, we create △𝐴𝐡𝐢.

The perimeter of a shape is a distance around the outside edge. Hence, we will need to find the sum of the lengths of 𝐴𝐡, 𝐡𝐢, and 𝐴𝐢. We can find the lengths of these line segments by considering the distance between the coordinates of their endpoints.

We recall that the distance, 𝑑, between two points, (π‘₯,𝑦) and (π‘₯,𝑦), is given by 𝑑=(π‘₯βˆ’π‘₯)+(π‘¦βˆ’π‘¦).

Let us begin with finding the length of 𝐴𝐡. In this case, rather than needing to apply the distance formula above, we observe that this is a horizontal line segment. As the coordinates do not differ in the 𝑦-direction, the distance between them is the absolute value of the difference in the π‘₯-coordinates, |5βˆ’4|=1 length units. Thus, lengthoflengthunit𝐴𝐡=1.

Next, we can find the length of 𝐡𝐢 by substituting (π‘₯,𝑦)=(5,5) and (π‘₯,𝑦)=(βˆ’4,βˆ’7) into the distance formula. This gives us lengthoflengthunits𝐡𝐢=(βˆ’4βˆ’5)+(βˆ’7βˆ’5)=(βˆ’9)+(βˆ’12)=√81+144=√225=15.

For the final length, 𝐴𝐢, we substitute (π‘₯,𝑦)=(4,5) and (π‘₯,𝑦)=(βˆ’4,βˆ’7) into the distance formula. Thus, we have lengthoflengthunits𝐴𝐢=(βˆ’4βˆ’4)+(βˆ’7βˆ’5)=(βˆ’8)+(βˆ’12)=√64+144=√208=4√13.

Finally, to find the perimeter of △𝐴𝐡𝐢, we add the lengths of its 3 sides. This gives us perimeteroflengthoflengthoflengthoflengthunits△𝐴𝐡𝐢=𝐴𝐡+𝐡𝐢+𝐴𝐢=1+15+4√13=ο€»16+4√13.

Hence, we can give the answer that the perimeter of △𝐴𝐡𝐢 is ο€»16+4√13.lengthunits

In the next example we will see a problem involving a circle. The information that the circle is plotted on the coordinate plane, along with facts about the center and a point on the circumference, means that we can apply the distance formula to calculate its radius.

Example 5: Finding the Position of a Point with respect to a Circle

Point (βˆ’6,7) is on the circle with center (βˆ’7,βˆ’1). Decide whether point (βˆ’8,βˆ’9) is on, inside, or outside the circle.

Answer

In this problem, we are given a point representing the position of the center of a circle and a coordinate lying on the circle. The distance from the center to this point would be the radius of the circle.

We can calculate the radius by using the distance formula. We recall that the distance, 𝑑, between two points, (π‘₯,𝑦) and (π‘₯,𝑦), is given by 𝑑=(π‘₯βˆ’π‘₯)+(π‘¦βˆ’π‘¦).

Substituting (π‘₯,𝑦)=(βˆ’7,βˆ’1) and (π‘₯,𝑦)=(βˆ’6,7), we can calculate the radius as radiuslengthunits=(βˆ’6βˆ’(βˆ’7))+(7βˆ’(βˆ’1))=√1+8=√1+64=√65.

Now, for any other given point, we can determine whether it is on the circle if its distance from the center, which we can define as π‘‘οŠ§, is the same as the radius, π‘Ÿ. If this distance is less than the value of the radius, then the point is inside the circle; if it is equal to the radius, then the point is on the circle; and if it is larger than the radius, then the point is outside the circle.

Therefore, let us determine the distance of the given point, (βˆ’8,βˆ’9), from the center, (βˆ’7,βˆ’1). Substituting these values for (π‘₯,𝑦) and (π‘₯,𝑦), respectively, in the distance formula, we have radius=(βˆ’7βˆ’(βˆ’8))+(βˆ’1βˆ’(βˆ’9))=√1+8=√1+64=√65.

We observe that this distance is exactly equal to the radius, so we can give the answer that the point (βˆ’8,βˆ’9) must be on the circle.

To help us visualize the solution, we could sketch the diagram below, noting that the two coordinates lie at an equal distance of √65 length units from the center, (βˆ’7,βˆ’1).

Although these two coordinates are collinear, they need not be in order for both to lie on the circumference of the circle.

We now summarize the key points.

Key Points

  • The Pythagorean theorem states that in any right triangle, the square of the hypotenuse is equal to the sum of the squares of the two shorter sides. For a hypotenuse, 𝑐, and the two shorter sides, π‘Ž and 𝑏, the Pythagorean theorem states that π‘Ž+𝑏=𝑐.
  • The distance, 𝑑, between two points with coordinates (π‘₯,𝑦) and (π‘₯,𝑦) is given by 𝑑=(π‘₯βˆ’π‘₯)+(π‘¦βˆ’π‘¦).
  • When using the distance formula above with two given coordinates, we can substitute either set of coordinates for the (π‘₯,𝑦) and (π‘₯,𝑦) values.
  • When using the distance formula to find an unknown coordinate at a given distance from another set of coordinates, there may be more than one solution.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy