I tried using a point on the first line called P and entered $s=0$ and $s=2$ to get q and r. I then took the cross product of qr and qp then used the distance formula but this didn"t seem to work.

You are watching: Find the distance between the skew lines with parametric equations



The squared distance between a point on each line is given by


Now you need to find the shortest distance and it suffices to cancel the partial derivaties on $t$ and $s$:


By solving the linear system, you get $t$ and $s$, then the points and the distance.

You can write a point on the first line as $P = (2,1,0) + t(1,6,2)$ and a point on the second line as $Q = (1,6,-1) + s(2,14,5)$. If you take the difference $P - Q$ you get $(1,-5,1) + t(1,6,2) + s(-2,-14,-5)$.

So your problem is equivalent to finding the distance between the plane given by $(1,-5,1) + t(1,6,2) + s(-2,-14,-5)$ and the origin. The first step here is to find a normal vector $\katifund.orgbf{n}$ to the plane, you can use $\katifund.orgbf{n} = (1,6,2) \times (-2,-14,-5) = (-2,1,-2)$. Now take any vector $\katifund.orgbf{v}$ in the plane (for example, $\katifund.orgbf{v} = (1,-5,1))$ you can compute the distance as:

$$D = \frac{|\katifund.orgbf{v} \cdot \katifund.orgbf{n}|}{||\katifund.orgbf{n}||} = \frac{|-2 - 5 - 2|}{\sqrt{4 + 1 + 4}} = \frac{9}{3} = 3$$

In general, if your lines are given by $\katifund.orgbf{p} + t\katifund.orgbf{v}$ and $\katifund.orgbf{q} + s\katifund.orgbf{w}$, you can compute:

$$D = \frac{|(\katifund.orgbf{p} - \katifund.orgbf{q}) \cdot \katifund.orgbf{n}|}{||\katifund.orgbf{n}||}; \qquad \qquad \katifund.orgbf{n} = \katifund.orgbf{v} \times \katifund.orgbf{w}$$

answered Oct 17 "16 at 20:28

Alex ZornAlex Zorn
4,00688 silver badges1010 bronze badges
Add a comment |

Your Answer

Thanks for contributing an answer to katifund.orgematics 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 katifund.orgJax to format equations. katifund.orgJax reference.

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

See more: Terraria How To Open Dungeon Chests Without Keys, How To Get Biome Keys In Terraria

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Facebook
Sign up using Email and Password

Post as a guest

Email Required, but never shown

Post as a guest


Required, but never shown

Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged multivariable-calculus or ask your own question.

Featured on Meta
Derive Distance of skew lines with methods from analysis
distance between lines in the space (with calculus)
Finding distance between two parallel 3D lines
Distance between point and plane
Using Lagrange multipliers to find the shortest distance between two straight lines
Derivation of plane equation by means of parametric equations
Distance in 3-space between two parallel vectors
Find a vector orthogonal to two given lines which are represented as parametric equations
Distance between 2 skew lines (Weird Result?)
Find the plane which contains the lines.
Hot Network Questions more hot questions

Question feed
Subscribe to RSS
Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader.


Stack Exchange Network
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.9.20.40247

katifund.orgematics Stack Exchange works best with JavaScript enabled

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.