मंथिकाManthika
Menu
IN REVIEW

Free while we finish the books. A book in review is free to read and use, and so is its PDF. Once the book is finished, its PDF is ₹299.

From arrows to geometry

Take a corner of the classroom as the origin. The two floor edges and the upright edge are the three axes.

You have the tools from Chapter 10: vectors, with the dot product and the cross product. This chapter puts them to work on straight lines in space, starting in the room in the picture. This first section shows what fixes a line in place. The next section turns that into the line’s equation.

Stand in a corner of your classroom. Two edges of the floor meet there, and so does the upright edge of the wall. In Class 11 you took such a corner as the origin. The three edges were the x-axis, the y-axis and the z-axis. Then every point in the room had three coordinates.

A string from the corner to the far top corner. Extend it both ways, with no end, and it is a line.
The string from (0, 0, 0) to (6, 6, 3) is 9 m long. The line it lies on has no ends.

Now stretch a string from that corner to the far top corner of the room. The string is straight. Think of it extended through the walls, both ways, with no end. That is a line in space. It has no ends, so no length you can measure, and no single arrow is the whole of it.

Four copies of the vector î + 3ĵ + 2k̂. Anchor one at the point A(2, 7, 2), and it fixes one line.

Chapter 10 wrote an arrow as numbers, like the walk of 3 km north and 4 km east. A line needs a little more. It needs one point to pass through, and one direction to run in.

Point A(1, 2, 3) and the direction 2, 2, 1 fix the line. Move back or on, and you stay on it.

The figure fixes a line this way. It passes through the point $A(1, 2, 3)$. It runs along $\vec{b} = 2 \hat{i} + 2 \hat{j} + \hat{k}$. One step along $\vec{b}$ from $A$ reaches $(3, 4, 4)$. Step back, or step on, and you stay on the line.

Four questions: a line’s equation, which way it points, the angle between two lines, and the gap between two that never meet.

Here are the questions to carry to the last page. How do you write a whole line as an equation? How do you say which way it points? What is the angle between two lines? And how close do two lines come when they never meet?

Kanada
A SCHOLAR INDIA REMEMBERS

No one knows when Kanada lived; scholars place him anywhere from the 6th to the 2nd century BCE. His Vaisheshika (from viśeṣa, particularity) was the school that holds that things are told apart by their particular qualities. It sorted all that exists into kinds. Ask his question of a line. What makes this line this line? It has no ends, so no length to tell it by. One point, $A(1, 2, 3)$, and one direction, $2 \hat{i} + 2 \hat{j} + \hat{k}$, fix it. Start from $(3, 4, 4)$, and it is the same line. Start from $(1, 2, 4)$, and it is another.

Check yourself
  1. Chapter 10 treated a vector as a free-floating arrow. This chapter anchors it into what kind of object?
    1. a line living in 3D space
    2. a plane living in 2D space
    3. a grid of stored numbers
    4. a single scalar quantity
    Check your answer
    1. ✓ a line living in 3D space — (A) This chapter anchors the free-floating arrows of Chapter 10 into a line, a fixed geometric object living in 3D space.
    2. a plane living in 2D space — A plane is two-dimensional; the object this chapter anchors a vector into is one dimension short of that, a line.
    3. a grid of stored numbers — A grid of numbers is a matrix, Chapter 4’s object. This chapter’s anchor is a line living in space.
    4. a single scalar quantity — A single scalar carries no position and no direction, a line needs both, fixed together.
  2. A line in space is fixed by two things. What are they?
    1. one arrow from the origin, with its length
    2. one direction, with no point needed
    3. a point on it and a direction it runs in
    4. three coordinates, like a point in the room
    Check your answer
    1. one arrow from the origin, with its length — A line has no length. It runs on both ways with no end, so no single arrow is the whole of it.
    2. one direction, with no point needed — One direction alone fits a whole set of parallel lines, like the two rails of a track. A point on the line picks out one of them.
    3. ✓ a point on it and a direction it runs in — (C) A line needs one point to pass through and one direction to run in. Step on or back along the direction from the point, and you stay on the line.
    4. three coordinates, like a point in the room — Three coordinates fix one point in the room. Many lines pass through that point, one for each direction.
  3. This chapter asks four questions about lines in space. Which of these, asked about two lines, is NOT one of the four?
    1. what angle they make
    2. how many lines pass through a single point
    3. how far apart they are, if they never touch
    4. which way each of them points
    Check your answer
    1. what angle they make — The angle between two lines is one of the four questions this chapter asks.
    2. ✓ how many lines pass through a single point — (B) This chapter asks for a line’s equation, which way it points, the angle between two lines and the gap between two that never meet. How many lines pass through a point is never asked.
    3. how far apart they are, if they never touch — The gap between two lines that never meet is one of the four questions this chapter asks.
    4. which way each of them points — Which way a line points is one of the four questions this chapter asks.

↑ Back to top

Equation of a line in space

▲CONCEPT

The first section fixed a line by one point and one direction. This section turns those two facts into an equation, which answers the first of the four questions. Every later section starts from that equation: it hands you the line’s direction, and the direction gives you angles and distances.

A bus stop on a straight road, and the way it runs. Those two facts find every point on it.

Think of a straight road on a city map. You stand at a bus stop on it, and someone tells you which way the road runs. That is enough to find every point of the road. Go some distance one way, or the other way, and you are still on it.

One point A and one step along the vector b. Every other point of the line is A plus some number of steps.

So, as in the room, a line needs two things: one point on it, and one direction along it. Every other point is the start plus some number of steps in that direction.

From O to A is the vector a. Two more steps of the vector b reach R, so the vector r is a + 2b.

The whole line

Now name the parts. Let $\vec{a}$ be the position vector of a point $A$ on the line. Let $\vec{b}$ be a vector along the line, with $\vec{b} \neq \vec{0}$. Take any point $R$, with position vector $\vec{r}$. It is on the line exactly when the vector from $A$ to $R$ is some number of copies of $\vec{b}$:

$\vec{r} - \vec{a} = \lambda \vec{b}$.

Then add $\vec{a}$ to both sides. A point is on the line exactly when

$\vec{r} = \vec{a} + \lambda \vec{b}$

for some real number $\lambda$. This is the VECTOR EQUATION of the line. The number $\lambda$ is a PARAMETER. Each value of $\lambda$ gives one point. Every point of the line comes from exactly one value.

Each value of λ gives one point, fractions too: λ = 1/2 lands at (2, 7/2, 2), halfway along one copy of the vector b.
λ = 1 gives (3, 5, 3), λ = 0 gives A itself, and λ = −1 gives (−1, −1, −1).

Let us check it on the figures. There $A$ is $(1, 2, 1)$, and $\vec{b} = 2 \hat{i} + 3 \hat{j} + 2 \hat{k}$. Each value of $\lambda$ gives one point:

Worked example

Three values of $\lambda$ on the line through $A(1, 2, 1)$

  1. $\vec{r} = (\hat{i} + 2 \hat{j} + \hat{k}) + \lambda (2 \hat{i} + 3 \hat{j} + 2 \hat{k})$
    Put $A$ and $\vec{b}$ into the vector equation.
  2. $\lambda = 1$: $\vec{r} = 3 \hat{i} + 5 \hat{j} + 3 \hat{k}$, the point $(3, 5, 3)$
    Add one step of $\vec{b}$ to $A$, one component at a time.
  3. $\lambda = 0$: $\vec{r} = \hat{i} + 2 \hat{j} + \hat{k}$, the point $A$ itself
    No steps leave you at $A$.
  4. $\lambda = -1$: $\vec{r} = -\hat{i} - \hat{j} - \hat{k}$, the point $(-1, -1, -1)$
    Take one step of $\vec{b}$ backwards, so you land behind $A$.
  5. Check: $(3, 5, 3) - (1, 2, 1) = (2, 3, 2)$
    The step from $A$ to the point at $\lambda = 1$ is $\vec{b}$ itself.
λ > 0 is the half of the line ahead of A, and λ < 0 the half behind it. λ = 0 is A.

The sign says which way you go. With $\lambda > 0$ you move one way from $A$, and with $\lambda < 0$ you move the other way.

The three numbers in $\vec{b}$, here $2, 3, 2$, are called the DIRECTION RATIOS of the line. Any three numbers in the same ratio, such as $4, 6, 4$, point the same way and do just as well. The section after this one says more about them, and how they relate to angles.

Check yourself
  1. A line through the point with position vector $\vec{a}$, parallel to $\vec{b}$, has vector equation:
    1. $\vec{r} = \lambda(\vec{a} + \vec{b})$
    2. $\vec{r} = \vec{a} + \lambda \vec{b}$
    3. $\vec{r} = \vec{a} \cdot \lambda \vec{b}$
    4. $\vec{r} = \vec{b} + \lambda \vec{a}$
    Check your answer
    1. $\vec{r} = \lambda(\vec{a} + \vec{b})$ — Scaling the entire sum by $\lambda$ would move the starting point too, only the direction vector $\vec{b}$ is scaled.
    2. ✓ $\vec{r} = \vec{a} + \lambda \vec{b}$ — (B) The line’s vector equation is the point vector plus a scalar multiple of the direction vector: $\vec{r} = \vec{a} + \lambda \vec{b}$.
    3. $\vec{r} = \vec{a} \cdot \lambda \vec{b}$ — The point vector is ADDED to the scaled direction, not multiplied by it, $\vec{a} + \lambda \vec{b}$, never $\vec{a} \cdot \lambda \vec{b}$.
    4. $\vec{r} = \vec{b} + \lambda \vec{a}$ — $\vec{a}$ is the POINT and $\vec{b}$ is the DIRECTION, swapping them changes which point the line passes through and which way it runs.
  2. In $\vec{r} = \vec{a} + \lambda \vec{b}$, what does the parameter $\lambda$ do?
    1. must always be a whole number
    2. is fixed at $\lambda=1$ for every point on the line
    3. ranges only over positive real numbers
    4. ranges over all real numbers, hitting each point
    Check your answer
    1. must always be a whole number — Restricting $\lambda$ to whole numbers would skip almost every point on the line , the line’s points correspond to every real value of $\lambda$.
    2. is fixed at $\lambda=1$ for every point on the line — A fixed $\lambda$ names only ONE point, tracing the whole line needs $\lambda$ to vary over every real number.
    3. ranges only over positive real numbers — Restricting $\lambda$ to positive numbers only traces a RAY from $\vec{a}$, the full line needs every real value, positive and negative.
    4. ✓ ranges over all real numbers, hitting each point — (D) $\lambda \in \mathbb{R}$ is free to range over all real numbers; each value traces out exactly one point on the line, and every point on the line is hit exactly once.
  3. A student claims two different values of $\lambda$ could trace out the same point on the line $\vec{r}=\vec{a}+\lambda \vec{b}$. Is this possible?
    1. Yes, if the two $\lambda$ values are negatives of each other
    2. Yes: every line has exactly one such repeated point
    3. Yes, if $\vec{a}$ happens to be the zero vector
    4. No, since $\vec{b} \neq \vec{0}$, points never repeat
    Check your answer
    1. Yes, if the two $\lambda$ values are negatives of each other — Negating $\lambda$ moves to a DIFFERENT point on the opposite side of $\vec{a}$, not back to the same one, $\lambda$ and $-\lambda$ give distinct points whenever $\lambda \neq 0$.
    2. Yes: every line has exactly one such repeated point — The claim is that every point is hit exactly once, with no exceptions, there is no special repeated point on any line traced this way.
    3. Yes, if $\vec{a}$ happens to be the zero vector — Whether $\vec{a}$ is zero has no bearing here, it is $\vec{b} \neq \vec{0}$ that guarantees every $\lambda$ gives a distinct point.
    4. ✓ No, since $\vec{b} \neq \vec{0}$, points never repeat — (D) Because $\vec{b}$ is a nonzero direction vector, two different $\lambda$ values move to two different positions, each point on the line is hit exactly once.
▲CONCEPT
Along a straight road every step changes east by the same amount and north by the same amount: here 2 and 1.

Go back to the road on the map. As you move along it, your east and north positions both change. Each one changes at its own steady rate, set by the road’s direction. In space a third number, your height, changes the same way.

Eliminating the parameter

So write the vector equation one coordinate at a time, then remove $\lambda$. Take the point $A(x_1, y_1, z_1)$ and the direction $\vec{b} = a \hat{i} + b \hat{j} + c \hat{k}$, so $a$, $b$, $c$ are its direction ratios. Here it is, step by step:

Why it works

From the vector form to the Cartesian form

  1. $\vec{r} = \vec{a} + \lambda \vec{b}$
    This is the vector equation, now to be written in $x$, $y$, $z$.
  2. $x = x_1 + \lambda a$, $y = y_1 + \lambda b$, $z = z_1 + \lambda c$
    Two vectors are equal when their matching components are equal.
  3. $\lambda = (x - x_1)/a$
    Solve the first for $\lambda$: take $x_1$ from both sides, then divide by $a$, which needs $a \neq 0$.
  4. $\lambda = (y - y_1)/b$ and $\lambda = (z - z_1)/c$
    Solve the other two the same way.
  5. *$(x - x_1)/a = (y - y_1)/b = (z - z_1)/c$*
    All three equal the same $\lambda$, so they equal each other, and $\lambda$ is gone.
  6. Check: at $A(x_1, y_1, z_1)$ every part is 0
    The point $A$ is on the line, at $\lambda = 0$.

The last step gives the CARTESIAN EQUATION of the line. The point sits in the numerators, each part with a minus sign. The direction ratios sit in the denominators.

λxx = 1 + 2λy
λyy = 2 + 3λy
λzz = 1 + 2λy
Each coordinate is a straight-line function of λ: x = 1 + 2λ, y = 2 + 3λ and z = 1 + 2λ.
The points at λ = −1, 0, 1 and 2 sit one step apart. One step splits into moves of 2, 3 and 2.

Look at the figure. One multiple of the direction splits into three direction ratios: 2 along $x$, 3 along $y$ and 2 along $z$. They go in the denominators. The point $A(1, 2, 1)$ goes in the numerators, so the line is $(x - 1)/2 = (y - 2)/3 = (z - 1)/2$.

At (5, 8, 5) the three parts are 4/2, 6/3 and 4/2. Each is 2, the λ of that point.

Check it at the point $(5, 8, 5)$. The three parts are $(5 - 1)/2$, $(8 - 2)/3$ and $(5 - 1)/2$, and each is 2. They agree, so the point is on the line, and 2 is its $\lambda$.

A denominator of 0 means z never changes. (x − 1)/2 = (y − 2)/3 = (z − 1)/0 stays at height 1.

Sometimes a denominator is 0, as in $(x - 1)/2 = (y - 2)/3 = (z - 1)/0$. Read that 0 as a direction ratio of 0, not as a division. It means $z$ never changes along the line. Here $z = 1$ all the way.

Check yourself
  1. The symmetric Cartesian equation of a line through $(x_1,y_1,z_1)$ with direction ratios $a,b,c$ is:
    1. $(x-x_1)/a = (y-y_1)/b = (z-z_1)/c$
    2. $(x+x_1)/a = (y+y_1)/b = (z+z_1)/c$
    3. $(x-a)/x_1 = (y-b)/y_1 = (z-c)/z_1$
    4. $a/(x-x_1) = b/(y-y_1) = c/(z-z_1)$
    Check your answer
    1. ✓ $(x-x_1)/a = (y-y_1)/b = (z-z_1)/c$ — (A) The symmetric Cartesian form places each coordinate difference over its matching direction ratio: $(x-x_1)/a=(y-y_1)/b=(z-z_1)/c$.
    2. $(x+x_1)/a = (y+y_1)/b = (z+z_1)/c$ — The numerator is a DIFFERENCE, $x-x_1$, not a sum, adding instead of subtracting shifts the line to a different point.
    3. $(x-a)/x_1 = (y-b)/y_1 = (z-c)/z_1$ — The POINT coordinates belong in the numerator, the direction RATIOS in the denominator, this option swaps the two.
    4. $a/(x-x_1) = b/(y-y_1) = c/(z-z_1)$ — Upside down, the fractions have bottoms $x - x_1$, $y - y_1$, $z - z_1$, which are 0 at the line’s own point $(x_1, y_1, z_1)$. So this equation leaves out that point: it is not the equation of the line.
  2. Given the Cartesian equation $(x-2)/3 = (y+1)/(-4) = (z-5)/2$, what are the line’s direction ratios?
    1. $-2, 1, -5$
    2. $2, -1, 5$
    3. $1/3, -1/4, 1/2$
    4. $3, -4, 2$
    Check your answer
    1. $-2, 1, -5$ — $-2,1,-5$ is the point $(2,-1,5)$ with every sign flipped. The numerators hold the point. The direction ratios are the denominators, $3,-4,2$.
    2. $2, -1, 5$ — $2,-1,5$ is the point the line passes through, taken from the numerators. The direction ratios are the denominators, $3,-4,2$.
    3. $1/3, -1/4, 1/2$ — The direction ratios are the denominators themselves, not their reciprocals: $3,-4,2$, not $1/3,-1/4,1/2$.
    4. ✓ $3, -4, 2$ — (D) The direction ratios are read straight off the denominators: $3, -4, 2$.
  3. The line $\vec{r} = (2 \hat{i} - \hat{j}) + \lambda(\hat{i} + 3\hat{j} - 2\hat{k})$ has which Cartesian equation?
    1. $(x-2)/(-2) = (y+1)/3 = (z-0)/1$
    2. $(x+2)/1 = (y-1)/3 = (z-0)/(-2)$
    3. $(x-2)/1 = (y+1)/3 = (z-0)/(-2)$
    4. $(x-1)/2 = (y-3)/(-1) = (z+2)/0$
    Check your answer
    1. $(x-2)/(-2) = (y+1)/3 = (z-0)/1$ — The direction ratios $(1,3,-2)$ must line up with $x,y,z$ in order, reversing that order mismatches the axes.
    2. $(x+2)/1 = (y-1)/3 = (z-0)/(-2)$ — The point is $(2,-1,0)$, read directly from $\vec{a} = 2\hat{i}-\hat{j}$, flipping its signs gives the wrong point.
    3. ✓ $(x-2)/1 = (y+1)/3 = (z-0)/(-2)$ — (C) Point $(2,-1,0)$ and direction ratios $(1,3,-2)$ read straight off the vector form give $(x-2)/1=(y+1)/3=z/(-2)$.
    4. $(x-1)/2 = (y-3)/(-1) = (z+2)/0$ — This swaps point and direction ratio, the point is $(2,-1,0)$ and the direction ratios are $(1,3,-2)$, not the reverse.
A(1, 2, −3) to B(3, −2, 1) is a box with edges 2, −4 and 4. AB is 6.
The worked example’s line along 1, −2, 2: the midpoint (2, 0, −1) is λ = 1, and B(3, −2, 1) is λ = 2.
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)$
    Two points on the line are given, and the vector between them runs along the line.
  2. Direction ratios: $3-1, -2-2, 1-(-3) = 2, -4, 4$
    Subtract the coordinates of $A$ from those of $B$: the three differences are the direction ratios.
  3. Simplify to $1, -2, 2$
    Divide all three by 2, since numbers in the same ratio give the same direction.
  4. *Using point $A$: $(x-1)/1 = (y-2)/(-2) = (z+3)/2$*
    Put the point $A$ in the numerators and the ratios in the denominators.
  5. Check: at $B(3,-2,1)$, $(3-1)/1 = (-2-2)/(-2) = (1+3)/2 = 2$
    All three parts equal 2, so $B$ is on the line, at $\lambda = 2$.
Check yourself
  1. For the line through $A(1,2,-3)$ and $B(3,-2,1)$, the raw direction ratios (before simplifying) are:
    1. $2, -4, 4$
    2. $4, 0, -2$
    3. $2, -4, -2$
    4. $1, 2, -3$
    Check your answer
    1. ✓ $2, -4, 4$ — (A) Subtracting $A$’s coordinates from $B$’s gives $3-1, -2-2, 1-(-3) = 2, -4, 4$.
    2. $4, 0, -2$ — The rule subtracts $B$ minus $A$; adding the coordinates instead gives $4,0,-2$, not the direction ratios.
    3. $2, -4, -2$ — $1-(-3)=4$, not $1-3=-2$, subtracting a negative flips the sign, giving $+4$ for the third ratio.
    4. $1, 2, -3$ — Using only $A$’s coordinates drops $B$ entirely, the ratios need the difference between both points.
  2. The raw ratios $2, -4, 4$ simplify to $1, -2, 2$. Why is this simplification allowed?
    1. the ratios must always be reduced until the largest one equals $1$
    2. dividing by the same common factor changes scale, not the direction
    3. simplifying is only cosmetic and technically changes which line the equation describes
    4. dividing by a common factor only works when all three ratios are positive
    Check your answer
    1. the ratios must always be reduced until the largest one equals $1$ — There is no rule that the largest ratio must become $1$, the point is only to divide out a common factor, and $1,-2,2$ has no entry fixed at $1$ by any special rule.
    2. ✓ dividing by the same common factor changes scale, not the direction — (B) Direction ratios can be scaled by any nonzero common factor without changing the direction they describe, dividing $2,-4,4$ by $2$ gives the equivalent, simpler triple $1,-2,2$.
    3. simplifying is only cosmetic and technically changes which line the equation describes — Scaling by a nonzero factor never changes the direction described, $2,-4,4$ and $1,-2,2$ point exactly the same way, so the line is unchanged.
    4. dividing by a common factor only works when all three ratios are positive — No positivity restriction exists, $-4$ and $4$ both divide cleanly by $2$ regardless of sign, giving $-2$ and $2$.
  3. Using point $A(1,2,-3)$ and simplified ratios $1,-2,2$, what is the Cartesian equation of the line?
    1. $(x-1)/1 = (y-2)/(-2) = (z-3)/2$
    2. $(x-1)/2 = (y-2)/1 = (z+3)/(-2)$
    3. $(x-1)/1 = (y-2)/(-2) = (z+3)/2$
    4. $1/(x-1) = (-2)/(y-2) = 2/(z+3)$
    Check your answer
    1. $(x-1)/1 = (y-2)/(-2) = (z-3)/2$ — $A$’s $z$-coordinate is $-3$, so the numerator is $z-(-3)=z+3$, not $z-3$.
    2. $(x-1)/2 = (y-2)/1 = (z+3)/(-2)$ — The ratios $1,-2,2$ must line up with $x,y,z$ in that order, reordering them mismatches each axis with the wrong ratio.
    3. ✓ $(x-1)/1 = (y-2)/(-2) = (z+3)/2$ — (C) Plugging point $A$ and ratios $1,-2,2$ into the symmetric form gives $(x-1)/1=(y-2)/(-2)=(z+3)/2$.
    4. $1/(x-1) = (-2)/(y-2) = 2/(z+3)$ — Upside down, the bottoms $x-1$, $y-2$, $z+3$ are all 0 at $A(1, 2, -3)$, so this equation leaves out $A$, a point of the line. It is not the line’s equation.

↑ Back to top

Direction cosines and direction ratios of a line

▲CONCEPT

You can now write any line from a point and a direction $\vec{b}$. But one line has many such arrows: $2 \hat{i} + 3 \hat{j} + 2 \hat{k}$ and $4 \hat{i} + 6 \hat{j} + 4 \hat{k}$ run along the same line. This section answers the second question: how do you say which way a line points, with one fixed set of three numbers? The angle section after it is built on that set.

The string leans away from all three edges. The three angles it makes with them say which way it points.

Go back to the string in the corner of the room. It leans away from all three edges at once, so it makes an angle with each edge. Here is why those three angles matter. Together they fix which way the string points, however long it is. Their cosines come straight from the three numbers in $\vec{b}$ that the equation already uses. And once each line has its three numbers, two lines can be compared, which is how the angle section finds the angle between them.

Turn the string, and at least one of the three angles changes. Slide it without turning, and none of them do.

α, β and γ are the angles with the x, y and z axes. Their cosines are l, m and n: here 2/3, 2/3, 1/3.

Give the angles names. A line makes the angle $\alpha$ with the $x$-axis, $\beta$ with the $y$-axis and $\gamma$ with the $z$-axis. Their cosines are the DIRECTION COSINES of the line:

$l = \cos \alpha$, $m = \cos \beta$, $n = \cos \gamma$.

Facing the other way

Chapter 10 found these for a vector. A line has one catch. It runs both ways, so you can face along it either way. Face the other way, and each angle becomes $\pi$ minus itself. Then all three cosines change sign. So a line has two sets of direction cosines, $l, m, n$ and $-l, -m, -n$. They are the same up to one sign for all three.

Face the other way along the line and α becomes π − α. The cosines become −2/3, −2/3 and −1/3.

The squares add to 1

Why cosines? Take the point at distance 1 along the line, and drop it onto the $x$-axis. The right triangle has hypotenuse 1 and the angle $\alpha$, so the foot is at $\cos \alpha$, which is $l$. In the same way the feet on the $y$ and $z$ axes are $m$ and $n$.

So the cosines are the components of a vector of length 1 along the line, $l \hat{i} + m \hat{j} + n \hat{k}$. Its length $\sqrt{l^2 + m^2 + n^2}$ is 1. Square both sides, as in Chapter 10:

$l^2 + m^2 + n^2 = 1$.

Drop the point at distance 1 onto each axis. Its feet are l, m and n: two sevenths, three sevenths and six sevenths.
A vector of length 1 along the string has components 2/3, 2/3 and 1/3. Their squares add to 1.

Let us check it on the figure on the previous page, with direction ratios $2, 3, 6$ and its three angles marked.

Worked example

Direction cosines of $2 \hat{i} + 3 \hat{j} + 6 \hat{k}$

  1. $\sqrt{2^2 + 3^2 + 6^2} = \sqrt{49} = 7$
    Find the length of the vector.
  2. $(2/7, 3/7, 6/7)$
    Go one seventh of the way along it: that is the point at distance 1.
  3. *$l = 2/7$, $m = 3/7$, $n = 6/7$*
    The point’s feet on the three axes are the direction cosines.
  4. Check: $4/49 + 9/49 + 36/49 = 49/49 = 1$
    The squares add to 1.
2, 3, 6 and 4, 6, 12 are direction ratios of one line. The second arrow is twice as long and points the same way.

You met direction ratios in the last section: the three numbers in $\vec{b}$. Any three numbers in the same ratio as $l$, $m$, $n$ are direction ratios of the line. Here $2, 3, 6$ is one set, and $4, 6, 12$ is another. To get the cosines from ratios $a$, $b$, $c$, divide each by their length. Here is why that works:

Divide 4, 6, 12 by its length, 14. The arrow shrinks to length 1: 2/7, 3/7, 6/7, the direction cosines.
Why it works

From direction ratios to direction cosines

  1. $\vec{b} = a \hat{i} + b \hat{j} + c \hat{k}$
    Take a vector along the line with the ratios as its components.
  2. $L = \sqrt{a^2 + b^2 + c^2}$
    Call this length $L$.
  3. $\hat{b} = \vec{b}/L$
    Divide by the length: the vector keeps its direction and now has length 1.
  4. *$l = a/L$, $m = b/L$, $n = c/L$*
    The components of this unit vector are the direction cosines.
  5. Check: $l^2 + m^2 + n^2 = 1$
    Since $L^2 = a^2 + b^2 + c^2$, the three fractions add to $L^2/L^2 = 1$.
Change all three signs and you stay on the line. Change only one, as in 2/7, −3/7, 6/7, and it is another line.

Use the same sign for all three. Dividing by $-\sqrt{a^2 + b^2 + c^2}$ also gives an arrow of length 1, but facing the other way along the line. That is the other set, $-l, -m, -n$. Change only one sign, as in the figure, and you have a different line.

Read any direction in four steps. First write its three components: they are direction ratios. If the line is given by two points, subtract the first point’s coordinates from the second’s: those differences are the ratios. Then find their length, the square root of the sum of their squares. Divide each ratio by the length to get the direction cosines. Last, check that the squares of the cosines add to 1.

Check each line of this table against the rule. Then cover the last two columns and work them out yourself.

DirectionRatiosLengthCosinesCheck
$\hat{i}$, along the $x$-axis$1, 0, 0$$1$$1, 0, 0$$1 + 0 + 0 = 1$
$2 \hat{i} + 2 \hat{j} + \hat{k}$$2, 2, 1$$3$$2/3, 2/3, 1/3$$4/9 + 4/9 + 1/9 = 1$
$2 \hat{i} + 3 \hat{j} + 6 \hat{k}$$2, 3, 6$$7$$2/7, 3/7, 6/7$$4/49 + 9/49 + 36/49 = 1$
$4 \hat{i} + 6 \hat{j} + 12 \hat{k}$, twice as long$4, 6, 12$$14$$2/7, 3/7, 6/7$the same cosines, so the same check
$\hat{i} - 2 \hat{j} + 2 \hat{k}$, one minus sign$1, -2, 2$$3$$1/3, -2/3, 2/3$$1/9 + 4/9 + 4/9 = 1$
$\hat{i} + \hat{j}$, flat on the floor$1, 1, 0$$\sqrt{2}$$1/\sqrt{2}, 1/\sqrt{2}, 0$$1/2 + 1/2 + 0 = 1$
From $P(1, 0, 2)$ to $Q(5, 4, 4)$$4, 4, 2$$6$$2/3, 2/3, 1/3$$4/9 + 4/9 + 1/9 = 1$
Three points on one ray from the origin: (1, 2, 2), (2, 4, 4) and (3, 6, 6). Their lengths are 3, 6 and 9.

The figure above shows one direction with three sets of ratios: $1, 2, 2$ and $2, 4, 4$ and $3, 6, 6$. Their lengths are 3, 6 and 9. Divide each set by its own length, and every one gives $1/3$, $2/3$, $2/3$.

Three angles to test

Your turn: a line makes angles of 45, 60 and 45 degrees with the three axes. Can these be its direction angles? Square the cosines and add. Do you get $5/4$ rather than 1?

Check yourself
  1. A line’s direction cosines $l, m, n$ are defined as:
    1. any three numbers proportional to those cosines
    2. the coordinates of any point on the line
    3. the cosines of the angles with the $x$, $y$, $z$ axes
    4. the angles themselves that the line makes with the axes
    Check your answer
    1. any three numbers proportional to those cosines — Any three numbers proportional to the cosines are direction RATIOS. That is a looser idea than the cosines themselves.
    2. the coordinates of any point on the line — A point’s coordinates depend on where the point is on the line. The direction cosines depend only on the line’s direction.
    3. ✓ the cosines of the angles with the $x$, $y$, $z$ axes — (C) Direction cosines are exactly the cosines of the angles a line makes with the three coordinate axes.
    4. the angles themselves that the line makes with the axes — The angles are not the direction cosines. A direction cosine is the COSINE of that angle.
  2. Direction cosines $l, m, n$ of any line always satisfy which relation?
    1. $l \cdot m \cdot n=1$
    2. $l^2+m^2+n^2=0$
    3. $l+m+n=1$
    4. $l^2+m^2+n^2=1$
    Check your answer
    1. $l \cdot m \cdot n=1$ — The identity is a SUM of squares, not a product of the three cosines, $l \cdot m \cdot n=1$ is not the defining relation.
    2. $l^2+m^2+n^2=0$ — A sum of squares equal to zero would force $l=m=n=0$, meaning no direction at all, the identity equals $1$, not $0$.
    3. $l+m+n=1$ — The identity squares each cosine before adding, $l+m+n=1$ is not generally true even when $l^2+m^2+n^2=1$ is.
    4. ✓ $l^2+m^2+n^2=1$ — (D) Direction cosines always satisfy $l^2+m^2+n^2=1$, the defining identity that separates cosines from mere ratios.
  3. How do direction ratios $a, b, c$ relate to direction cosines $l, m, n$?
    1. ratios are any numbers proportional to the cosines
    2. ratios are always exactly double the cosines
    3. ratios and cosines are two names for the exact same three numbers
    4. ratios are the cosines rounded to the nearest whole number
    Check your answer
    1. ✓ ratios are any numbers proportional to the cosines — (A) Direction ratios are any numbers proportional to the cosines. Infinitely many triples describe the line’s direction, but only two of them, $(l, m, n)$ and $(-l, -m, -n)$, are its direction cosines.
    2. ratios are always exactly double the cosines — No fixed multiplier like double is stated. A ratio triple can be any nonzero multiple of the cosines, not specifically twice them.
    3. ratios and cosines are two names for the exact same three numbers — Ratios and cosines are not the same numbers. Infinitely many ratio triples point along the line, but only two of them, $(l, m, n)$ and $(-l, -m, -n)$, are also cosines.
    4. ratios are the cosines rounded to the nearest whole number — Rounding plays no role. The relation between ratios and cosines is proportionality (any nonzero scalar multiple), not rounding to integers.
  4. A line has direction ratios $(1, -2, 2)$. What are its direction cosines?
    1. $(1/5, -2/5, 2/5)$
    2. $(1/9, -2/9, 2/9)$
    3. $(1/3, -2/3, 2/3)$
    4. $(1, -2, 2)$
    Check your answer
    1. $(1/5, -2/5, 2/5)$ — Dividing by $5$ (the sum of absolute values) is not the rule, the correct divisor is the magnitude, $\sqrt{1^2+2^2+2^2}=3$.
    2. $(1/9, -2/9, 2/9)$ — Dividing by $9$ (the magnitude squared) overcorrects, the divisor is the magnitude itself, $3$, not its square.
    3. ✓ $(1/3, -2/3, 2/3)$ — (C) Magnitude $\sqrt{1^2+(-2)^2+2^2}=\sqrt{9}=3$, so dividing each ratio by $3$ gives $(1/3,-2/3,2/3)$.
    4. $(1, -2, 2)$ — The ratios $(1,-2,2)$ are not yet cosines, dividing each by the magnitude $3$ is the step that turns them into cosines.
▲CONCEPT
Two points fix a line. Through P and Q there is exactly one line, and the move from P to Q gives its direction.

You do not need to measure any angle. Two points on a line already fix its direction.

To get from one end of the string to the other, move along each edge of the room in turn.

Take the string again. It has two ends. To go from one end to the other, you move some way along each edge of the room. Those three moves say which way the string runs.

From P(1, 0, 2) to Q(5, 4, 4) you move 4 along x, 4 along y and 2 up. These are direction ratios of PQ.

Now write the ends as $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$. From $P$ to $Q$ you move $x_2 - x_1$ along the $x$-axis, $y_2 - y_1$ along the $y$-axis and $z_2 - z_1$ along the $z$-axis. These three moves are direction ratios of the line $P Q$.

The moves from P to Q along the three axes are the edges of a box. The line PQ is its diagonal.

The figure draws them as the three edges of a box. The line $P Q$ is the box’s long diagonal. Its length is the distance from Class 11:

Pythagoras twice. The floor diagonal is √32, and with the rise of 2, PQ = √36 = 6.

$P Q = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}$.

From direction ratios to cosines

Divide each direction ratio by $P Q$, and you have the direction cosines:

$l = (x_2 - x_1)/(P Q)$, $m = (y_2 - y_1)/(P Q)$, $n = (z_2 - z_1)/(P Q)$.

The room’s string: direction ratios 6, 6 and 3, and length 9. Its direction cosines are 2/3, 2/3 and 1/3.

Let us try it on the room. Say it is 6 m long, 6 m wide and 3 m high. The string runs from the corner $(0, 0, 0)$ to the far top corner $(6, 6, 3)$.

Worked example

Direction cosines of the room’s string

  1. Direction ratios: $6 - 0, 6 - 0, 3 - 0 = 6, 6, 3$
    Subtract the start from the end: these are direction ratios.
  2. $\sqrt{36 + 36 + 9} = \sqrt{81} = 9$
    Find the string’s length, the distance between its ends.
  3. *$6/9, 6/9, 3/9 = 2/3, 2/3, 1/3$*
    Divide each direction ratio by 9 to get the direction cosines.
  4. Check: $4/9 + 4/9 + 1/9 = 1$
    The squares add to 1.
From the far corner back to the start, every component changes sign: −6, −6, −3. The line is the same one.

Take the ends the other way round, from $(6, 6, 3)$ back to $(0, 0, 0)$, and all three moves change sign. That is the same line facing the other way, so nothing is wrong.

Two points to try

Your turn: a line passes through $(1, 2, 3)$ and $(3, 5, 9)$. Find its direction cosines, and check that their squares add to 1. Do you get $2/7$, $3/7$, $6/7$?

Kanada
A SCHOLAR INDIA REMEMBERS

What are the smallest parts of a direction? Take the string from $(0, 0, 0)$ to $(6, 6, 3)$. Its direction ratios are $6$, $6$ and $3$, one along each edge of the room. Each direction ratio scales a unit vector, $\hat{i}$, $\hat{j}$ or $\hat{k}$: the parts are $6 \hat{i}$, $6 \hat{j}$ and $3 \hat{k}$, so the string is $6 \hat{i} + 6 \hat{j} + 3 \hat{k}$. Can you split a unit vector further, into the other two? No: no mix of $\hat{j}$ and $\hat{k}$ ever makes $\hat{i}$.

Check yourself
  1. A line passes through $P(x_1,y_1,z_1)$ and $Q(x_2,y_2,z_2)$. Which of these is a set of direction ratios of the line?
    1. $x_1, y_1, z_1$
    2. $(x_1+x_2)/2, (y_1+y_2)/2, (z_1+z_2)/2$
    3. $x_2-x_1, y_2-y_1, z_2-z_1$
    4. $x_2+x_1, y_2+y_1, z_2+z_1$
    Check your answer
    1. $x_1, y_1, z_1$ — Using only $P$’s coordinates drops $Q$ entirely, the ratios need BOTH points, as a difference.
    2. $(x_1+x_2)/2, (y_1+y_2)/2, (z_1+z_2)/2$ — These are the coordinates of the midpoint of $P Q$: a point, not a direction. Any non-zero multiple of $Q - P$ gives direction ratios; the differences themselves are the natural set.
    3. ✓ $x_2-x_1, y_2-y_1, z_2-z_1$ — (C) The coordinate DIFFERENCES, $Q$ minus $P$, one per axis, are the natural set of direction ratios. Any non-zero multiple of them would do as well.
    4. $x_2+x_1, y_2+y_1, z_2+z_1$ — The rule subtracts, not adds, direction ratios come from $Q$ minus $P$, not $Q$ plus $P$.
  2. After finding the direction ratios of the line through $P$ and $Q$, how do you get the direction cosines?
    1. multiply each ratio by the distance $P Q$
    2. divide each ratio by the distance $P Q$
    3. divide each ratio by the larger of the two coordinates
    4. square each ratio and add the results
    Check your answer
    1. multiply each ratio by the distance $P Q$ — Multiplying would make the values larger, not normalize them to length $1$, the step is division by $\text{PQ}$, not multiplication.
    2. ✓ divide each ratio by the distance $P Q$ — (B) Dividing each coordinate difference by the distance $P Q = \sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}$ gives the direction cosines.
    3. divide each ratio by the larger of the two coordinates — No single coordinate is the divisor, the correct divisor is the full distance $\text{PQ}$, built from all three differences together.
    4. square each ratio and add the results — Squaring and adding gives $\text{PQ}^2$, only an intermediate step, the ratios still need to be divided by $\text{PQ}$ itself, not left as squares.
  3. For $P(0,0,0)$ and $Q(3,4,0)$, what are the direction cosines of line $P Q$?
    1. $(3/5, 4/5, 0)$
    2. $(3, 4, 0)$
    3. $(3/25, 4/25, 0)$
    4. $(3/7, 4/7, 0)$
    Check your answer
    1. ✓ $(3/5, 4/5, 0)$ — (A) Direction ratios are $3-0,4-0,0-0=3,4,0$; distance $P Q=\sqrt{9+16}=5$; cosines $(3/5,4/5,0)$.
    2. $(3, 4, 0)$ — $(3,4,0)$ are the ratios, not yet the cosines, dividing by $\text{PQ}=5$ is the missing step.
    3. $(3/25, 4/25, 0)$ — Dividing by $25$ ($\text{PQ}$ squared) overcorrects, the divisor is $\text{PQ}$ itself, $5$, not its square.
    4. $(3/7, 4/7, 0)$ — Dividing by $7$ (the sum $3+4$) is not the rule, the divisor is the distance, $\sqrt{3^2+4^2}=5$.
P(2, 1, −1) to Q(5, 5, 11) is a box with edges 3, 4 and 12. Its diagonal PQ is 13.
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)$
    Two points on the line are given, and their differences give direction ratios.
  2. $5-2, 5-1, 11-(-1) = 3, 4, 12$
    Subtract the coordinates of $P$ from those of $Q$: these are the direction ratios.
  3. $3^2 + 4^2 + 12^2 = 9 + 16 + 144$
    Square the ratios and add.
  4. $\sqrt{169} = 13$
    This is the line’s length, the distance $P Q$.
  5. *$(3/13, 4/13, 12/13)$*
    Divide each ratio by 13 to get the direction cosines.
  6. $9/169 + 16/169 + 144/169 = 169/169$
    Add the squares of the cosines.
  7. Check: $169/169 = 1$
    The squares add to 1, as they must for direction cosines.
Check yourself
  1. For the line through $P(2,1,-1)$ and $Q(5,5,11)$, what are the direction ratios?
    1. $3, 4, 10$
    2. $7, 6, 10$
    3. $3, 4, 12$
    4. $2, 1, -1$
    Check your answer
    1. $3, 4, 10$ — $11-(-1)=12$; treating $P$’s $z$-coordinate as $1$ instead of $-1$ gives the wrong difference, $10$.
    2. $7, 6, 10$ — The rule subtracts $Q$ minus $P$; adding the coordinates instead gives $7,6,10$, not the direction ratios.
    3. ✓ $3, 4, 12$ — (C) Subtracting $P$’s coordinates from $Q$’s gives $5-2, 5-1, 11-(-1) = 3, 4, 12$.
    4. $2, 1, -1$ — Using only $P$’s coordinates drops $Q$ entirely, the ratios need the difference between both points.
  2. For direction ratios $3, 4, 12$, what is the magnitude used to find the direction cosines?
    1. $169$
    2. $19$
    3. $12$
    4. $13$
    Check your answer
    1. $169$ — $169$ is the sum of squares, the magnitude is its square root, $\sqrt{169}=13$.
    2. $19$ — $19$ is the plain sum $3+4+12$, the magnitude needs the square root of the sum of squares, $\sqrt{169}=13$.
    3. $12$ — The magnitude combines all three ratios through the sum of their squares, picking out only the largest one, $12$, ignores the other two entirely.
    4. ✓ $13$ — (D) $\sqrt{3^2+4^2+12^2}=\sqrt{9+16+144}=\sqrt{169}=13$.
  3. Using ratios $3,4,12$ and magnitude $13$, what are the direction cosines of line $P Q$?
    1. $(3/169, 4/169, 12/169)$
    2. $(3/13, 4/13, 12/13)$
    3. $(13/3, 13/4, 13/12)$
    4. $(3, 4, 12)$
    Check your answer
    1. $(3/169, 4/169, 12/169)$ — Dividing by $169$ (the magnitude squared) overcorrects, the divisor is the magnitude itself, $13$, not its square.
    2. ✓ $(3/13, 4/13, 12/13)$ — (B) Dividing each ratio by the magnitude $13$ gives $(3/13,4/13,12/13)$; checking, $9/169+16/169+144/169=169/169=1$.
    3. $(13/3, 13/4, 13/12)$ — The ratio goes on top and the magnitude on the bottom. Turned upside down, the fraction gives numbers far larger than $1$, which cosines can never be.
    4. $(3, 4, 12)$ — $(3,4,12)$ are the ratios, not yet the cosines, dividing by the magnitude $13$ is the step that turns them into cosines.
✕MISCONCEPTION

Direction ratios and direction cosines are not the same thing. Direction cosines satisfy $l^2 + m^2 + n^2 = 1$. Direction ratios need not.

Step 1
The direction ratios are 2, 4 and 4.
?
Step 2
Direction ratios point the same way as the line.
?
Step 3
So the direction cosines are 2, 4 and 4.
?
Three steps of a student’s working on the ratios 2, 4, 4. Which step is wrong?

Here is a working for the direction cosines of a line with direction ratios 2, 4, 4. Which step is wrong?

Square and add the ratios 2, 4, 4: the total is 36. The arrow is 6 long, not 1.

Keep your answer, then test it. Square and add: $4 + 16 + 16 = 36$, not 1. So 2, 4, 4 cannot be direction cosines.

The third step is wrong. The ratios do point the same way, but their length is 6, not 1. Divide each one by 6:

$l = 2/6 = 1/3$, $m = 4/6 = 2/3$, $n = 4/6 = 2/3$.

The ratios 2, 4, 4 make an arrow 6 long. The cosines, one third, two thirds and two thirds, make an arrow 1 long.

Now $1/9 + 4/9 + 4/9 = 1$. The figure draws both. The ratios make an arrow 6 long. The cosines make an arrow 1 long, in the same direction.

So before you write down direction cosines, square them and add. You must get 1.

Kanada
A SCHOLAR INDIA REMEMBERS

You have called both $2, 4, 4$ and $1/3, 2/3, 2/3$ the line’s direction. Are they one kind of thing? Count them. Direction ratios come without end: $1, 2, 2$, then $2, 4, 4$, then $3, 6, 6$. Direction cosines come in one set, $1/3, 2/3, 2/3$, or that set with every sign turned, for the line facing the other way. So the ratios are a family. The cosines are the two members of length $1$, one the negative of the other.

Check yourself
  1. Do the numbers $(2,4,4)$ satisfy the direction-cosine identity $l^2+m^2+n^2=1$?
    1. Yes: any three numbers proportional to a direction automatically satisfy it
    2. Yes: dividing $2,4,4$ each by $2$ gives $1,2,2$, and $1+2+2=5$ which rounds to $1$
    3. No: $4+16+16=36$, not $1$
    4. Yes: $2+4+4=10$, close enough to be treated as $1$ after rounding
    Check your answer
    1. Yes: any three numbers proportional to a direction automatically satisfy it — Direction ratios need no identity at all, only the normalized direction cosines must satisfy $l^2+m^2+n^2=1$, and $(2,4,4)$ has not been normalized.
    2. Yes: dividing $2,4,4$ each by $2$ gives $1,2,2$, and $1+2+2=5$ which rounds to $1$ — Neither step is valid, the identity needs the sum of squares to equal exactly $1$, computed on the correctly normalized triple, not an arbitrary halving followed by a linear sum.
    3. ✓ No: $4+16+16=36$, not $1$ — (C) $2^2+4^2+4^2=4+16+16=36 \neq 1$, so $(2,4,4)$ cannot be a set of direction cosines as they stand.
    4. Yes: $2+4+4=10$, close enough to be treated as $1$ after rounding — The identity sums SQUARES, not the numbers themselves, and it must equal exactly $1$, not something rounded, $4+16+16=36$, nowhere near it.
  2. Applying the same correction as the $(2,4,4)$ trap, what are the true direction cosines of a line with ratios $(3,0,4)$?
    1. $(3/5, 0, 4/5)$
    2. $(3/25, 0, 4/25)$
    3. $(3/7, 0, 4/7)$
    4. $(3,0,4)$
    Check your answer
    1. ✓ $(3/5, 0, 4/5)$ — (A) Magnitude $\sqrt{3^2+0^2+4^2}=\sqrt{25}=5$, so dividing each ratio by $5$ gives $(3/5,0,4/5)$; checking, $9/25+0+16/25=1$.
    2. $(3/25, 0, 4/25)$ — Dividing by $25$ (the magnitude squared) overcorrects, the divisor is the magnitude itself, $5$, not its square.
    3. $(3/7, 0, 4/7)$ — Dividing by $7$ (the sum $3+4$) is not the rule, the correct divisor is the magnitude, $5$.
    4. $(3,0,4)$ — This is exactly the $(2,4,4)$ trap again: $(3,0,4)$ are the ratios, not yet the cosines, $3^2+0^2+4^2=25 \neq 1$.
  3. The $(2,4,4)$ trap fails because $4+16+16=36 \neq 1$. What single step turns a wrong triple like this into true direction cosines?
    1. dividing every entry by the triple’s own magnitude
    2. rounding each entry to the nearest direction cosine
    3. multiplying every entry by the triple’s own magnitude
    4. subtracting $1$ from the sum of squares
    Check your answer
    1. ✓ dividing every entry by the triple’s own magnitude — (A) Dividing each entry by the magnitude $\sqrt{2^2+4^2+4^2}=6$ rescales the triple to length $1$, which is exactly what the identity $l^2+m^2+n^2=1$ requires.
    2. rounding each entry to the nearest direction cosine — Rounding is not the fix, dividing exactly by the magnitude, $6$ in this example, gives the exact cosines, not an approximation.
    3. multiplying every entry by the triple’s own magnitude — Multiplying by the magnitude makes the sum of squares grow, moving further from $1$, the fix is dividing by the magnitude, not multiplying.
    4. subtracting $1$ from the sum of squares — No subtraction is involved, normalizing means dividing every entry by the magnitude, not subtracting anything from the sum of squares.
  4. A student uses $(2,4,4)$ directly as direction cosines to claim the line makes an angle $\arccos(4)$ with the $y$-axis. What is wrong with this claim, beyond the normalization error?
    1. $4$ should have been squared before taking $\arccos$
    2. the angle should have been measured from the $x$-axis instead of the $y$-axis
    3. $\cos$ of any real angle can never exceed $1$, so $\arccos(4)$ does not exist
    4. the $y$-axis has no defined angle with any line in 3D space
    Check your answer
    1. $4$ should have been squared before taking $\arccos$ — Squaring $4$ to get $16$ makes the problem worse, not better, $\arccos(16)$ is just as undefined as $\arccos(4)$, since neither is within $\cos$’s range.
    2. the angle should have been measured from the $x$-axis instead of the $y$-axis — Switching axes changes nothing, $4$ is not a valid cosine for the $y$-axis or the $x$-axis; no un-normalized entry from $(2,4,4)$ is valid until the triple is divided by its magnitude, $6$.
    3. ✓ $\cos$ of any real angle can never exceed $1$, so $\arccos(4)$ does not exist — (C) Since $\cos \theta$ is always between $-1$ and $1$, $\arccos(4)$ has no real solution at all, the claim is not just imprecise, it names an angle that cannot exist.
    4. the $y$-axis has no defined angle with any line in 3D space — Every line makes a perfectly well-defined angle with the $y$-axis, the actual problem is that $\arccos(4)$ itself has no real value, since $\cos$ never exceeds $1$.

↑ Back to top

Angle between two lines

▲CONCEPT

Each line now has a direction you can write down, as direction ratios or as direction cosines. This section takes two lines at once and answers the third question: what is the angle between them? In direction cosines, $\cos \theta = \left|l_1 l_2 + m_1 m_2 + n_1 n_2\right|$. In direction ratios, which this chapter works with throughout, the same formula divides through by the two lengths. It also tells you when two lines are perpendicular and when they are parallel.

Two strings from one corner of the room to two other corners. The angle between them is at the corner.

Stretch two strings from the same corner of the room to two other corners. Where they meet, there is an angle between them. Now move one string to another place without turning it. The two strings may no longer meet. But they still point the same ways, so the angle between their directions has not changed.

Move one line without turning it, and the lines may not meet. Slide it back: the angle is unchanged.

So the angle between two lines depends only on their directions. For lines that do not meet, slide one without turning it until it meets the other. The angle there is the ANGLE BETWEEN THE TWO LINES.

Two crossing lines make two angles, θ and π − θ. The angle between them is the one up to π/2: about 63.6°.

A line can face either way. So two lines make two angles, $\theta$ and $\pi - \theta$. The angle between the lines is taken as the one from 0 to $\pi/2$. That is why the formula has an absolute value.

The cosine formula

Take two directions, $\vec{b_1} = a_1 \hat{i} + b_1 \hat{j} + c_1 \hat{k}$ and $\vec{b_2} = a_2 \hat{i} + b_2 \hat{j} + c_2 \hat{k}$. Their direction ratios are $a_1, b_1, c_1$ and $a_2, b_2, c_2$. Here is how the dot product of Chapter 10 gives the angle, step by step:

Why it works

From the dot product to $\cos \theta$

  1. $\vec{b_1} \cdot \vec{b_2} = \left|\vec{b_1}\right| \left|\vec{b_2}\right| \cos \theta$
    This is the dot product of Chapter 10, with $\theta$ the angle between the two arrows.
  2. $\cos \theta = (\vec{b_1} \cdot \vec{b_2})/(\left|\vec{b_1}\right| \left|\vec{b_2}\right|)$
    Divide both sides by the two lengths, which are not 0.
  3. $\cos \theta = \left|\vec{b_1} \cdot \vec{b_2}\right|/(\left|\vec{b_1}\right| \left|\vec{b_2}\right|)$
    Turning one arrow round flips the sign, so the absolute value keeps $\theta$ between 0 and $\pi/2$.
  4. $\vec{b_1} \cdot \vec{b_2} = a_1 a_2 + b_1 b_2 + c_1 c_2$
    Write the dot product in components: multiply matching ratios and add.
  5. $\left|\vec{b_1}\right| = \sqrt{a_1^2 + b_1^2 + c_1^2}$ and $\left|\vec{b_2}\right| = \sqrt{a_2^2 + b_2^2 + c_2^2}$
    Each length is the square root of the sum of the squares.
  6. Numerator: $\left|a_1 a_2 + b_1 b_2 + c_1 c_2\right|$
    Combine lines 3 and 4: the dot product, made positive.
  7. Denominator: $\sqrt{a_1^2 + b_1^2 + c_1^2} \sqrt{a_2^2 + b_2^2 + c_2^2}$
    Combine the two lengths from line 5.
  8. *$\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})$*
    This is lines 6 and 7 combined: the formula in direction ratios.
  9. Check: $\vec{b_1} = \vec{b_2}$ gives $\cos \theta = \left|\vec{b_1}\right|^2/\left|\vec{b_1}\right|^2 = 1$
    A line makes the angle 0 with itself, and $\cos 0 = 1$.
Turn one direction round and the dot product changes sign, 4 to −4. The absolute value gives cos θ = 4/9 either way.
2, 2, 1 with −1, 2, 2: cos θ = 4/9. With 1, −2, 2: perpendicular. With 3, 3, 1.5: parallel.

Let us check the formula on the first panel of the figure, where the directions are $2, 2, 1$ and $-1, 2, 2$:

Worked example

The angle between $2, 2, 1$ and $-1, 2, 2$

  1. $\sqrt{4 + 4 + 1} = 3$ and $\sqrt{1 + 4 + 4} = 3$
    Find the length of each set of ratios.
  2. $2(-1) + 2(2) + 1(2) = -2 + 4 + 2 = 4$
    Multiply matching ratios and add.
  3. *$\cos \theta = \left|4\right|/(3 \cdot 3) = 4/9$*
    Divide by the two lengths, keeping the absolute value.
  4. Check: $0 < 4/9 < 1$, so $0 < \theta < \pi/2$
    The angle is between 0 and $\pi/2$, about 63.6 degrees.

Perpendicular and parallel

Two cases come straight out of the formula.

Your turn: two lines have direction ratios $1, -2, 3$ and $-2, 4, -6$. Find $\cos \theta$. What does it tell you about the lines? Do you get $\cos \theta = 1$, so that the lines are parallel?

Check yourself
  1. For lines with direction ratios $(a_1,b_1,c_1)$ and $(a_2,b_2,c_2)$, the angle $\theta$ between them satisfies:
    1. $\cos \theta = (a_1 a_2+b_1 b_2+c_1 c_2)/(a_1^2+b_1^2+c_1^2+a_2^2+b_2^2+c_2^2)$
    2. $\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})$
    3. $\cos \theta = (a_1 a_2+b_1 b_2+c_1 c_2)^2/(\sqrt{a_1^2+b_1^2+c_1^2} \sqrt{a_2^2+b_2^2+c_2^2})$
    4. $\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})$
    Check your answer
    1. $\cos \theta = (a_1 a_2+b_1 b_2+c_1 c_2)/(a_1^2+b_1^2+c_1^2+a_2^2+b_2^2+c_2^2)$ — The denominator MULTIPLIES the two magnitudes together; adding the squared terms instead is a different, wrong quantity.
    2. $\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 numerator is the dot product, pairing matching components by multiplication and adding those products, not a plain sum of every component.
    3. $\cos \theta = (a_1 a_2+b_1 b_2+c_1 c_2)^2/(\sqrt{a_1^2+b_1^2+c_1^2} \sqrt{a_2^2+b_2^2+c_2^2})$ — The numerator is the dot product itself (inside an absolute value), not its square , squaring changes the value entirely.
    4. ✓ $\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})$ — (D) The angle comes from the dot product of the two direction vectors, divided by the product of their magnitudes.
  2. Why does the angle-between-two-lines formula use $\left|a_1a_2+b_1b_2+c_1c_2\right|$ rather than the dot product alone?
    1. so the dot product can never equal zero
    2. so the two direction vectors are automatically normalized to unit length
    3. so the angle reported is never obtuse: acute, or a right angle
    4. so the formula works even when a direction ratio is negative
    Check your answer
    1. so the dot product can never equal zero — The absolute value does not prevent zero, perpendicular lines still give a dot product of exactly $0$, and $\left|0\right|=0$.
    2. so the two direction vectors are automatically normalized to unit length — Normalizing to unit length is the job of dividing by the two magnitudes in the denominator, the absolute value only fixes the sign of the numerator.
    3. ✓ so the angle reported is never obtuse: acute, or a right angle — (C) Taking the absolute value keeps $\cos \theta$ non-negative, so the formula reports an angle with $0 \leq \theta \leq \pi/2$: acute, or a right angle, never obtuse, however the direction vectors are oriented.
    4. so the formula works even when a direction ratio is negative — Negative direction ratios cause no problem for the dot product on their own, the absolute value’s role is fixing the SIGN of the final angle, not individual ratios.
  3. Two lines with direction ratios $(a_1,b_1,c_1)$ and $(a_2,b_2,c_2)$ are perpendicular exactly when:
    1. $a_1+a_2=b_1+b_2=c_1+c_2$
    2. $a_1/a_2=b_1/b_2=c_1/c_2$
    3. $a_1a_2+b_1b_2+c_1c_2=0$
    4. $a_1a_2+b_1b_2+c_1c_2=1$
    Check your answer
    1. $a_1+a_2=b_1+b_2=c_1+c_2$ — Matching component sums is not a geometric test this chapter defines, perpendicularity is the dot product equalling zero.
    2. $a_1/a_2=b_1/b_2=c_1/c_2$ — $a_1/a_2=b_1/b_2=c_1/c_2$ is the condition for parallel lines, perpendicularity instead needs the dot product to vanish.
    3. ✓ $a_1a_2+b_1b_2+c_1c_2=0$ — (C) Perpendicularity is exactly the dot product of the direction ratios equalling zero.
    4. $a_1a_2+b_1b_2+c_1c_2=1$ — The dot product must equal zero for perpendicularity, not $1$, a dot product of $1$ has no special geometric meaning here.
  4. Are lines with direction ratios $(2,-3,6)$ and $(4,-6,12)$ parallel?
    1. No: the direction ratios are different numbers, so the lines cannot be parallel
    2. No: $2/4 \neq (-3)/6$
    3. Yes, because $a_1a_2+b_1b_2+c_1c_2=0$
    4. Yes: $4/2=(-6)/(-3)=12/6=2$, so every ratio matches
    Check your answer
    1. No: the direction ratios are different numbers, so the lines cannot be parallel — Parallel direction ratios need not be identical, any consistent scalar multiple, like $2$ here, still points the same way.
    2. No: $2/4 \neq (-3)/6$ — Using $-6$ correctly, $(-3)/(-6)=1/2$ matches $2/4=1/2$, dividing by $6$ instead of $-6$ is the slip that makes this look like a mismatch.
    3. Yes, because $a_1a_2+b_1b_2+c_1c_2=0$ — A dot product of zero would test perpendicularity, not parallelism, parallel lines are tested by matching ratios, $a_1/a_2=b_1/b_2=c_1/c_2$.
    4. ✓ Yes: $4/2=(-6)/(-3)=12/6=2$, so every ratio matches — (D) Yes: $4/2=(-6)/(-3)=12/6=2$, the same ratio for every component means the two direction vectors point the same way.
Directions 2, 2, 1 and 4, 1, 8 from one point: lengths 3 and 9, dot product 18. The angle is about 48 degrees.
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)$
    The angle needs only the two directions, given here as direction ratios.
  2. Dot product: $2 \cdot 4+2 \cdot 1+1 \cdot 8 = 18$
    Multiply matching ratios and add.
  3. $\sqrt{2^2+2^2+1^2} = 3$
    Length of the first set of ratios.
  4. $\sqrt{4^2+1^2+8^2} = 9$
    Length of the second set of ratios.
  5. *$\cos \theta = 18/(3 \cdot 9) = 2/3$*
    Divide the dot product by the two lengths, and it is already positive, so $\theta = \cos^{-1}(2/3)$.
  6. Check: $(3)(9)(2/3) = 18$
    This matches the dot product found above.
  7. $0 < 2/3 < 1$, so $0 < \theta < \pi/2$
    The angle is between 0 and $\pi/2$.
Check yourself
  1. For direction ratios $(2,2,1)$ and $(4,1,8)$, what is their dot product?
    1. $128$
    2. $10$
    3. $18$
    4. $22$
    Check your answer
    1. $128$ — The dot product adds the three component products, $8+2+8=18$, multiplying them instead, $8 \cdot 2 \cdot 8=128$, is not the operation.
    2. $10$ — Leaving out one of the three component products gives $8+2=10$, all three products, $8+2+8=18$, must be included.
    3. ✓ $18$ — (C) $2 \cdot 4+2 \cdot 1+1 \cdot 8 = 8+2+8=18$.
    4. $22$ — The dot product pairs matching positions, $2 \cdot 4+2 \cdot 1+1 \cdot 8=18$, pairing them in reverse order gives a different, wrong total, $22$.
  2. For direction ratios $(2,2,1)$ and $(4,1,8)$, what are their two magnitudes?
    1. $5$ and $13$
    2. $2$ and $8$
    3. $3$ and $9$
    4. $9$ and $81$
    Check your answer
    1. $5$ and $13$ — $2+2+1=5$ and $4+1+8=13$ are plain sums, magnitude needs the square root of the sum of squares, giving $3$ and $9$.
    2. $2$ and $8$ — Magnitude combines all three components through the sum of their squares, picking out only the largest one from each triple ignores the other two.
    3. ✓ $3$ and $9$ — (C) $\sqrt{2^2+2^2+1^2}=\sqrt{9}=3$ and $\sqrt{4^2+1^2+8^2}=\sqrt{81}=9$.
    4. $9$ and $81$ — $9$ and $81$ are the sums of squares, their square roots, $3$ and $9$, are the actual magnitudes.
  3. Using dot product $18$ and magnitudes $3$ and $9$, what is $\cos \theta$ for these two lines?
    1. $18$
    2. $2/3$
    3. $27$
    4. $3/2$
    Check your answer
    1. $18$ — $18$ is only the dot product, dividing by $3 \cdot 9=27$ still has to happen, giving $2/3$.
    2. ✓ $2/3$ — (B) $\cos \theta = 18/(3 \cdot 9) = 18/27 = 2/3$.
    3. $27$ — $27$ is only the denominator, the actual answer is the dot product divided by that, $18/27=2/3$.
    4. $3/2$ — The denominator is the product of the two magnitudes, $3 \cdot 9=27$, not their sum, $12$, dividing by the sum gives $18/12=3/2$, not $2/3$.

↑ Back to top

Shortest distance between two lines

▲CONCEPT

Two lines that meet make an angle, and the last section found it with the dot product. In space, two lines can also pass each other without meeting, and without being parallel. This section answers the last question: how close do two lines come? It uses the cross product, and with it the chapter’s four questions are answered.

A flyover. The road above and the road below run different ways and never meet. The shortest gap between them is straight up.

Stand under a flyover in a city. The road on the flyover runs one way. The road below runs another way. They are not parallel, and they never meet. One passes over the other.

On paper two lines meet or run parallel. In space there is a third case.

Two such lines in space are SKEW LINES. On flat paper this cannot happen. There, two lines either meet or are parallel. In space there is a third case.

Vectors from one point to the other line are about 4.58 long. The one at right angles to both lines is shorter: √11, about 3.32.

How close do the two roads come? The shortest gap is the one at right angles to both roads. Under the flyover it is the vertical, straight up from the road below to the road above.

The cross product of the two directions, 9î − 3ĵ − 3k̂, is at right angles to both. The shortest gap runs along it.

Now write it in vectors. Let the lines be $\vec{r} = \vec{a_1} + \lambda \vec{b_1}$ and $\vec{r} = \vec{a_2} + \mu \vec{b_2}$. The direction at right angles to both is $\vec{b_1} \times \vec{b_2}$, the cross product of Chapter 10. The formula below needs $\vec{b_1} \times \vec{b_2} \neq \vec{0}$. A cross product is $\vec{0}$ exactly when the two vectors are parallel, so this holds exactly when the lines are not parallel.

The vector joining a point of each line: 4î + ĵ. Its projection along the cross product of the directions is the shortest distance, √11.

The vector joining a point of one line to a point of the other is $\vec{a_2} - \vec{a_1}$. The SHORTEST DISTANCE between the lines is the length of $\vec{a_2} - \vec{a_1}$'s projection on $\vec{b_1} \times \vec{b_2}$.

Why the projection? Let $\hat{n}$ be the unit vector along $\vec{b_1} \times \vec{b_2}$. A general point of line 1 is $\vec{a_1} + \lambda \vec{b_1}$, and of line 2 is $\vec{a_2} + \mu \vec{b_2}$. The vector joining any such pair is

$(\vec{a_2} + \mu \vec{b_2}) - (\vec{a_1} + \lambda \vec{b_1}) = (\vec{a_2} - \vec{a_1}) + \mu \vec{b_2} - \lambda \vec{b_1}$.

Dot this with $\hat{n}$: the last two terms are multiples of $\vec{b_1}$ and $\vec{b_2}$, both at right angles to $\hat{n}$, so they vanish, and every such joining vector has the same part along $\hat{n}$, equal to $(\vec{a_2} - \vec{a_1}) \cdot \hat{n}$. None is shorter than that part, and the joining vector at right angles to both lines runs along $\hat{n}$, so it is exactly that long.

Now turn it into a formula, step by step:

Why it works

The shortest distance as a formula

  1. $\hat{n} = (\vec{b_1} \times \vec{b_2})/\left|\vec{b_1} \times \vec{b_2}\right|$
    Divide the cross product by its length to get a unit vector along the gap.
  2. $d = \left|(\vec{a_2} - \vec{a_1}) \cdot \hat{n}\right|$
    As in Chapter 10, the projection on a unit vector is the dot product with it, made positive.
  3. *$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|$*
    Put in $\hat{n}$ from line 1, and take its positive length out of the absolute value.
  4. Numerator: $(\vec{b_1} \times \vec{b_2}) \cdot (\vec{a_2} - \vec{a_1})$
    A cross product dotted with a third vector is the scalar triple product of Chapter 10.
  5. Check: lines that meet share a point, so take $\vec{a_2} = \vec{a_1}$: the numerator is 0
    Then $d = 0$, which is right for lines that meet.
When the lines meet, the triple product is 0, so d = 0. Left: they meet at (1, 3, 1). Right: √11 apart.

The formula holds for any two lines that are not parallel. Then $d = 0$ exactly when they meet, as on the left of the figure, and $d > 0$ when they are skew, as on the right.

Two lines cross on the page but pass apart in space. The shortest gap, at right angles to both, is about 3.32.

Let us check it on the figure. One line goes through $(0, 0, 1)$ along $1, 3, 0$. The other goes through $(4, 1, 1)$ along $1, 0, 3$. On the page they seem to cross, but in space they pass apart.

Worked example

The gap between the figure’s two lines

  1. $\vec{b_1} \times \vec{b_2} = 9 \hat{i} - 3 \hat{j} - 3 \hat{k}$
    Cross the directions $1, 3, 0$ and $1, 0, 3$.
  2. $\left|\vec{b_1} \times \vec{b_2}\right| = \sqrt{81 + 9 + 9} = \sqrt{99} = 3 \sqrt{11}$
    Find the length of the cross product.
  3. $\vec{a_2} - \vec{a_1} = 4 \hat{i} + \hat{j}$
    The vector joining $(0, 0, 1)$ to $(4, 1, 1)$.
  4. $(9 \hat{i} - 3 \hat{j} - 3 \hat{k}) \cdot (4 \hat{i} + \hat{j}) = 36 - 3 = 33$
    Dot this vector with the cross product to get the numerator.
  5. *$d = 33/(3 \sqrt{11}) = 11/\sqrt{11} = \sqrt{11}$*
    Divide by the length of the cross product.
  6. Check: $\sqrt{11} \approx 3.32 > 0$
    The gap is not 0, so the lines are skew, about 3.32 apart as drawn.
Kanada
A SCHOLAR INDIA REMEMBERS

Make the list of how two lines can sit, and check that it is clean. On paper there are two kinds. They meet, or they are parallel. In space you need a third, skew. Now sort with two tests, in order. If $\vec{b_1} \times \vec{b_2} = \vec{0}$, the lines are parallel. If not, find $d$. The flyover pair has $d = \sqrt{11}$, about $3.32$, so it is skew. Only $d = 0$ means they meet.

Check yourself
  1. Two lines are called SKEW when:
    1. they run parallel but never touch
    2. they neither meet nor run parallel
    3. they meet at exactly one point
    4. they lie in the same plane but cross at an angle
    Check your answer
    1. they run parallel but never touch — Parallel lines are explicitly excluded from being skew, skew lines are neither parallel nor intersecting.
    2. ✓ they neither meet nor run parallel — (B) Skew lines are defined as lines that neither intersect nor run parallel to each other.
    3. they meet at exactly one point — Lines that meet at a point are INTERSECTING, not skew, skew lines never meet at all.
    4. they lie in the same plane but cross at an angle — Lines in the same plane always either meet or run parallel, skew lines exist only because no shared plane contains both.
  2. For two skew lines, what property does their shortest connecting segment have?
    1. it is parallel to both direction vectors
    2. it passes through the midpoint of each line’s direction vector
    3. it is perpendicular to both lines, the only such segment
    4. it lies entirely along one of the two lines
    Check your answer
    1. it is parallel to both direction vectors — Parallel to both directions is nearly the opposite of the real property, the shortest segment is perpendicular to both lines, not parallel to either.
    2. it passes through the midpoint of each line’s direction vector — No midpoint condition is involved, the segment is shortest because it is perpendicular to both lines, not because it splits any vector in half.
    3. ✓ it is perpendicular to both lines, the only such segment — (C) The shortest segment between two skew lines is perpendicular to both of them, that is exactly what makes it the shortest.
    4. it lies entirely along one of the two lines — The segment touches each line at only one endpoint, it does not lie along either line, it is perpendicular to both.
  3. In $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|$, what does the numerator’s dot-with-cross combination compute?
    1. the area of the parallelogram spanned by $\vec{b_1}$ and $\vec{b_2}$
    2. the angle between the two direction vectors
    3. the scalar triple product of both direction vectors and the joining vector
    4. the volume of the parallelepiped formed only by $\vec{a_1}$ and $\vec{a_2}$
    Check your answer
    1. the area of the parallelogram spanned by $\vec{b_1}$ and $\vec{b_2}$ — The area spanned by $\vec{b_1}$ and $\vec{b_2}$ is $\left|\vec{b_1} \times \vec{b_2}\right|$ alone, the numerator goes one step further, dotting that cross product with $\vec{a_2}-\vec{a_1}$.
    2. the angle between the two direction vectors — The angle between $\vec{b_1}$ and $\vec{b_2}$ comes from dotting them together directly, this numerator instead combines all three vectors in a scalar triple product.
    3. ✓ the scalar triple product of both direction vectors and the joining vector — (C) The numerator is the scalar triple product $(\vec{b_1} \times \vec{b_2}) \cdot (\vec{a_2}-\vec{a_1})$, combining both direction vectors with the vector joining a point on each line.
    4. the volume of the parallelepiped formed only by $\vec{a_1}$ and $\vec{a_2}$ — A parallelepiped needs three edge vectors, this one is formed by $\vec{b_1}$, $\vec{b_2}$, and $\vec{a_2}-\vec{a_1}$ together, not just $\vec{a_1}$ and $\vec{a_2}$.
  4. Line 1: $\vec{r} = \lambda(\hat{i}+\hat{j}+\hat{k})$. Line 2: $\vec{r} = \hat{i} + \mu(\hat{i}-\hat{j})$. What is the shortest distance between them?
    1. $1$
    2. $1/\sqrt{3}$
    3. $0$
    4. $1/\sqrt{6}$
    Check your answer
    1. $1$ — $1$ is only the numerator of the formula, dividing by $\left|\vec{b_1} \times \vec{b_2}\right|=\sqrt{6}$ still has to happen, giving $1/\sqrt{6}$.
    2. $1/\sqrt{3}$ — The denominator must be the magnitude of the CROSS product, $\sqrt{6}$, not the magnitude of $\vec{b_1}$ alone, $\sqrt{3}$.
    3. $0$ — Not being parallel does not mean the lines meet, these two are skew, so the shortest distance is the nonzero value $1/\sqrt{6}$, not $0$.
    4. ✓ $1/\sqrt{6}$ — (D) $\vec{a_2}-\vec{a_1}=\hat{i}$ and $\vec{b_1} \times \vec{b_2}=\hat{i}+\hat{j}-2\hat{k}$, so $\left|\vec{b_1} \times \vec{b_2}\right|=\sqrt{6}$; the numerator is $\left|1\right|=1$, giving $d=1/\sqrt{6}$.
The worked example’s cross product by determinant: rows 2, −1, 1 and 3, −5, 2 give 3î − ĵ − 7k̂.
The worked example’s two lines. L2 passes behind L1. The segment at right angles to both is about 1.30 long.
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})$
    The first line’s point and direction.
  2. Line 2: $\vec{r} = 2\hat{i}+\hat{j}-\hat{k} + \mu(3\hat{i}-5\hat{j}+2\hat{k})$
    The second line’s point and direction, not proportional to the first, so the lines are not parallel.
  3. $\vec{a_2}-\vec{a_1} = \hat{i}-\hat{k}$
    Subtract the position vectors of the two points.
  4. $\vec{b_1} \times \vec{b_2} = 3\hat{i}-\hat{j}-7\hat{k}$
    Cross the two directions to get a vector at right angles to both lines.
  5. $\left|\vec{b_1} \times \vec{b_2}\right| = \sqrt{9+1+49} = \sqrt{59}$
    Find the length of the cross product.
  6. $(\hat{i}-\hat{k}) \cdot (3\hat{i}-\hat{j}-7\hat{k}) = 3+0+7 = 10$
    Dot the vector $\vec{a_2} - \vec{a_1}$ with the cross product to get the numerator of the formula.
  7. *$d = 10/\sqrt{59}$*
    Divide by the length of the cross product.
  8. Check: $\vec{b_1} \times \vec{b_2} \neq \vec{0}$ and $d = 10/\sqrt{59} \approx 1.30 > 0$
    The lines are not parallel and the gap is not 0, so they never meet: they are skew.
Check yourself
  1. Line 1 passes through $(1,1,0)$; Line 2 passes through $(2,1,-1)$. What is $\vec{a_2}-\vec{a_1}$?
    1. $-\hat{i}+\hat{k}$
    2. $3\hat{i}+2\hat{j}-\hat{k}$
    3. $-\hat{k}$
    4. $\hat{i}-\hat{k}$
    Check your answer
    1. $-\hat{i}+\hat{k}$ — The formula needs $\vec{a_2}-\vec{a_1}$. Subtracting the other way flips every sign and gives $-\hat{i}+\hat{k}$.
    2. $3\hat{i}+2\hat{j}-\hat{k}$ — Take point $2$ minus point $1$. Adding the coordinates instead gives $(3, 2, -1)$, which is $3\hat{i}+2\hat{j}-\hat{k}$.
    3. $-\hat{k}$ — All three differences count. Dropping the $x$-difference of $\hat{i}-\hat{k}$ leaves $-\hat{k}$.
    4. ✓ $\hat{i}-\hat{k}$ — (D) $(2,1,-1)-(1,1,0)=(1,0,-1)=\hat{i}-\hat{k}$.
  2. For direction vectors $\vec{b_1}=2\hat{i}-\hat{j}+\hat{k}$ and $\vec{b_2}=3\hat{i}-5\hat{j}+2\hat{k}$, what is $\left|\vec{b_1} \times \vec{b_2}\right|$?
    1. $59$
    2. $-7$ by itself
    3. $\sqrt{59}$
    4. $\sqrt{6}$
    Check your answer
    1. $59$ — $59$ is the sum of squares of the cross product’s components, the magnitude is its square root, $\sqrt{59}$.
    2. $-7$ by itself — $-7$ is only one component of $3\hat{i}-\hat{j}-7\hat{k}$, the magnitude needs all three components combined, $\sqrt{9+1+49}=\sqrt{59}$.
    3. ✓ $\sqrt{59}$ — (C) $\vec{b_1} \times \vec{b_2} = 3\hat{i}-\hat{j}-7\hat{k}$, so $\left|\vec{b_1} \times \vec{b_2}\right| = \sqrt{9+1+49} = \sqrt{59}$.
    4. $\sqrt{6}$ — $\sqrt{6}=\left|\vec{b_1}\right|$ is just one vector’s own magnitude, the formula needs the magnitude of the cross product of both.
  3. Using $\vec{a_2}-\vec{a_1}=\hat{i}-\hat{k}$, $\vec{b_1} \times \vec{b_2}=3\hat{i}-\hat{j}-7\hat{k}$, and $\left|\vec{b_1} \times \vec{b_2}\right|=\sqrt{59}$, what is the shortest distance between the two lines?
    1. $10$
    2. $-4/\sqrt{59}$
    3. $100/59$
    4. $10/\sqrt{59}$
    Check your answer
    1. $10$ — $10$ is only the numerator. Divide it by $\sqrt{59}$ to get $10/\sqrt{59}$.
    2. $-4/\sqrt{59}$ — Two slips give $-4/\sqrt{59}$. First, $(-1)(-7) = 7$, not $-7$, so the numerator is $3+0+7=10$, not $-4$. Second, the formula takes the absolute value, so even $-4$ would give $4/\sqrt{59}$; a distance is never negative.
    3. $100/59$ — $100/59$ is $(10/\sqrt{59})^2$, the whole answer squared. The distance is $10/\sqrt{59}$ itself.
    4. ✓ $10/\sqrt{59}$ — (D) The numerator is $(\hat{i}-\hat{k}) \cdot (3\hat{i}-\hat{j}-7\hat{k}) = 3+0+7=10$, so the shortest distance is $10/\sqrt{59}$.
✕MISCONCEPTION
Step 1
The directions 2î − ĵ + k̂ and 3î − 5ĵ + 2k̂ are not proportional. So the lines are not parallel.
?
Step 2
Two lines that are not parallel always meet.
?
Step 3
So solving the two equations together must give a meeting point.
?
Three steps of a student’s working on two lines that are not parallel. Which step is wrong?

Here is a working for the two lines of the worked example. Which step is wrong?

Keep your answer, then try it. Set the coordinates of the two lines equal, and solve, step by step:

Worked example

Look for a common point

  1. $1 + 2 \lambda = 2 + 3 \mu$, $1 - \lambda = 1 - 5 \mu$, $\lambda = -1 + 2 \mu$
    Set the $x$, $y$ and $z$ of the two lines equal.
  2. $\lambda = 5 \mu$
    In the $y$ equation, take 1 from both sides and change both signs.
  3. $5 \mu = -1 + 2 \mu$
    Put $\lambda = 5 \mu$ into the $z$ equation.
  4. $\mu = -1/3$, so $\lambda = 5 \mu = -5/3$
    Take $2 \mu$ from both sides, so $3 \mu = -1$.
  5. $1 + 2(-5/3) = -7/3$, but $2 + 3(-1/3) = 1$
    The $x$ values differ, so no point is on both lines.
  6. Check: $y = 8/3$ and $z = -5/3$ on both lines
    The $y$ and $z$ equations hold, as the figure shows, and only $x$ fails.
λ = −5/3 and μ = −1/3 match y and z. x is −7/3 on one line and 1 on the other: no common point.

The second step is wrong. Two lines that are not parallel always meet on flat paper, but not in space. These lines are skew.

Skew lines still make an angle. Slide the two directions to one point: θ is about 31°.

No meeting point does not mean nothing to find. Skew lines still have an angle between them, from their directions. They also have a shortest distance, here $10/\sqrt{59}$.

Check yourself
  1. Two lines are neither parallel nor intersecting. Solving their equations simultaneously gives:
    1. infinitely many solutions, since the lines are close together in space
    2. no common solution at all
    3. exactly one solution, found by eliminating one variable
    4. a solution only if you also check the shortest-distance formula first
    Check your answer
    1. infinitely many solutions, since the lines are close together in space — Infinitely many solutions would mean the two lines are the same line, skew lines are two distinct lines with no shared point at all, giving no solution.
    2. ✓ no common solution at all — (B) Skew lines never meet, so solving their equations together yields no common solution, that absence of a solution is exactly what makes them skew.
    3. exactly one solution, found by eliminating one variable — Skew lines are defined by having no common solution, assuming elimination must always find one contradicts the very definition of skew.
    4. a solution only if you also check the shortest-distance formula first — Checking for a common solution and computing the shortest distance are two separate calculations, neither is a prerequisite for the other.
  2. Skew lines never meet. What can still be computed about them, according to the reality behind this trap?
    1. only their shortest distance, since angle requires the lines to share a common point
    2. nothing: with no intersection point, no geometric quantity between them is defined
    3. only their angle, since distance requires the lines to eventually meet
    4. a well-defined angle between them, and a well-defined shortest distance
    Check your answer
    1. only their shortest distance, since angle requires the lines to share a common point — Angle needs no shared point, it comes directly from the two direction vectors via the dot product, regardless of whether the lines ever meet.
    2. nothing: with no intersection point, no geometric quantity between them is defined — `No intersection’ does not mean `nothing to compute’, skew lines still have a well-defined angle and a well-defined shortest distance.
    3. only their angle, since distance requires the lines to eventually meet — Distance does not require meeting, the shortest-distance formula exists precisely for lines that never touch, giving a well-defined positive value.
    4. ✓ a well-defined angle between them, and a well-defined shortest distance — (D) Even though skew lines never meet, they still have a well-defined angle (from their direction vectors) and a well-defined shortest distance (from the skew-lines formula).
  3. A student says two skew lines have ‘no defined angle’ because they never touch. What is wrong with this reasoning?
    1. the two lines must be extended until they meet before an angle can be measured
    2. the student should have used the shortest-distance formula instead of an angle formula
    3. direction vectors alone define the angle, no shared point needed
    4. the student is right that skew lines have no angle, but they do have a distance
    Check your answer
    1. the two lines must be extended until they meet before an angle can be measured — Extending skew lines never makes them meet, that is what skew means. The angle between them is measured from their direction vectors, with no extension needed.
    2. the student should have used the shortest-distance formula instead of an angle formula — Substituting distance for angle does not correct the reasoning, the actual error is believing an angle needs a shared point, when it does not.
    3. ✓ direction vectors alone define the angle, no shared point needed — (C) The angle-between-two-lines formula uses only the two direction vectors and their dot product, it needs no shared point, so skew lines have a perfectly well-defined angle.
    4. the student is right that skew lines have no angle, but they do have a distance — The claim that skew lines have no angle is itself the trap, direction vectors define an angle with no shared point required at all.
  4. Line 1: $\vec{r} = \lambda \hat{k}$ (the $z$-axis). Line 2: $\vec{r} = \hat{i} + \mu \hat{j}$ (through $(1,0,0)$, parallel to the $y$-axis). Are these lines skew, and if so, what does that mean for their angle?
    1. Yes, they are skew: with directions $\hat{k}$ and $\hat{j}$ perpendicular, the angle is a well-defined $90$ degrees
    2. Yes, they are skew, and since they never meet, no angle between them can be computed
    3. No, they are not skew, because both lines pass through points with $x$-coordinate $0$ or $1$, which are close together
    4. No, they are not skew, since Line 1 lies along the $z$-axis and every line through the origin intersects every other line
    Check your answer
    1. ✓ Yes, they are skew: with directions $\hat{k}$ and $\hat{j}$ perpendicular, the angle is a well-defined $90$ degrees — (A) The lines never meet (Line 1 always has $x=0$, Line 2 always has $x=1$) and are not parallel, so they are skew; their direction vectors $\hat{k}$ and $\hat{j}$ have dot product $0$, giving a well-defined angle of $90$ degrees.
    2. Yes, they are skew, and since they never meet, no angle between them can be computed — This repeats the exact trap this section warns against, skew lines never meet, but their direction vectors still give a well-defined angle, here $90$ degrees.
    3. No, they are not skew, because both lines pass through points with $x$-coordinate $0$ or $1$, which are close together — Being numerically close is not the test, the lines are skew because they are neither parallel (different directions) nor intersecting (no shared point).
    4. No, they are not skew, since Line 1 lies along the $z$-axis and every line through the origin intersects every other line — Line 2 passes through $(1,0,0)$, not the origin, so no such rule applies, and no value of $\lambda,\mu$ makes the two lines’ points coincide, confirming they are skew.
▲CONCEPT
Two rails run side by side in one direction. The gap between them is the same all the way.

Look along a railway track. The two rails run side by side and never meet. They point the same way, and the gap between them is the same everywhere.

Two parallel lines share one direction, the vector b, and pass through different points, A₁ and A₂.

Two PARALLEL LINES are like the rails. They share one direction $\vec{b}$ and pass through different points. Write them as $\vec{r} = \vec{a_1} + \lambda \vec{b}$ and $\vec{r} = \vec{a_2} + \mu \vec{b}$.

Parallel lines share the direction vector b, and b × b is the zero vector, so the skew-line formula would divide by 0.

The skew-line formula does not work here. Both lines run along the same $\vec{b}$, so the angle between their directions is 0. Chapter 10 gave the length of a cross product as $\left|\vec{b}\right| \left|\vec{b}\right| \sin \theta$, and $\sin 0 = 0$:

$\vec{b} \times \vec{b} = \vec{0}$.

For parallel lines the cross product of the two directions is $\vec{0}$, and you cannot divide by 0. Use the one direction instead. The DISTANCE BETWEEN PARALLEL LINES is

$d = \left|\vec{b} \times (\vec{a_2} - \vec{a_1})\right|/\left|\vec{b}\right|$.

The parallelogram on the vector b and the joining vector: area √6, base √2. Its height, √3, is the gap between the lines.

Here is why. The vectors $\vec{b}$ and $\vec{a_2} - \vec{a_1}$ are two sides of a parallelogram, as in the figure. Its height is the gap between the rails:

Why it works

The gap is the parallelogram’s height

  1. Area $= \left|\vec{b} \times (\vec{a_2} - \vec{a_1})\right|$
    Chapter 10 gave the area of a parallelogram as the length of the cross product of its sides.
  2. Base $= \left|\vec{b}\right|$
    The base is the side along one rail.
  3. *$d = \left|\vec{b} \times (\vec{a_2} - \vec{a_1})\right|/\left|\vec{b}\right|$*
    Area is base times height, so the height is the area divided by the base.
  4. Check: $\sqrt{6}/\sqrt{2} = \sqrt{3}$
    The figure’s parallelogram has area $\sqrt{6}$ and base $\sqrt{2}$, and its height is $\sqrt{3}$.
Two lines through (1, 1, 1) and (3, 1, −1), both along 1, 4, 1. The joining vector, 2.83 long, meets both at right angles.

Check it on the figure. One line passes through $A_1(1, 1, 1)$, and the other through $A_2(3, 1, -1)$. Both run along $1, 4, 1$.

Worked example

The gap between the figure’s two rails

  1. $\vec{a_2} - \vec{a_1} = 2 \hat{i} - 2 \hat{k}$
    The vector joining $A_1$ to $A_2$.
  2. $(2 \hat{i} - 2 \hat{k}) \cdot (\hat{i} + 4 \hat{j} + \hat{k}) = 2 - 2 = 0$
    Dot this vector with the shared direction: 0 means a right angle.
  3. *$d = \sqrt{4 + 0 + 4} = \sqrt{8} = 2 \sqrt{2}$*
    This vector meets both lines at right angles, so its length is the gap.
  4. Check: $2 \sqrt{2} \approx 2.83$
    This is the 2.83 the figure marks.

The same gap, by formula

Your turn: use the formula on the same two lines. Do you get $2 \sqrt{2}$ again?

Check yourself
  1. Two parallel lines share direction vector $\vec{b}$ and pass through points with position vectors $\vec{a_1}$, $\vec{a_2}$. The distance between them is:
    1. $d = \left|\vec{b} \times (\vec{a_2}-\vec{a_1})\right|/\left|\vec{b}\right|$
    2. $d = \left|\vec{b} \times (\vec{a_2}-\vec{a_1})\right|$, with the division left out
    3. $d = \left|\vec{a_2}-\vec{a_1}\right|/\left|\vec{b}\right|$, with the cross product left out
    4. $d = \left|\vec{b} \cdot (\vec{a_2}-\vec{a_1})\right|/\left|\vec{b}\right|$
    Check your answer
    1. ✓ $d = \left|\vec{b} \times (\vec{a_2}-\vec{a_1})\right|/\left|\vec{b}\right|$ — (A) The distance between two parallel lines is the magnitude of $\vec{b}$ crossed with the vector joining the two points, divided by $\left|\vec{b}\right|$.
    2. $d = \left|\vec{b} \times (\vec{a_2}-\vec{a_1})\right|$, with the division left out — Without dividing by $\left|\vec{b}\right|$, the result scales with how long $\vec{b}$ happens to be, the division is what makes the distance independent of that.
    3. $d = \left|\vec{a_2}-\vec{a_1}\right|/\left|\vec{b}\right|$, with the cross product left out — Leaving out the cross product entirely turns this into an unrelated ratio, the perpendicular distance needs $\vec{b} \times (\vec{a_2}-\vec{a_1})$ in the numerator.
    4. $d = \left|\vec{b} \cdot (\vec{a_2}-\vec{a_1})\right|/\left|\vec{b}\right|$ — The numerator needs a CROSS product, $\vec{b} \times (\vec{a_2}-\vec{a_1})$, a dot product there measures something else entirely, not a perpendicular distance.
  2. Why does the skew-lines formula fail for two parallel lines?
    1. the dot product is 0, so $d = 0$
    2. the lines meet, so $d = 0$
    3. the formula needs a minus sign for parallel lines
    4. $\vec{b_1} \times \vec{b_2} = \vec{0}$, both 0
    Check your answer
    1. the dot product is 0, so $d = 0$ — The dot product on top is 0, but the denominator $\left|\vec{b_1} \times \vec{b_2}\right|$ is 0 too. The result, $0/0$, is not a number, so the formula gives no distance at all.
    2. the lines meet, so $d = 0$ — Two different parallel lines never meet. Like two rails, they stay the same distance apart, and that distance is more than 0.
    3. the formula needs a minus sign for parallel lines — No sign is missing, since the absolute value removes any sign. The trouble is $\vec{b_1} \times \vec{b_2} = \vec{0}$, and you cannot divide by 0.
    4. ✓ $\vec{b_1} \times \vec{b_2} = \vec{0}$, both 0 — (D) Parallel lines have parallel directions, so $\vec{b_1} \times \vec{b_2} = \vec{0}$. Then the numerator and the denominator of the formula are both 0. Use the parallel-lines formula instead: $d = \left|\vec{b} \times (\vec{a_2} - \vec{a_1})\right|/\left|\vec{b}\right|$.
  3. Two parallel lines share direction $\vec{b} = \hat{i}$; one passes through $(0,0,0)$, the other through $(2,3,4)$. What is the distance between them?
    1. $3$
    2. $25$
    3. $\sqrt{29}$
    4. $5$
    Check your answer
    1. $3$ — $3$ is only one component of the cross product $-4\hat{j}+3\hat{k}$, the magnitude needs both components combined, $\sqrt{16+9}=5$.
    2. $25$ — $25$ is $5^2$, the magnitude needs the square root of $16+9=25$, which is $5$, not $25$ itself.
    3. $\sqrt{29}$ — $\sqrt{29}$ is the distance between the two named points, the perpendicular distance between the lines uses the cross product instead, giving $5$.
    4. ✓ $5$ — (D) $\vec{a_2}-\vec{a_1} = 2\hat{i}+3\hat{j}+4\hat{k}$, and $\vec{b} \times (\vec{a_2}-\vec{a_1}) = -4\hat{j}+3\hat{k}$, so $d = \sqrt{16+9}/1 = 5$.
The direction b crossed with 3ĵ by determinant: rows 1, −2, 2 and 0, 3, 0 give −6î + 3k̂, of length 3√5.
The joining vector 3ĵ is 3 long. The true gap starts at the foot, λ = −2/3, and is √5 long.
Worked example

Find the distance between two parallel lines

  1. Line 1: $\vec{r} = \lambda(\hat{i}-2\hat{j}+2\hat{k})$
    The first line’s point and direction.
  2. Line 2: $\vec{r} = 3\hat{j} + \mu(\hat{i}-2\hat{j}+2\hat{k})$
    The second line runs along the same direction, so the lines are parallel.
  3. $\vec{a_2}-\vec{a_1} = 3\hat{j}$
    Subtract the position vectors of the two points.
  4. $\vec{b} \times (\vec{a_2}-\vec{a_1}) = -6\hat{i}+3\hat{k}$
    Cross the shared direction with $\vec{a_2}-\vec{a_1}$.
  5. $\left|\vec{b} \times (\vec{a_2}-\vec{a_1})\right| = \sqrt{36+9} = \sqrt{45} = 3\sqrt{5}$
    Find the length of the cross product, the area of the parallelogram on the two vectors.
  6. $\left|\vec{b}\right| = \sqrt{1+4+4} = 3$
    Find the length of the shared direction, the base of the parallelogram.
  7. *$d = 3\sqrt{5}/3 = \sqrt{5}$*
    Divide the area by the base to get the height, which is the distance.
  8. Check: the foot at $\lambda = -2/3$ on line 1 is $(-2/3, 4/3, -4/3)$
    An independent check: the point on line 1 closest to line 2.
  9. $3 \hat{j} - (-2/3 \hat{i} + 4/3 \hat{j} - 4/3 \hat{k}) = 2/3 \hat{i} + 5/3 \hat{j} + 4/3 \hat{k}$
    Join this foot to the point $3 \hat{j}$ on line 2.
  10. Check: $\sqrt{(2/3)^2 + (5/3)^2 + (4/3)^2} = \sqrt{45/9} = \sqrt{5}$
    Same gap, $\sqrt{5}$, found a different way.
Check yourself
  1. Line 1 passes through the origin; Line 2 passes through $(0,3,0)$. What is $\vec{a_2}-\vec{a_1}$?
    1. $3\hat{i}$
    2. $\hat{j}/3$
    3. $\vec{0}$
    4. $3\hat{j}$
    Check your answer
    1. $3\hat{i}$ — The point $(0,3,0)$ differs from the origin only in its $y$-coordinate, the vector is $3\hat{j}$, not $3\hat{i}$.
    2. $\hat{j}/3$ — The $y$-coordinate is $3$, not $1/3$, the vector between the points is $3\hat{j}$.
    3. $\vec{0}$ — $(0,3,0)$ and the origin are two different points, their difference is $3\hat{j}$, not the zero vector.
    4. ✓ $3\hat{j}$ — (D) $(0,3,0)-(0,0,0)=(0,3,0)=3\hat{j}$.
  2. For shared direction $\vec{b}=\hat{i}-2\hat{j}+2\hat{k}$ and $\vec{a_2}-\vec{a_1}=3\hat{j}$, what is $\left|\vec{b} \times (\vec{a_2}-\vec{a_1})\right|$?
    1. $-6$, only one cross-product component
    2. $3\sqrt{5}$
    3. $45$, without taking the square root
    4. $3$, the direction vector’s own length
    Check your answer
    1. $-6$, only one cross-product component — $-6$ is only one component of $-6\hat{i}+3\hat{k}$, the magnitude needs both components combined, $\sqrt{36+9}=3\sqrt{5}$.
    2. ✓ $3\sqrt{5}$ — (B) $\vec{b} \times (\vec{a_2}-\vec{a_1}) = -6\hat{i}+3\hat{k}$, so $\left|\vec{b} \times (\vec{a_2}-\vec{a_1})\right|=\sqrt{36+9}=\sqrt{45}=3\sqrt{5}$.
    3. $45$, without taking the square root — $45$ is the sum of squares of the cross product’s components, the magnitude is its square root, $\sqrt{45}=3\sqrt{5}$.
    4. $3$, the direction vector’s own length — $3=\left|\vec{b}\right|$ is just the direction vector’s own magnitude, the formula needs the magnitude of the cross product with $\vec{a_2}-\vec{a_1}$.
  3. Using $\left|\vec{b} \times (\vec{a_2}-\vec{a_1})\right|=3\sqrt{5}$ and $\left|\vec{b}\right|=3$, what is the distance between the two parallel lines?
    1. $\sqrt{5}/3$
    2. $3\sqrt{5}$
    3. $9\sqrt{5}$
    4. $\sqrt{5}$
    Check your answer
    1. $\sqrt{5}/3$ — $\left|\vec{b}\right|=3$ is divided in only once, dividing again gives $\sqrt{5}/3$, smaller than the actual distance, $\sqrt{5}$.
    2. $3\sqrt{5}$ — $3\sqrt{5}$ is only the numerator, dividing by $\left|\vec{b}\right|=3$ still has to happen, giving $\sqrt{5}$.
    3. $9\sqrt{5}$ — The formula divides by $\left|\vec{b}\right|$, not multiplies, multiplying instead gives $9\sqrt{5}$, not the actual distance $\sqrt{5}$.
    4. ✓ $\sqrt{5}$ — (D) Distance $= 3\sqrt{5}/3 = \sqrt{5}$.

↑ Back to top

One toolkit, every question in this chapter

■RECAP

Each section answered one question and handed its answer on. The equation gave a direction, the direction gave the cosines, two directions gave the angle, and the cross product gave the gap. This last section puts the four answers in one place, ready for the exercises.

Three Dimensional Geometry A b Equation of a line in space y z x α β γ Direction cosines and direction ratios of a line θ Angle between two lines d Shortest distance between two lines
Four idea cards. Direction ratios sit in a line’s equation, and direction cosines give the angle between lines. Both lead to the shortest distance.

The chapter opened with four questions. How do you write a whole line as an equation? How do you say which way it points? What is the angle between two lines? And how close do two lines come when they never meet?

One line, two facts: a point and a direction give its equation, and the unit vector gives its cosines 2/7, 3/7, 6/7.
Lines meeting at (1, 1, 1): the dot product gives cos θ = 4/9. Skew lines: the cross product gives the gap, about 3.32.

The figure sets two cases side by side. Two lines that meet at $(1, 1, 1)$ have $\cos \theta = 4/9$. Two skew lines are $\sqrt{11}$ apart.

The room’s string runs from (0, 0, 0) along 6, 6, 3. Its line is the vector r = λ(6î + 6ĵ + 3k̂).

Back to the string in the room, 6 m by 6 m by 3 m. It runs from $(0, 0, 0)$ along $6, 6, 3$. So its equation is $\vec{r} = \lambda (6 \hat{i} + 6 \hat{j} + 3 \hat{k})$, and its direction cosines are $2/3$, $2/3$ and $1/3$.

Check yourself
  1. Which single Chapter 10 operation answers every angle and perpendicularity question between two lines in this chapter?
    1. the scalar triple product
    2. a dot product, not cross
    3. matrix determinants
    4. the cross product
    Check your answer
    1. the scalar triple product — The scalar triple product is the skew-lines distance formula’s own tool, angle between two lines uses the plain dot product, not a triple product.
    2. ✓ a dot product, not cross — (B) The dot product is the operation behind every angle and perpendicularity question between two lines, exactly the operation the angle-between-two-lines formula uses.
    3. matrix determinants — Determinants belong to Chapter 4, the dot product and the cross product are this chapter’s entire vector toolkit.
    4. the cross product — This chapter uses the cross product for distance questions, angle and perpendicularity between two lines are answered by the dot product instead.
  2. How does the cross product show up in the SKEW-LINES distance formula?
    1. it drops out of the formula entirely for skew lines
    2. it is replaced entirely by a dot product, with no cross product used at all
    3. it is used twice, once for each of the two lines’ directions separately
    4. it folds into a scalar triple product with the joining vector
    Check your answer
    1. it drops out of the formula entirely for skew lines — The cross product stays. The skew-lines formula has $\vec{b_1} \times \vec{b_2}$ on top, inside a scalar triple product with the join, and its length below.
    2. it is replaced entirely by a dot product, with no cross product used at all — The cross product is not replaced. The skew-lines formula still uses $\vec{b_1} \times \vec{b_2}$, combined with a dot product into one scalar triple product.
    3. it is used twice, once for each of the two lines’ directions separately — The cross product is taken once, between both direction vectors together, $\vec{b_1} \times \vec{b_2}$. It is not applied separately to each line on its own.
    4. ✓ it folds into a scalar triple product with the joining vector — (D) The top of the formula is $(\vec{b_1} \times \vec{b_2}) \cdot (\vec{a_2} - \vec{a_1})$: the cross product dotted with the joining vector, a scalar triple product.
  3. Why does the parallel-lines distance formula NOT need a scalar triple product, unlike the skew-lines formula?
    1. parallel lines require computing the cross product twice, canceling the triple product out
    2. $\left|\vec{b} \times (\vec{a_2} - \vec{a_1})\right|/\left|\vec{b}\right|$, the parallelogram’s height
    3. parallel lines never have a positive distance between them, so no formula is needed at all
    4. parallel lines use a dot product where skew lines use a cross product
    Check your answer
    1. parallel lines require computing the cross product twice, canceling the triple product out — Nothing is computed twice, and nothing cancels. The parallel distance is its own result: the area of the parallelogram on $\vec{b}$ and $\vec{a_2} - \vec{a_1}$, divided by its base $\left|\vec{b}\right|$.
    2. ✓ $\left|\vec{b} \times (\vec{a_2} - \vec{a_1})\right|/\left|\vec{b}\right|$, the parallelogram’s height — (B) The vectors $\vec{b}$ and $\vec{a_2} - \vec{a_1}$ are two sides of a parallelogram. Its area is $\left|\vec{b} \times (\vec{a_2} - \vec{a_1})\right|$, and its base is $\left|\vec{b}\right|$. So its height, the gap between the lines, is the area divided by the base. The skew-lines formula cannot be used here, since $\vec{b_1} \times \vec{b_2} = \vec{0}$.
    3. parallel lines never have a positive distance between them, so no formula is needed at all — Two different parallel lines stay a fixed distance apart, like two rails, and that distance is more than 0. The parallel-lines formula finds it.
    4. parallel lines use a dot product where skew lines use a cross product — The parallel-lines formula still uses a cross product, $\vec{b} \times (\vec{a_2} - \vec{a_1})$. Its length is the area of a parallelogram, and dividing by the base $\left|\vec{b}\right|$ gives the height.
Check yourself: the whole chapter
  1. The direction ratios of a line are given as $(2, 4, 4)$. Are these numbers also the direction cosines of the line?
    1. Yes: direction ratios and direction cosines are just two names for the same three numbers.
    2. No, because $2 + 4 + 4 \neq 1$, and direction cosines must sum to $1$.
    3. No: divide each ratio by the largest of the three numbers, $4$, giving $(1/2, 1, 1)$.
    4. No: divide each ratio by the magnitude $\sqrt{2^2+4^2+4^2} = 6$, giving $(1/3, 2/3, 2/3)$.
    Check your answer
    1. Yes: direction ratios and direction cosines are just two names for the same three numbers. — Direction ratios are ANY proportional triple. Direction cosines are the one triple with magnitude $1$ pointing the same way, here that means dividing by $6$.
    2. No, because $2 + 4 + 4 \neq 1$, and direction cosines must sum to $1$. — The test is $l^2+m^2+n^2=1$, not a plain sum. Squaring and adding $(2,4,4)$ gives $36$, and dividing by $6^2=36$ is exactly what fixes that.
    3. No: divide each ratio by the largest of the three numbers, $4$, giving $(1/2, 1, 1)$. — The correct divisor is the magnitude $\sqrt{2^2+4^2+4^2}=6$, not the largest entry. Dividing by $4$ leaves $(1/2)^2+1^2+1^2 = 2.25 \neq 1$.
    4. ✓ No: divide each ratio by the magnitude $\sqrt{2^2+4^2+4^2} = 6$, giving $(1/3, 2/3, 2/3)$. — (D) Divide each ratio by the magnitude $\sqrt{2^2+4^2+4^2} = 6$ to get the direction cosines $(1/3, 2/3, 2/3)$. Check: $1/9+4/9+4/9=1$.
  2. A line passes through $P(1, 1, 1)$ and $Q(3, 4, 7)$. Which of these correctly gives its direction cosines?
    1. $(3, 4, 7)$: the direction ratios are just the coordinates of $Q$ itself.
    2. $(2/11, 3/11, 6/11)$: dividing each ratio by their sum $2+3+6=11$.
    3. $(2/7, 3/7, 6/7)$: dividing each ratio by the magnitude $\sqrt{2^2+3^2+6^2}=7$.
    4. $(-2/7, 3/7, 6/7)$: subtracting $P_x - Q_x$ for $x$ but $Q_y - P_y$, $Q_z - P_z$ for the rest.
    Check your answer
    1. $(3, 4, 7)$: the direction ratios are just the coordinates of $Q$ itself. — Direction ratios come from subtracting the two points, $Q - P$. Using $Q$’s coordinates alone ignores where the line starts.
    2. $(2/11, 3/11, 6/11)$: dividing each ratio by their sum $2+3+6=11$. — The denominator must be the magnitude $\sqrt{2^2+3^2+6^2}=7$, not the plain sum $2+3+6=11$.
    3. ✓ $(2/7, 3/7, 6/7)$: dividing each ratio by the magnitude $\sqrt{2^2+3^2+6^2}=7$. — (C) Subtract consistently, $Q-P$, to get ratios $(2,3,6)$. Divide by the magnitude $\sqrt{2^2+3^2+6^2}=7$ to get direction cosines $(2/7,3/7,6/7)$.
    4. $(-2/7, 3/7, 6/7)$: subtracting $P_x - Q_x$ for $x$ but $Q_y - P_y$, $Q_z - P_z$ for the rest. — Pick one order, $Q-P$ or $P-Q$, and use it for every coordinate. Mixing the two flips only one sign and gives a different line.
  3. The line $\vec{r} = \vec{a} + \lambda \vec{b}$ has $\lambda \in \mathbb{R}$. Which statement about it is true?
    1. Every real $\lambda$ gives a point on the line, and every point is reached exactly once.
    2. Only $\lambda \geq 0$ gives points on the line: negative $\lambda$ points the wrong way.
    3. The line only passes through the origin when $\lambda = 0$, so $\vec{a}$ must be the origin.
    4. Two different values of $\lambda$ can give the same point, if $\vec{b}$ is not a unit vector.
    Check your answer
    1. ✓ Every real $\lambda$ gives a point on the line, and every point is reached exactly once. — (A) $\lambda$ ranges over every real number. Each value lands on exactly one point, and every point on the line is reached by exactly one $\lambda$.
    2. Only $\lambda \geq 0$ gives points on the line: negative $\lambda$ points the wrong way. — Negative $\lambda$ is exactly as valid as positive. It moves along $\vec{b}$ the opposite way, still landing on the line.
    3. The line only passes through the origin when $\lambda = 0$, so $\vec{a}$ must be the origin. — $\vec{a}$ is any point ON the line, not the origin. Naming a different point as $\vec{a}$ does not change the line itself.
    4. Two different values of $\lambda$ can give the same point, if $\vec{b}$ is not a unit vector. — Any nonzero $\vec{b}$ gives a one-to-one map from $\lambda$ to points on the line. Scaling $\vec{b}$ only rescales which $\lambda$ hits which point.
  4. A line is written $(x+2)/3 = (y-5)/(-4) = z/2$. Read off the point it passes through and its direction ratios.
    1. Point $(2, 5, 0)$, ratios $(3, -4, 2)$.
    2. Point $(-2, 5, 0)$, ratios $(3, -4, 2)$.
    3. Point $(3, -4, 2)$, ratios $(-2, 5, 0)$.
    4. Point $(-2, 5, 0)$, ratios $(3, 4, 2)$.
    Check your answer
    1. Point $(2, 5, 0)$, ratios $(3, -4, 2)$. — The form is $(x-x_1)/a$. Written as $(x+2)/3$, that is $(x-(-2))/3$, so $x_1=-2$, not $2$.
    2. ✓ Point $(-2, 5, 0)$, ratios $(3, -4, 2)$. — (B) Matching term by term to $(x-x_1)/a$: point $(-2, 5, 0)$, ratios $(3, -4, 2)$. The sign inside each numerator flips to give the point’s coordinate.
    3. Point $(3, -4, 2)$, ratios $(-2, 5, 0)$. — The point sits on top, next to each variable. The direction ratios are the numbers underneath, not the other way round.
    4. Point $(-2, 5, 0)$, ratios $(3, 4, 2)$. — A direction ratio can be negative, it simply points the other way along that axis. Dropping the sign on $-4$ changes the direction.
  5. Two lines have direction ratios $(1, 1, 2)$ and $(-1, 1, -2)$. Their dot product is $1 - 1 - 4 = -4$, which is negative. What does that say about the angle between the lines?
    1. The angle between the lines is obtuse, since the dot product is negative.
    2. The lines must be perpendicular, since a negative dot product signals perpendicularity.
    3. The two direction ratios are parallel but pointing opposite ways, so no angle between the lines exists.
    4. Still acute: $\cos \theta = \left|-4\right|/(\sqrt{6} \cdot \sqrt{6}) = 2/3$. The sign never flips the angle.
    Check your answer
    1. The angle between the lines is obtuse, since the dot product is negative. — The angle formula uses $\left|a_1a_2+b_1b_2+c_1c_2\right|$. Taking the absolute value first means the angle reported is never obtuse.
    2. The lines must be perpendicular, since a negative dot product signals perpendicularity. — Perpendicular needs the dot product to equal exactly $0$. Here it is $-4$, not zero, so the lines are not perpendicular.
    3. The two direction ratios are parallel but pointing opposite ways, so no angle between the lines exists. — Parallel means $a_1/a_2=b_1/b_2=c_1/c_2$ throughout. Here $-1/1=-1$ but $1/1=1$, so the ratios do not match, the lines are not parallel.
    4. ✓ Still acute: $\cos \theta = \left|-4\right|/(\sqrt{6} \cdot \sqrt{6}) = 2/3$. The sign never flips the angle. — (D) Take the absolute value of the dot product: $\left|-4\right|/(\sqrt{6} \cdot \sqrt{6}) = 2/3$. The angle between two lines is never reported obtuse: here $\cos \theta = 2/3$, so it is acute.

↑ Back to top

Practice set: Exercise 11.1

Exercise 11.1 practises direction cosines and direction ratios. You find them from angles, from ratios and from two points on a line. Check every answer: the squares of the cosines add to 1.

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)$
  7. practice Show that the points $A(2, 3, 4)$, $B(-1, -2, 1)$ and $C(5, 8, 7)$ are collinear.
  8. practice Can a line make angles of $30^\circ$, $45^\circ$ and $60^\circ$ with the $x$, $y$ and $z$ axes?
Answers
  1. $(1/2, 1/\sqrt{2}, 1/2)$
  2. $(2/3, -2/3, 1/3)$
  3. $(3/5, 4/5, 0)$
  4. $\pm (1/\sqrt{3}, 1/\sqrt{3}, 1/\sqrt{3})$
  5. $(2/7, -3/7, 6/7)$
  6. (B) $(0, 3/5, 4/5)$.
  7. Collinear: the ratios of $B C$, $6, 10, 6$, are $-2$ times those of $A B$, $-3, -5, -3$, and $B$ is on both.
  8. No: $\cos^2 30^\circ + \cos^2 45^\circ + \cos^2 60^\circ = 3/2 \neq 1$.

↑ Back to top

Practice set: Exercise 11.2

Exercise 11.2 practises the equation of a line, in vector form and in Cartesian form. You also find the angle between two lines. Some questions ask for the distance between skew lines or parallel lines.

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 distinct 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 Take 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.
  17. practice Find the vector equation of the line through the points $(-1, 0, 2)$ and $(3, 4, 6)$.
  18. practice Write the line $(x - 5)/3 = (y + 4)/7 = (z - 6)/2$ in vector form.
  19. practice Find $p$ so that the lines $(1 - x)/3 = (7 y - 14)/(2 p) = (z - 3)/2$ and $(7 - 7 x)/(3 p) = (y - 5)/1 = (6 - z)/5$ are perpendicular.
  20. practice Show that the lines $\vec{r} = (\hat{i} + \hat{j} - \hat{k}) + \lambda(3 \hat{i} - \hat{j})$ and $\vec{r} = (4 \hat{i} - \hat{k}) + \mu(2 \hat{i} + 3 \hat{k})$ meet. Find the point where they meet.
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$, so the lines are perpendicular.
  8. $(1,1,2)$ for both, so 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.
  17. $\vec{r} = (-\hat{i} + 2 \hat{k}) + \lambda(4 \hat{i} + 4 \hat{j} + 4 \hat{k})$
  18. $\vec{r} = (5 \hat{i} - 4 \hat{j} + 6 \hat{k}) + \lambda(3 \hat{i} + 7 \hat{j} + 2 \hat{k})$
  19. $p = 70/11$
  20. They meet at $(4, 0, -1)$.

↑ Back to top

Practice set: miscellaneous

The Miscellaneous Exercise mixes everything you have met. The questions do not say which tool to use. So first ask what each one wants: a direction, an equation, an angle or a distance.

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.
  7. practice Find the angle between the two lines whose direction ratios are $(1,-2,2)$ and $(3,0,4)$.
  8. practice Find the distance between the lines $\vec{r} = (\hat{i} + 2 \hat{j} - 4 \hat{k}) + \lambda(2 \hat{i} + 3 \hat{j} + 6 \hat{k})$ and $\vec{r} = (3 \hat{i} + 3 \hat{j} - 5 \hat{k}) + \mu(2 \hat{i} + 3 \hat{j} + 6 \hat{k})$.
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$
  7. $\theta = \cos^{-1}(11/15)$.
  8. $\sqrt{293}/7$
Board paper practice: every technique in the chapter
  1. practice The direction cosines of the line through $(1, 2, 3)$ and $(3, 4, 4)$ are ______. (1 mark)
    1. $2$, $2$, $1$
    2. $2/3$, $2/3$, $1/3$
    3. $2/5$, $2/5$, $1/5$
    4. $4/9$, $4/9$, $1/9$
  2. practice Assertion (A). The lines with direction ratios $1, -2, 3$ and $-2, 4, -6$ are parallel. Reason (R). Two lines whose direction ratios are proportional are parallel. (1 mark)
    1. Both A and R are true and R is the correct explanation of A.
    2. Both A and R are true but R is not the correct explanation of A.
    3. A is true but R is false.
    4. A is false but R is true.
  3. practice Find the angle between the lines $(x - 2)/1 = (y + 1)/(-2) = (z - 3)/2$ and $(x + 1)/4 = y/4 = (z - 5)/(-7)$. (2 marks)
  4. practice Find the foot of the perpendicular from the point $P(6, 4, 3)$ to the line $(x - 2)/1 = (y - 1)/2 = (z + 1)/2$. Find also the length of the perpendicular. (3 marks)
  5. practice Show that the lines $(x - 1)/1 = (y + 1)/1 = z/1$ and $(x - 1)/2 = (y - 2)/(-1) = (z + 1)/3$ meet. Find the point where they meet. (5 marks)
  6. practice A straight road on the ground runs through the point $O$ along $\hat{i} + 2 \hat{j}$. A flyover deck passes over it, through the point $(2, 3, 6)$ and along $2 \hat{i} - \hat{j}$. Lengths are in metres, and $\hat{k}$ points straight up. (i) Write the vector equation of the line of the deck. (1 mark) (ii) Find the angle between the road and the deck. (1 mark) (iii) Find the shortest distance between the two lines. (2 marks)
Answers
  1. (B) $2/3$, $2/3$, $1/3$.
  2. (A) Both A and R are true and R is the correct explanation of A.
  3. $\theta = \cos^{-1}(2/3)$.
  4. The foot is $(4, 5, 3)$, and the perpendicular is $\sqrt{5}$ long.
  5. They meet at $(3, 1, 2)$.
  6. (i) $\vec{r} = (2 \hat{i} + 3 \hat{j} + 6 \hat{k}) + \mu(2 \hat{i} - \hat{j})$. (ii) $\pi/2$. (iii) 6 m.

↑ Back to top