In review — free for everyone. While a book is in review you are one of its reviewers: read it, use it, and tell us what is wrong. When the reports settle, the Class 12 pass is ₹999 for the year and this book’s PDF is ₹299.
From arrows to geometry
Chapter 10 built vectors as free-floating arrows — magnitude and direction, with no fixed position in space. This chapter anchors that arrow into a real geometric object that lives in 3D space: a line.
A line is an arrow fixed at one point and let run forever in both directions. It is completely described by a point and a direction vector — those two ingredients are everything this chapter computes with.
Every question this chapter asks reduces to the same short list: do two lines meet, at what angle, how far apart are two lines that never touch. The geometry is new. The machinery computing it — the dot product for angles, the cross product for distances — is entirely Chapter 10’s.
Direction cosines and direction ratios of a line
A line pointing through space makes some angle with each of the three axes. Call these angles $\alpha, \beta, \gamma$ against the $x$, $y$, $z$ axes respectively. The direction cosines $l, m, n$ are simply $\cos \alpha, \cos \beta, \cos \gamma$ — three numbers, one line, one fixed triple.
Squaring and adding those three cosines always gives $1$: $l^2+m^2+n^2=1$. This is not a separate fact to memorise — it is the same identity a unit vector’s components already satisfy, since $(l, m, n)$ is exactly the unit vector pointing along the line.
Direction ratios $a, b, c$ are a looser cousin: any three numbers proportional to $l, m, n$. A line has exactly one triple of direction cosines but infinitely many triples of direction ratios — $(2,4,4)$, $(1,2,2)$, $(3,6,6)$ all describe the same direction. Recovering the cosines from a given set of ratios means dividing each by the magnitude of the triple: $l = a/\sqrt{a^2+b^2+c^2}$, and likewise for $m$ and $n$.
Two points on a line already fix its direction, without needing any angle measured against the axes. For a line through $P(x_1,y_1,z_1)$ and $Q(x_2,y_2,z_2)$, the direction ratios are simply the coordinate differences: $x_2-x_1$, $y_2-y_1$, $z_2-z_1$ — how far the line moves along each axis in going from $P$ to $Q$.
*Dividing each of those three differences by the distance $P Q$ turns the ratios into the actual direction cosines*, since $P Q = \sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}$ is exactly the magnitude the previous section divided by. No angle is ever measured directly — the two points do all the work.
Find the direction cosines of the line through $P(2,1,-1)$ and $Q(5,5,11)$
- $P(2,1,-1)$, $Q(5,5,11)$
Given two points; direction ratios come from the coordinate differences. - Direction ratios: $5-2, 5-1, 11-(-1) = 3, 4, 12$
Subtract $P$'s coordinates from $Q$'s coordinates, in order. - Magnitude: $\sqrt{3^2+4^2+12^2} = \sqrt{9+16+144} = \sqrt{169} = 13$
Magnitude of the direction-ratio triple, needed to normalise it into cosines. - *Direction cosines: $(3/13, 4/13, 12/13)$*
Divide each direction ratio by the magnitude to get the direction cosines.
A set of direction ratios like $(2,4,4)$ looks ready to use immediately: three numbers, a fixed direction, why not drop them straight into any formula that asks for direction cosines?
That shortcut skips a real requirement. Direction cosines must satisfy $l^2+m^2+n^2=1$, and $(2,4,4)$ fails it outright: $4+16+16=36 \neq 1$. A direction-ratio triple is not automatically the direction-cosine triple; it is only ever proportional to it.
Dividing $(2,4,4)$ by its own magnitude $\sqrt{2^2+4^2+4^2} = 6$ gives the true cosines $(1/3, 2/3, 2/3)$, and $1/9+4/9+4/9=1$ confirms the identity now holds. Direction ratios are any proportional triple; direction cosines are the one normalised triple pointing the same way — and normalising is never optional.
Equation of a line in space
A line is fixed by one point on it and one direction it runs in. If $\vec{a}$ is the position vector of a known point on the line and $\vec{b}$ is a vector parallel to it, the line’s equation is $\vec{r} = \vec{a} + \lambda \vec{b}$, where $\vec{r}$ is the position vector of a general point on the line.
$\lambda \in \mathbb{R}$ is a free parameter, not a fixed number — it is what makes the equation describe an entire line rather than one point. *Each value of $\lambda$ traces out exactly one point on the line, and every point on the line is hit by exactly one value of $\lambda$.* Setting $\lambda = 0$ recovers the starting point $\vec{a}$; every other value slides along the direction $\vec{b}$, forwards or backwards.
Writing the vector equation $\vec{r} = \vec{a} + \lambda \vec{b}$ out component by component turns it into three separate equations, one for each coordinate. Eliminating $\lambda$ between them gives a single chain of equal ratios — the symmetric, or Cartesian, form of the line.
With point $(x_1,y_1,z_1)$ and direction ratios $a, b, c$, the line reads $(x-x_1)/a = (y-y_1)/b = (z-z_1)/c$. Reading a point and a set of direction ratios straight off this equation converts it back to the vector form without any further work — the point sits in the numerators, the direction ratios sit in the denominators.
Find the Cartesian equation of the line through $A(1,2,-3)$ and $B(3,-2,1)$
- $A(1,2,-3)$, $B(3,-2,1)$
Given two points; direction ratios come from the coordinate differences. - Direction ratios: $3-1, -2-2, 1-(-3) = 2, -4, 4$
Subtract $A$'s coordinates from $B$'s coordinates, in order. - Simplify to $1, -2, 2$
Divide the triple by its common factor $2$; any proportional triple is an equally valid set of direction ratios. - *Using point $A$: $(x-1)/1 = (y-2)/(-2) = (z+3)/2$*
Substitute the point and the simplified direction ratios into the symmetric form directly.
Angle between two lines
Two lines meeting in space carry an angle between them — and that angle is entirely decided by their direction vectors, never by where the lines happen to sit. Finding it is a dot-product calculation, exactly as it was for two vectors in Chapter 10.
With direction ratios $a_1,b_1,c_1$ and $a_2,b_2,c_2$ for the two lines: $\cos \theta = \left|a_1 a_2+b_1 b_2+c_1 c_2\right|/(\sqrt{a_1^2+b_1^2+c_1^2} \sqrt{a_2^2+b_2^2+c_2^2})$. The absolute value keeps $\theta$ as the acute angle between the lines, regardless of which way each direction vector happens to point.
Two special cases fall straight out of the same formula: the lines are perpendicular exactly when $a_1 a_2+b_1 b_2+c_1 c_2 = 0$ — the dot product itself vanishes — and parallel exactly when $a_1/a_2 = b_1/b_2 = c_1/c_2$, meaning one direction is a scalar multiple of the other.
Find the angle between two lines with direction ratios $(2,2,1)$ and $(4,1,8)$
- Direction ratios $(2,2,1)$ and $(4,1,8)$
Given two lines; the angle between them uses only these two triples. - Dot product: $2 \cdot 4+2 \cdot 1+1 \cdot 8 = 18$
Multiply matching components and add. - Magnitudes: $\sqrt{2^2+2^2+1^2} = 3$ and $\sqrt{4^2+1^2+8^2} = 9$
Each magnitude is the square root of the sum of squares of its own triple. - *$\cos \theta = 18/(3 \cdot 9) = 2/3$*
Divide the dot product by the product of the two magnitudes to get $\cos \theta$, giving $\theta = \arccos(2/3)$.
Shortest distance between two lines
Two lines in space that neither meet nor run parallel are called skew — genuinely different from anything Class 11 plane geometry could produce, where two non-parallel lines always cross. The shortest segment joining two skew lines is perpendicular to both of them at once.
That perpendicular direction is exactly $\vec{b_1} \times \vec{b_2}$ — the cross product of the two lines' own direction vectors, since a cross product is perpendicular to both its inputs by construction. Projecting the vector joining any point on one line to any point on the other, $\vec{a_2}-\vec{a_1}$, onto that perpendicular direction gives the shortest distance.
For lines $\vec{r} = \vec{a_1}+\lambda \vec{b_1}$ and $\vec{r} = \vec{a_2}+\mu \vec{b_2}$: $d = \left|(\vec{b_1} \times \vec{b_2}) \cdot (\vec{a_2}-\vec{a_1})\right|/\left|\vec{b_1} \times \vec{b_2}\right|$. *The numerator is a scalar triple product; the denominator just makes the answer independent of how long $\vec{b_1}$ and $\vec{b_2}$ happen to be.*
Find the shortest distance between two skew lines
- Line 1: $\vec{r} = \hat{i}+\hat{j} + \lambda(2\hat{i}-\hat{j}+\hat{k})$. Line 2: $\vec{r} = 2\hat{i}+\hat{j}-\hat{k} + \mu(3\hat{i}-5\hat{j}+2\hat{k})$
Given two lines; read off a point and a direction vector for each. - $\vec{a_2}-\vec{a_1} = \hat{i}-\hat{k}$
Subtract the two points' position vectors. - $\vec{b_1} \times \vec{b_2} = 3\hat{i}-\hat{j}-7\hat{k}$
Cross the two direction vectors; this is the direction perpendicular to both lines. - $\left|\vec{b_1} \times \vec{b_2}\right| = \sqrt{9+1+49} = \sqrt{59}$
Magnitude of the cross product just found. - $(\hat{i}-\hat{k}) \cdot (3\hat{i}-\hat{j}-7\hat{k}) = 3+0+7 = 10$
Dot the point-difference with the cross product for the numerator's scalar triple product. - *$d = 10/\sqrt{59}$*
Divide the scalar triple product by the cross product's magnitude to get the shortest distance.
Two lines that are neither parallel nor obviously crossing on a diagram can tempt a shortcut: solve their two equations together and something should still come out as an intersection point, even if it takes a bit of algebra to find it.
That shortcut assumes every pair of lines in space behaves like two lines in a plane, where non-parallel always means crossing. In three dimensions it does not: two lines can point in genuinely different directions and still never occupy the same point at the same parameter value. Solving their equations simultaneously then yields no solution at all — not a hidden one waiting to be found.
Two such lines, for instance the pair worked above, never meet; equating their coordinates gives a contradiction, not a fix-up. Skew lines still have a well-defined angle, found from their direction vectors, and a well-defined shortest distance, found from the skew-lines formula — “no intersection” does not mean “nothing left to compute”.
Two parallel lines share a direction vector $\vec{b}$ but pass through different points — no cross product between two different directions is available, since there is only one direction between them.
The skew-lines formula still answers the question, with one simplification: since $\vec{b_1}=\vec{b_2}=\vec{b}$, the triple-product numerator collapses to a plain cross product. *With points $\vec{a_1}$, $\vec{a_2}$ on the two lines, the distance between them is $d = \left|\vec{b} \times (\vec{a_2}-\vec{a_1})\right|/\left|\vec{b}\right|$* — the same machine, run on one shared direction instead of two.
Find the distance between two parallel lines
- Line 1: $\vec{r} = \lambda(\hat{i}-2\hat{j}+2\hat{k})$. Line 2: $\vec{r} = 3\hat{j} + \mu(\hat{i}-2\hat{j}+2\hat{k})$
Given two lines; same direction vector, different points, so they are parallel. - $\vec{a_2}-\vec{a_1} = 3\hat{j}$
Subtract the two points' position vectors. - $\vec{b} \times (\vec{a_2}-\vec{a_1}) = -6\hat{i}+3\hat{k}$
Cross the shared direction vector with the point-difference. - $\left|\vec{b} \times (\vec{a_2}-\vec{a_1})\right| = \sqrt{36+9} = \sqrt{45} = 3\sqrt{5}$
Magnitude of the cross product just found. - $\left|\vec{b}\right| = \sqrt{1+4+4} = 3$
Magnitude of the shared direction vector, for the denominator. - *$d = 3\sqrt{5}/3 = \sqrt{5}$*
Divide to get the distance between the two parallel lines.
One toolkit, every question in this chapter
Every question this chapter asked — angle, distance, or whether two things meet at all — reduces to one of two operations already built in Chapter 10.
The dot product answers every angle and perpendicularity question between two lines, and it decides parallel and perpendicular as special cases along the way.
The cross product answers every distance question — the skew-lines formula folds it into a scalar triple product, and the parallel-lines formula drops that term entirely. The geometry in this chapter was new. The vector machinery computing it was entirely Chapter 10’s, run on a new set of targets: lines instead of free-floating arrows.
Practice set
Exercise 11.1 practises finding direction cosines and direction ratios of a line — from given angles against the axes, from two points it passes through, and from arbitrary direction ratios normalised into cosines. Every answer gets checked against the identity *$l^2+m^2+n^2=1$*, the same test used throughout the chapter.
- practice A line makes angles of 60°, 45° and 60° with the positive $x$, $y$ and $z$ axes respectively. Find its direction cosines.
- practice A line has direction ratios $(4,-4,2)$. Find its direction cosines.
- practice Find the direction cosines of the line through $P(2,-1,3)$ and $Q(5,3,3)$.
- practice A line makes equal angles with the three coordinate axes. Find its direction cosines.
- practice A line has direction ratios $(2,-3,6)$. Check whether these are already the direction cosines, and if not, find the true direction cosines.
- practice Which of the following triples can be the direction cosines of some line?
Answers
- $(1/2, 1/\sqrt{2}, 1/2)$
- $(2/3, -2/3, 1/3)$
- $(3/5, 4/5, 0)$
- $(1/\sqrt{3}, 1/\sqrt{3}, 1/\sqrt{3})$
- $(2/7, -3/7, 6/7)$
- B — $(0, 3/5, 4/5)$.
Exercise 11.2 practises writing a line’s equation in vector and Cartesian form, then finding the angle between two lines from their direction ratios. It closes with the skew-lines and parallel-lines distance formulas, applied to lines given directly in vector form.
- practice Find the vector equation of the line through the point $A(1,-2,3)$ and parallel to the vector $\vec{b} = 2\hat{i}+\hat{j}-2\hat{k}$.
- practice Find the Cartesian equation of the line through the point $(2,-3,1)$ with direction ratios $(4,-2,5)$.
- practice Find the Cartesian equation of the line through $A(1,0,2)$ and $B(3,4,-2)$.
- practice Convert the vector equation $\vec{r} = (3\hat{i}+2\hat{j}-\hat{k}) + \lambda(\hat{i}-2\hat{j}+3\hat{k})$ to Cartesian form.
- practice Find the angle between the lines with direction ratios $(1,1,2)$ and $(2,-1,1)$.
- practice Two lines have direction ratios $(1,2,3)$ and $(2,4,6)$. What can you conclude about them?
- practice Determine whether the lines with direction ratios $(2,3,-1)$ and $(1,-2,-4)$ are perpendicular.
- practice The line through $A(0,1,2)$ and $B(3,4,8)$, and the line through $C(2,-1,0)$ and $D(5,2,6)$ — are they parallel?
- practice Find the value of $k$ for which the lines with direction ratios $(3,-2 k,2)$ and $(k,1,-2)$ are at right angles.
- practice Find the angle between the lines $\vec{r} = (2\hat{i}-\hat{j}) + \lambda(\hat{i}+\hat{j}+\hat{k})$ and $\vec{r} = (\hat{i}+3\hat{k}) + \mu(\hat{i}-\hat{j}-\hat{k})$.
- practice Find the distance between the parallel lines $\vec{r} = (\hat{i}+2\hat{j}) + \lambda(2\hat{i}-\hat{j}+2\hat{k})$ and $\vec{r} = (3\hat{i}+\hat{j}-\hat{k}) + \mu(2\hat{i}-\hat{j}+2\hat{k})$.
- practice Find the angle between the lines $(x-1)/3 = (y+2)/(-2) = (z-5)/6$ and $(x+3)/2 = (y-1)/1 = (z+2)/2$.
- practice Find the Cartesian equation of the line through the point $(2,-1,3)$ and parallel to the line $(x+1)/4 = (y-2)/(-3) = z/5$.
- practice Find the shortest distance between the skew lines $\vec{r} = (\hat{i}-\hat{j}) + \lambda(2\hat{i}+\hat{j}-\hat{k})$ and $\vec{r} = (2\hat{i}+\hat{j}-\hat{k}) + \mu(\hat{i}-\hat{j}+2\hat{k})$.
- practice Find the shortest distance between the lines $(x-1)/2 = (y+1)/3 = z/1$ and $x/1 = (y-2)/(-1) = (z+3)/4$.
- practice Show that the three lines with direction ratios $(1,2,2)$, $(2,-2,1)$ and $(2,1,-2)$ are mutually perpendicular.
Answers
- $\vec{r} = (\hat{i}-2\hat{j}+3\hat{k}) + \lambda(2\hat{i}+\hat{j}-2\hat{k})$
- $(x-2)/4 = (y+3)/(-2) = (z-1)/5$
- $(x-1)/1 = y/2 = (z-2)/(-2)$
- $(x-3)/1 = (y-2)/(-2) = (z+1)/3$
- $\pi/3$
- B — They are parallel.
- $0$ — the lines are perpendicular.
- $(1,1,2)$ for both — the lines are parallel.
- $4$
- $\cos^{-1}(1/3)$
- $\sqrt{5}$
- $\cos^{-1}(16/21)$
- $(x-2)/4 = (y+1)/(-3) = (z-3)/5$
- $6/\sqrt{35}$
- $19\sqrt{3}/27$
- All three pairwise dot products are $0$, so the lines are mutually perpendicular.
The Miscellaneous Exercise draws on every line technique in this chapter in a single problem set, with no method named in advance. Angle and distance questions reappear — between two lines, and between skew or parallel lines — drawing on the same toolkit named in the chapter’s own recap.
- practice Find the vector equation of the line parallel to the $y$-axis and passing through the point $(2,-3,5)$.
- practice Find the Cartesian equation of the line through the point $(3,-4,5)$, parallel to the line joining $(1,2,3)$ and $(4,5,9)$.
- practice Find the value of $k$ for which the lines $(x-1)/2 = (y-2)/(-3 k) = (z+1)/4$ and $x/k = (y+2)/2 = (z-3)/(-1)$ are perpendicular.
- practice Find the shortest distance between the lines $\vec{r} = (2\hat{i}-\hat{j}+3\hat{k}) + \lambda(\hat{i}+2\hat{j}-\hat{k})$ and $\vec{r} = (\hat{i}+4\hat{k}) + \mu(2\hat{i}-\hat{j}+\hat{k})$.
- practice Find the vector equation of the line through the point $(1,2,3)$ that is perpendicular to both lines with direction ratios $(1,1,-2)$ and $(3,-1,1)$.
- practice Lines $l_1$ and $l_2$ have direction ratios $(1,-2,2)$ and $(2,2,1)$ and pass through $(1,0,0)$ and $(0,1,0)$ respectively. Find the shortest distance between them.
Answers
- $\vec{r} = (2\hat{i}-3\hat{j}+5\hat{k}) + \lambda \hat{j}$
- $(x-3)/1 = (y+4)/1 = (z-5)/2$
- $-1$
- $9/\sqrt{35}$
- $\vec{r} = (\hat{i}+2\hat{j}+3\hat{k}) + \lambda(\hat{i}+7\hat{j}+4\hat{k})$
- $1$