Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

I Finding shortest distance between skew lines, checking work.

  1. Aug 4, 2016 #1
    Hi everyone.

    I was working on a problem for days.

    The problem statement is: "Consider points P(2,1,3), Q(1,2,1), R(-1,-1,-2), S(1,-4,0). Find the shortest distance between lines PQ and RS."

    Now, I did the following formula: PS dot (PQ x RS) / magnitude of (PQ x RS). (For skew lines)

    Now, I have that
    PQ = Q-P = (1,2,1) - (2,1,3) = (-1,1,-2) and
    RS = S - R = (1,-4,0)-(-1,-1,-2) = (2,-3,2)
    PS = S - P = (1,-4,0) - (2,1,3) = (-1,-5,-3).

    PQ x RS = < -1, -5, -3>
    Thus, I have PS * (PQ x RS) / | PQ x RS | = <-1,-5,-3> dot <-4,-2,1> (the result of my crossing operation) / sqrt( 4^2 + 2^2 + 1). This results in 11 / sqrt(21).

    This is a strange result to me as the book's solution is sqrt(3). Could anyone please give me some feedback as to what I have done (right or wrong)?

    Thank you in advance!
     
  2. jcsd
  3. Aug 4, 2016 #2

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    I get completely different values here.
    Edit: Ah, just a typo, the line afterwards has the right result.

    I get the same result as you.
     
  4. Aug 4, 2016 #3

    Math_QED

    User Avatar
    Homework Helper

    I didn't check your work, but I think there is an easier method.

    Find the equation of the plane that contains the line PQ and the vector that gives the direction of RS. Try to imagine that. Then, take a random point on the line RS and calculate the distance between the plane and this point (there is this nice formula that you can use)
     
  5. Aug 4, 2016 #4

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    That leads to exactly the calculations RoboNerd did.
     
  6. Aug 4, 2016 #5

    Math_QED

    User Avatar
    Homework Helper

    There is no need to use vector products using this method, which is, in my opinion, easier.
     
  7. Aug 4, 2016 #6

    mathman

    User Avatar
    Science Advisor
    Gold Member

    I checked - your result looks correct (noting the typo). I also tried the other three possible vectors (PR,QR,QS) and got the same result.
     
  8. Aug 4, 2016 #7

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    The vector product is the easiest method to get the normal vector I think.
     
  9. Aug 5, 2016 #8

    Math_QED

    User Avatar
    Homework Helper

    You don't need to find the normal vector in my method. Just find the equation of the plane that contains PQ and the direction of RS. Then calculate the distance between that plane and a random point on RS. I got 11/√21 too.
     
  10. Aug 5, 2016 #9

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    Which method do you use for that?
     
  11. Aug 5, 2016 #10
    Assume we have two lines. One of them passes through the points ##A,B## and the second one passes through the points ##C,D##. Then the distance between the lines is calculated by the following formula

    ##h=\frac{|(\boldsymbol{AB}\times \boldsymbol{CD},\boldsymbol{AC})|}{|\boldsymbol{AB}\times \boldsymbol{CD}|}##
     
  12. Aug 5, 2016 #11

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    @wrobel: That approach has been posted in post#1 already, and calculated by three users in this thread. How does repeating the formula help?
     
  13. Aug 5, 2016 #12
    I did not notice that
     
  14. Aug 5, 2016 #13

    Math_QED

    User Avatar
    Homework Helper

  15. Aug 5, 2016 #14
    OK then. Thank you very much to everyone who took the time out of their busy lives to help me out.

    I am glad that I did not mess up and that the book's answer is wrong.

    Thank you again!
     
  16. Aug 5, 2016 #15

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

  17. Aug 5, 2016 #16

    Math_QED

    User Avatar
    Homework Helper

    Depends whether you have a calculator ;)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Finding shortest distance between skew lines, checking work.
Loading...