Class 12 Maths, Worked in Full Past papersGet updates
Chapter 11 · Three Dimensional Geometry

Example 10: Distance between two parallel lines along 2i^+3j^+6k^2\hat i + 3\hat j + 6\hat k

ExamplesDistance between parallel lines · Section 11.5.2
The question

Find the distance between the lines l1l_1 and l2l_2 given by

r⃗=i^+2j^−4k^+λ(2i^+3j^+6k^)\begin{aligned} \vec r = {}&\hat i + 2\hat j - 4\hat k \\ &+ \lambda(2\hat i + 3\hat j + 6\hat k) \end{aligned}

and

r⃗=3i^+3j^−5k^+μ(2i^+3j^+6k^)\begin{aligned} \vec r = {}&3\hat i + 3\hat j - 5\hat k \\ &+ \mu(2\hat i + 3\hat j + 6\hat k) \end{aligned}
Exam answer

Both lines are parallel to b⃗=2i^+3j^+6k^\vec b = 2\hat i + 3\hat j + 6\hat k⁠, so they are parallel.

Here a⃗1=i^+2j^−4k^\vec a_1 = \hat i + 2\hat j - 4\hat k and a⃗2=3i^+3j^−5k^\vec a_2 = 3\hat i + 3\hat j - 5\hat k⁠.

a⃗2−a⃗1=2i^+j^−k^\vec a_2 - \vec a_1 = 2\hat i + \hat j - \hat k b⃗×(a⃗2−a⃗1)=∣i^j^k^23621−1∣=(−3−6)i^−(−2−12)j^+(2−6)k^=−9i^+14j^−4k^\begin{aligned} &\vec b\times(\vec a_2 - \vec a_1) \\ &= \begin{vmatrix} \hat i & \hat j & \hat k \\ 2 & 3 & 6 \\ 2 & 1 & -1 \end{vmatrix} \\ &= (-3 - 6)\hat i - (-2 - 12)\hat j \\ &\quad + (2 - 6)\hat k \\ &= -9\hat i + 14\hat j - 4\hat k \end{aligned} ∣b⃗×(a⃗2−a⃗1)∣=81+196+16=293\begin{aligned} &|\vec b\times(\vec a_2 - \vec a_1)| \\ &= \sqrt{81 + 196 + 16} = \sqrt{293} \end{aligned} ∣b⃗∣=4+9+36=49=7|\vec b| = \sqrt{4 + 9 + 36} = \sqrt{49} = 7

The distance between the parallel lines is

d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d = \frac{|\vec b\times(\vec a_2 - \vec a_1)|}{|\vec b|}

∴ d=2937\therefore\ d = \dfrac{\sqrt{293}}{7} units.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Parallel lines are a constant distance apart. Take a point SS on l1l_1 and a point TT on l2l_2⁠: the parallelogram on b⃗\vec b and ST→\overrightarrow{ST} has area ∣b⃗×ST→∣|\vec b\times\overrightarrow{ST}|⁠, and also area = base ×\times height = ∣b⃗∣×d|\vec b| \times d⁠. So d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d = \frac{|\vec b\times(\vec a_2 - \vec a_1)|}{|\vec b|}⁠.

Given, to find, and the plan
Given
l1l_1⁠: r⃗=i^+2j^−4k^\vec r = \hat i + 2\hat j - 4\hat k + λ(2i^+3j^+6k^)+\ \lambda(2\hat i + 3\hat j + 6\hat k)⁠; l2l_2⁠: r⃗=3i^+3j^−5k^\vec r = 3\hat i + 3\hat j - 5\hat k + μ(2i^+3j^+6k^)+\ \mu(2\hat i + 3\hat j + 6\hat k)⁠.
To find
The distance dd between l1l_1 and l2l_2⁠.
Plan
(1) Show the lines are parallel (the book's "Why?"). (2) Find a⃗2−a⃗1\vec a_2 - \vec a_1⁠. (3) Find b⃗×(a⃗2−a⃗1)\vec b\times(\vec a_2 - \vec a_1)⁠. (4) Find the two lengths. (5) Divide. (6) Check with the foot of the perpendicular.

Basics you need

1Distance between parallel lines

For r⃗=a⃗1+λb⃗\vec r = \vec a_1 + \lambda\vec b and r⃗=a⃗2+μb⃗\vec r = \vec a_2 + \mu\vec b (Section 11.5.2):

d=∣b⃗×(a⃗2−a⃗1)∣b⃗∣∣.d = \left|\frac{\vec b\times(\vec a_2 - \vec a_1)}{|\vec b|}\right|.

Lesson: the shortest distance

2The cross product and area

∣a⃗×b⃗∣=∣a⃗∣∣b⃗∣sin⁡θ|\vec a\times\vec b| = |\vec a||\vec b|\sin\theta⁠, the area of the parallelogram on a⃗\vec a and b⃗\vec b (Section 10.6.3). Basics: the cross product

3Parallel lines

Lines with the same (or proportional) direction vectors are parallel (Section 11.4). Basics: a line is a point and a direction

4Length of a vector

∣xi^+yj^+zk^∣=x2+y2+z2|x\hat i + y\hat j + z\hat k| = \sqrt{x^2 + y^2 + z^2}⁠. Basics: Pythagoras in 3D

Solution

  1. Why the lines are parallel

    Both equations have the same direction vector b⃗=2i^+3j^+6k^\vec b = 2\hat i + 3\hat j + 6\hat k⁠, so l1∥l2l_1 \parallel l_2⁠. We take

    a⃗1=i^+2j^−4k^,a⃗2=3i^+3j^−5k^.\begin{aligned} \vec a_1 &= \hat i + 2\hat j - 4\hat k, \\ \vec a_2 &= 3\hat i + 3\hat j - 5\hat k. \end{aligned}
    This answers the book's "(Why?)": the vector multiplied by the parameter is the direction of each line, and here it is the same vector 2i^+3j^+6k^2\hat i + 3\hat j + 6\hat k in both. The lines are also different lines: the point T(3,3,−5)T(3, 3, -5) of l2l_2 is not on l1l_1⁠, because ST→=2i^+j^−k^\overrightarrow{ST} = 2\hat i + \hat j - \hat k (from S(1,2,−4)S(1, 2, -4) on l1l_1⁠) is not a multiple of b⃗\vec b (22≠13\frac22 \ne \frac13⁠). So the distance is not 0.
    Parallel lines have proportional direction ratios (Section 11.4). Basics: a⃗ + λb⃗
  2. The joining vector

    a⃗2−a⃗1=(3−1)i^+(3−2)j^+(−5+4)k^=2i^+j^−k^.\begin{aligned} \vec a_2 - \vec a_1 &= (3 - 1)\hat i + (3 - 2)\hat j \\ &\quad + (-5 + 4)\hat k \\ &= 2\hat i + \hat j - \hat k. \end{aligned}
    This is ST→\overrightarrow{ST}⁠, from the point SS of l1l_1 to the point TT of l2l_2⁠. The last component is −5−(−4)=−1-5 - (-4) = -1⁠.
    Vector joining two points (Section 10.5.2). Basics: points in space
  3. The cross product b⃗×(a⃗2−a⃗1)\vec b\times(\vec a_2 - \vec a_1)

    b⃗×(a⃗2−a⃗1)=∣i^j^k^23621−1∣=((3)(−1)−(6)(1))i^−((2)(−1)−(6)(2))j^+((2)(1)−(3)(2))k^=−9i^+14j^−4k^.\begin{aligned} \vec b\times(\vec a_2 - \vec a_1) &= \begin{vmatrix} \hat i & \hat j & \hat k \\ 2 & 3 & 6 \\ 2 & 1 & -1 \end{vmatrix} \\ &= \big((3)(-1) - (6)(1)\big)\hat i \\ &\quad - \big((2)(-1) - (6)(2)\big)\hat j \\ &\quad + \big((2)(1) - (3)(2)\big)\hat k \\ &= -9\hat i + 14\hat j - 4\hat k. \end{aligned}
    The top row is i^,j^,k^\hat i, \hat j, \hat k⁠, the second row b⃗\vec b⁠, the third a⃗2−a⃗1\vec a_2 - \vec a_1⁠, in that order. The j^\hat j term is −(−2−12)=+14-(-2 - 12) = +14⁠: the minus sign of the middle term and the negative bracket cancel.
    Determinant form of the cross product (Section 10.6.3). Basics: the cross product
  4. The two lengths

    ∣b⃗×(a⃗2−a⃗1)∣=81+196+16=293,∣b⃗∣=4+9+36=49=7.\begin{aligned} &|\vec b\times(\vec a_2 - \vec a_1)| \\ &\quad = \sqrt{81 + 196 + 16} = \sqrt{293}, \\ &|\vec b| = \sqrt{4 + 9 + 36} = \sqrt{49} = 7. \end{aligned}
    (−9)2=81(-9)^2 = 81⁠, 142=19614^2 = 196⁠, (−4)2=16(-4)^2 = 16⁠, and 81+196+16=29381 + 196 + 16 = 293⁠. 293 is a prime number, so 293\sqrt{293} does not simplify.
    Length of a vector. Basics: Pythagoras in 3D
  5. Divide

    d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣=2937.d = \frac{|\vec b\times(\vec a_2 - \vec a_1)|}{|\vec b|} = \frac{\sqrt{293}}{7}.
    In the book's Fig 11.7, with PP the foot of the perpendicular from TT to l1l_1 and θ\theta the angle between ST→\overrightarrow{ST} and b⃗\vec b⁠, the distance is PT=STsin⁡θPT = ST\sin\theta⁠. Since ∣b⃗×ST→∣=∣b⃗∣ STsin⁡θ=∣b⃗∣ PT|\vec b\times\overrightarrow{ST}| = |\vec b|\,ST\sin\theta = |\vec b|\,PT⁠, dividing by ∣b⃗∣|\vec b| leaves PTPT⁠. In words: parallelogram area divided by base gives the height.
    Section 11.5.2, distance between parallel lines. Lesson: Examples 9–10
  6. Check with the foot of the perpendicular

    The foot PP of the perpendicular from TT to l1l_1 is the point S+λb⃗S + \lambda\vec b with PT→⋅b⃗=0\overrightarrow{PT}\cdot\vec b = 0⁠:

    λ=ST→⋅b⃗∣b⃗∣2=4+3−649=149.\lambda = \frac{\overrightarrow{ST}\cdot\vec b}{|\vec b|^2} = \frac{4 + 3 - 6}{49} = \frac{1}{49}.

    So P=(5149,10149,−19049)P = \left(\frac{51}{49}, \frac{101}{49}, -\frac{190}{49}\right) and

    PT→=149(96i^+46j^−55k^),\overrightarrow{PT} = \frac{1}{49}(96\hat i + 46\hat j - 55\hat k), PT=9216+2116+302549=1435749=729349=2937.\begin{aligned} PT &= \frac{\sqrt{9216 + 2116 + 3025}}{49} \\ &= \frac{\sqrt{14357}}{49} \\ &= \frac{7\sqrt{293}}{49} = \frac{\sqrt{293}}{7}. \end{aligned}
    S(1, 2, −4) T(3, 3, −5) P l₁ l₂ d = √293/7
    Oblique projection, not to scale (lengths and right angles are not shown true). The parallel lines l1l_1 and l2l_2⁠, the given points SS and TT⁠, and the perpendicular TPTP of length 2937\frac{\sqrt{293}}{7}⁠. PP is very close to SS⁠, because λ=149\lambda = \frac{1}{49} there.
    PT→⋅b⃗=149(192+138−330)=0\overrightarrow{PT}\cdot\vec b = \frac{1}{49}(192 + 138 - 330) = 0⁠, so TPTP really is perpendicular to the lines, and its length agrees with the formula (14357=49×29314357 = 49 \times 293⁠). PP is so close to SS because ST→\overrightarrow{ST} is almost perpendicular to b⃗\vec b⁠: ST→⋅b⃗=1\overrightarrow{ST}\cdot\vec b = 1 is small compared with ∣ST→∣ ∣b⃗∣=76|\overrightarrow{ST}|\,|\vec b| = 7\sqrt6⁠.
    The distance between parallel lines is the length of the perpendicular from a point of one to the other (Section 11.5). Basics: projection
Result

The lines are parallel, and the distance between them is 2937\frac{\sqrt{293}}{7} units.

(Textbook answer: 2937\frac{\sqrt{293}}{7}⁠.)

Check it with numbers

293≈17.117243\sqrt{293} \approx 17.117243⁠, so d≈2.445320d \approx 2.445320⁠. The joining segment ST=4+1+1=6≈2.449490ST = \sqrt{4 + 1 + 1} = \sqrt6 \approx 2.449490 is only slightly longer than dd⁠, as it should be, since SS is close to the foot PP⁠.

Common mistakes
  1. Using the skew-lines formula. For parallel lines b⃗1×b⃗2=0⃗\vec b_1\times\vec b_2 = \vec 0⁠, so that formula divides by 0; use ∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣\frac{|\vec b\times(\vec a_2 - \vec a_1)|}{|\vec b|}⁠.
  2. Dividing by ∣b⃗∣2=49|\vec b|^2 = 49 instead of ∣b⃗∣=7|\vec b| = 7⁠.
  3. Sign slips in the determinant, especially the middle term: −((2)(−1)−(6)(2))=+14-\big((2)(-1) - (6)(2)\big) = +14⁠.
  4. Taking ∣a⃗2−a⃗1∣=6|\vec a_2 - \vec a_1| = \sqrt6 as the distance. STST is a slanting segment; the distance is measured perpendicular to the lines.
What to take away
  1. Parallel lines: d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d = \frac{|\vec b\times(\vec a_2 - \vec a_1)|}{|\vec b|}⁠, area of the parallelogram divided by its base.
  2. Same direction vector in both equations means parallel lines; check a point to be sure they are not the same line.
  3. Compare with skew lines (Example 9), where the cross product of the two directions gives the common perpendicular.

Every fact used, and where it comes from

FactUsed inSource
Same direction vector means parallel linesStep 1Section 11.4 (Basics)
Vector joining two pointsStep 2Section 10.5.2
Determinant form of the cross productStep 3Section 10.6.3 (Basics)
∣b⃗×ST→∣=∣b⃗∣ STsin⁡θ|\vec b\times\overrightarrow{ST}| = |\vec b|\,ST\sin\theta⁠, PT=STsin⁡θPT = ST\sin\thetaStep 5Section 11.5.2, equation (3) and Fig 11.7
d=∣b⃗×(a⃗2−a⃗1)∣b⃗∣∣d = \left|\frac{\vec b\times(\vec a_2 - \vec a_1)}{|\vec b|}\right|Step 5Section 11.5.2 (Lesson)
Distance between parallel lines = perpendicular from a point of one to the otherStep 6Section 11.5 (Basics)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →