lines Archives — Quick Math Intuitions Sharing quick intuitions for math ideas Sat, 15 Oct 2016 08:19:38 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 Quick method to find line of shortest distance for skew lines https://quickmathintuitions.org/quick-method-to-find-line-of-shortest-distance-for-skew-lines/?pk_campaign=&pk_source= https://quickmathintuitions.org/quick-method-to-find-line-of-shortest-distance-for-skew-lines/#respond Sun, 26 Jun 2016 05:48:55 +0000 http://quickmathintuitions.org/?p=6 In linear algebra it is sometimes needed to find the equation of the line of shortest distance for two skew lines. What follows is a very quick method of finding…

The post Quick method to find line of shortest distance for skew lines appeared first on Quick Math Intuitions.

]]>
In linear algebra it is sometimes needed to find the equation of the line of shortest distance for two skew lines. What follows is a very quick method of finding that line.

Let’s consider an example. Start with two simple skew lines:

s : \begin{cases} x = 1 + t \\ y = 0 \\ z = -t \end{cases}

r : \begin{cases} x = - k \\ y = k + 2 \\ z = k \end{cases}

(Observation: don’t make the mistake of using the same parameter for both lines. Each lines exist on its own, there’s no link between them, so there’s no reason why they should should be described by the same parameter. If this doesn’t seem convincing, get two lines you know to be intersecting, use the same parameter for both and try to find the intersection point.)

The directional vectors are:

V_{s} = (1, 0, -1), V_{r} = (- 1, 1, 1)

So they clearly aren’t parallel. They aren’t incidental as well, because the only possible intersection point is for y = 0, but when y = 0, r is at (2, 0, -2), which doesn’t belong to s. It does indeed make sense to look for the line of shortest distance between the two, confident that we will find a non-zero result.

The idea is to consider the vector linking the two lines in their generic points and then force the perpendicularity with both lines.
We will call the line of shortest distance t. In our case, the vector between the generic points is (obtained as difference from the generic points of the two lines in their parametric form):

V_{t} = (1 + t + k, -k - 2, -t - k)

Imposing perpendicularity gives us:

V_{t} \cdot V_{s} = (1 + t + k, -k - 2, -t - k) \cdot (1, 0, -1) = 1 + 2t + 2k = 0

V_{t} \cdot V_{r} = (1 + t + k, -k - 2, -t - k) \cdot (- 1, 1, 1) = - 3 - 2t - 3k = 0

Solving the two simultaneous linear equations we obtain as solution (t, k) = (\frac{3}{2}, -2).

This solution allows us to quickly get three results:

  1. The equation of the line of shortest distance between the two skew lines: just replace t and k in V_{t} with the values found. In our case, V_{t} = (\frac{1}{2}, 0, \frac{1}{2}).
  2. The intersection point between t and s: just replace t in the parametric equation of s. In our case, V_{s} = (\frac{5}{2}, 0, -\frac{3}{2}).
  3. The intersection point between t and r: just replace k in the parametric equation of r. In our case, V_{r} = (2, 0, -2).

Do you have a quicker method? Share it in the comments!

The post Quick method to find line of shortest distance for skew lines appeared first on Quick Math Intuitions.

]]>
https://quickmathintuitions.org/quick-method-to-find-line-of-shortest-distance-for-skew-lines/feed/ 0