# Thread:

1. ## Shortest distance between 2 lines in 3D

Hi all,

I've been investigating the shortest distance between two lines in terms of vectors. So far I have that you need to find the common perpendicular, from which I can get two equations with three unknowns. I believe it's possible to find the ratio of the unknowns from this, but I'm not sure how to go about it. Any help appreciated.

Cheers

2. Originally Posted by DangerousDave
I've been investigating the shortest distance between two lines in terms of vectors. So far I have that you need to find the common perpendicular, from which I can get two equations with three unknowns. I believe it's possible to find the ratio of the unknowns from this, but I'm not sure how to go about it. Any help appreciated.
Suppose the we have two skew lines, $l_1 (t) = P + tD\quad \& \quad l_2 (t) = Q + tE$.
The distance between them is $\frac{{\left| {\overrightarrow {PQ} \cdot \left( {D \times E} \right)} \right|}}{{\left\| {D \times E} \right\|}}$

3. To put this into words, would this be the scalar product of (the line between a known point on each line) with (the unit vector for the scalar product of the direction vectors for each line)? I'm not sure of the significance of the 'x' signs.

Is there no merit in the other approach I mentioned?

4. Originally Posted by DangerousDave
I'm not sure of the significance of the 'x' signs.
Are you saying that you do not understand the idea of the cross product of two vectors?
If that is true what I posted is of absolutely no use to you.

5. I'm afraid so. I've finally got word back from the prof of my course and he says that we don't need to know it and haven't been taught it, even though it's on the official syllabus. I had wondered since, any way you cut it, it seems to involve mathematical techniques we haven't been taught yet.

Perhaps I'll investigate cross products anyway.

Thanks for the help.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 2, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9805343151092529, "perplexity_flag": "head"}