Mathematics: Class 12 (Book 2) — Chapter 5: Three Dimensional Geometry

11.1 Direction Cosines and Direction Ratios of a Line

In three-dimensional space, a directed line's orientation is uniquely determined by the angles it makes with the positive coordinate axes. These angles are fundamental to vector and Cartesian representations of spatial geometry.

Historical Chronicle / Epigraph: Leonhard Euler (1707-1783)

  • Historical Context & Milestones: One of the most prolific mathematicians in history, Euler made foundational contributions to mechanics, fluid dynamics, optics, astronomy, and geometry. He introduced much of the modern mathematical terminology and notation, including the concept of a mathematical function.
  • Theoretical Foundations: His work laid the groundwork for analytical geometry in three dimensions, standardizing the use of coordinate systems and algebraic methods to solve spatial geometric problems.
Direction Angles and Direction Cosines

If a directed line $L$ passing through the origin makes angles $\alpha$, $\beta$, and $\gamma$ with the positive $x$, $y$, and $z$-axes respectively, then:

  • The angles $\alpha, \beta, \gamma$ are called the direction angles of the line.
  • The cosines of these angles, namely $\cos\alpha$, $\cos\beta$, and $\cos\gamma$, are called the direction cosines (d.c.'s) of the line, typically denoted by $l$, $m$, and $n$:$$l = \cos\alpha, \quad m = \cos\beta, \quad n = \cos\gamma$$
  • Fundamental Identity: The sum of the squares of the direction cosines of any line is always equal to unity:$$l^2 + m^2 + n^2 = 1$$
  • Reversal of Direction: If the direction of the line is reversed, the direction angles are replaced by their supplements $(\pi - \alpha, \pi - \beta, \pi - \gamma)$, which reverses the signs of the direction cosines to $-l, -m, -n$.
Direction Ratios

Any three numbers $a$, $b$, and $c$ that are proportional to the direction cosines $l$, $m$, and $n$ of a line are called the direction ratios (d.r.'s) or direction numbers of the line.

  • Thus, for some non-zero real number $\lambda$:$$a = \lambda l, \quad b = \lambda m, \quad c = \lambda n$$
  • Relationship between d.c.'s and d.r.'s: $$l = \pm \frac{a}{\sqrt{a^2 + b^2 + c^2}}, \quad m = \pm \frac{b}{\sqrt{a^2 + b^2 + c^2}}, \quad n = \pm \frac{c}{\sqrt{a^2 + b^2 + c^2}}$$The sign (positive or negative) is chosen consistently depending on the desired direction of the line.
Direction Cosines of a Line Passing Through Two Points

For a unique line passing through two given points $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$:

  • The distance $PQ$ is given by:$$PQ = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}$$
  • The direction cosines of the line segment $PQ$ are:$$l = \frac{x_2 - x_1}{PQ}, \quad m = \frac{y_2 - y_1}{PQ}, \quad n = \frac{z_2 - z_1}{PQ}$$
  • The direction ratios of the line segment joining $P$ and $Q$ can be taken simply as:$$x_2 - x_1, \quad y_2 - y_1, \quad z_2 - z_1$$
11.2 Equation of a Line in Space

A line in three-dimensional space can be uniquely determined under two primary geometric conditions: passing through a point parallel to a given vector, or passing through two distinct points.

Line Through a Given Point and Parallel to a Given Vector

Let the line pass through a point $A$ with position vector $\vec{a}$ and be parallel to a non-zero vector $\vec{b}$.

  • Vector Equation: $$\vec{r} = \vec{a} + \lambda \vec{b}$$where $\vec{r}$ is the position vector of any arbitrary point $P(x, y, z)$ on the line, and $\lambda$ is a real parameter.
  • Cartesian Equation: If $A$ is $(x_1, y_1, z_1)$ and the direction ratios of the parallel vector $\vec{b}$ are $a, b, c$:$$\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}$$
  • If the direction cosines $l, m, n$ of the line are known instead of direction ratios, the equation is:$$\frac{x - x_1}{l} = \frac{y - y_1}{m} = \frac{z - z_1}{n}$$
Line Passing Through Two Given Points

Let the line pass through two points $A$ and $B$ with position vectors $\vec{a}$ and $\vec{b}$ respectively.

  • Vector Equation: $$\vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a})$$
  • Cartesian Equation: If the points are $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$:$$\frac{x - x_1}{x_2 - x_1} = \frac{y - y_1}{y_2 - y_1} = \frac{z - z_1}{z_2 - z_1}$$
11.3 Angle Between Two Lines

The angle between two lines in space is defined as the angle between their parallel vectors passing through the origin.

Mathematical Formulations
  • Vector Form: If the lines are parallel to vectors $\vec{b}_1$ and $\vec{b}_2$, the acute angle $\theta$ between them is:$$\cos\theta = \left| \frac{\vec{b}_1 \cdot \vec{b}_2}{|\vec{b}_1| |\vec{b}_2|} \right|$$
  • Cartesian Form: If the direction ratios of the two lines are $a_1, b_1, c_1$ and $a_2, b_2, c_2$:$$\cos\theta = \left| \frac{a_1 a_2 + b_1 b_2 + c_1 c_2}{\sqrt{a_1^2 + b_1^2 + c_1^2}\sqrt{a_2^2 + b_2^2 + c_2^2}} \right|$$
  • Using Direction Cosines: If the direction cosines are $l_1, m_1, n_1$ and $l_2, m_2, n_2$:$$\cos\theta = |l_1 l_2 + m_1 m_2 + n_1 n_2|$$
Conditions for Perpendicularity and Parallelism
  • Perpendicular Lines ($\theta = 90^\circ$): $$a_1 a_2 + b_1 b_2 + c_1 c_2 = 0 \quad \text{or} \quad l_1 l_2 + m_1 m_2 + n_1 n_2 = 0$$
  • Parallel Lines ($\theta = 0^\circ$): $$\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}$$
11.4 Shortest Distance Between Two Lines

In three-dimensional space, lines can be intersecting, parallel, or skew. Skew lines are lines that are neither parallel nor intersecting; they lie in different planes.

Shortest Distance Between Skew Lines

The shortest distance between two skew lines is the length of the common perpendicular segment joining them.

  • Vector Form: For lines $\vec{r} = \vec{a}_1 + \lambda \vec{b}_1$ and $\vec{r} = \vec{a}_2 + \mu \vec{b}_2$:$$d = \left| \frac{(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)}{|\vec{b}_1 \times \vec{b}_2|} \right|$$
  • Cartesian Form: For lines $\frac{x-x_1}{a_1} = \frac{y-y_1}{b_1} = \frac{z-z_1}{c_1}$ and $\frac{x-x_2}{a_2} = \frac{y-y_2}{b_2} = \frac{z-z_2}{c_2}$:$$d = \frac{\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}}{\sqrt{(b_1 c_2 - b_2 c_1)^2 + (c_1 a_2 - c_2 a_1)^2 + (a_1 b_2 - a_2 b_1)^2}}$$
Shortest Distance Between Parallel Lines

If two lines are parallel, they are coplanar and have the same direction vector $\vec{b}$.

  • Vector Form: For lines $\vec{r} = \vec{a}_1 + \lambda \vec{b}$ and $\vec{r} = \vec{a}_2 + \mu \vec{b}$:$$d = \left| \frac{\vec{b} \times (\vec{a}_2 - \vec{a}_1)}{|\vec{b}|} \right|$$
Core Formulas & Reference Matrix
Geometric Concept Vector Representation Cartesian Representation Key Conditions / Properties
Direction Cosines (d.c.'s) $\hat{u} = l\hat{i} + m\hat{j} + n\hat{k}$ $l = \cos\alpha, m = \cos\beta, n = \cos\gamma$ $l^2 + m^2 + n^2 = 1$
Line through $\vec{a}$ parallel to $\vec{b}$ $\vec{r} = \vec{a} + \lambda \vec{b}$ $\frac{x-x_1}{a} = \frac{y-y_1}{b} = \frac{z-z_1}{c}$ $\vec{b} = a\hat{i} + b\hat{j} + c\hat{k}$
Line through two points $\vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a})$ $\frac{x-x_1}{x_2-x_1} = \frac{y-y_1}{y_2-y_1} = \frac{z-z_1}{z_2-z_1}$ Direction ratios: $x_2-x_1, y_2-y_1, z_2-z_1$
Angle between two lines $\cos\theta = \left|\frac{\vec{b}_1 \cdot \vec{b}_2}{|\vec{b}_1||\vec{b}_2|}\right|$ $\cos\theta = \left|\frac{a_1 a_2 + b_1 b_2 + c_1 c_2}{\sqrt{\sum a_1^2}\sqrt{\sum a_2^2}}\right|$ Perpendicular if $\vec{b}_1 \cdot \vec{b}_2 = 0$
Shortest Distance (Skew Lines) $d = \left|\frac{(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)}{|\vec{b}_1 \times \vec{b}_2|}\right|$ Determinant ratio form $d = 0$ if lines intersect
Shortest Distance (Parallel Lines) $d = \left|\frac{\vec{b} \times (\vec{a}_2 - \vec{a}_1)}{|\vec{b}|}\right|$ N/A Lines share direction vector $\vec{b}$
Algorithmic Solved Examples

Mathematical Problem Statement: Find the direction cosines of the line passing through the two points $P(-2, 4, -5)$ and $Q(1, 2, 3)$.


Step-by-Step Algorithmic Solution Trace:

  1. Identify the coordinates of the given points:$$P(x_1, y_1, z_1) = (-2, 4, -5) \quad \text{and} \quad Q(x_2, y_2, z_2) = (1, 2, 3)$$
  2. Compute the direction ratios of the line segment $PQ$:$$x_2 - x_1 = 1 - (-2) = 3$$$$y_2 - y_1 = 2 - 4 = -2$$$$z_2 - z_1 = 3 - (-5) = 8$$
  3. Calculate the distance $PQ$ using the distance formula:$$PQ = \sqrt{(3)^2 + (-2)^2 + (8)^2} = \sqrt{9 + 4 + 64} = \sqrt{77}$$
  4. Determine the direction cosines ($l, m, n$) using the ratio of direction ratios to the distance $PQ$:$$l = \frac{3}{\sqrt{77}}, \quad m = \frac{-2}{\sqrt{77}}, \quad n = \frac{8}{\sqrt{77}}$$

Final Evaluation Output: The direction cosines of the line joining the two points are $\left(\frac{3}{\sqrt{77}}, \frac{-2}{\sqrt{77}}, \frac{8}{\sqrt{77}}\right)$.

Mathematical Problem Statement: Find the shortest distance between the skew lines $l_1$ and $l_2$ whose vector equations are:$$\vec{r} = (\hat{i} + \hat{j}) + \lambda(2\hat{i} - \hat{j} + \hat{k})$$$$\vec{r} = (2\hat{i} + \hat{j} - \hat{k}) + \mu(3\hat{i} - 5\hat{j} + 2\hat{k})$$


Step-by-Step Algorithmic Solution Trace:

  1. Identify the position vectors $\vec{a}_1, \vec{a}_2$ and direction vectors $\vec{b}_1, \vec{b}_2$:$$\vec{a}_1 = \hat{i} + \hat{j}, \quad \vec{b}_1 = 2\hat{i} - \hat{j} + \hat{k}$$$$\vec{a}_2 = 2\hat{i} + \hat{j} - \hat{k}, \quad \vec{b}_2 = 3\hat{i} - 5\hat{j} + 2\hat{k}$$
  2. Compute the difference vector $\vec{a}_2 - \vec{a}_1$:$$\vec{a}_2 - \vec{a}_1 = (2-1)\hat{i} + (1-1)\hat{j} + (-1-0)\hat{k} = \hat{i} - \hat{k}$$
  3. Calculate the cross product $\vec{b}_1 \times \vec{b}_2$:$$\vec{b}_1 \times \vec{b}_2 = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 2 & -1 & 1 \\ 3 & -5 & 2 \end{vmatrix}$$$$\vec{b}_1 \times \vec{b}_2 = \hat{i}(-2 - (-5)) - \hat{j}(4 - 3) + \hat{k}(-10 - (-3)) = 3\hat{i} - \hat{j} - 7\hat{k}$$
  4. Calculate the magnitude of the cross product $|\vec{b}_1 \times \vec{b}_2|$:$$|\vec{b}_1 \times \vec{b}_2| = \sqrt{3^2 + (-1)^2 + (-7)^2} = \sqrt{9 + 1 + 49} = \sqrt{59}$$
  5. Compute the dot product $(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)$:$$(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1) = (3\hat{i} - \hat{j} - 7\hat{k}) \cdot (\hat{i} - \hat{k}) = 3(1) + (-1)(0) + (-7)(-1) = 3 + 7 = 10$$
  6. Apply the shortest distance formula:$$d = \left| \frac{(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)}{|\vec{b}_1 \times \vec{b}_2|} \right| = \frac{10}{\sqrt{59}}$$

Final Evaluation Output: The shortest distance between the two lines is $\frac{10}{\sqrt{59}}$ units.