A 3D Cartesian coordinate grid uses three axes at right angles to each other: x, y and z. The coordinates of a point in three dimensions are shown as (x,y,z). You can work out distances on a 3D coordinate grid using Pythagoras' theorem.
3D Cartesian Coordinates
You are familiar with 2D Cartesian coordinates using the x- and y-axes. The z-axis is added to represent the third dimension. You can visualise this as x- and y-axes drawn flat, with the z-axis going through this surface. The axes intersect at right angles. The coordinates of a point on a 3D grid are written as (x,y,z).
You can see how point A with coordinates (2,3,−3) is represented in the graph above, as well as B(0,0,3).
Finding distances from the origin
Similar to a 2D coordinate system, you can use Pythagoras' theorem to find distances between points on a 3D coordinate system.
To find the distance d of a point P from the origin with coordinates (x,y,z), use:
d=x2+y2+z2
Example 1
Find the distance from the origin to the point P(4,−3,1).
Substitute the values for x,y and z:
∣OP∣=42+(−3)2+12=16+9+1=26
Finding distances between two points
Using Pythagoras' theorem, the distance d between two points P1(x1,y1,z1) and P2(x2,y2,z2) is given by:
d=(x1−x2)2+(y1−y2)2+(z1−z2)2
Example 2
Find the distance between the points A(4,1,2) and B(−1,2,1), giving your answer to 1d.p.