Class 12 PCM . Mathematics . Mathematics Part II . Three Dimensional Geometry

Chapter 11: Three Dimensional Geometry

Ch 11

Mathematics

Class 12 PCM

Lecture 1

Introduction

Reference video · Lecture 1Introduction

Vector Approach to Three-Dimensional Geometry

Chapter focus

  • Approach: Vector algebra provides a simple way to study geometry in three-dimensional space, alongside Cartesian methods.
  • Topics ahead: Direction cosines and ratios; equations of lines and planes; angles between lines and planes; shortest distance between skew lines; distance from a point to a plane.

Direction Cosines and Direction Ratios

Definition

Direction angles — The angles a directed line makes with the positive xx-, yy- and zz-axes are its direction angles, denoted by α\alpha, β\beta and γ\gamma.

Definition

Direction cosines — The cosines of a directed line's direction angles are its direction cosines, written ll, mm and nn.

Direction-cosine properties

For a directed line, l=cos⁡αl=\cos\alpha, m=cos⁡βm=\cos\beta, and n=cos⁡γn=\cos\gamma. They satisfy l2+m2+n2=1l^2+m^2+n^2=1. Reversing the line changes all three signs; a line without a specified direction has two opposite sets of direction cosines.

l=cos⁡α,m=cos⁡β,n=cos⁡γ,l2+m2+n2=1l=\cos\alpha,\quad m=\cos\beta,\quad n=\cos\gamma,\quad l^2+m^2+n^2=1
Definition

Direction ratios — Any three numbers proportional to the direction cosines of a line are called its direction ratios (direction numbers).

Direction-ratio properties

If (a,b,c)(a,b,c) are direction ratios, any nonzero scalar multiple (ka,kb,kc)(ka,kb,kc) is also a set of direction ratios. A line therefore has infinitely many such sets. For a line not through the origin, use a parallel line through the origin to determine its direction cosines.

k≠0k\ne 0
Convert direction ratios to direction cosines
(l,m,n)=±(a,b,c)a2+b2+c2(l,m,n)=\pm\frac{(a,b,c)}{\sqrt{a^2+b^2+c^2}}

Choose the sign to match the required orientation of the directed line.

Find direction cosines from direction ratios

  1. Find the length of the direction-ratio triple.
    a2+b2+c2\sqrt{a^2+b^2+c^2}
  2. Divide each direction ratio by this length.
    (aa2+b2+c2,ba2+b2+c2,ca2+b2+c2)\left(\frac{a}{\sqrt{a^2+b^2+c^2}},\frac{b}{\sqrt{a^2+b^2+c^2}},\frac{c}{\sqrt{a^2+b^2+c^2}}\right)
  3. Reverse all signs if the opposite direction is required.
    (l,m,n)↦(−l,−m,−n)(l,m,n)\mapsto(-l,-m,-n)
Worked example

Find the direction cosines of a line whose direction ratios are (2,−1,−2)(2,-1,-2).

  1. Find the direction cosines of a line with direction ratios (2,−1,−2)(2,-1,-2).
    22+(−1)2+(−2)2=3\sqrt{2^2+(-1)^2+(-2)^2}=3
  2. Divide each direction ratio by the length.
    (l,m,n)=(23,−13,−23)(l,m,n)=\left(\frac{2}{3},-\frac{1}{3},-\frac{2}{3}\right)
  3. Check that the squares sum to one.
    49+19+49=1\frac{4}{9}+\frac{1}{9}+\frac{4}{9}=1
Answer: (l,m,n)=(23,−13,−23)(l,m,n)=\left(\frac{2}{3},-\frac{1}{3},-\frac{2}{3}\right) for this orientation; the opposite orientation has all signs reversed.
⚠ Common mistake

Do not treat direction ratios as a unique triple: any nonzero proportional triple works. Direction cosines, however, must satisfy l2+m2+n2=1l^2+m^2+n^2=1.

Direction Cosines and Ratios Between Two Points

Definition

Direction of a line segment — For points P(x1,y1,z1)P(x_1,y_1,z_1) and Q(x2,y2,z2)Q(x_2,y_2,z_2), the coordinate differences from PP to QQ give direction ratios for the directed line PQ→\overrightarrow{PQ}.

Distance and direction cosines between two points
d=(x2−x1)2+(y2−y1)2+(z2−z1)2,(l,m,n)=(x2−x1d,y2−y1d,z2−z1d)d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2},\quad(l,m,n)=\left(\frac{x_2-x_1}{d},\frac{y_2-y_1}{d},\frac{z_2-z_1}{d}\right)

These direction cosines correspond to travel from PP to QQ; reversing the order reverses their signs.

Direction ratios between points

A direction-ratio set for PQPQ is (x2−x1,y2−y1,z2−z1)(x_2-x_1,y_2-y_1,z_2-z_1). The reversed set (x1−x2,y1−y2,z1−z2)(x_1-x_2,y_1-y_2,z_1-z_2) describes the opposite direction.

Find direction cosines between two points

  1. Subtract the coordinates of the starting point from the ending point.
    (x2−x1,y2−y1,z2−z1)(x_2-x_1,y_2-y_1,z_2-z_1)
  2. Find the length of this difference triple.
    d=(x2−x1)2+(y2−y1)2+(z2−z1)2d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}
  3. Divide each difference by the length.
    (l,m,n)=(x2−x1d,y2−y1d,z2−z1d)(l,m,n)=\left(\frac{x_2-x_1}{d},\frac{y_2-y_1}{d},\frac{z_2-z_1}{d}\right)
Worked example

Find the direction cosines of the line directed from P(−2,4,−5)P(-2,4,-5) to Q(1,2,3)Q(1,2,3).

  1. Find the direction cosines from P(−2,4,−5)P(-2,4,-5) to Q(1,2,3)Q(1,2,3). First find the coordinate differences.
    (1−(−2),2−4,3−(−5))=(3,−2,8)(1-(-2),2-4,3-(-5))=(3,-2,8)
  2. Find the distance between the points.
    d=32+(−2)2+82=77d=\sqrt{3^2+(-2)^2+8^2}=\sqrt{77}
  3. Divide the coordinate differences by the distance.
    (l,m,n)=(377,−277,877)(l,m,n)=\left(\frac{3}{\sqrt{77}},-\frac{2}{\sqrt{77}},\frac{8}{\sqrt{77}}\right)
Answer: (l,m,n)=(377,−277,877)(l,m,n)=\left(\frac{3}{\sqrt{77}},-\frac{2}{\sqrt{77}},\frac{8}{\sqrt{77}}\right) for the direction from PP to QQ.

Collinear Points

Definition

Collinear points — Three points are collinear if they lie on the same straight line.

Collinearity test using direction ratios

If direction-ratio triples for two segments sharing a point are proportional, the segments are parallel; since they share a point, their endpoints lie on the same line.

AB→∥BC→  ⟹  A,B,C are collinear\overrightarrow{AB}\parallel\overrightarrow{BC}\;\Longrightarrow\;A,B,C\text{ are collinear}

Test whether three points are collinear

  1. Find direction-ratio triples for two segments with a common endpoint.
    AB→=(xB−xA,yB−yA,zB−zA),BC→=(xC−xB,yC−yB,zC−zB)\overrightarrow{AB}=(x_B-x_A,y_B-y_A,z_B-z_A),\quad\overrightarrow{BC}=(x_C-x_B,y_C-y_B,z_C-z_B)
  2. Check whether one triple is a scalar multiple of the other.
    BC→=kAB→\overrightarrow{BC}=k\overrightarrow{AB}
  3. If they are proportional, conclude that the three points are collinear.
    A,B,C are collinearA,B,C\text{ are collinear}
Worked example

Show that the points A(2,3,−4)A(2,3,-4), B(1,−2,3)B(1,-2,3) and C(3,8,−11)C(3,8,-11) are collinear.

  1. For A(2,3,−4)A(2,3,-4), B(1,−2,3)B(1,-2,3) and C(3,8,−11)C(3,8,-11), find direction ratios for ABAB and BCBC.
    AB→=(−1,−5,7),BC→=(2,10,−14)\overrightarrow{AB}=(-1,-5,7),\quad\overrightarrow{BC}=(2,10,-14)
  2. Compare the triples.
    BC→=−2AB→\overrightarrow{BC}=-2\overrightarrow{AB}
  3. The triples are proportional and the segments share BB.
    A,B,C are collinearA,B,C\text{ are collinear}
Answer: The direction ratios are proportional, so AA, BB and CC are collinear.

Coordinate axes as examples

  • xx-axis: Direction cosines (1,0,0)(1,0,0).
  • yy-axis: Direction cosines (0,1,0)(0,1,0).
  • zz-axis: Direction cosines (0,0,1)(0,0,1).
Practice

A directed line makes angles 90∘90^\circ, 60∘60^\circ and 30∘30^\circ with the positive coordinate axes. Find its direction cosines.

Hint: Take the cosine of each direction angle.
Key step: Use (l,m,n)=(cos⁡α,cos⁡β,cos⁡γ)(l,m,n)=(\cos\alpha,\cos\beta,\cos\gamma).
Solution: (l,m,n)=(cos⁡90∘,cos⁡60∘,cos⁡30∘)=(0,12,32)(l,m,n)=(\cos90^\circ,\cos60^\circ,\cos30^\circ)=\left(0,\frac12,\frac{\sqrt3}{2}\right).
Practice

Find the direction cosines from A(0,1,2)A(0,1,2) to B(2,2,1)B(2,2,1).

Hint: Use the coordinate differences in the order B−AB-A, then normalize.
Key step: The differences are (2,1,−1)(2,1,-1) and their length is 6\sqrt6.
Solution: (l,m,n)=(26,16,−16)(l,m,n)=\left(\frac{2}{\sqrt6},\frac{1}{\sqrt6},-\frac{1}{\sqrt6}\right).

Quick recap

  • Direction cosines are the cosines of the three direction angles: l=cos⁡αl=\cos\alpha, m=cos⁡βm=\cos\beta, n=cos⁡γn=\cos\gamma.
  • Direction cosines satisfy l2+m2+n2=1l^2+m^2+n^2=1; reversing direction reverses all three signs.
  • Direction ratios are any proportional triple, and nonzero scalar multiples represent the same line direction.
  • Normalize direction ratios by dividing by a2+b2+c2\sqrt{a^2+b^2+c^2} to obtain direction cosines.
  • Between two points, subtract starting coordinates from ending coordinates; divide these differences by the distance for direction cosines.
  • Three points are collinear when direction-ratio triples of two segments sharing a point are proportional.
Lecture 2

Equation Of A Line In Space

Reference video · Lecture 2Equation Of A Line In Space

Equation of a Line Through a Given Point

Definition

Line in space — A line is uniquely determined by a point on it and its direction, or by two distinct points on it.

Key ideas

  • Direction vector: For a line through a point with position vector a⃗\vec a and parallel to non-zero vector b⃗\vec b, any point on it has position vector r⃗=a⃗+λb⃗\vec r=\vec a+\lambda\vec b.
  • Direction ratios: If b⃗=ai^+bj^+ck^\vec b=a\hat i+b\hat j+c\hat k, then (a,b,c)(a,b,c) are direction ratios; any non-zero scalar multiple gives the same direction.
  • Two given points: For position vectors a⃗\vec a and p⃗\vec p, a direction vector is p⃗−a⃗\vec p-\vec a.
  • Direction cosines: The direction cosines (l,m,n)(l,m,n) can be used as direction ratios for the line.
A line through points A and P, parallel to its direction vector.
A line through points AA and PP, parallel to its direction vector.
Parametric and Cartesian forms

For a line through (x1,y1,z1)(x_1,y_1,z_1) with direction ratios (a,b,c)(a,b,c), equating components in the vector equation gives the parametric equations. Eliminating λ\lambda gives the symmetric Cartesian equation.

Forms of the equation of a line
FormEquation
Vectorr⃗=a⃗+λb⃗\vec r=\vec a+\lambda\vec b
Parametricx=x1+λa,y=y1+λb,z=z1+λcx=x_1+\lambda a,\quad y=y_1+\lambda b,\quad z=z_1+\lambda c
Cartesian (symmetric)x−x1a=y−y1b=z−z1c\frac{x-x_1}{a}=\frac{y-y_1}{b}=\frac{z-z_1}{c}
Cartesian using direction cosinesx−x1l=y−y1m=z−z1n\frac{x-x_1}{l}=\frac{y-y_1}{m}=\frac{z-z_1}{n}
Line through a point and parallel to a vector
r⃗=a⃗+λb⃗,x=x1+λa,y=y1+λb,z=z1+λc,x−x1a=y−y1b=z−z1c\vec r=\vec a+\lambda\vec b,\quad x=x_1+\lambda a,\quad y=y_1+\lambda b,\quad z=z_1+\lambda c,\quad \frac{x-x_1}{a}=\frac{y-y_1}{b}=\frac{z-z_1}{c}

Use a point on the line and any non-zero vector parallel to its direction.

Writing the line equation

  1. Identify a point (x1,y1,z1)(x_1,y_1,z_1) on the line and a direction vector with ratios (a,b,c)(a,b,c).
  2. Write the vector equation using the point's position vector and the direction vector.
    r⃗=(x1i^+y1j^+z1k^)+λ(ai^+bj^+ck^)\vec r=(x_1\hat i+y_1\hat j+z_1\hat k)+\lambda(a\hat i+b\hat j+c\hat k)
  3. Read off the parametric equations, then eliminate λ\lambda for the Cartesian form.
    x=x1+λa,y=y1+λb,z=z1+λcx=x_1+\lambda a,\quad y=y_1+\lambda b,\quad z=z_1+\lambda c
Worked example

Find the vector and Cartesian equations of the line through (5,2,−4)(5,2,-4) parallel to 3i^+2j^−8k^3\hat i+2\hat j-8\hat k.

  1. The line passes through (5,2,−4)(5,2,-4) and is parallel to the given vector.
    a⃗=5i^+2j^−4k^,b⃗=3i^+2j^−8k^\vec a=5\hat i+2\hat j-4\hat k,\quad \vec b=3\hat i+2\hat j-8\hat k
  2. Substitute the point and direction vector into the vector equation.
    r⃗=5i^+2j^−4k^+λ(3i^+2j^−8k^)\vec r=5\hat i+2\hat j-4\hat k+\lambda(3\hat i+2\hat j-8\hat k)
  3. Use direction ratios (3,2,−8)(3,2,-8) to write the Cartesian equation.
    x−53=y−22=z+4−8\frac{x-5}{3}=\frac{y-2}{2}=\frac{z+4}{-8}
Answer: Vector equation: r⃗=5i^+2j^−4k^+λ(3i^+2j^−8k^)\vec r=5\hat i+2\hat j-4\hat k+\lambda(3\hat i+2\hat j-8\hat k). Cartesian equation: x−53=y−22=z+4−8\frac{x-5}{3}=\frac{y-2}{2}=\frac{z+4}{-8}.
⚠ Common mistake

Do not divide by a zero direction ratio in the symmetric form; use the parametric form instead. For example, if a=0a=0, then x=x1x=x_1.

Angle Between Two Lines

Definition

Angle between two lines — The angle between two lines is the acute angle between their direction vectors, independent of where the lines are positioned.

Key ideas

  • Direction vectors: Only the directions matter; parallel copies of lines through the origin have the same angle.
  • Perpendicular lines: Their direction vectors have dot product zero.
  • Parallel lines: Their direction-ratio triples are proportional.
Two directions in space and the acute angle between them.
Two directions in space and the acute angle between them.
Cosine of the angle using direction ratios
cos⁡θ=∣a1a2+b1b2+c1c2a12+b12+c12a22+b22+c22∣\cos\theta=\left|\frac{a_1a_2+b_1b_2+c_1c_2}{\sqrt{a_1^2+b_1^2+c_1^2}\sqrt{a_2^2+b_2^2+c_2^2}}\right|

For direction ratios (a1,b1,c1)(a_1,b_1,c_1) and (a2,b2,c2)(a_2,b_2,c_2), the absolute value gives the acute angle between the lines.

Sine of the angle using direction ratios
sin⁡θ=∣b⃗1×b⃗2∣∣b⃗1∣∣b⃗2∣=(a1b2−a2b1)2+(b1c2−b2c1)2+(c1a2−c2a1)2a12+b12+c12a22+b22+c22\sin\theta=\frac{|\vec b_1\times\vec b_2|}{|\vec b_1||\vec b_2|}=\frac{\sqrt{(a_1b_2-a_2b_1)^2+(b_1c_2-b_2c_1)^2+(c_1a_2-c_2a_1)^2}}{\sqrt{a_1^2+b_1^2+c_1^2}\sqrt{a_2^2+b_2^2+c_2^2}}

Use the cross-product magnitude or its component form.

Angle using direction cosines
cos⁡θ=∣l1l2+m1m2+n1n2∣,sin⁡θ=(l1m2−l2m1)2+(m1n2−m2n1)2+(n1l2−n2l1)2,l12+m12+n12=l22+m22+n22=1\cos\theta=|l_1l_2+m_1m_2+n_1n_2|,\quad \sin\theta=\sqrt{(l_1m_2-l_2m_1)^2+(m_1n_2-m_2n_1)^2+(n_1l_2-n_2l_1)^2},\quad l_1^2+m_1^2+n_1^2=l_2^2+m_2^2+n_2^2=1

Each direction-cosine triple has unit length.

Parallel and perpendicular tests

For direction ratios (a1,b1,c1)(a_1,b_1,c_1) and (a2,b2,c2)(a_2,b_2,c_2), the lines are perpendicular if their dot product is zero and parallel if the triples are proportional.

a1a2+b1b2+c1c2=0,(a1,b1,c1)=k(a2,b2,c2)a_1a_2+b_1b_2+c_1c_2=0,\quad (a_1,b_1,c_1)=k(a_2,b_2,c_2)

Finding the angle between two lines

  1. Extract a direction vector from each line equation.
  2. Substitute the direction ratios into the cosine formula and take the absolute value.
    cos⁡θ=∣b⃗1⋅b⃗2∣b⃗1∣∣b⃗2∣∣\cos\theta=\left|\frac{\vec b_1\cdot\vec b_2}{|\vec b_1||\vec b_2|}\right|
  3. Apply inverse cosine if the angle itself is required.
    θ=cos⁡−1(cos⁡θ)\theta=\cos^{-1}(\cos\theta)
Worked example

Find the angle between r⃗=3i^+2j^−4k^+λ(i^+2j^+2k^)\vec r=3\hat i+2\hat j-4\hat k+\lambda(\hat i+2\hat j+2\hat k) and r⃗=5i^−2j^+μ(3i^+2j^+6k^)\vec r=5\hat i-2\hat j+\mu(3\hat i+2\hat j+6\hat k).

  1. Read the direction vectors from the line equations.
    b⃗1=i^+2j^+2k^,b⃗2=3i^+2j^+6k^\vec b_1=\hat i+2\hat j+2\hat k,\quad \vec b_2=3\hat i+2\hat j+6\hat k
  2. Calculate the dot product and the vector lengths.
    b⃗1⋅b⃗2=3+4+12=19,∣b⃗1∣=3,∣b⃗2∣=7\vec b_1\cdot\vec b_2=3+4+12=19,\quad |\vec b_1|=3,\quad |\vec b_2|=7
  3. Use the formula for the acute angle between lines.
    cos⁡θ=∣193⋅7∣=1921\cos\theta=\left|\frac{19}{3\cdot7}\right|=\frac{19}{21}
Answer: θ=cos⁡−1(1921)\theta=\cos^{-1}\left(\frac{19}{21}\right).
⚠ Common mistake

For the acute angle between lines, keep the absolute value in the cosine formula; otherwise, oppositely directed vectors may produce an obtuse angle.

Practice

Find vector and Cartesian equations of the line through A(1,−2,3)A(1,-2,3) and B(4,0,−1)B(4,0,-1).

Hint: Use AB→\overrightarrow{AB} as a direction vector.
Key step: AB→=(3,2,−4)\overrightarrow{AB}=(3,2,-4).
Solution: Vector equation: r⃗=(i^−2j^+3k^)+λ(3i^+2j^−4k^)\vec r=(\hat i-2\hat j+3\hat k)+\lambda(3\hat i+2\hat j-4\hat k). Cartesian equation: x−13=y+22=z−3−4\frac{x-1}{3}=\frac{y+2}{2}=\frac{z-3}{-4}.
Practice

Find the angle between lines with direction ratios (3,5,4)(3,5,4) and (1,1,2)(1,1,2).

Hint: Use the dot-product cosine formula and take the absolute value.
Key step: The dot product is 1616; the vector lengths are 50\sqrt{50} and 6\sqrt{6}.
Solution: cos⁡θ=16506=8315\cos\theta=\frac{16}{\sqrt{50}\sqrt{6}}=\frac{8\sqrt{3}}{15}, so θ=cos⁡−1(8315)\theta=\cos^{-1}\left(\frac{8\sqrt{3}}{15}\right).

Quick recap

  • A point and a non-zero direction vector determine a line in space; two distinct points also determine a line.
  • The vector equation is r⃗=a⃗+λb⃗\vec r=\vec a+\lambda\vec b; the parametric equations lead to the symmetric Cartesian form.
  • Direction ratios are the components of a direction vector; direction cosines may also serve as direction ratios.
  • The angle between lines depends only on their directions and is found using the dot-product formula.
  • Lines are perpendicular when the direction-vector dot product is zero and parallel when their direction ratios are proportional.
  • The sine formula using direction cosines has squared terms (l1m2−l2m1)2(l_1m_2-l_2m_1)^2, (m1n2−m2n1)2(m_1n_2-m_2n_1)^2, and (n1l2−n2l1)2(n_1l_2-n_2l_1)^2.
Lecture 3

Shortest Distance Between Two Lines

Reference video · Lecture 3Shortest Distance Between Two Lines

Shortest Distance and Types of Line Pairs.

Definition

Shortest distance — The shortest distance between two lines is the minimum length of a segment joining a point on each line.

Line-pair cases

  • Intersecting lines: Their shortest distance is 00.
  • Parallel lines: Their shortest distance is the perpendicular distance between them.
  • Skew lines: They do not intersect, are not parallel, and are non-coplanar.
  • Common perpendicular: The shortest segment between skew lines is perpendicular to both.

Distance Between Two Skew Lines

Definition

Skew lines — Skew lines are non-parallel, non-intersecting lines that lie in different planes.

Key idea

  • Vector forms: Write the lines as r⃗=a⃗1+λb⃗1\vec r=\vec a_1+\lambda\vec b_1 and r⃗=a⃗2+μb⃗2\vec r=\vec a_2+\mu\vec b_2.
  • Shortest-segment direction: It is parallel to b⃗1×b⃗2\vec b_1\times\vec b_2, which is perpendicular to both line directions.
  • Projection: The distance is the magnitude of the projection of the joining vector a⃗2−a⃗1\vec a_2-\vec a_1 onto the common perpendicular.
Vector formula for skew lines
d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣∣b⃗1×b⃗2∣d=\frac{|(\vec b_1\times\vec b_2)\cdot(\vec a_2-\vec a_1)|}{|\vec b_1\times\vec b_2|}

Use when the lines are given in vector form and their directions are not parallel.

Cartesian formula for skew lines
d=∣∣x2−x1y2−y1z2−z1a1b1c1a2b2c2∣∣(b1c2−b2c1)2+(c1a2−c2a1)2+(a1b2−a2b1)2d=\frac{\left|\begin{vmatrix}x_2-x_1&y_2-y_1&z_2-z_1\\a_1&b_1&c_1\\a_2&b_2&c_2\end{vmatrix}\right|}{\sqrt{(b_1c_2-b_2c_1)^2+(c_1a_2-c_2a_1)^2+(a_1b_2-a_2b_1)^2}}

For lines through (x1,y1,z1)(x_1,y_1,z_1) and (x2,y2,z2)(x_2,y_2,z_2), with direction ratios (a1,b1,c1)(a_1,b_1,c_1) and (a2,b2,c2)(a_2,b_2,c_2):

Find the distance between skew lines

  1. Identify a point vector and direction vector from each line.
    a⃗1,b⃗1,a⃗2,b⃗2\vec a_1,\vec b_1,\vec a_2,\vec b_2
  2. Find the cross product of the direction vectors.
    b⃗1×b⃗2\vec b_1\times\vec b_2
  3. Dot this cross product with the joining vector, take the absolute value, and divide by the cross-product magnitude.
    d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣∣b⃗1×b⃗2∣d=\frac{|(\vec b_1\times\vec b_2)\cdot(\vec a_2-\vec a_1)|}{|\vec b_1\times\vec b_2|}
Worked example

Find the shortest distance between r⃗=i^+j^+λ(2i^−j^+k^)\vec r=\hat i+\hat j+\lambda(2\hat i-\hat j+\hat k) and r⃗=2i^+j^−k^+μ(3i^−5j^+2k^)\vec r=2\hat i+\hat j-\hat k+\mu(3\hat i-5\hat j+2\hat k).

  1. Find the shortest distance between the given lines.
    r⃗=i^+j^+λ(2i^−j^+k^),r⃗=2i^+j^−k^+μ(3i^−5j^+2k^)\vec r=\hat i+\hat j+\lambda(2\hat i-\hat j+\hat k),\qquad \vec r=2\hat i+\hat j-\hat k+\mu(3\hat i-5\hat j+2\hat k)
  2. Identify the point and direction vectors, then find the joining vector.
    a⃗1=(1,1,0),b⃗1=(2,−1,1),a⃗2=(2,1,−1),b⃗2=(3,−5,2),a⃗2−a⃗1=(1,0,−1)\vec a_1=(1,1,0),\quad \vec b_1=(2,-1,1),\quad \vec a_2=(2,1,-1),\quad \vec b_2=(3,-5,2),\quad \vec a_2-\vec a_1=(1,0,-1)
  3. Calculate the cross product and its magnitude.
    b⃗1×b⃗2=(3,−1,−7),∣b⃗1×b⃗2∣=59\vec b_1\times\vec b_2=(3,-1,-7),\quad |\vec b_1\times\vec b_2|=\sqrt{59}
  4. Substitute into the skew-line distance formula.
    d=∣(3,−1,−7)⋅(1,0,−1)∣59=∣3+7∣59d=\frac{|(3,-1,-7)\cdot(1,0,-1)|}{\sqrt{59}}=\frac{|3+7|}{\sqrt{59}}
Answer: 1059\frac{10}{\sqrt{59}} units
⚠ Common mistake

In the skew-line formula, use the joining vector a⃗2−a⃗1\vec a_2-\vec a_1 in the dot product; do not replace it with a cross product.

Distance Between Parallel Lines

Definition

Parallel lines — Parallel lines have the same direction and lie in one plane; their distance is the perpendicular distance between them.

Key idea

  • Vector forms: 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.
  • Joining vector: From a point on the first line to a point on the second, it is a⃗2−a⃗1\vec a_2-\vec a_1.
  • Distance: The distance is the magnitude of the component of the joining vector perpendicular to the common direction b⃗\vec b.
Parallel-line distance formula
d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d=\frac{|\vec b\times(\vec a_2-\vec a_1)|}{|\vec b|}

Use when both lines have the same direction vector.

Find the distance between parallel lines

  1. Confirm that the direction vectors are parallel and identify their common direction vector.
    b⃗\vec b
  2. Subtract the selected point vectors to form the joining vector.
    a⃗2−a⃗1\vec a_2-\vec a_1
  3. Take the cross-product magnitude and divide by the direction-vector magnitude.
    d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d=\frac{|\vec b\times(\vec a_2-\vec a_1)|}{|\vec b|}
Worked example

Find the distance between r⃗=i^+2j^−4k^+λ(2i^+3j^+6k^)\vec r=\hat i+2\hat j-4\hat k+\lambda(2\hat i+3\hat j+6\hat k) and r⃗=3i^+3j^−5k^+μ(2i^+3j^+6k^)\vec r=3\hat i+3\hat j-5\hat k+\mu(2\hat i+3\hat j+6\hat k).

  1. Find the distance between the given parallel lines.
    r⃗=i^+2j^−4k^+λ(2i^+3j^+6k^),r⃗=3i^+3j^−5k^+μ(2i^+3j^+6k^)\vec r=\hat i+2\hat j-4\hat k+\lambda(2\hat i+3\hat j+6\hat k),\qquad \vec r=3\hat i+3\hat j-5\hat k+\mu(2\hat i+3\hat j+6\hat k)
  2. The direction vectors match, so the lines are parallel. Find the joining vector and its cross product with the common direction.
    a⃗1=(1,2,−4),a⃗2=(3,3,−5),b⃗=(2,3,6),a⃗2−a⃗1=(2,1,−1),b⃗×(a⃗2−a⃗1)=(−9,14,−4)\vec a_1=(1,2,-4),\quad \vec a_2=(3,3,-5),\quad \vec b=(2,3,6),\quad \vec a_2-\vec a_1=(2,1,-1),\quad \vec b\times(\vec a_2-\vec a_1)=(-9,14,-4)
  3. Apply the parallel-line distance formula.
    d=(−9)2+142+(−4)222+32+62=2937d=\frac{\sqrt{(-9)^2+14^2+(-4)^2}}{\sqrt{2^2+3^2+6^2}}=\frac{\sqrt{293}}{7}
Answer: 2937\frac{\sqrt{293}}{7} units
Practice

Find the shortest distance between r⃗=λ(1,0,1)\vec r=\lambda(1,0,1) and r⃗=(0,2,1)+μ(0,1,0)\vec r=(0,2,1)+\mu(0,1,0).

Hint: Use the scalar triple-product formula for skew lines.
Key step: Calculate (1,0,1)×(0,1,0)=(−1,0,1)(1,0,1)\times(0,1,0)=(-1,0,1), then dot it with the joining vector (0,2,1)(0,2,1).
Solution: d=∣(−1,0,1)⋅(0,2,1)∣2=12d=\frac{|(-1,0,1)\cdot(0,2,1)|}{\sqrt{2}}=\frac{1}{\sqrt{2}} units.
Practice

Find the distance between r⃗=λ(1,2,2)\vec r=\lambda(1,2,2) and r⃗=(1,0,0)+μ(1,2,2)\vec r=(1,0,0)+\mu(1,2,2).

Hint: Use the common direction vector and the difference between the point vectors.
Key step: (1,2,2)×(1,0,0)=(0,2,−2)(1,2,2)\times(1,0,0)=(0,2,-2).
Solution: d=02+22+(−2)212+22+22=223d=\frac{\sqrt{0^2+2^2+(-2)^2}}{\sqrt{1^2+2^2+2^2}}=\frac{2\sqrt{2}}{3} units.

Quick recap

  • Intersecting lines have shortest distance 00; parallel lines are separated by their perpendicular distance.
  • Skew lines are non-parallel, non-intersecting, and non-coplanar.
  • For skew lines, the common perpendicular is parallel to b⃗1×b⃗2\vec b_1\times\vec b_2.
  • Skew-line distance: d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣∣b⃗1×b⃗2∣d=\frac{|(\vec b_1\times\vec b_2)\cdot(\vec a_2-\vec a_1)|}{|\vec b_1\times\vec b_2|}.
  • Parallel-line distance: d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d=\frac{|\vec b\times(\vec a_2-\vec a_1)|}{|\vec b|}.
Lecture 4

Summary

Reference video · Lecture 4Summary

Direction Cosines and Direction Ratios

Direction cosine and ratio relations

Direction cosines satisfy the unit condition. For direction ratios a,b,ca,b,c, normalize them by their length to obtain the direction cosines.

l2+m2+n2=1,l=aa2+b2+c2,m=ba2+b2+c2,n=ca2+b2+c2l^2+m^2+n^2=1,\qquad l=\frac{a}{\sqrt{a^2+b^2+c^2}},\quad m=\frac{b}{\sqrt{a^2+b^2+c^2}},\quad n=\frac{c}{\sqrt{a^2+b^2+c^2}}
Direction cosines from two points
PQ=(x2−x1)2+(y2−y1)2+(z2−z1)2,(l,m,n)=(x2−x1PQ,y2−y1PQ,z2−z1PQ)PQ=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2},\qquad (l,m,n)=\left(\frac{x_2-x_1}{PQ},\frac{y_2-y_1}{PQ},\frac{z_2-z_1}{PQ}\right)

Use the coordinate differences divided by the distance between the points.

Convert direction ratios to direction cosines

  1. Find the length of the direction-ratio vector.
    a2+b2+c2\sqrt{a^2+b^2+c^2}
  2. Divide each direction ratio by that length.
    (aa2+b2+c2,ba2+b2+c2,ca2+b2+c2)\left(\frac{a}{\sqrt{a^2+b^2+c^2}},\frac{b}{\sqrt{a^2+b^2+c^2}},\frac{c}{\sqrt{a^2+b^2+c^2}}\right)
Worked example

Find the direction cosines of a line with direction ratios −18,12,−4-18,12,-4.

  1. Find the direction cosines of a line with direction ratios −18,12,−4-18,12,-4.
  2. Calculate the length of the direction-ratio vector.
    (−18)2+122+(−4)2=22\sqrt{(-18)^2+12^2+(-4)^2}=22
  3. Divide each ratio by the length.
    (−1822,1222,−422)=(−911,611,−211)\left(-\frac{18}{22},\frac{12}{22},-\frac{4}{22}\right)=\left(-\frac{9}{11},\frac{6}{11},-\frac{2}{11}\right)
Answer: The direction cosines are (−911,611,−211)\left(-\frac{9}{11},\frac{6}{11},-\frac{2}{11}\right).
⚠ Common mistake

Do not treat direction ratios as direction cosines automatically; normalize them so their squares sum to 11.

Equations of Lines and Angles Between Lines

Angle between two lines

For the acute angle θ\theta, take the absolute value of the direction-vector dot product so the result is nonnegative.

cos⁡θ=∣l1l2+m1m2+n1n2∣=∣a1a2+b1b2+c1c2∣a12+b12+c12a22+b22+c22\cos\theta=|l_1l_2+m_1m_2+n_1n_2|=\frac{|a_1a_2+b_1b_2+c_1c_2|}{\sqrt{a_1^2+b_1^2+c_1^2}\sqrt{a_2^2+b_2^2+c_2^2}}

Find the angle between two lines

  1. Read the direction ratios or direction cosines of each line.
  2. Substitute them into the angle formula and take the absolute value.
    cos⁡θ=∣d⃗1⋅d⃗2∣∣d⃗1∣∣d⃗2∣\cos\theta=\frac{|\vec d_1\cdot\vec d_2|}{|\vec d_1||\vec d_2|}
  3. Find the acute angle from the resulting cosine.
    θ=cos⁡−1(cos⁡θ)\theta=\cos^{-1}(\cos\theta)
Worked example

Find the acute angle between lines with direction vectors (1,2,2)(1,2,2) and (2,1,2)(2,1,2).

  1. Find the acute angle between lines with direction vectors (1,2,2)(1,2,2) and (2,1,2)(2,1,2).
  2. Find the dot product and the two vector lengths.
    (1)(2)+(2)(1)+(2)(2)=8,∣d⃗1∣=∣d⃗2∣=3(1)(2)+(2)(1)+(2)(2)=8,\qquad |\vec d_1|=|\vec d_2|=3
  3. Use the direction-vector angle formula.
    cos⁡θ=83⋅3=89\cos\theta=\frac{8}{3\cdot3}=\frac{8}{9}
Answer: θ=cos⁡−1(89)\theta=\cos^{-1}\left(\frac{8}{9}\right).
⚠ Common mistake

For the acute angle between lines, use the absolute value of the dot product; a negative dot product only reflects the chosen direction of a line.

Shortest Distance Between Skew Lines

Shortest distance between skew lines
d=∣(a⃗2−a⃗1)⋅(d⃗1×d⃗2)∣∣d⃗1×d⃗2∣=∣∣x2−x1y2−y1z2−z1a1b1c1a2b2c2∣∣(b1c2−b2c1)2+(c1a2−c2a1)2+(a1b2−a2b1)2d=\frac{|(\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)|}{|\vec d_1\times\vec d_2|}=\frac{\left|\begin{vmatrix}x_2-x_1&y_2-y_1&z_2-z_1\\a_1&b_1&c_1\\a_2&b_2&c_2\end{vmatrix}\right|}{\sqrt{(b_1c_2-b_2c_1)^2+(c_1a_2-c_2a_1)^2+(a_1b_2-a_2b_1)^2}}

For Cartesian lines with direction ratios (a1,b1,c1)(a_1,b_1,c_1) and (a2,b2,c2)(a_2,b_2,c_2) through points P1P_1 and P2P_2, use the scalar triple product formula.

Calculate the shortest distance

  1. Identify a point on each line and each line's direction vector.
  2. Compute the cross product of the direction vectors.
    d⃗1×d⃗2\vec d_1\times\vec d_2
  3. Take the absolute scalar triple product and divide by the cross-product length.
    ∣(a⃗2−a⃗1)⋅(d⃗1×d⃗2)∣∣d⃗1×d⃗2∣\frac{|(\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)|}{|\vec d_1\times\vec d_2|}
Worked example

Find the shortest distance between r⃗=λ(1,0,0)\vec r=\lambda(1,0,0) and r⃗=(0,1,1)+μ(0,1,0)\vec r=(0,1,1)+\mu(0,1,0).

  1. Find the shortest distance between r⃗=λ(1,0,0)\vec r=\lambda(1,0,0) and r⃗=(0,1,1)+μ(0,1,0)\vec r=(0,1,1)+\mu(0,1,0).
  2. Take a⃗1=(0,0,0)\vec a_1=(0,0,0), a⃗2=(0,1,1)\vec a_2=(0,1,1), d⃗1=(1,0,0)\vec d_1=(1,0,0) and d⃗2=(0,1,0)\vec d_2=(0,1,0).
    d⃗1×d⃗2=(0,0,1)\vec d_1\times\vec d_2=(0,0,1)
  3. Apply the shortest-distance formula.
    ∣(0,1,1)⋅(0,0,1)∣∣(0,0,1)∣=1\frac{|(0,1,1)\cdot(0,0,1)|}{|(0,0,1)|}=1
Answer: The shortest distance is 11.
Practice

Show that (2,3,4)(2,3,4), (−1,−2,1)(-1,-2,1) and (5,8,7)(5,8,7) are collinear.

Hint: Compare the direction vectors from the first point to each of the other points.
Key step: The two direction vectors are scalar multiples.
Solution: (−1,−2,1)−(2,3,4)=(−3,−5,−3)( -1,-2,1)-(2,3,4)=(-3,-5,-3) and (5,8,7)−(2,3,4)=(3,5,3)=−1(−3,−5,−3)(5,8,7)-(2,3,4)=(3,5,3)=-1(-3,-5,-3). Hence the points are collinear.
Practice

Find the vector and Cartesian equations of the line through (1,2,3)(1,2,3) parallel to 3i^+2j^−2k^3\hat i+2\hat j-2\hat k.

Hint: Use the given point as the position vector and the coefficients as direction ratios.
Key step: Substitute the point and direction vector into the line forms.
Solution: Vector form: r⃗=(i^+2j^+3k^)+λ(3i^+2j^−2k^)\vec r=(\hat i+2\hat j+3\hat k)+\lambda(3\hat i+2\hat j-2\hat k). Cartesian form: x−13=y−22=z−3−2\frac{x-1}{3}=\frac{y-2}{2}=\frac{z-3}{-2}.

Quick recap

  • Direction cosines are axis-angle cosines and satisfy l2+m2+n2=1l^2+m^2+n^2=1.
  • Normalize direction ratios by their length to obtain direction cosines.
  • A line through position vector a⃗\vec a parallel to b⃗\vec b has vector equation r⃗=a⃗+λb⃗\vec r=\vec a+\lambda\vec b.
  • The acute angle between lines follows from the absolute dot product of their direction vectors.
  • Skew lines are non-parallel, non-intersecting lines in different planes.
  • Their shortest distance is the scalar triple product magnitude divided by the cross-product length.

Formula sheet

Convert direction ratios to direction cosines
(l,m,n)=±(a,b,c)a2+b2+c2(l,m,n)=\pm\frac{(a,b,c)}{\sqrt{a^2+b^2+c^2}}
Distance and direction cosines between two points
d=(x2−x1)2+(y2−y1)2+(z2−z1)2,(l,m,n)=(x2−x1d,y2−y1d,z2−z1d)d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2},\quad(l,m,n)=\left(\frac{x_2-x_1}{d},\frac{y_2-y_1}{d},\frac{z_2-z_1}{d}\right)
Line through a point and parallel to a vector
r⃗=a⃗+λb⃗,x=x1+λa,y=y1+λb,z=z1+λc,x−x1a=y−y1b=z−z1c\vec r=\vec a+\lambda\vec b,\quad x=x_1+\lambda a,\quad y=y_1+\lambda b,\quad z=z_1+\lambda c,\quad \frac{x-x_1}{a}=\frac{y-y_1}{b}=\frac{z-z_1}{c}
Cosine of the angle using direction ratios
cos⁡θ=∣a1a2+b1b2+c1c2a12+b12+c12a22+b22+c22∣\cos\theta=\left|\frac{a_1a_2+b_1b_2+c_1c_2}{\sqrt{a_1^2+b_1^2+c_1^2}\sqrt{a_2^2+b_2^2+c_2^2}}\right|
Sine of the angle using direction ratios
sin⁡θ=∣b⃗1×b⃗2∣∣b⃗1∣∣b⃗2∣=(a1b2−a2b1)2+(b1c2−b2c1)2+(c1a2−c2a1)2a12+b12+c12a22+b22+c22\sin\theta=\frac{|\vec b_1\times\vec b_2|}{|\vec b_1||\vec b_2|}=\frac{\sqrt{(a_1b_2-a_2b_1)^2+(b_1c_2-b_2c_1)^2+(c_1a_2-c_2a_1)^2}}{\sqrt{a_1^2+b_1^2+c_1^2}\sqrt{a_2^2+b_2^2+c_2^2}}
Angle using direction cosines
cos⁡θ=∣l1l2+m1m2+n1n2∣,sin⁡θ=(l1m2−l2m1)2+(m1n2−m2n1)2+(n1l2−n2l1)2,l12+m12+n12=l22+m22+n22=1\cos\theta=|l_1l_2+m_1m_2+n_1n_2|,\quad \sin\theta=\sqrt{(l_1m_2-l_2m_1)^2+(m_1n_2-m_2n_1)^2+(n_1l_2-n_2l_1)^2},\quad l_1^2+m_1^2+n_1^2=l_2^2+m_2^2+n_2^2=1
Vector formula for skew lines
d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣∣b⃗1×b⃗2∣d=\frac{|(\vec b_1\times\vec b_2)\cdot(\vec a_2-\vec a_1)|}{|\vec b_1\times\vec b_2|}
Cartesian formula for skew lines
d=∣∣x2−x1y2−y1z2−z1a1b1c1a2b2c2∣∣(b1c2−b2c1)2+(c1a2−c2a1)2+(a1b2−a2b1)2d=\frac{\left|\begin{vmatrix}x_2-x_1&y_2-y_1&z_2-z_1\\a_1&b_1&c_1\\a_2&b_2&c_2\end{vmatrix}\right|}{\sqrt{(b_1c_2-b_2c_1)^2+(c_1a_2-c_2a_1)^2+(a_1b_2-a_2b_1)^2}}
Parallel-line distance formula
d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d=\frac{|\vec b\times(\vec a_2-\vec a_1)|}{|\vec b|}
Direction cosines from two points
PQ=(x2−x1)2+(y2−y1)2+(z2−z1)2,(l,m,n)=(x2−x1PQ,y2−y1PQ,z2−z1PQ)PQ=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2},\qquad (l,m,n)=\left(\frac{x_2-x_1}{PQ},\frac{y_2-y_1}{PQ},\frac{z_2-z_1}{PQ}\right)
Shortest distance between skew lines
d=∣(a⃗2−a⃗1)⋅(d⃗1×d⃗2)∣∣d⃗1×d⃗2∣=∣∣x2−x1y2−y1z2−z1a1b1c1a2b2c2∣∣(b1c2−b2c1)2+(c1a2−c2a1)2+(a1b2−a2b1)2d=\frac{|(\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)|}{|\vec d_1\times\vec d_2|}=\frac{\left|\begin{vmatrix}x_2-x_1&y_2-y_1&z_2-z_1\\a_1&b_1&c_1\\a_2&b_2&c_2\end{vmatrix}\right|}{\sqrt{(b_1c_2-b_2c_1)^2+(c_1a_2-c_2a_1)^2+(a_1b_2-a_2b_1)^2}}

Mathematics — ALL CHAPTERS

1

Relations And Functions

View

2

Inverse Trigonometric Functions

View

3

Matrices

View

4

DETERMINANTS 

View

5

Continuity And Differentiability

View

6

Application Of Derivatives

View

7

Integrals

View

8

APPLICATION OF INTEGRALS

View

9

DIFFERENTIAL EQUATIONS

View

10

VECTOR ALGEBRA

View

11

Three Dimensional Geometry

View

12

Linear Programming

View

13

Probability

View

14

Proofs In Mathematics

View

15

Mathematical Modelling

View