Ma · Mathematics

How Do You Find the Shortest Distance from P(2,2,5)?

Published By the 9to5Science editorial team

At a glance

  1. 1. Identify the target

    A point alone does not determine a distance; specify the line, plane, point, or other set.

  2. 2. Choose a formula

    Use the formula for the target geometry, such as point-to-plane or point-to-line distance.

  3. 3. Substitute coordinates

    Insert P(2,2,5) and the target's equation or defining coordinates.

  4. 4. Check the result

    Take absolute values where needed and ensure the distance is nonnegative.

Advertisement

The coordinates P=(2,2,5)P=(2,2,5) specify a point in three-dimensional space, but they do not specify a distance by themselves. A shortest distance is measured from PP to some target: another point, a line, a plane, or a more general set. Different targets give different answers.

If a problem gives only P=(2,2,5)P=(2,2,5), it is missing information. You need the target’s coordinates or equation. The formulas below show how to finish the calculation once you have that information.

Distance to another point

If the target is a point Q=(a,b,c)Q=(a,b,c), use the three-dimensional distance formula:

d(P,Q)=(2−a)2+(2−b)2+(5−c)2.d(P,Q)=\sqrt{(2-a)^2+(2-b)^2+(5-c)^2}.

For instance, if the intended target is the origin O=(0,0,0)O=(0,0,0), then

d(P,O)=22+22+52=33≈5.745.d(P,O)=\sqrt{2^2+2^2+5^2}=\sqrt{33}\approx 5.745.

This is only the answer if the origin is the intended target. A different point gives a different distance.

Distance to a plane

For a plane written as

Ax+By+Cz+D=0,Ax+By+Cz+D=0,

the shortest distance from P=(x0,y0,z0)P=(x_0,y_0,z_0) to the plane is

d=∣Ax0+By0+Cz0+D∣A2+B2+C2.d=\frac{|Ax_0+By_0+Cz_0+D|}{\sqrt{A^2+B^2+C^2}}.

The vector (A,B,C)(A,B,C) is perpendicular to the plane. The numerator measures the point’s displacement in that perpendicular direction, and division by the normal vector’s length gives the actual distance.

Worked plane example

Suppose the target is the plane 2x−y+2z−7=02x-y+2z-7=0. Substitute P=(2,2,5)P=(2,2,5):

d=∣2(2)−2+2(5)−7∣22+(−1)2+22=∣4−2+10−7∣9=53.\begin{aligned} d&=\frac{|2(2)-2+2(5)-7|}{\sqrt{2^2+(-1)^2+2^2}}\\ &=\frac{|4-2+10-7|}{\sqrt{9}}\\ &=\frac{5}{3}. \end{aligned}

So the shortest distance from PP to this particular plane is 5/35/3 units. The absolute value matters: the expression inside it can be negative depending on which side of the plane the point lies on, but distance cannot be negative.

Distance to a line

Suppose a line passes through a point AA and has direction vector v\mathbf v. The distance from PP to the line is

d=∥(P−A)×v∥∥v∥.d=\frac{\|(P-A)\times\mathbf v\|}{\|\mathbf v\|}.

The cross product gives the area of a parallelogram; dividing by the base length ∥v∥\|\mathbf v\| gives its perpendicular height, which is the shortest distance to the line.

For example, take a line through A=(1,0,1)A=(1,0,1) with direction vector v=(1,1,0)\mathbf v=(1,1,0). Then P−A=(1,2,4)P-A=(1,2,4), and

(P−A)×v=(−4,4,−1).(P-A)\times\mathbf v=(-4,4,-1).

Therefore,

d=(−4)2+42+(−1)212+12=332≈4.06.d=\frac{\sqrt{(-4)^2+4^2+(-1)^2}}{\sqrt{1^2+1^2}}=\sqrt{\frac{33}{2}}\approx 4.06.

This result applies to that line, not to every line through or near PP.

Common mistakes

  • Treating the point as the whole problem. Coordinates give a location, not a target. Check whether the problem also specifies a line, plane, or second point.
  • Assuming the target is the origin. Use 33\sqrt{33} only when the origin is explicitly the target or is clearly implied by context.
  • Using the wrong formula. A plane equation and a line’s direction data describe different geometric objects, so their distance formulas are not interchangeable.
  • Forgetting the absolute value for a plane. The signed expression tells which side of the plane the point is on; the shortest distance is its nonnegative magnitude.
  • Confusing perpendicular distance with a chosen path. The shortest distance to a line or plane is measured along a perpendicular, not along an arbitrary segment.

To get one definite numerical answer, provide the object that P=(2,2,5)P=(2,2,5) is being measured to. For a plane, give its equation; for a line, give a point on it and a direction vector (or equivalent equations); for a point, give its coordinates.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.