December 30, 2022

Distance Between Two Points - Formula, Derivation, Examples

The concept of distance is vital in both math and daily life. From easily measuring the extent of a line to figuring out the quickest route within two extremities, comprehending the distance within two points is important.


In this blog, we will explore the formula for distance within two locations, work on some examples, and talk about real-life applications of this formula.

The Formula for Distance Within Two Locations

The length within two points, often denoted as d, is the length of the line segment linking the two extremities.


In math, this could be depicted by drawing a right triangle and employing the Pythagorean theorem. According to Pythagorean theorem, the square of the distance of the longest side (the hypotenuse) is equal to the sum of the squares of the lengths of the two other sides.


The formula for the Pythagorean theorem is a2 + b2 = c2. Consequently, √c2 will as same as the distance, d.


In the circumstance of working out the length within two locations, we can portray the points as coordinates on a coordinate plane. Let's assume we have point A with coordinates (x1, y1) and point B at (x2, y2).


We could then employ the Pythagorean theorem to acquire the following formula for distance:

d = √((x2 - x1)2 + (y2 - y1)2)


In this formula, (x2 - x1) portrays the length on the x-axis, and (y2 - y1) depicts the distance along y-axis, forming a right angle. By considering the square root of the sum of their squares, we get the length among the two extremities.


Here is a visual illustration:


Examples of Using the Distance Formula

Now that we possess the formula for distance, let's look at some examples of how it can be used.

Finding the Distance Between Two Points on a Coordinate Plane

Imagine we possess two points on a coordinate plane, A with coordinates (3, 4) and B with coordinates (6, 8). We will use the distance formula to find the distance within these two points as follows:


d = √((6 - 3)2+ (8 - 4)2)

d = √(32 + 42)

d = √(9 + 16)

d = √(25)

d = 5


Consequently, the distance between points A and B is 5 units.

Calculating the Distance Between Two Locations on a Map

In addition to finding length on a coordinate plane, we can also utilize the distance formula to work out lengths within two points on a map. For example, suppose we have a map of a city with a scale of 1 inch = 10 miles.


To find the length within two locations on the map, such as the city hall and the airport, we could simply measure the length within the two points using a ruler and convert the measurement to miles utilizing the map's scale.


While we calculate the length among these two locations on the map, we figure out it is 2 inches. We change this to miles utilizing the map's scale and find out that the real distance within the city hall and the airport is 20 miles.

Calculating the Distance Within Two Points in Three-Dimensional Space

In addition to calculating distances in two dimensions, we could further utilize the distance formula to figure out the distance within two locations in a three-dimensional space. For instance, suppose we have two locations, A and B, in a three-dimensional space, with coordinates (x1, y1, z1) and (x2, y2, z2), respectively.


We will use the distance formula to find the length between these two locations as follows:

d = √((x2 - x1)2 + (y2 - y1)2 + (z2 - z1)2)


Using this formula, we can determine the length between any two locations in three-dimensional space. For example, if we have two points A and B with coordinates (1, 2, 3) and (4, 5, 6), individually, we could work out the distance between them as ensues:


d = √((4 - 1)2 + (5 - 2)2 + (6 - 3)2)

d = √(32 + 32 + 32)

d = √(9 + 9 + 9)

d = √(27)

d = 3.16227766


Hence, the distance within locations A and B is just about 3.16 units.

Utilizations of the Distance Formula

Now that we have observed few examples of utilizing the distance formula, let's explore some of its uses in mathematics and other fields.

Measuring Distances in Geometry

In geometry, the distance formula is utilized to work out the length of line segments and the sides of triangles. For example, in a triangle with vertices at points A, B, and C, we utilize the distance formula to find the lengths of the sides AB, BC, and AC. These lengths can be employed to calculate other characteristics of the triangle, for example its interior angles, area, perimeter.

Solving Problems in Physics

The distance formula is further utilized in physics to solve problems involving speed, distance and acceleration. For instance, if we perceive the original position and velocity of an object, in addition to the time it requires for the object to move a specific distance, we can utilize the distance formula to figure out the object's concluding position and speed.

Analyzing Data in Statistics

In statistics, the distance formula is frequently utilized to workout the length between data points in a dataset. This is useful for clustering algorithms, which group data points which are near to each other, and for dimensionality reduction techniques, this portrays high-dimensional data in a lower-dimensional space.

Go the Distance with Grade Potential

The distance formula is an essential idea in mathematics which enables us to calculate the distance between two location on a plane or in a three-dimensional space. By utilizing the Pythagorean theorem, we could derive the distance formula and apply it to a variety of scenarios, from measuring length on a coordinate plane to analyzing data in statistics.


Comprehending the distance formula and its applications are important for anyone fascinated in mathematics and its uses in other areas. If you're having difficulties with the distance formula or any other mathematical concept, Grade Potential tutoring for customized assistance. Our professional tutors will support you conquer any math topic, from algebra to calculus and beyond.


Contact us right now to know more and schedule your first tutoring session.