How to find the distance between points in three dimensions

 
 
Distance between points in three dimensions blog post.jpeg
 
 
 

The distance formula in three dimensions

Given two points AA and BB in three-dimensional space,

A(x1,y1,z1)A(x_1,y_1,z_1)

B(x2,y2,z2)B(x_2,y_2,z_2)

we can calculate the distance between them using the distance formula.

D=(x2x1)2+(y2y1)2+(z2z1)2D=\sqrt{\left(x_2-x_1\right)^2+\left(y_2-y_1\right)^2+\left(z_2-z_1\right)^2}

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

It doesn’t matter which point is AA and which point is BB. The fact that we square the differences inside the square root means that all of our values will be positive, which means we’ll get a positive value for the distance between the points.

 
 

Using the distance formula to calculate the distance between two points in 3D space


 
Krista King Math Signup.png
 
Calculus 3 course.png

Take the course

Want to learn more about Calculus 3? I have a step-by-step course for that. :)

 
 

 
 

Applying the distance formula to identify the location of points and say which point is closer to a plane

Example

Use the distance formula to

  1. Find the distance between (0,1,3)(0,1,3) and (1,4,5)(-1,4,5).

  2. Say which of (0,1,3)(0,1,3) and (1,4,5)(-1,4,5) lies in the yzyz-plane.

  3. Say which of (0,1,3)(0,1,3) and (1,4,5)(-1,4,5) is closer to the xyxy-plane.

For the first part of the question, we’ll use the distance formula to calculate the distance between the points.

D=(x2x1)2+(y2y1)2+(z2z1)2D=\sqrt{\left(x_2-x_1\right)^2+\left(y_2-y_1\right)^2+\left(z_2-z_1\right)^2}

D=(10)2+(41)2+(53)2D=\sqrt{(-1-0)^2+(4-1)^2+(5-3)^2}

D=1+9+4D=\sqrt{1+9+4}

D=14D=\sqrt{14}

Distance between points in three dimensions for Calculus 3.jpg

The fact that we square the differences inside the square root means that all of our values will be positive, which means we’ll get a positive value for the distance between the points.

For the second part of the question, we need to realize that in order for a point to be in the yzyz-plane, its xx-coordinate must be 00. With that in mind, we can say that (0,1,3)(0,1,3) lies on the yzyz-plane, and that (1,4,5)(-1,4,5) does not lie in the yzyz-plane.

For the third part of the question, we need to realize that the zz-value of the coordinate point will tell us how far the point is from the xyxy-plane. So if we just take the absolute value of the zz-coordinate for each of our points, we’ll be able to say which one is closer.

Point (0,1,3)(0,1,3) has z=3=3|z|=|3|=3

Point (1,4,5)(-1,4,5) has z=5=5|z|=|5|=5

Since the absolute value of zz in the point (0,1,3)(0,1,3) is less than the absolute value of zz in the point (1,4,5)(-1,4,5), we can say that (0,1,3)(0,1,3) is closer to the xyxy-plane.

 
Krista King.png
 

Get access to the complete Calculus 3 course