Shortest distance between two lines and common perpendicular












1












$begingroup$


Line 1 has equation: $dfrac{x-8}{3}=dfrac{y+9}{-16}=dfrac{z+1}{-2}$



Line 2 has equation:
$left(begin{matrix}x\y\z
end{matrix}right)=left(begin{matrix}15\29\5
end{matrix}right) + left(begin{matrix}3\8\-5
end{matrix}right)t$



How do you find the shortest distance between lines 1 and 2?



Also how would I find the coordinates of the points where the common perpendicular meets the line 1 and 2? Would I use cross product of direction vectors from both lines? But how would I find the coordinate that starts from?










share|cite|improve this question











$endgroup$












  • $begingroup$
    math.stackexchange.com/questions/210848/…
    $endgroup$
    – user137731
    Dec 1 '15 at 14:05










  • $begingroup$
    Hint: to find two points on Line 1, you can look for values for (x;y;z) which result in 0 or 1. This leads to points (8; -9; -1) and (11; -25; -3). From there, you directly get an equation of the second form, including both direction vectors.
    $endgroup$
    – Axel Kemper
    Dec 1 '15 at 14:09










  • $begingroup$
    What do you mean by second form??
    $endgroup$
    – Ivy
    Dec 1 '15 at 14:17










  • $begingroup$
    The shortest distance between two lines is the length of projection of any vector between the two lines onto the cross product of the direction of the two lines.
    $endgroup$
    – Yiyuan Lee
    Dec 1 '15 at 14:20










  • $begingroup$
    The "second form" is the form used for Line 2: point plus multiple of direction vector. Once you have two points, you can use their difference as direction vector and one of the points as starting point.
    $endgroup$
    – Axel Kemper
    Dec 1 '15 at 14:28
















1












$begingroup$


Line 1 has equation: $dfrac{x-8}{3}=dfrac{y+9}{-16}=dfrac{z+1}{-2}$



Line 2 has equation:
$left(begin{matrix}x\y\z
end{matrix}right)=left(begin{matrix}15\29\5
end{matrix}right) + left(begin{matrix}3\8\-5
end{matrix}right)t$



How do you find the shortest distance between lines 1 and 2?



Also how would I find the coordinates of the points where the common perpendicular meets the line 1 and 2? Would I use cross product of direction vectors from both lines? But how would I find the coordinate that starts from?










share|cite|improve this question











$endgroup$












  • $begingroup$
    math.stackexchange.com/questions/210848/…
    $endgroup$
    – user137731
    Dec 1 '15 at 14:05










  • $begingroup$
    Hint: to find two points on Line 1, you can look for values for (x;y;z) which result in 0 or 1. This leads to points (8; -9; -1) and (11; -25; -3). From there, you directly get an equation of the second form, including both direction vectors.
    $endgroup$
    – Axel Kemper
    Dec 1 '15 at 14:09










  • $begingroup$
    What do you mean by second form??
    $endgroup$
    – Ivy
    Dec 1 '15 at 14:17










  • $begingroup$
    The shortest distance between two lines is the length of projection of any vector between the two lines onto the cross product of the direction of the two lines.
    $endgroup$
    – Yiyuan Lee
    Dec 1 '15 at 14:20










  • $begingroup$
    The "second form" is the form used for Line 2: point plus multiple of direction vector. Once you have two points, you can use their difference as direction vector and one of the points as starting point.
    $endgroup$
    – Axel Kemper
    Dec 1 '15 at 14:28














1












1








1





$begingroup$


Line 1 has equation: $dfrac{x-8}{3}=dfrac{y+9}{-16}=dfrac{z+1}{-2}$



Line 2 has equation:
$left(begin{matrix}x\y\z
end{matrix}right)=left(begin{matrix}15\29\5
end{matrix}right) + left(begin{matrix}3\8\-5
end{matrix}right)t$



How do you find the shortest distance between lines 1 and 2?



Also how would I find the coordinates of the points where the common perpendicular meets the line 1 and 2? Would I use cross product of direction vectors from both lines? But how would I find the coordinate that starts from?










share|cite|improve this question











$endgroup$




Line 1 has equation: $dfrac{x-8}{3}=dfrac{y+9}{-16}=dfrac{z+1}{-2}$



Line 2 has equation:
$left(begin{matrix}x\y\z
end{matrix}right)=left(begin{matrix}15\29\5
end{matrix}right) + left(begin{matrix}3\8\-5
end{matrix}right)t$



How do you find the shortest distance between lines 1 and 2?



Also how would I find the coordinates of the points where the common perpendicular meets the line 1 and 2? Would I use cross product of direction vectors from both lines? But how would I find the coordinate that starts from?







vectors






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 1 '15 at 14:30









Alex M.

28.1k103158




28.1k103158










asked Dec 1 '15 at 13:43









IvyIvy

95112




95112












  • $begingroup$
    math.stackexchange.com/questions/210848/…
    $endgroup$
    – user137731
    Dec 1 '15 at 14:05










  • $begingroup$
    Hint: to find two points on Line 1, you can look for values for (x;y;z) which result in 0 or 1. This leads to points (8; -9; -1) and (11; -25; -3). From there, you directly get an equation of the second form, including both direction vectors.
    $endgroup$
    – Axel Kemper
    Dec 1 '15 at 14:09










  • $begingroup$
    What do you mean by second form??
    $endgroup$
    – Ivy
    Dec 1 '15 at 14:17










  • $begingroup$
    The shortest distance between two lines is the length of projection of any vector between the two lines onto the cross product of the direction of the two lines.
    $endgroup$
    – Yiyuan Lee
    Dec 1 '15 at 14:20










  • $begingroup$
    The "second form" is the form used for Line 2: point plus multiple of direction vector. Once you have two points, you can use their difference as direction vector and one of the points as starting point.
    $endgroup$
    – Axel Kemper
    Dec 1 '15 at 14:28


















  • $begingroup$
    math.stackexchange.com/questions/210848/…
    $endgroup$
    – user137731
    Dec 1 '15 at 14:05










  • $begingroup$
    Hint: to find two points on Line 1, you can look for values for (x;y;z) which result in 0 or 1. This leads to points (8; -9; -1) and (11; -25; -3). From there, you directly get an equation of the second form, including both direction vectors.
    $endgroup$
    – Axel Kemper
    Dec 1 '15 at 14:09










  • $begingroup$
    What do you mean by second form??
    $endgroup$
    – Ivy
    Dec 1 '15 at 14:17










  • $begingroup$
    The shortest distance between two lines is the length of projection of any vector between the two lines onto the cross product of the direction of the two lines.
    $endgroup$
    – Yiyuan Lee
    Dec 1 '15 at 14:20










  • $begingroup$
    The "second form" is the form used for Line 2: point plus multiple of direction vector. Once you have two points, you can use their difference as direction vector and one of the points as starting point.
    $endgroup$
    – Axel Kemper
    Dec 1 '15 at 14:28
















$begingroup$
math.stackexchange.com/questions/210848/…
$endgroup$
– user137731
Dec 1 '15 at 14:05




$begingroup$
math.stackexchange.com/questions/210848/…
$endgroup$
– user137731
Dec 1 '15 at 14:05












$begingroup$
Hint: to find two points on Line 1, you can look for values for (x;y;z) which result in 0 or 1. This leads to points (8; -9; -1) and (11; -25; -3). From there, you directly get an equation of the second form, including both direction vectors.
$endgroup$
– Axel Kemper
Dec 1 '15 at 14:09




$begingroup$
Hint: to find two points on Line 1, you can look for values for (x;y;z) which result in 0 or 1. This leads to points (8; -9; -1) and (11; -25; -3). From there, you directly get an equation of the second form, including both direction vectors.
$endgroup$
– Axel Kemper
Dec 1 '15 at 14:09












$begingroup$
What do you mean by second form??
$endgroup$
– Ivy
Dec 1 '15 at 14:17




$begingroup$
What do you mean by second form??
$endgroup$
– Ivy
Dec 1 '15 at 14:17












$begingroup$
The shortest distance between two lines is the length of projection of any vector between the two lines onto the cross product of the direction of the two lines.
$endgroup$
– Yiyuan Lee
Dec 1 '15 at 14:20




$begingroup$
The shortest distance between two lines is the length of projection of any vector between the two lines onto the cross product of the direction of the two lines.
$endgroup$
– Yiyuan Lee
Dec 1 '15 at 14:20












$begingroup$
The "second form" is the form used for Line 2: point plus multiple of direction vector. Once you have two points, you can use their difference as direction vector and one of the points as starting point.
$endgroup$
– Axel Kemper
Dec 1 '15 at 14:28




$begingroup$
The "second form" is the form used for Line 2: point plus multiple of direction vector. Once you have two points, you can use their difference as direction vector and one of the points as starting point.
$endgroup$
– Axel Kemper
Dec 1 '15 at 14:28










1 Answer
1






active

oldest

votes


















0












$begingroup$

My answer is based on Lee Yiyuan's suggestion.



Rewrite the equation of line 1 as



$$left(begin{matrix}x\y\zend{matrix}right)
=left(begin{matrix}8\-9\-1end{matrix}right)
+left(begin{matrix}3\-16\-2end{matrix}right) t.
$$



A vector perpendicular to both lines is



$$begin{vmatrix}i&j&k\3&-16&-2\3&8&-5end{vmatrix}
=96i+9j+72k.$$



One of the vectors joining two lines is



$$left(begin{matrix}8\-9\-1end{matrix}right)
-left(begin{matrix}15\29\5end{matrix}right)
=left(begin{matrix}-7\-38\-6end{matrix}right).
$$



Calculate the projection of this vector to the vector perpendicular to both lines, and then take its absolute value as the final answer.



begin{split}
& mbox{Distance between $L_1$ and $L_2$}\
=&leftlvertfrac{langle(-7,-38,-6),(96,9,72)rangle}{lVert(96,9,72)rVert}rightrvert\
=&leftlvertfrac{-1446}{sqrt{14481}}rightrvert\
=&frac{482}{sqrt{1609}}
end{split}






share|cite|improve this answer









$endgroup$













    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1554820%2fshortest-distance-between-two-lines-and-common-perpendicular%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    My answer is based on Lee Yiyuan's suggestion.



    Rewrite the equation of line 1 as



    $$left(begin{matrix}x\y\zend{matrix}right)
    =left(begin{matrix}8\-9\-1end{matrix}right)
    +left(begin{matrix}3\-16\-2end{matrix}right) t.
    $$



    A vector perpendicular to both lines is



    $$begin{vmatrix}i&j&k\3&-16&-2\3&8&-5end{vmatrix}
    =96i+9j+72k.$$



    One of the vectors joining two lines is



    $$left(begin{matrix}8\-9\-1end{matrix}right)
    -left(begin{matrix}15\29\5end{matrix}right)
    =left(begin{matrix}-7\-38\-6end{matrix}right).
    $$



    Calculate the projection of this vector to the vector perpendicular to both lines, and then take its absolute value as the final answer.



    begin{split}
    & mbox{Distance between $L_1$ and $L_2$}\
    =&leftlvertfrac{langle(-7,-38,-6),(96,9,72)rangle}{lVert(96,9,72)rVert}rightrvert\
    =&leftlvertfrac{-1446}{sqrt{14481}}rightrvert\
    =&frac{482}{sqrt{1609}}
    end{split}






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      My answer is based on Lee Yiyuan's suggestion.



      Rewrite the equation of line 1 as



      $$left(begin{matrix}x\y\zend{matrix}right)
      =left(begin{matrix}8\-9\-1end{matrix}right)
      +left(begin{matrix}3\-16\-2end{matrix}right) t.
      $$



      A vector perpendicular to both lines is



      $$begin{vmatrix}i&j&k\3&-16&-2\3&8&-5end{vmatrix}
      =96i+9j+72k.$$



      One of the vectors joining two lines is



      $$left(begin{matrix}8\-9\-1end{matrix}right)
      -left(begin{matrix}15\29\5end{matrix}right)
      =left(begin{matrix}-7\-38\-6end{matrix}right).
      $$



      Calculate the projection of this vector to the vector perpendicular to both lines, and then take its absolute value as the final answer.



      begin{split}
      & mbox{Distance between $L_1$ and $L_2$}\
      =&leftlvertfrac{langle(-7,-38,-6),(96,9,72)rangle}{lVert(96,9,72)rVert}rightrvert\
      =&leftlvertfrac{-1446}{sqrt{14481}}rightrvert\
      =&frac{482}{sqrt{1609}}
      end{split}






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        My answer is based on Lee Yiyuan's suggestion.



        Rewrite the equation of line 1 as



        $$left(begin{matrix}x\y\zend{matrix}right)
        =left(begin{matrix}8\-9\-1end{matrix}right)
        +left(begin{matrix}3\-16\-2end{matrix}right) t.
        $$



        A vector perpendicular to both lines is



        $$begin{vmatrix}i&j&k\3&-16&-2\3&8&-5end{vmatrix}
        =96i+9j+72k.$$



        One of the vectors joining two lines is



        $$left(begin{matrix}8\-9\-1end{matrix}right)
        -left(begin{matrix}15\29\5end{matrix}right)
        =left(begin{matrix}-7\-38\-6end{matrix}right).
        $$



        Calculate the projection of this vector to the vector perpendicular to both lines, and then take its absolute value as the final answer.



        begin{split}
        & mbox{Distance between $L_1$ and $L_2$}\
        =&leftlvertfrac{langle(-7,-38,-6),(96,9,72)rangle}{lVert(96,9,72)rVert}rightrvert\
        =&leftlvertfrac{-1446}{sqrt{14481}}rightrvert\
        =&frac{482}{sqrt{1609}}
        end{split}






        share|cite|improve this answer









        $endgroup$



        My answer is based on Lee Yiyuan's suggestion.



        Rewrite the equation of line 1 as



        $$left(begin{matrix}x\y\zend{matrix}right)
        =left(begin{matrix}8\-9\-1end{matrix}right)
        +left(begin{matrix}3\-16\-2end{matrix}right) t.
        $$



        A vector perpendicular to both lines is



        $$begin{vmatrix}i&j&k\3&-16&-2\3&8&-5end{vmatrix}
        =96i+9j+72k.$$



        One of the vectors joining two lines is



        $$left(begin{matrix}8\-9\-1end{matrix}right)
        -left(begin{matrix}15\29\5end{matrix}right)
        =left(begin{matrix}-7\-38\-6end{matrix}right).
        $$



        Calculate the projection of this vector to the vector perpendicular to both lines, and then take its absolute value as the final answer.



        begin{split}
        & mbox{Distance between $L_1$ and $L_2$}\
        =&leftlvertfrac{langle(-7,-38,-6),(96,9,72)rangle}{lVert(96,9,72)rVert}rightrvert\
        =&leftlvertfrac{-1446}{sqrt{14481}}rightrvert\
        =&frac{482}{sqrt{1609}}
        end{split}







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Dec 1 '15 at 14:46









        GNUSupporter 8964民主女神 地下教會GNUSupporter 8964民主女神 地下教會

        12.9k72445




        12.9k72445






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1554820%2fshortest-distance-between-two-lines-and-common-perpendicular%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

            How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...