Skip to content

Distances in space

Distances in space

The distance between shapes

The distance between two shapes (a point, a line, a plane) is the shortest distance between a point of one and a point of the other. The shortest segment is perpendicular to the shapes: from a point to a line or a plane – the perpendicular.

A point and a plane

nPFA

A\displaystyle A is a point in the plane, n‾\displaystyle \underline{n} the normal, and F\displaystyle F the foot of the perpendicular from P\displaystyle P. PF→\displaystyle \overrightarrow{PF} is parallel to n‾\displaystyle \underline{n}, and AF→⊥n‾\displaystyle \overrightarrow{AF}\perp\underline{n}, so ∣n‾⋅AP→∣=∣n‾⋅FP→∣=∣n‾∣⋅PF\displaystyle {|\underline{n}\cdot\overrightarrow{AP}|}={|\underline{n}\cdot\overrightarrow{FP}|}={|\underline{n}|\cdot PF}. Putting in the coordinates gives:

d\displaystyle d =\displaystyle = ∣a⋅x1+b⋅y1+c⋅z1+d∣a2+b2+c2\displaystyle \frac{|a\cdot x_1+b\cdot y_1+c\cdot z_1+d|}{\sqrt{a^2+b^2+c^2}}

The equation is written as ax+by+cz+d=0\displaystyle {ax+by+cz+d}={0} (the free number on the left). Parallel planes ax+by+cz+d1=0\displaystyle {ax+by+cz+d_1}={0} and ax+by+cz+d2=0\displaystyle {ax+by+cz+d_2}={0} (with the same a\displaystyle a, b\displaystyle b, c\displaystyle c): d=∣d1−d2∣a2+b2+c2\displaystyle {d}={\frac{|d_1-d_2|}{\sqrt{a^2+b^2+c^2}}}. A line parallel to a plane: the distance of any of its points from the plane.

Example. P(4,−2,0)\displaystyle P(4,-2,0) and the plane 2x−y+2z−1=0\displaystyle {2x-y+2z-1}={0}: d=∣8+2+0−1∣4+1+4=93=3\displaystyle {d}={\frac{|8+2+0-1|}{\sqrt{4+1+4}}}={\frac{9}{3}}={3} – as we found with the foot of the perpendicular.

A point and a line

uAPX

The foot X\displaystyle X of the perpendicular from P\displaystyle P to the line x‾=v‾+tu‾\displaystyle {\underline{x}}={\underline{v}+t\underline{u}} is the point where PX→⊥u‾\displaystyle \overrightarrow{PX}\perp\underline{u}:

  • write X=v‾+tu‾\displaystyle {X}={\underline{v}+t\underline{u}} and solve (X−P)⋅u‾=0\displaystyle {(X-P)\cdot\underline{u}}={0} – an equation in t\displaystyle t;
  • the distance is ∣PX→∣\displaystyle |\overrightarrow{PX}|.

Parallel lines: the distance of a point of one from the other.

Skew lines

Through the line ℓ1\displaystyle \ell_1 there is one plane parallel to ℓ2\displaystyle \ell_2: its normal is perpendicular to both direction vectors. The distance between the lines is the distance of any point of ℓ2\displaystyle \ell_2 from this plane.

Example. ℓ1: x‾=(1,0,2)+t(1,1,1)\displaystyle {\ell_1:\ \underline{x}}={(1,0,2)+t(1,1,1)}, ℓ2: x‾=(0,1,0)+s(1,0,1)\displaystyle {\ell_2:\ \underline{x}}={(0,1,0)+s(1,0,1)}.

  • n‾=(a,b,1)\displaystyle {\underline{n}}={(a,b,1)}: a+b+1=0\displaystyle {a+b+1}={0}, a+1=0\displaystyle {a+1}={0}, so n‾=(−1,0,1)\displaystyle {\underline{n}}={(-1,0,1)}.
  • The plane through (1,0,2)\displaystyle (1,0,2): −(x−1)+(z−2)=0\displaystyle {-(x-1)+(z-2)}={0}, that is x−z+1=0\displaystyle {x-z+1}={0}.
  • The distance of (0,1,0)\displaystyle (0,1,0): d=∣0−0+1∣2=22\displaystyle {d}={\frac{|0-0+1|}{\sqrt{2}}}={\frac{\sqrt{2}}{2}}.
Exercise 1

What is the distance of P(1,2,3)\displaystyle P(1,2,3) from the plane 2x−y+2z−1=0\displaystyle {2x-y+2z-1}={0}?

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    Exercise 2

    What is the distance between the parallel planes 2x−y+2z=1\displaystyle {2x-y+2z}={1} and 4x−2y+4z=20\displaystyle {4x-2y+4z}={20}? (Hint: divide the second equation by 2.)

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      Exercise 3

      The point P(3,1,4)\displaystyle P(3,1,4) and the line x‾=(1,0,0)+t(1,1,1)\displaystyle {\underline{x}}={(1,0,0)+t(1,1,1)}.

      a

      Find the t\displaystyle t of the foot of the perpendicular.

        b
        The foot X\displaystyle X

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          c
          The distance ∣PX→∣\displaystyle |\overrightarrow{PX}|

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            Exercise 4

            The line x‾=(1,2,3)+t(2,−1,1)\displaystyle {\underline{x}}={(1,2,3)+t(2,-1,1)} is parallel to the plane x+y−z=6\displaystyle {x+y-z}={6} (you saw this in the previous lesson).
            What is the distance between them?

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

              Exercise 5

              ℓ1: x‾=(0,0,1)+t(1,2,0)\displaystyle {\ell_1:\ \underline{x}}={(0,0,1)+t(1,2,0)}, ℓ2: x‾=(1,0,0)+s(0,1,1)\displaystyle {\ell_2:\ \underline{x}}={(1,0,0)+s(0,1,1)}.

              a

              Show that the lines are skew.

                b

                n‾=(a,b,1)\displaystyle {\underline{n}}={(a,b,1)} is perpendicular to both direction vectors. Find a\displaystyle a and b\displaystyle b.

                  c
                  The distance between the lines

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power