# Lines and Planes - Distances

In this section, I'll consider the problem of finding the distance between two objects, each of which is a point, a line, or a plane. Some of these cases have sub-cases: For instance, the problem of finding the distance between two parallel lines is different from the problem of finding the distance between two skew lines.

Example. Find the distance from the point to the plane .

I'll find a point Q on the plane and construct the vector . The vector is perpendicular to the plane. I'll compute , the component of on .

You can see from the picture that is the distance from the point to the plane.

To get a point Q on the plane, set two of the variables equal to numbers and solve for the third. For example, let and . I get , so is on the plane.

Therefore,

The component of on is

The distance from the point to the plane is .

Example. Find the distance from the point to the line

There is a formula for computing the distance from a point to a line, but I'll work this out by hand so you can see the idea.

I'll find a point Q on the line and construct the vector . The vector is parallel to the line. I'll compute the scalar component of on .

Finally, you can see from the picture that the distance is given by Pythagoras' theorem:

I can get a point on the line by setting t equal to some number (any number will do). Set : I get , , and , so the point is on the line.

Therefore,

Hence,

Hence,

Remark. There are essentially two kinds of distance problems involving points, lines, and planes. I'm ignoring the point-to-point problem, since for that you simply use the distance formula.

You can visualize parallel planes as the floor and the ceiling of a room.

In the line-to-plane case, the line and plane ought to be parallel; if not, they intersect, and the distance is 0. Since the line is parallel to the plane, think of the plane as the floor and the line as lying in the ceiling.

You can visualize skew lines using the ceiling-floor trick, too: Think of one line as lying in the floor and the other as lying in the ceiling, in such a way that the lines aren't parallel.

Finally, in the original point-to-plane case, the plane is the floor and the point lies in the ceiling.

The ceiling-floor picture explains why these four cases are really the same.

Example. The following lines are skew: They aren't parallel, and they don't intersect.

Find the distance between the lines.

Picture one line lying in the ceiling and the other lying in the floor. The method we use is essentially the same as the method we'd use for the distance between parallel planes, or the distance from a point to a plane.

Set : The point lies in the first line.

Set : The point lies in the second line. Then .

Next, I need a vector perpendicular to both the "ceiling" and the "floor", i.e. perpendicular to both lines. The vector is parallel to the first line, and the vector is parallel to the second line. Hence, their cross product will be perpendicular to both lines:

To find the distance, I take the absolute value of the component of on :

The distance is .

Example. The following lines are parallel:

Find the distance between them.

This example uses a setup like the one for the distance from a point to a line.

Setting gives the point on the first line.

Setting gives the point on the second line.

Hence, is a vector from the first line to the second line.

The vector is parallel to the first line (and also to the second line, since the lines are parallel. Then

The distance is given by Pythagoras:

Example. The following planes are parallel:

Find the distance between them.

This example uses a setup like the one for the distance from a point to a plane.

Setting and in the first plane gives . The point lies on the first plane.

Setting and in the second plane gives , so . The point lies on the second plane.

The vector goes from the first plane to the second plane.

The vector is perpendicular to the first plane (and also to the second plane, since the planes are parallel).

The distance is given by the absolute value of the component of on the perpendicular vector :

The distance is given by the absolute value: .

Example. The following line and plane are parallel:

Find the distance between them.

Notice that I can think of the line as lying in a plane parallel to the given plane. So this is like finding the distance between two parallel planes.

Setting in the line equations, I find that the point lies on the line.

Setting and in the plane equation, I get , so . Therefore, the point lies on the plane.

Hence, the point goes from the line to the plane.

The vector is perpendicular to the plane. Then

The distance is given by the absolute value of . The distance is .

Contact information