Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Distance Between Two Points 3D

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

Distance Between Two Points 3D in Details

Distance refers to a mathematical quantity that shows how far the two points lie from each other. Indeed, distance is one of the essential mathematical quantities. It plays a significant role in advanced mathematics and physics. It helps to determine the velocity of a moving object, magnitude, and direction of gravitational and electrical forces, and it helps with signal processing too. In mathematics, the distance formula is used for finding the distance between two points in a coordinate plane. The distance between the two points formula can be evaluated when you know the coordinates of the two points in a plane. By inserting those points in the formula, you can quickly find the distance between two points. In this article, you can learn about the distance between two points in 3D, its formula, and examples.  


Distance Between Two Points Formula

Typically, in 2D space, each point in the space gets qualified by two parameters: x-coordinate and y-coordinate. You require a pair of the coordinate axis to locate the exact position of a point in a plan. The combination of x and y coordinates gets expressed in the form of an ordered pair such as, (x, y). So, the coordinates of a point, say M, can get expressed as, M (x, y). That ordered pair (x, y) gives you the coordinate of the point. 


Before you learn to find the distance between two points in 3D, you must know the basic distance formula, which is as below. 


Considering two points M \[(x_{1}, y_{1})\] and N \[(x_{2}, y_{2} )\] on the given coordinate axis, you can find the distance between them using the formula:


Steps to find the distance between two points:

  • First, you need to take coordinates of two points like \[(x_{1}, y_{1}) and N (x_{2}, y_{2} )\].

  • Then, you have to use the distance formula, which is \[\sqrt{(x_{2} - x_{1})^{2} + (y_{2} - y_{1})^{2}}\].

  • Now, you have to calculate the vertical and horizontal distance between the two points. The horizontal distance \[(x_{2} - x_{1})\] represents the points on the x-axis, and the vertical distance \[(y_{2} - y_{1})\] denotes the points on the y-axis.  

  • Next, you have to square both the values obtained from \[(x_{2} - x_{1})\] and \[(y_{2} - y_{1})\]. 

  • Now, all you need to do is add both the values, which look like, \[(x_{2} - x_{1})^{2} + (y_{2} - y_{1})^{2}\].

  • Finally, you need to find the square root of the obtained value.

  • The value you get in the end is the distance between two points in the coordinate plane.  


Coordinates of A Point

The distance between the two pints can be figured out if one has the coordinates of the two points in the given XY plane. In Euclidean geometry, we often come across points that are positioned in the plane. These points are known to be defined by the coordinates along the x and y-axis. These coordinates are a pair of values that precisely define the location of the point in the given coordinate plane. 


Distance Between the Two Points With the Help of the Pythagorean Theorem

Taking the following scenario; 

A girl is walking towards the north till 30 meters from where she takes a turn to the east and walks for an additional 40 meters. How can we calculate the shortest between the initial and the final place?

Let us say that the initial point is A while the final point is C. we know that the distance between AB is 30 meters and BC is 40 meters. 

Therefore, the shortest distance between the given points A and C is AC. to calculate this distance, we take the help of the Pythagorean theorem, as a result, we get the answer as 50m.

Thus, we have obtained the distance between the starting point to the ending point. In a similar fashion, the distance between two points in a given coordinate plane can also be derived with the help of the Pythagorean theorem or even the right angle theorem formula. 


Distance Between Two Points in 3D

The following study can get extended to find out the distance between two points in space. We can determine the distance between two points in 3D using a formula as derived below. 


For now, refer to fig. 1. Here, point \[ P (x_{1}, y_{1}, z_{1})\]  and \[ Q (x_{2}, y_{2}, z_{2}) \] refer to a system of rectangular axes OX, OY, and OZ.


(Image will be uploaded soon)


From the points P and Q, you need to draw planes parallel to the coordinate plane. Then, you get a rectangular parallelepiped with PQ as the diagonal. 

As you can see in the figure, ∠PAQ is forming a right angle. It enables us to apply the Pythagoras theorem in triangle PAQ. 

So, now you get \[PQ^{2} = PA^{2} + AQ^{2} …(1) \]

Also note that, in triangle ANQ, ∠ANQ is a right angle. Now, you need to apply the Pythagoras theorem to ΔANQ as well.  

Now, you obtain \[AQ^{2} = AN^{2} + NQ^{2} …(2)\]

From equation (1) and equation (2), you get \[PQ^{2} = PA^{2} + NQ^{2} +AN^{2}\].

As you know the coordinates of the points P and Q, PA = \[(y_{2} - y_{1})\], AN = \[(x_{2} - x_{1})\] and NQ = \[(z_{2} - z_{1})\].

Hence, \[PQ^{2} = (x_{2} - x_{1})^{2} + (y_{2} - y_{1})^{2} + (z_{2} - z_{1})^{2}\].

Finally, the formula to obtain the distance between two points in 3D is –

\[PQ = \sqrt{(x_{2} - x_{1})^{2} + (y_{2} - y_{1})^{2} + (z_{2} - z_{1})^{2}}\]

That formula can give you the distance between two points P (x1, y1, z1) and Q (x2, y2, z2) in 3D.

Also note that the distance of any point Q (x, y, z) in space from origin O (0, 0, 0), can get expressed as, \[OQ = \sqrt{x^{2} + y^{2} + z^{2}}\].


Applications

The distance formula has numerous applications in our day-to-day life. For instance, the pilot in the plane can use the distance formula to calculate the distance between their plane and any other plane. The first step involved is the finding of the coordinate and then applying the distance formula to get the desired results. 


Note

It is to be kept in mind that the distance between two points can never have a negative value. This is because;

  • Distance is a term that is used to represent how far two points are from one another. And as it is a physical quantity, it can never be negative. 

  • The use of the distance formula conveys that it represents its outcome as the square root of the addition of the two given positive numbers. As we know that the addition of two positive numbers always gives a positive number.

  • Even in a case where the distance between the two points equals zero, it is still a nonnegative integer. And thus, the distance between the two points cannot be negative. 


Solved Examples

  1. Find the distance between two points given by A (6, 4, -3) and B (2, -8, 3).

Answer: Here, we need to use the distance formula to find the distance between points A and B. 

You have, \[AB = \sqrt{(x_{2} - x_{1})^{2} + (y_{2} - y_{1})^{2} + (z_{2} - z_{1})^{2}}\] 

\[AB = \sqrt{(6 - 2)^{2} + (4 - (-8)^{2} + (-3 -3)^{2}}\]

\[AB = \sqrt{16 + 144 + 36}\]

Finally, AB = 14; so the distance between points A and B is 14.

FAQs on Distance Between Two Points 3D

1. What is a three-dimensional (3D) coordinate system?

A three-dimensional (3D) coordinate system is used to locate points in space. It is defined by three mutually perpendicular axes: the x-axis, y-axis, and z-axis, which intersect at a point called the origin (0, 0, 0). Any point in this system is uniquely identified by an ordered triplet of coordinates (x, y, z), representing its signed distances from the origin along each respective axis.

2. How is the distance between two points in 3D space calculated?

The distance between two points in 3D space is calculated using the distance formula, which is an extension of the Pythagorean theorem. For two points, P₁(x₁, y₁, z₁) and P₂(x₂, y₂, z₂), the distance 'd' between them is given by the formula:

d = √[(x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²]

This formula calculates the square root of the sum of the squares of the differences between the corresponding x, y, and z coordinates.

3. Can you provide a solved example for finding the distance between two 3D points?

Certainly. Let's find the distance between point A(2, 3, 5) and point B(4, -1, 7).
Using the distance formula: d = √[(x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²]

  • Step 1: Substitute the coordinates:
    d = √[(4 - 2)² + (-1 - 3)² + (7 - 5)²]
  • Step 2: Calculate the differences:
    d = √[(2)² + (-4)² + (2)²]
  • Step 3: Square each difference:
    d = √[4 + 16 + 4]
  • Step 4: Sum the values and find the square root:
    d = √24 ≈ 4.9 units.

Therefore, the distance between points A and B is approximately 4.9 units.

4. How is the 3D distance formula derived using the Pythagorean theorem?

The 3D distance formula is derived by applying the Pythagorean theorem twice. Consider a rectangular box with the two points P₁(x₁, y₁, z₁) and P₂(x₂, y₂, z₂) at opposite corners.

  • First, we find the distance of the diagonal across the base of the box in the xy-plane. This distance, let's call it 'a', is found using the 2D distance formula: a² = (x₂ - x₁)² + (y₂ - y₁)².
  • This diagonal 'a' and the vertical edge 'b' (which is the difference in height, |z₂ - z₁|) form a right-angled triangle with the main diagonal 'd' (the distance between P₁ and P₂) as the hypotenuse.
  • Applying the Pythagorean theorem again: d² = a² + b². Substituting the values, we get d² = (x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)². Taking the square root gives the final formula.

5. How does the 3D distance formula differ from the 2D distance formula?

The primary difference lies in the number of dimensions considered. Here’s a breakdown:

  • Dimensionality: The 2D formula calculates distance on a flat plane (like a graph paper) using only (x, y) coordinates. The 3D formula calculates distance in space, incorporating a third dimension with (x, y, z) coordinates.
  • Formula Structure: The 3D formula is a direct extension of the 2D formula. It includes an additional term, (z₂ - z₁)², under the square root to account for the distance along the z-axis.

6. What is the formula to find the distance of a point from the origin in 3D space?

To find the distance of any point P(x, y, z) from the origin O(0, 0, 0), you can use a simplified version of the distance formula. By substituting (x₁, y₁, z₁) with (0, 0, 0), the formula becomes:

d = √[(x - 0)² + (y - 0)² + (z - 0)²]

Which simplifies to:

d = √(x² + y² + z²)

This is also the formula for the magnitude of a position vector of point P.

7. Why can the distance between two points never be a negative value?

The distance between two points cannot be negative for two main reasons:

  • Physical Definition: Distance is a scalar quantity representing the length of the path between two points. Length, as a physical measure, is always a non-negative value (zero or positive).
  • Mathematical Property: The distance formula involves squaring the differences in coordinates. The square of any real number (positive or negative) is always non-negative. The sum of these non-negative squares is also non-negative. The final step is taking the principal (positive) square root, which ensures the result is always non-negative.

8. What are some real-world applications of calculating the distance between two points in 3D?

The 3D distance formula has many practical applications in various fields:

  • Aviation and Space Travel: To calculate the distance between aircraft, satellites, or celestial bodies.
  • 3D Graphics and Gaming: To determine object collision, character movement, and render visual effects based on proximity.
  • Engineering and Architecture: To design structures and ensure components are placed correctly in a three-dimensional space.
  • Physics: To calculate the magnitude of forces (like gravitational or electrostatic forces) between particles in space.