Careers360 Logo
ask-icon
share
    How to Prepare Physics for JEE Mains 2026? - Experts Tips

    Shortest Distance between Two Lines - Practice Questions & MCQ

    Edited By admin | Updated on Sep 18, 2023 18:34 AM | #JEE Main

    Quick Facts

    • Shortest Distance between Two Lines is considered one the most difficult concept.

    • 58 Questions around this concept.

    Solve by difficulty

    The shortest distance between the lines

    \frac{x}{2}= \frac{y}{2}= \frac{z}{1}  and  \frac{x+2}{-1}= \frac{y-4}{8}= \frac{z-5}{4}   

    lies in the interval :

    If the lines $\frac{x-1}{2}=\frac{y+1}{3}=\frac{z-1}{4}$ and $\frac{x-3}{1}=\frac{y-k}{2}=\frac{z}{1}$ intersect, then k is equal to

    If the shortest distance between the lines $\frac{x-\lambda}{2}=\frac{y-4}{3}=\frac{z-3}{4}$ and $\frac{x-2}{4}=\frac{y-4}{6}=\frac{z-7}{8}$ is $\frac{13}{\sqrt{29}}$, then a value of $\lambda$ is :
     

    JEE Main 2026: January Question Paper with Solutions

    JEE Main 2026 Tools: College Predictor

    JEE Main 2026: Important Formulas | Foreign Universities in India

    Comprehensive Guide: IIT's | NIT'sIIIT's

    The shortest distance between the line
    $
    \frac{x-3}{4}=\frac{y+7}{-11}=\frac{z-1}{5} \text { and } \frac{x-5}{3}=\frac{y-9}{-6}=\frac{z+2}{1}
    $
    is :

    The shortest distance between the lines $\frac{x-2}{2}=\frac{y-3}{2}=\frac{z}{1}$ and $\frac{x+4}{-1}=\frac{y-7}{8}=\frac{z-5}{4}$ is $\lambda$. Then the greatest integral value of $\lambda$ is

    Concepts Covered - 1

    Shortest Distance between Two Lines

    There are three possible types of relations that two different lines can have in a three-dimensional space. They can be

    Parallel lines: when their direction vectors are parallel and the two lines never meet.

    Intersecting lines: when their direction vectors are not parallel and the two lines intersect.

    Skew lines: When two lines neither parallel nor intersecting at a point.  

    For example, consider a cuboid 

    Edges AB and CD  are parallel. Edges AB and BC intersect at a single point B. Edges AB and EH are skew, since they are not parallel and never meet. 

    For skew lines, the line of the shortest distance will be perpendicular to both the lines.

    So, the shortest distance between edges AB and EH is |AE|. 

    Distance between two skew lines

    If L1 and L2  are two skew lines, then there is one and only one line perpendicular to each of lines L1 and L2 which is known as the line of shortest distance.

    Vector form

    $\mathrm{L}_1: \quad \overrightarrow{\mathbf{r}}=\overrightarrow{\mathbf{r}}_0+\lambda \overrightarrow{\mathbf{b}}$
    $\mathrm{L}_2: \quad \overrightarrow{\mathbf{r}}=\overrightarrow{\mathbf{r}}_0+\mu \overrightarrow{\mathbf{b}^{\prime}}$
    Let $S$ be any point on the line $L_1$ with position vector $\overrightarrow{\mathbf{r}}_0$ and $T$ on $L_2$ with position vector $\overrightarrow{\mathbf{r}}_0$. Then the magnitude of the shortest distance vector will be equal to that of the projection of $S T$ along the direction of the line of shortest distance.

    ${ }_{\text {If }} \overrightarrow{P Q}$ is the shortest distance vector between $\mathrm{L}_1$ and $\mathrm{L}_2$, then it being perpendicular to both $\overrightarrow{\mathbf{b}}$ and $\overrightarrow{\mathbf{b}^{\prime}}$, therefore, the unit vector $\hat{\mathbf{n}}$ along $\overrightarrow{P Q}$ would be
    $
    \hat{\mathbf{n}}=\frac{\overrightarrow{\mathrm{b}} \times \overrightarrow{\mathbf{b}^{\prime}}}{\left|\overrightarrow{\mathbf{b}} \times \overrightarrow{\mathbf{b}^{\prime}}\right|}
    $

    Then,
    $
    \overrightarrow{P Q}=d \hat{\mathbf{n}}
    $
    where "d" is the magnitude of the shortest distance vector. Let $\theta$ be the angle between $\overrightarrow{S T}$ and $\overrightarrow{P Q}$.

    Then  

    $
    \begin{aligned}
    \mathrm{PQ} & =\mathrm{ST}|\cos \theta| \\
    \cos \theta & =\left|\frac{\overrightarrow{\mathrm{PQ}} \cdot \overrightarrow{\mathrm{ST}}}{|\overrightarrow{\mathrm{PQ}}||\overrightarrow{\mathrm{ST}}|}\right| \\
    & =\left|\frac{d \hat{n} \cdot\left(\overrightarrow{r_0^{\prime}}-\vec{r}_0\right)}{d \mathrm{ST}}\right|\left(\text { since } \overrightarrow{\mathrm{ST}}=\vec{r}_0^{\prime}-\vec{r}_0\right) \\
    & =\left|\frac{\left(\vec{b} \times \overrightarrow{b^{\prime}}\right) \cdot\left(\overrightarrow{r_0^{\prime}}-\vec{r}_0\right)}{\mathrm{ST}\left|\vec{b} \times \overrightarrow{b^{\prime}}\right|}\right|
    \end{aligned}
    $

    Hence, the required shortest distance is
    or
    $
    \begin{aligned}
    d & =\mathrm{PQ}=\mathrm{ST}|\cos \theta| \\
    \mathbf{d} & =\left|\frac{\left(\overrightarrow{\mathbf{b}} \times \overrightarrow{\mathbf{b}^{\prime}}\right) \cdot\left(\overrightarrow{\mathbf{r}^{\prime}}-\overrightarrow{\mathbf{r}}_0\right)}{\left|\overrightarrow{\mathbf{b}} \times \overrightarrow{\mathbf{b}^{\prime}}\right|}\right|
    \end{aligned}
    $

    For Intersecting lines

    Their shortest distance should be 0

    Vector form

    $
    \left(\vec{b} \times \overrightarrow{b_1}\right) \cdot\left(\overrightarrow{\mathbf{r}_0^{\prime}}-\overrightarrow{\mathbf{r}}_0\right)=0
    $

    Distance between parallel lines
    Let two lines $L_1$ and $L_2$ be parallel. Let the equation of lines be given by
    $\mathrm{L}_1: \quad \overrightarrow{\mathbf{r}}=\overrightarrow{\mathbf{r}}_0+\lambda \overrightarrow{\mathbf{b}}$
    $\mathrm{L}_2: \quad \overrightarrow{\mathbf{r}}=\overrightarrow{\mathbf{r}}_0^{\prime}+\mu \overrightarrow{\mathbf{b}}$
    where, $\overrightarrow{\mathbf{r}}_0$ is the position vector of a point $S$ on $\mathrm{L}_1$ and $\overrightarrow{\mathbf{r}}_0$ is the position vector of a point $T$ on $\mathrm{L}_2$.
    Let $\theta$ be the angle between the vectors ST and $\overrightarrow{\mathbf{b}}$.

    Then,
    $
    \overrightarrow{\mathbf{b}} \times \overrightarrow{\mathrm{ST}}=(|\overrightarrow{\mathbf{b}}||\overrightarrow{\mathrm{ST}}| \sin \theta)) \hat{\mathbf{n}}
    $
    where $\hat{\mathbf{n}}$ is the unit vector perpendicular to the plane of the lines $L_1$ and $\underline{L_2}$.
    but
    $
    \begin{aligned}
    & \overrightarrow{S T}=\overrightarrow{\mathbf{r}}_0-\overrightarrow{\mathbf{r}}_0 \\
    & \Rightarrow \quad \overrightarrow{\mathbf{b}} \times\left(\overrightarrow{\mathbf{r}}_0-\overrightarrow{\mathbf{r}}_0\right)=(|\overrightarrow{\mathbf{b}}||\overrightarrow{\mathrm{PT}}|) \hat{\mathbf{n}} \quad \text { (since } \mathrm{PT}=\mathrm{ST} \sin \theta \text { ) } \\
    & \text { i.e. } \left.\quad\left|\overrightarrow{\mathbf{b}} \times\left(\overrightarrow{\mathbf{r}}_0-\overrightarrow{\mathbf{r}}_0\right)\right|=(|\overrightarrow{\mathbf{b}}||\overrightarrow{\mathrm{PT}}|) \cdot 1 \quad \text { (as }|\hat{\mathbf{n}}|=1\right)
    \end{aligned}
    $

    Hence, the distance between the given parallel lines is
    $
    \mathbf{d}=|\overrightarrow{\mathrm{PT}}|=\left|\frac{\overrightarrow{\mathbf{b}} \times\left(\overrightarrow{\mathbf{r}}_0^{\prime}-\overrightarrow{\mathbf{r}}_0\right)}{|\overrightarrow{\mathbf{b}}|}\right|
    $

    Study it with Videos

    Shortest Distance between Two Lines

    "Stay in the loop. Receive exam news, study resources, and expert advice!"

    Get Answer to all your questions