IN REVIEW

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

FRAME

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.

Two facts fix a line, and no third is ever needed — which is why every line question in this chapter begins by hunting for exactly those two. When a problem gives you two points instead, it has given you the same information in disguise: one of them is the point, and the step between them is the direction.

↑ Back to top

Direction cosines and direction ratios of a line

CONCEPT
There are infinitely many direction ratio triples for one line and exactly one set of direction cosines, up to a sign — which is why an answer sheet giving a different triple from yours is usually not disagreeing with you. Divide by the magnitude and the two answers land on the same place.
This is where the name comes from, and having the picture makes the identity obvious rather than memorised: the three cosines are the components of one vector of length 1, so of course their squares add to 1. Anything else means the vector you divided by was not the right length.

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$.

CONCEPT
Reading the ratios off a box rather than out of a formula means one less thing to get backwards. The order of subtraction also stops mattering in the way students fear: taking the two points the other way round reverses all three edges at once, and that is the same line pointing the other way, not a different answer.

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.

The box is the reason the formula has no subtraction to remember: the coordinate differences are the edges, sitting there as sides. It is also a check worth running — if the largest cosine does not match the direction the line visibly runs, the arithmetic has gone wrong somewhere.
Worked example

Find the direction cosines of the line through $P(2,1,-1)$ and $Q(5,5,11)$

  1. $P(2,1,-1)$, $Q(5,5,11)$
    Given two points; direction ratios come from the coordinate differences.
  2. Direction ratios: $5-2, 5-1, 11-(-1) = 3, 4, 12$
    Subtract $P$'s coordinates from $Q$'s coordinates, in order.
  3. 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.
  4. *Direction cosines: $(3/13, 4/13, 12/13)$*
    Divide each direction ratio by the magnitude to get the direction cosines.
MISCONCEPTION
This is the most common wrong answer in the section, and its shape is worth naming: a perfectly good triple of direction ratios offered where direction cosines were asked for. The direction was never wrong. Divide by the magnitude, and check that the three squares come to 1 before writing the answer down.

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.

↑ Back to top

Equation of a line in space

CONCEPT
The two forms are one line written twice, and being able to move between them on sight is most of what this section is for. The vector form is the one to reach for when a question wants a point; the Cartesian form is the one to reach for when a question wants the direction ratios, because they are sitting in the denominators already.

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.

CONCEPT

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.

A negative direction ratio is a leg running the other way, not a mistake to be tidied away, and dividing the whole triple through by a common factor never changes the line. Both of those are worth fixing early, because the same answer written with a different multiple of the triple is still the same answer.
Worked example

Find the Cartesian equation of the line through $A(1,2,-3)$ and $B(3,-2,1)$

  1. $A(1,2,-3)$, $B(3,-2,1)$
    Given two points; direction ratios come from the coordinate differences.
  2. Direction ratios: $3-1, -2-2, 1-(-3) = 2, -4, 4$
    Subtract $A$'s coordinates from $B$'s coordinates, in order.
  3. Simplify to $1, -2, 2$
    Divide the triple by its common factor $2$; any proportional triple is an equally valid set of direction ratios.
  4. *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.

↑ Back to top

Angle between two lines

CONCEPT
The two special cases are not extra formulas to learn: they are what the one formula returns at its two ends. A dot product of zero IS the right angle rather than a test for it, and a cosine of one IS parallelism — which means a single calculation answers perpendicular, parallel and everything between.

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.

The two lines are drawn through one point although the question never says they meet, and that is not a liberty: the angle between two lines is defined by their directions alone. It is also why a printed angle is not something to measure off the paper — a projection distorts angles even when it keeps every length honest.
Worked example

Find the angle between two lines with direction ratios $(2,2,1)$ and $(4,1,8)$

  1. Direction ratios $(2,2,1)$ and $(4,1,8)$
    Given two lines; the angle between them uses only these two triples.
  2. Dot product: $2 \cdot 4+2 \cdot 1+1 \cdot 8 = 18$
    Multiply matching components and add.
  3. 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.
  4. *$\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)$.

↑ Back to top

Shortest distance between two lines

CONCEPT
Skew lines have no two-dimensional analogue, which is why the picture has to work harder than the algebra does: on paper two lines either meet or are parallel. Solving the two equations together and finding no solution is a fact about the lines rather than a failure of the method, and it is the signal to switch to the distance formula.

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.*

Notice that the answer is not just a number here — the segment it names is an object on the page, running between two findable points. That is worth knowing because questions sometimes ask for those feet rather than the distance, and the same working produces both.
Worked example

Find the shortest distance between two skew lines

  1. 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.
  2. $\vec{a_2}-\vec{a_1} = \hat{i}-\hat{k}$
    Subtract the two points' position vectors.
  3. $\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.
  4. $\left|\vec{b_1} \times \vec{b_2}\right| = \sqrt{9+1+49} = \sqrt{59}$
    Magnitude of the cross product just found.
  5. $(\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.
  6. *$d = 10/\sqrt{59}$*
    Divide the scalar triple product by the cross product's magnitude to get the shortest distance.
MISCONCEPTION

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”.

CONCEPT
The parallel case is the general formula with one term switched off, which is worth seeing rather than memorising as a separate result. With no angle between the directions there is nothing for a cross product of two directions to measure, and a single number is left: the perpendicular gap.

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.

The join between the two points a question happens to give you is almost never the distance, and checking that is a habit worth building. The formula reaches the perpendicular without having to find it: it computes an area and divides by a base, which is why a cross product appears in a question about distance.
Worked example

Find the distance between two parallel lines

  1. 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.
  2. $\vec{a_2}-\vec{a_1} = 3\hat{j}$
    Subtract the two points' position vectors.
  3. $\vec{b} \times (\vec{a_2}-\vec{a_1}) = -6\hat{i}+3\hat{k}$
    Cross the shared direction vector with the point-difference.
  4. $\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.
  5. $\left|\vec{b}\right| = \sqrt{1+4+4} = 3$
    Magnitude of the shared direction vector, for the denominator.
  6. *$d = 3\sqrt{5}/3 = \sqrt{5}$*
    Divide to get the distance between the two parallel lines.

↑ Back to top

One toolkit, every question in this chapter

RECAP
Two scenes, and the chapter has no third — which makes the first question on any problem a cheap one to answer: do these two lines meet or not. Everything after that follows, and both operations you need were already built in Chapter 10.

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.

↑ Back to top

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.

Exercise 11.1 — Direction cosines and ratios
  1. practice A line makes angles of 60°, 45° and 60° with the positive $x$, $y$ and $z$ axes respectively. Find its direction cosines.
  2. practice A line has direction ratios $(4,-4,2)$. Find its direction cosines.
  3. practice Find the direction cosines of the line through $P(2,-1,3)$ and $Q(5,3,3)$.
  4. practice A line makes equal angles with the three coordinate axes. Find its direction cosines.
  5. 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.
  6. practice Which of the following triples can be the direction cosines of some line?
    1. $(1, 1, 0)$
    2. $(0, 3/5, 4/5)$
    3. $(1/2, 1/2, 1/2)$
    4. $(2/5, 2/5, 1/5)$
Answers
  1. $(1/2, 1/\sqrt{2}, 1/2)$
  2. $(2/3, -2/3, 1/3)$
  3. $(3/5, 4/5, 0)$
  4. $(1/\sqrt{3}, 1/\sqrt{3}, 1/\sqrt{3})$
  5. $(2/7, -3/7, 6/7)$
  6. 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.

Exercise 11.2 — Equation of a line in space
  1. 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}$.
  2. practice Find the Cartesian equation of the line through the point $(2,-3,1)$ with direction ratios $(4,-2,5)$.
  3. practice Find the Cartesian equation of the line through $A(1,0,2)$ and $B(3,4,-2)$.
  4. 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.
  5. practice Find the angle between the lines with direction ratios $(1,1,2)$ and $(2,-1,1)$.
  6. practice Two lines have direction ratios $(1,2,3)$ and $(2,4,6)$. What can you conclude about them?
    1. They are perpendicular
    2. They are parallel
    3. They are skew
    4. Nothing, without more information
  7. practice Determine whether the lines with direction ratios $(2,3,-1)$ and $(1,-2,-4)$ are perpendicular.
  8. 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?
  9. 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.
  10. 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})$.
  11. 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})$.
  12. 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$.
  13. 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$.
  14. 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})$.
  15. 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$.
  16. practice Show that the three lines with direction ratios $(1,2,2)$, $(2,-2,1)$ and $(2,1,-2)$ are mutually perpendicular.
Answers
  1. $\vec{r} = (\hat{i}-2\hat{j}+3\hat{k}) + \lambda(2\hat{i}+\hat{j}-2\hat{k})$
  2. $(x-2)/4 = (y+3)/(-2) = (z-1)/5$
  3. $(x-1)/1 = y/2 = (z-2)/(-2)$
  4. $(x-3)/1 = (y-2)/(-2) = (z+1)/3$
  5. $\pi/3$
  6. B — They are parallel.
  7. $0$ — the lines are perpendicular.
  8. $(1,1,2)$ for both — the lines are parallel.
  9. $4$
  10. $\cos^{-1}(1/3)$
  11. $\sqrt{5}$
  12. $\cos^{-1}(16/21)$
  13. $(x-2)/4 = (y+1)/(-3) = (z-3)/5$
  14. $6/\sqrt{35}$
  15. $19\sqrt{3}/27$
  16. 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.

Miscellaneous — Three dimensional geometry
  1. practice Find the vector equation of the line parallel to the $y$-axis and passing through the point $(2,-3,5)$.
  2. 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)$.
  3. 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.
  4. 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})$.
  5. 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)$.
  6. 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
  1. $\vec{r} = (2\hat{i}-3\hat{j}+5\hat{k}) + \lambda \hat{j}$
  2. $(x-3)/1 = (y+4)/1 = (z-5)/2$
  3. $-1$
  4. $9/\sqrt{35}$
  5. $\vec{r} = (\hat{i}+2\hat{j}+3\hat{k}) + \lambda(\hat{i}+7\hat{j}+4\hat{k})$
  6. $1$

↑ Back to top