Problem: Find the distance between the lines
Solution: First let's find vector parametric equations for each line.
For the first line, we'll start by finding two points on the line. The second equation tells us that
For the second line, we'll start by finding a vector in the direction of the line. Because the line lies in both planes
Now, as the textbook states in Example 9, to find the perpendicular distance between two lines, we just take any vector that goes from a point on one line to a point on the other, and find the length of its vector projection on a vector normal to both lines. (That's the absolute value of its scalar projection on a vector normal to both lines.)
Before we do this, let's try to imagine why this is true. Picture two lines in space. Imagine ``skew'' lines; they are not parallel, but they do not intersect. Now imagine a plane parallel to both lines and containing the first line. For simplicity of imagination, pretend that plane is the floor, and the second line is at some distance above the floor; it is also horizontal, but not parallel to the first line. (Maybe the first line runs north-south and the second line heads off in an east-north-easterly direction. But they're both horizontal.) Imagine a second horizontal plane containing the second line.
Now imagine yourself perched up above both of these planes staring down at them. You'll see a point where the two lines cross; they don't actually meet, but the second line lies directly above the first line at that point. That is the place where you can draw a vertical line between the two lines; becuase it is vertical, it is perpendicular to both of them, so its length is the perpendicular distance between the two lines, and its direction can be given by any vector perpendicular to both lines. Let's say that is a vector perpendicular to both lines.
Now that perpendicular distance between the two lines is just the perpendicular distance between the two horizontal planes. Let's let be a point on the first line (in the bottom plane), be a point on the second line (in the top plane), and be the vector going from to . Since goes from the first plane to the second plane, the absolute value of the vertical component of is the distance between the two planes. And the vertical component of is its scalar projection on the vertical vector . So the distance between the two lines is the absolute value of the scalar projection of on .
Now let's forget about all the horizontal and vertical stuff. Here's what we saw: We take a vector normal to both lines. We take a point on one line, a point on the other line, and the vector between and . The absolute value of the scalar projection of on is the distance between the two lines.
We know vectors in the direction of our two lines, so we can find a vector by taking their cross product:
Just for fun, now that we know how to solve systems of linear equations, let's use the fact that these lines are given by systems of linear equations to find the first line. We start with our system of linear equations,