Skip to chapter text
MathematicsCh 11 Three Dimensional Geometry

Three Dimensional Geometry: Class 12 Maths · Chapter 11

Lines in space: which way they point, how to write them, and how far apart they pass

Mathematics Part 2 · Companion notes, simulations and practice · Official NCERT chapter PDF ↗

Published · Updated

  • 75 min
  • 29 practice questions
  • 18 MCQs

What you will learn in Three Dimensional Geometry

  • Find the direction cosines of a line from its direction angles, from any set of direction ratios, or from two points on it
  • Use proportional direction ratios to decide whether three points are collinear or two lines are parallel
  • Write the line through a known point with a known direction as r = a + λb, and move between its vector, parametric and Cartesian forms
  • Find the acute angle between two lines from their direction ratios or vector equations, and test whether they are perpendicular or parallel
  • Tell intersecting, parallel and skew lines apart, and explain why the shortest gap between skew lines meets both at right angles
  • Compute the shortest distance between two skew lines, and between two parallel lines, with dot and cross products

Original companion text aligned to NCERT Mathematics Class 12, Chapter 11, pp. 377–393. Not affiliated with or endorsed by NCERT.

11.1 Introduction

Stand under a metro viaduct and look up. The track runs one way above you and the road runs another way under your feet. They never meet, yet they are not parallel either. How far apart are they where they come closest? Answering that needs a precise language for lines in space.

We first describe which way a line points, by its direction cosines and direction ratios. Then come the equation of a line in vector and Cartesian form, the angle between two lines, and the shortest distance between two lines that do not meet.

You already own the tools: coordinates of points in space from Class XI, and vectors with their dot and cross products from Chapter 10. Vectors keep the algebra short; coordinates show what each formula means.

Quick check
1 of 3
Warm-up from Class XI: how far is the point (3,1,−3) from the point (1,−2,3)?
units
Show answer

Answer 7 units

The differences are 2, 3 and −6, so the distance is 4+9+36=49=7.

11.2 Direction Cosines and Direction Ratios of a Line

Take a line L through the origin O and put an arrow on it, choosing one of its two directions; it is now a directed line. Its direction is pinned down by three angles: α with the positive x-axis, β with the positive y-axis and γ with the positive z-axis, each between 0∘ and 180∘. These are its direction angles.

Definition
Direction cosines

For a directed line with direction angles α, β, γ, the numbers l=cos⁡α, m=cos⁡β and n=cos⁡γ are its direction cosines.

ExampleThe positive z-axis has direction angles 90∘,90∘,0∘ and direction cosines 0,0,1.

Why the cosines rather than the angles? Mark the point P on L one unit from O, on the side the arrow points to. The x-coordinate of P is the projection of OP on the x-axis, which is 1×cos⁡α. The same holds for y and z (the figure shows it for y), so P is exactly the point (l,m,n) and the unit vector along L is liˆ+mjˆ+nkˆ (Fig. 11.1).

3/4The same works for every axis: P=(l,m,n) is the far corner of a box, and OP=1 gives l2+m2+n2=1.

Fig. 11.1Direction cosines are the coordinates of the unit point on a directed line.NCERT Fig. 11.1 · p. 378

Three axes meet at O, with x coming towards the viewer, y to the right and z up. A directed line L passes through O, and P is the point one unit along it. In the second step the right triangle formed by O, P and the foot of the perpendicular from P to the y-axis is shaded, the angle beta is marked at O, and the edge along the y-axis is labelled m, equal to cos beta. In the third step a dashed box with edges l, m and n along the three axes is drawn, with OP as its diagonal, and the labels read P = (l, m, n) and l squared plus m squared plus n squared equals 1. In the last step the arrow is reversed: the point P prime at (−l, −m, −n) appears on the other side of O, each angle such as alpha becomes 180 degrees minus alpha, and each cosine changes sign.

OP is the diagonal of a box whose edges are l, m and n, and OP=1. The distance formula therefore gives the one rule every set of direction cosines obeys.

l2+m2+n2=1
(11.1)
where
l,m,n
the direction cosines of any directed line

A line without an arrow can be given either of two arrows, and the two choices give different direction cosines. Turning the arrow round changes every direction angle θ into 180∘−θ, and cos⁡(180∘−θ)=−cos⁡θ, so the second set is simply (−l,−m,−n). That is why we fix an arrow before talking about the direction cosines of a line.

Nothing here needs the line to pass through O. Direction angles depend only on which way a line points, so a line anywhere in space has the same direction cosines as its parallel copy through the origin, drawn with the same arrow.

Direction ratios

Direction cosines are tied together by (11.1), which makes them awkward to read straight off a problem. Usually a direction is known only up to scale. "Walk 2 east, 1 north and 2 up" points the same way as "walk 4 east, 2 north and 4 up". Numbers like these, proportional to l,m,n, are the direction ratios of the line; some books call them direction numbers.

Definition
Direction ratios

Three numbers a,b,c, not all zero, are direction ratios of a line with direction cosines l,m,n when a=kl, b=km and c=kn for some real k≠0.

Example2,−1,2 and −4,2,−4 are direction ratios of the same line.

DerivationFrom direction ratios to direction cosines

Suppose we know three direction ratios a,b,c for some line. Build the vector v⃗=aiˆ+bjˆ+ckˆ from them; it points along the line, either with the arrow or against it.

Dividing a vector by its length gives the unit vector in its direction, and the components of the unit vector along the line are its direction cosines. So the direction cosines are the components of ±v⃗/∣v⃗∣.

(l,m,n)=±(a,b,c)r
(11.2)
where
r
the length a2+b2+c2 of the vector with components a,b,c
±
one sign for all three: plus if the line is directed along v⃗, minus if against it

So a line has just two sets of direction cosines but infinitely many sets of direction ratios: scaling a set by any non-zero number gives another, and any two sets are scalings of each other.

InteractiveDirection lab

A three-dimensional picture of the axes with an arrow from the origin to the point (a, b, c), the dashed box with that point as its far corner, and arcs for the angles the arrow makes with the three axes. Three sliders set the direction ratios a, b and c from minus 6 to 6, and a Reverse button turns the arrow round. A panel shows the length of the vector, the direction cosines as fractions and decimals, the three direction angles in degrees, and the sum of the squares of the cosines. Two more sliders, or dragging on the picture, turn and tilt the view. Nothing moves until the learner acts.

Fig. 11.2Set three direction ratios and read off the direction cosines and angles. Drag the picture (or use the sliders) to turn it.

In the direction lab, set a,b,c to 2,−1,2 and then to 4,−2,4: the arrow grows but the cosines stay the same. Press Reverse and watch every cosine change sign while each angle becomes its supplement.

Quick check
1 of 3
Could a line make an angle of 45∘ with each of the three axes?
Show answer

Answer (C) No; the squares of the cosines would add to 32, not 1

Each cosine would be 12, and three halves add to 32≠1. Position does not matter (option B), and a line can make three equal angles: about 54.7∘ each, as you will see in Practice 11.1.

11.2.1 Direction cosines of a line passing through two points

Two points fix a line and, once we decide to travel from the first to the second, a direction. Let the points P and Q have coordinates (x1,y1,z1) and (x2,y2,z2).

The vector PQ→ has components x2−x1, y2−y1 and z2−z1. Dividing it by its length PQ gives the unit vector along the line, and the components of a unit vector are exactly the direction cosines.

3/3In the right triangle PMQ, cos⁡γ=z2−z1PQ.

Fig. 11.3The direction of PQ is read off the box that has P and Q at opposite corners.NCERT Fig. 11.2 · p. 379

Small axes at the origin O sit at the lower left. Points P and Q are joined by a segment. In the second step a dashed box with edges parallel to the axes is drawn so that P and Q are opposite corners; three edges forming a path from P to Q are highlighted and labelled x2 minus x1, y2 minus y1 and z2 minus z1. In the third step the corner M directly above P is marked, the right triangle P, M, Q is shaded with its right angle at M, the angle gamma is marked at P between PM and PQ, and the label reads cos gamma equals z2 minus z1 over PQ.

Fig. 11.3 shows the same thing as a picture. The three components are the edges of the box that has P and Q at opposite corners, and PQ is its long diagonal. In the shaded right triangle the vertical edge z2−z1 lies next to the angle γ and PQ is the hypotenuse, so cos⁡γ=z2−z1PQ. Signs look after themselves: if Q is lower than P, then n<0 and γ is obtuse.

l=x2−x1PQm=y2−y1PQn=z2−z1PQ
(11.3)
where
PQ
the distance between the points: the square root of the sum of the squares of the three differences

In particular x2−x1, y2−y1, z2−z1 are direction ratios of the line PQ. So are x1−x2, y1−y2, z1−z2, which describe the same line directed from Q to P.

Example 1NCERT Example 1 · p. 380

From angles to cosines

The direction angles of a line are 120∘, 45∘ and 60∘. What are its direction cosines? Check them against (11.1).

Try it yourself first. Then reveal the solution one step at a time.

Example 2NCERT Example 2 · p. 380

From direction ratios to cosines

Turn the direction ratios 4,−4,7 into direction cosines, and pick the set for which the line makes an acute angle with the positive z-axis.

Try it yourself first. Then reveal the solution one step at a time.

Example 3NCERT Example 3 · p. 380

A zip line

An adventure camp measures positions in metres. Its straight zip line runs from the top of a tower at A(10,20,90) to a landing platform at B(70,50,70) further down the hill. Find the direction cosines of the line directed from A towards B and the length of the cable.

Try it yourself first. Then reveal the solution one step at a time.

Example 4NCERT Example 4 · p. 381

The axes themselves

Find the direction cosines of the three coordinate axes (directed the positive way), and of the line through O in the xy-plane that bisects the angle between the positive x- and y-axes.

Try it yourself first. Then reveal the solution one step at a time.

Example 5NCERT Example 5 · p. 381

Three points on one line

Do the points A(−1,4,2), B(1,1,3) and C(5,−5,5) lie on one straight line, that is, are they collinear? Decide with direction ratios.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 2
The line from (2,−1,4) to (5,3,4) makes an angle β with the y-axis. Find cos⁡β.
Show answer

Answer 0.8

The differences are 3,4,0 and the distance is 5, so cos⁡β=45=0.8. The line stays at height 4, so its angle with the z-axis is 90∘.
Practice · 6 questions

Practice 11.1: questions with answers

  1. Short answerEasyNCERT Exercise 11.1, Q1

    A directed line makes angles of 135∘, 120∘ and 60∘ with the positive x-, y- and z-axes. Write down its direction cosines and verify (11.1).

    Show solution

    Answer−12, −12, 12

    cos⁡135∘=−cos⁡45∘=−12, cos⁡120∘=−12 and cos⁡60∘=12.

    Check: 12+14+14=1.

  2. Short answerMediumNCERT Exercise 11.1, Q2

    A cube has one corner at the origin and three edges along the positive axes. Find the direction cosines of the cube's diagonal from O to the opposite corner, and the angle it makes with each edge at O.

    Show solution

    Answer13,13,13; about 54.7∘ with each edge

    The diagonal goes from (0,0,0) to (s,s,s), so s,s,s (or simply 1,1,1) are direction ratios.

    Their length is 3, so the direction cosines are 13 each, directed away from O.

    Equal cosines mean equal angles, so the diagonal makes the same angle with every edge: cos⁡−113≈54.7∘.

    Directed the other way, the cosines are all −13.

  3. Short answerEasyNCERT Exercise 11.1, Q3

    Find the direction cosines of a line whose direction ratios are 12,−15,−16.

    Show solution

    Answer±(1225,−35,−1625)

    144+225+256=625, whose square root is 25.

    By (11.2) the direction cosines are ±(1225,−1525,−1625), that is, ±(1225,−35,−1625).

  4. ProofMediumNCERT Exercise 11.1, Q4

    Prove that the points (3,−1,0), (5,2,−4) and (−1,−7,8) lie on one line.

    Show solution

    Call the points A, B, C. Direction ratios of AB are 2,3,−4.

    Direction ratios of AC are −4,−6,8, which is −2 times the first set.

    So AB∥AC, and the two segments share A. Hence A, B, C are collinear, with A between B and C.

  5. Short answerMediumNCERT Exercise 11.1, Q5

    A triangle has vertices A(4,2,3), B(−2,−1,1) and C(0,0,−1). Find the direction cosines of its sides, directed A→B, B→C and C→A.

    Show solution

    AnswerAB: −67,−37,−27; BC: 23,13,−23; CA: 23,13,23

    AB→ has components −6,−3,−2 and length 36+9+4=7.

    BC→ has components 2,1,−2 and length 3.

    CA→ has components 4,2,4 and length 6.

    Dividing each by its length gives the answers. Check: the three vectors add to the zero vector, as they must for a closed triangle.

  6. Quick answerEasy

    Which of these can be the direction cosines of a line?

    Show answer

    Answer (B) 13,23,23

    Only 19+49+49 equals 1. The others give 34, 2 and 79; they can be direction ratios, but not direction cosines.

11.3 Equation of a Line in Space

In a plane, a point and a slope fix a line. In space one slope is not enough, but two other pieces of data are: a point on the line together with its direction, or two points on it. Both lead to the same kind of equation.

11.3.1 Equation of a line through a given point and parallel to a given vector

Fix the point A, with position vector a⃗, and a direction b⃗≠0⃗. When does a point P, with position vector r⃗, belong to the line through A along b⃗? Exactly when the arrow from A to P is a multiple of b⃗. That arrow is r⃗−a⃗, so the test is r⃗−a⃗=λb⃗ for some real number λ.

Vector equation of a line
r⃗=a⃗+λb⃗
(11.4)
where
a⃗
position vector of a known point A on the line
b⃗
a vector parallel to the line
λ
a real number, the parameter

Read it as a recipe: start at A, then take λ steps of b⃗. Each real λ gives one point of the line, and each point of the line comes from exactly one λ, which is why λ is called a parameter. λ=0 gives A itself, λ=1 one full step, and a negative λ walks backwards (Fig. 11.4).

3/4With λ=2.5, AP→=2.5b⃗.

Fig. 11.4Every point of the line is a⃗+λb⃗ for one value of λ.NCERT Fig. 11.3 · p. 382

Axes meet at the origin O. A position-vector arrow labelled a runs from O to the point A, and a short thick arrow labelled b starts at A along the line. A purple point P moves along the line through A. In the first step lambda is 0 and P sits on A. In the second step lambda is 1, P is at the tip of b and an arrow labelled r runs from O to P. In the third step lambda is 2.5 and P is further along, with the stretch from A to P highlighted. In the last step lambda is minus 1.2 and P lies behind A, on the other side from b. The label r equals a plus lambda b stays on the picture throughout.

The components of b⃗ are direction ratios of the line, and any set of direction ratios can be used as the components of b⃗. One warning about letters: the number b among a,b,c, the vector b⃗ and its length ∣b⃗∣ are three different things.

DerivationFrom the vector form to the Cartesian form

Read (11.4) one coordinate at a time. If A=(x1,y1,z1) and b⃗ has components a,b,c, then the x-coordinate of a⃗+λb⃗ is x1+λa, and the same pattern holds for y and z.

So the point (x,y,z) lies on the line exactly when, for one and the same λ, the three parametric equations below hold.

x=x1+λay=y1+λbz=z1+λc
(11.5)

If none of a,b,c is zero, each equation can be solved for λ. One λ serves all three, so the three expressions must be equal, which removes the parameter altogether. We call the result the Cartesian form of the line's equation.

x−x1a=y−y1b=z−z1c
(11.6)
where
(x1,y1,z1)
a point on the line
a,b,c
direction ratios of the line (direction cosines l,m,n work too)

Two remarks make (11.6) safe to use. First, the numerators must be "variable minus constant" with coefficient 1 on the variable; rewrite a form such as 3−x2 as x−3−2 before reading off anything. Second, if a direction ratio is 0, say c=0, the line stays at the height z=z1. We still write z−z10 as shorthand, meaning only that z−z1=0.

The second way to fix a line, by two points, reduces to the first. If A and B have position vectors a⃗ and b⃗, the line AB passes through A and is parallel to b⃗−a⃗.

Line through two points
r⃗=a⃗+λ(b⃗−a⃗)
(11.7)
Example 6NCERT Example 6 · p. 382

The path of a drone

A drone leaves the point (−1,3,2) and flies in a straight line in the direction of 4iˆ−jˆ+5kˆ. Write the vector and Cartesian equations of its path, and find the point with λ=2.

Try it yourself first. Then reveal the solution one step at a time.

Example

A line written in disguise

Find a point on the line 3−x2=2y+14=z−3, its direction ratios, and its vector equation.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 3
Which point lies on r⃗=(iˆ−2jˆ+3kˆ)+λ(2iˆ+jˆ−kˆ)?
Show answer

Answer (D) (5,0,1)

λ=2 gives (1+4,−2+2,3−2)=(5,0,1). (2,1,−1) is the direction vector, not a point of the line; (3,1,2) needs λ=1 for x but then y would be −1.

11.4 Angle between Two Lines

Two lines in space need not meet, but they still have an angle between them: the angle between their directions. Slide a copy of each line, without turning it, until both copies pass through one point C, and measure the angle there (Fig. 11.5). The copies form two angles, θ and 180∘−θ; by agreement we report the one that is not obtuse.

3/3The copies make angles θ and 180∘−θ; we take the acute one.

Fig. 11.5The angle between two lines is the angle between their directions, taken acute.NCERT Fig. 11.4 · p. 383

Axes meet at the origin. Line L1, solid blue, and line L2, dashed orange, pass each other without meeting; arrows labelled b1 and b2 show their directions. In the second step dotted copies of both lines are drawn through a single point C, keeping their directions. In the third step the original lines fade, the angle theta between the copies is marked with a solid arc, and the other angle, 180 degrees minus theta, is marked with a dashed arc on the opposite side.

Give the first line direction ratios a1,b1,c1 and the second a2,b2,c2, so that b⃗1=a1iˆ+b1jˆ+c1kˆ and b⃗2=a2iˆ+b2jˆ+c2kˆ run along them. The dot product gives the angle between these two vectors. Taking the absolute value turns an obtuse answer into its acute supplement, which is the angle between the lines.

Angle between two lines
cos⁡θ=∣b⃗1⋅b⃗2∣∣b⃗1∣ ∣b⃗2∣
(11.8)
where
b⃗1⋅b⃗2
a1a2+b1b2+c1c2
∣b⃗1∣
a12+b12+c12, and similarly for ∣b⃗2∣
θ
the acute (or right) angle between the lines

The formula needs only the directions. For lines r⃗=a⃗1+λb⃗1 and r⃗=a⃗2+μb⃗2 use b⃗1 and b⃗2 as they stand; for lines in Cartesian form, read the direction ratios from the denominators (after rewriting into the standard form if needed). When the direction cosines are known, the lengths in (11.8) are 1.

cos⁡θ=∣s∣
(11.9)
where
s
l1l2+m1m2+n1n2, the dot product of the two unit vectors

The sine comes from the cross product in the same way: sin⁡θ=∣b⃗1×b⃗2∣∣b⃗1∣ ∣b⃗2∣. The components of b⃗1×b⃗2 are b1c2−b2c1, c1a2−c2a1 and a1b2−a2b1. With direction cosines the lengths are again 1.

sin⁡2θ=u2+v2+w2
(11.10)
where
u
l1m2−l2m1
v
m1n2−m2n1
w
n1l2−n2l1, the components of the cross product of the two unit vectors
Example 7NCERT Example 7 · p. 384

Angle from vector equations

At what angle are the lines r⃗=(iˆ+jˆ)+λ(2iˆ−2jˆ+kˆ) and r⃗=(3iˆ−kˆ)+μ(4iˆ+4jˆ−7kˆ) inclined to each other?

Try it yourself first. Then reveal the solution one step at a time.

Example 8NCERT Example 8 · p. 385

Angle from Cartesian equations

Two lines are given in Cartesian form, x−12=y+31=z−4−1 and x1=y−2−2=z+5−3. How large is the angle between them?

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 3
For which value of k are lines with direction ratios k,2,−1 and 3,k,4 perpendicular?
Show answer

Answer 0.8

3k+2k−4=0, so k=45=0.8.

11.5 Shortest Distance between Two Lines

Two lines in a plane either meet or are parallel. In space there is a third possibility, the one under the metro viaduct: the road below and the track above are not parallel, yet they never meet (Fig. 11.6). Such lines are skew lines. No single plane contains both of them, so they are not coplanar.

3/3A flyover over a road: the lines neither meet nor run parallel. The pillar is perpendicular to both.

Fig. 11.6Two lines in space meet, run parallel, or are skew.NCERT Fig. 11.5 · p. 385

A flat green ground sheet seen at a slant carries a straight road drawn as a solid blue line. In the first step a dashed orange road crosses it at a marked point, labelled they meet, distance 0. In the second step the orange road runs alongside the blue one without crossing, labelled parallel road, same gap everywhere. In the third step the orange line is the edge of a flyover deck raised above the ground and running across the road; a purple vertical pillar joins the deck to the road with right-angle marks at both ends, and the note reads never meet, not parallel.

Definition
Skew lines

A pair of lines in space with no common point and no common direction. No single plane can hold them both.

ExampleA straight flyover deck and the road it crosses.

The shortest distance between two lines is the length of the shortest segment that has one end on each line. For lines that meet it is 0. For parallel lines it is the perpendicular gap between them, the same wherever you measure it. For skew lines there is exactly one shortest segment, and it meets both lines at right angles. It is called their common perpendicular; in the flyover picture it is the pillar.

11.5.1 Distance between two skew lines

DerivationShortest distance between skew lines

Let the lines be l1:r⃗=a⃗1+λb⃗1 and l2:r⃗=a⃗2+μb⃗2, passing through A1 and A2. Let MN be their common perpendicular, with M on l1 and N on l2, and let d=MN (Fig. 11.7).

MN is perpendicular to both b⃗1 and b⃗2, so it lies along their cross product. With the unit vector nˆ=b⃗1×b⃗2∣b⃗1×b⃗2∣ we get MN→=±d nˆ.

Now go from A1 to A2 the long way round: along l1 to M, across to N, then along l2 to A2. In vectors, a⃗2−a⃗1=sb⃗1±d nˆ+tb⃗2 for some numbers s and t.

Now take the dot product of both sides with nˆ and remember that nˆ is perpendicular to b⃗1 and to b⃗2 as well, so the two along-the-line pieces drop out and only ±d is left. So d is the length of the projection of A1A2→ on nˆ. Writing nˆ out in full gives the formula below.

Skew lines
d=∣N⃗⋅(a⃗2−a⃗1)∣∣N⃗∣
(11.11)
where
N⃗
the cross product b⃗1×b⃗2 of the two directions
a⃗1,a⃗2
position vectors of points A1 on l1 and A2 on l2

In full, d is the absolute value of (b⃗1×b⃗2)⋅(a⃗2−a⃗1) divided by the length ∣b⃗1×b⃗2∣ of the cross product.

4/4Along l1, across MN, along l2: only the middle stretch survives a dot product with nˆ.

Fig. 11.7The common perpendicular MN is the projection of A1A2→ on b⃗1×b⃗2.NCERT Fig. 11.6 · p. 386

Small axes sit at the lower left. A solid blue line l1 runs low across the picture through the point A1, with an arrow b1 along it, and a dashed orange line l2 runs higher up in a different direction through A2, with an arrow b2. In the second step a purple arrow joins A1 to A2 and is labelled a2 minus a1. In the third step the common perpendicular MN is drawn between the lines with right-angle marks at M on l1 and N on l2, labelled d, and the note says n hat is parallel to b1 cross b2. In the last step a broad green path runs from A1 along l1 to M, up to N and along l2 to A2, and the label reads d equals the absolute value of (a2 minus a1) dot n hat.

Formula (11.11) also classifies the pair. If b⃗1×b⃗2=0⃗ the lines are parallel and the formula does not apply (see Section 11.5.2). Otherwise a zero numerator means d=0: the lines meet. A non-zero numerator means they are skew.

Cartesian form. For l1 through (x1,y1,z1) with direction ratios a1,b1,c1, and l2 through (x2,y2,z2) with a2,b2,c2, the numerator of (11.11) is a scalar triple product, which is a determinant. Writing Δx=x2−x1 and so on:

D=∣ΔxΔyΔza1b1c1a2b2c2∣
(11.12)
d=∣D∣∣b⃗1×b⃗2∣
(11.13)
where
∣b⃗1×b⃗2∣
the square root of the sum of the squares of b1c2−b2c1, c1a2−c2a1 and a1b2−a2b1
Example 9NCERT Example 9 · p. 388

Shortest distance between skew lines

How close do the lines r⃗=(2iˆ−jˆ)+λ(iˆ+2jˆ+2kˆ) and r⃗=(5iˆ−2jˆ+4kˆ)+μ(2iˆ+jˆ−2kˆ) come to each other?

Try it yourself first. Then reveal the solution one step at a time.

Example

Zero distance: the lines meet

Show that the lines r⃗=(iˆ+2jˆ+3kˆ)+λ(iˆ−jˆ+2kˆ) and r⃗=(−jˆ+7kˆ)+μ(iˆ+jˆ−kˆ) intersect, and find the common point.

Try it yourself first. Then reveal the solution one step at a time.

11.5.2 Distance between parallel lines

When two lines are parallel we may use one direction vector b⃗ for both, rescaling one equation if necessary: l1:r⃗=a⃗1+λb⃗ and l2:r⃗=a⃗2+μb⃗. They lie in a common plane, and the gap between them does not change along their length.

DerivationDistance between parallel lines

Draw the parallelogram with one side b⃗ laid along l1 from A1 and the other side A1A2→=a⃗2−a⃗1 (Fig. 11.8). From Chapter 10, its area is ∣b⃗×(a⃗2−a⃗1)∣.

Its base is ∣b⃗∣, and its height is the perpendicular gap d between the two lines, because the opposite side lies along l2. So its area is also ∣b⃗∣ d. Equating the two expressions gives the distance.

Parallel lines
d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣
(11.14)

3/3Its height is the gap d, so the area is also ∣b⃗∣ d.

Fig. 11.8One parallelogram, two ways to find its area.NCERT Fig. 11.7 · p. 387

Two parallel slanting lines, l1 solid blue below and l2 dashed orange above. Point A1 on l1 carries an arrow b along l1, and a purple arrow runs from A1 to the point A2 on l2. In the second step the parallelogram with sides b and A1A2 is shaded and labelled area equals the absolute value of b cross (a2 minus a1). In the third step a dashed perpendicular drops from A2 to its foot F on l1, with a right-angle mark, labelled d, and the label changes to area equals the absolute value of b times d.

Example 10NCERT Example 10 · p. 388

Distance between parallel lines

Show that the lines r⃗=(iˆ+jˆ)+λ(iˆ−2jˆ+2kˆ) and r⃗=(4iˆ+2jˆ−2kˆ)+μ(2iˆ−4jˆ+4kˆ) are parallel, and find the gap between them.

Try it yourself first. Then reveal the solution one step at a time.

InteractiveShortest distance explorer

A three-dimensional view of two lines, one solid blue and one dashed orange, with four ready-made pairs: a road and a flyover, the skew lines of Example 9, the meeting lines of the second example, and the parallel lines of Example 10. A point P on the first line and a point Q on the second are set by two sliders, lambda and mu, and a purple segment joins them. A panel shows the coordinates of P and Q, the length PQ, and the dot products of PQ with the two direction vectors, alongside the distance given by the chapter formula. A Closest points button moves P and Q to the ends of the common perpendicular, where both dot products are zero. Dragging the picture or using two view sliders turns and tilts it. Nothing moves until the learner acts.

Fig. 11.9Pick a pair of lines, then move a point on each line and try to make the gap as small as you can. Drag the picture to turn it.

In the explorer, choose Example 9 and slide λ and μ until PQ is as short as you can make it. The smallest value you can reach is 4, and there both dot products PQ→⋅b⃗1 and PQ→⋅b⃗2 are 0: the shortest segment is perpendicular to both lines. Try the same with the parallel pair, where every λ has its own closest μ.

Quick check
1 of 4
The lines r⃗=λ(iˆ+jˆ) and r⃗=3kˆ+μ(iˆ−jˆ) are
Show answer

Answer (A) skew, 3 units apart

The directions are not proportional, and the lines lie in the parallel planes z=0 and z=3, so they never meet: they are skew. By (11.11), b⃗1×b⃗2=−2kˆ and its dot product with 3kˆ is −6, so d=62=3.
Practice · 17 questions

Practice 11.2: questions with answers

  1. ProofEasyNCERT Exercise 11.2, Q1

    Lines L1, L2, L3 have direction cosines 23,23,13; −23,13,23 and 13,−23,23. Prove that each is perpendicular to the other two.

    Show solution

    First and second: −4+2+29=0.

    First and third: 2−4+29=0.

    Second and third: −2−2+49=0.

    Every pair is perpendicular. (Each set also has squares adding to 1, so these really are direction cosines.)

  2. ProofEasyNCERT Exercise 11.2, Q2

    Line AB joins A(2,0,−1) to B(4,3,1), and line CD joins C(1,1,5) to D(5,−1,4). Prove that AB⊥CD.

    Show solution

    Direction ratios are 2,3,2 for the first line and 4,−2,−1 for the second.

    Their sum of products is 8−6−2=0, so the lines are perpendicular.

  3. ProofEasyNCERT Exercise 11.2, Q3

    Is EF parallel to GH for the points E(1,5,−2), F(4,3,2), G(0,−1,6) and H(−6,3,−2) given here? Prove your answer.

    Show solution

    Direction ratios are 3,−2,4 for the first line and −6,4,−8 for the second.

    The second set is −2 times the first, so the lines are parallel.

  4. Short answerEasyNCERT Exercise 11.2, Q4

    A laser beam starts at (−2,0,5) and travels in the direction iˆ−4jˆ+3kˆ. Write the vector equation of the line it travels along.

    Show solution

    Answerr⃗=(−2iˆ+5kˆ)+λ(iˆ−4jˆ+3kˆ)

    Here the point has position vector a⃗=−2iˆ+5kˆ and the direction b⃗=iˆ−4jˆ+3kˆ is given.

    So the line is r⃗=(−2iˆ+5kˆ)+λ(iˆ−4jˆ+3kˆ).

  5. Short answerEasyNCERT Exercise 11.2, Q5

    Give both forms, vector and Cartesian, for the line that starts from the point 3iˆ+jˆ−2kˆ (a position vector) and runs along 2iˆ−jˆ+3kˆ.

    Show solution

    Answerr⃗=(3iˆ+jˆ−2kˆ)+λ(2iˆ−jˆ+3kˆ); x−32=y−1−1=z+23

    Vector form: r⃗=(3iˆ+jˆ−2kˆ)+λ(2iˆ−jˆ+3kˆ).

    Cartesian form, from the point (3,1,−2) and ratios 2,−1,3: x−32=y−1−1=z+23

  6. Short answerMediumNCERT Exercise 11.2, Q6

    The line 2−x4=y+13=z−72 is slid, without turning, until it passes through (1,−3,4). Write the Cartesian equation of the new line.

    Show solution

    Answerx−1−4=y+33=z−42

    2−x4=x−2−4, so the given line has direction ratios −4,3,2.

    A parallel line has the same ratios, so through (1,−3,4) it is x−1−4=y+33=z−42

  7. Short answerEasyNCERT Exercise 11.2, Q7

    Write the line x+25=y−7−2=z+14 in vector form.

    Show solution

    Answerr⃗=(−2iˆ+7jˆ−kˆ)+λ(5iˆ−2jˆ+4kˆ)

    The line passes through (−2,7,−1) and has direction ratios 5,−2,4.

    So r⃗=(−2iˆ+7jˆ−kˆ)+λ(5iˆ−2jˆ+4kˆ).

  8. Short answerMediumNCERT Exercise 11.2, Q8

    What angle does each pair of lines make?

    1. r⃗=(iˆ+2jˆ)+λ(iˆ+4jˆ+8kˆ) and r⃗=(3jˆ−kˆ)+μ(2iˆ−jˆ+2kˆ)

      Show solution

      Answercos⁡−11427≈58.8∘

      b⃗1⋅b⃗2=2−4+16=14, ∣b⃗1∣=9 and ∣b⃗2∣=3.

      So cos⁡θ=1427 and θ≈58.8∘.

    2. r⃗=(iˆ−jˆ+kˆ)+λ(2iˆ+jˆ−2kˆ) and r⃗=(2iˆ+3kˆ)+μ(6iˆ−2jˆ+3kˆ)

      Show solution

      Answercos⁡−1421≈79.0∘

      b⃗1⋅b⃗2=12−2−6=4, ∣b⃗1∣=3 and ∣b⃗2∣=7.

      So cos⁡θ=421 and θ≈79.0∘.

  9. Short answerMediumNCERT Exercise 11.2, Q9

    These pairs are in Cartesian form. Find the angle in each case.

    1. x−13=y+2−1=z2 and x+31=y−12=z−4−4

      Show solution

      Answercos⁡−116≈65.9∘

      Direction ratios 3,−1,2 and 1,2,−4. The sum of products is 3−2−8=−7.

      The lengths are 14 and 21, whose product is 76.

      So cos⁡θ=776=16 and θ≈65.9∘.

    2. x1=y−32=z+12 and x−24=y+54=z−17

      Show solution

      Answercos⁡−12627≈15.6∘

      Direction ratios 1,2,2 (length 3) and 4,4,7 (length 9).

      The sum of products is 4+8+14=26, so cos⁡θ=2627 and θ≈15.6∘.

  10. Short answerHardNCERT Exercise 11.2, Q10

    Which value of p makes the lines 2−x2=3y−6p=z+14 and 1−xp=y+26=3−z2 perpendicular?

    Show solution

    Answerp=2

    First line: x−2−2=y−2p/3=z+14, with direction ratios −2,p3,4.

    Second line: x−1−p=y+26=z−3−2, with direction ratios −p,6,−2.

    Perpendicular: 2p+2p−8=0, so p=2.

  11. ProofEasyNCERT Exercise 11.2, Q11

    Are the lines x−34=y+1−1=z−2−2 and x2=y−56=z1 perpendicular? Justify.

    Show solution

    The direction ratios are 4,−1,−2 and 2,6,1.

    Their sum of products is 8−6−2=0, so the lines are perpendicular.

  12. NumericalMediumNCERT Exercise 11.2, Q12

    How close do the lines r⃗=(iˆ+2kˆ)+λ(iˆ+2jˆ−kˆ) and r⃗=(3jˆ−kˆ)+μ(2iˆ+jˆ+kˆ) come to each other?

    Show solution

    Answer13≈0.577 units

    a⃗2−a⃗1=−iˆ+3jˆ−3kˆ.

    b⃗1×b⃗2=3iˆ−3jˆ−3kˆ, of length 27=33.

    The dot product is −3−9+9=−3.

    So d=333=13≈0.577.

  13. NumericalMediumNCERT Exercise 11.2, Q13

    Compute the gap, at their closest, between the lines x−23=y+1−1=z−42 and x+11=y−22=z+3−1.

    Show solution

    Answer2583≈2.74 units

    The points are (2,−1,4) and (−1,2,−3), so Δx,Δy,Δz=−3,3,−7. The direction ratios are 3,−1,2 and 1,2,−1.

    Expanding the determinant along its first row gives D=−3(1−4)−3(−3−2)−7(6+1)=9+15−49=−25.

    The cross product of the directions has components −3,5,7, so its length is 83.

    Hence d=2583≈2.74.

  14. NumericalMediumNCERT Exercise 11.2, Q14

    Find the length of the common perpendicular of r⃗=(iˆ+jˆ+kˆ)+λ(2iˆ+jˆ−2kˆ) and r⃗=(4iˆ−jˆ+2kˆ)+μ(2iˆ−2jˆ+kˆ).

    Show solution

    Answer13 unit

    a⃗2−a⃗1=3iˆ−2jˆ+kˆ.

    b⃗1×b⃗2=−3iˆ−6jˆ−6kˆ, of length 9.

    The dot product is −9+12−6=−3, so d=39=13.

  15. NumericalHardNCERT Exercise 11.2, Q15

    Two lines are given in parametric form: r⃗=(2+t)iˆ+(1−2t)jˆ+3tkˆ and r⃗=(2s−1)iˆ+(s+4)jˆ+(1−s)kˆ. How far apart are they at their closest?

    Show solution

    Answer2953=29315≈3.35 units

    The first line is (2iˆ+jˆ)+t(iˆ−2jˆ+3kˆ) and the second is (−iˆ+4jˆ+kˆ)+s(2iˆ+jˆ−kˆ).

    So a⃗2−a⃗1=−3iˆ+3jˆ+kˆ and b⃗1×b⃗2=−iˆ+7jˆ+5kˆ, of length 75=53.

    The dot product is 3+21+5=29, so d=2953=29315≈3.35.

  16. Quick answerMedium

    The lines r⃗=(iˆ+jˆ)+λ(2iˆ−jˆ+kˆ) and r⃗=(3iˆ+2kˆ)+μ(−4iˆ+2jˆ−2kˆ) are

    Show answer

    Answer (D) distinct parallel lines

    The second direction is −2 times the first, so the lines are parallel. The join 2iˆ−jˆ+2kˆ is not along 2iˆ−jˆ+kˆ, so they are not the same line; by (11.14) they are 56≈0.91 apart.
  17. Quick answerMedium

    Find the distance between the parallel lines r⃗=λ(2iˆ−2jˆ+kˆ) and r⃗=(3iˆ+3jˆ)+μ(2iˆ−2jˆ+kˆ), to two decimal places.

    Show answer

    Answer 4.24

    b⃗×(3iˆ+3jˆ)=−3iˆ+3jˆ+12kˆ, of length 162=92, so d=32≈4.24.
Recap

Three Dimensional Geometry: key points and summary

  1. A directed line makes angles α,β,γ with the positive axes; their cosines are its direction cosines l,m,n and reversing the arrow flips all three signs — Section 11.2
  2. Every set of direction cosines satisfies l2+m2+n2=1 — (11.1)
  3. Scaling the direction cosines by any non-zero number gives direction ratios; to go back, divide a,b,c by a2+b2+c2 — (11.2)
  4. For the line through two points the differences of coordinates are direction ratios, and dividing by the distance gives the cosines — Section 11.2.1
  5. The line through the point a⃗ parallel to b⃗ is r⃗=a⃗+λb⃗; through the points a⃗ and b⃗ it is r⃗=a⃗+λ(b⃗−a⃗) — (11.4)
  6. In coordinates the same line is x−x1a=y−y1b=z−z1c — (11.6)
  7. The angle between two lines is the acute angle between their directions, cos⁡θ=∣b⃗1⋅b⃗2∣∣b⃗1∣∣b⃗2∣ — Section 11.4
  8. Lines are perpendicular when a1a2+b1b2+c1c2=0 and parallel when their direction ratios are proportional — the test
  9. Two lines in space meet, run parallel, or are skew (neither); for skew lines the shortest gap lies along the common perpendicular — Section 11.5
  10. Skew lines: d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣∣b⃗1×b⃗2∣ — (11.11)
  11. Parallel lines: d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣ — (11.14)
Flash cards · 6

Formulas to remember

1 / 6

Miscellaneous Exercise on Chapter 11

Practice · 6 questions

Practice questions with answers (NCERT “Miscellaneous exercise”)

  1. Short answerMediumNCERT Miscellaneous Exercise, Q1

    For real numbers p,q,r, two lines have direction ratios p+q,q+r,r+p and p−q,q−r,r−p (neither set all zero). Find the angle between them.

    Show solution

    Answer90∘

    Multiply matching ratios: each product is a difference of two squares, (p+q)(p−q)=p2−q2, and likewise for the other two.

    The sum is (p2−q2)+(q2−r2)+(r2−p2)=0, so cos⁡θ=0 and the lines are perpendicular, whatever p, q, r are.

  2. Short answerEasyNCERT Miscellaneous Exercise, Q2

    Write the vector and Cartesian equations of the line through (0,2,−3) parallel to the z-axis.

    Show solution

    Answerr⃗=(2jˆ−3kˆ)+λkˆ; x0=y−20=z+31, that is, x=0 and y=2

    The direction is kˆ, so r⃗=(2jˆ−3kˆ)+λkˆ.

    In Cartesian form x0=y−20=z+31, where the zero denominators mean x=0 and y=2 for every point, while z is free.

  3. Short answerMediumNCERT Miscellaneous Exercise, Q3

    The lines x+2k=y−13=z+4−2 and x−52=y+3k=z−14 are known to be perpendicular. What is k?

    Show solution

    Answerk=85

    Perpendicular: 2k+3k−8=0, so 5k=8 and k=85.

  4. NumericalMediumNCERT Miscellaneous Exercise, Q4

    Find how far apart these lines are at their closest: r⃗=(3iˆ−kˆ)+λ(2iˆ+2jˆ+kˆ) and r⃗=(4iˆ−2jˆ+kˆ)+μ(−2iˆ+jˆ+2kˆ).

    Show solution

    Answer3 units

    a⃗2−a⃗1=iˆ−2jˆ+2kˆ.

    b⃗1×b⃗2=3iˆ−6jˆ+6kˆ, of length 9.

    The dot product is 3+12+12=27, so d=279=3.

  5. Short answerHardNCERT Miscellaneous Exercise, Q5

    A line through (2,−1,3) must be at right angles to two given lines, x−11=y+22=z−4−2 and r⃗=(iˆ+4jˆ)+μ(3iˆ+kˆ). Write its vector equation.

    Show solution

    Answerr⃗=(2iˆ−jˆ+3kˆ)+λ(2iˆ−7jˆ−6kˆ)

    The directions are iˆ+2jˆ−2kˆ and 3iˆ+kˆ.

    Their cross product is the determinant with rows iˆ,jˆ,kˆ; 1,2,−2; 3,0,1.

    This cross product is 2iˆ−7jˆ−6kˆ. Check: its dot products with the two directions are 2−14+12=0 and 6−6=0.

    So the line is r⃗=(2iˆ−jˆ+3kˆ)+λ(2iˆ−7jˆ−6kˆ).

  6. Quick answerMedium

    If b⃗1×b⃗2≠0⃗ and (b⃗1×b⃗2)⋅(a⃗2−a⃗1)=0, the lines r⃗=a⃗1+λb⃗1 and r⃗=a⃗2+μb⃗2 intersect.

    Show answer

    Answer True

    The directions are not parallel, and (11.11) gives d=0, so the lines share a point.

Find your NCERT exercise question

Our practice questions are written for ncert.ai and follow the NCERT exercises. Find the one that matches the question in your textbook; its answer is with it.

In your NCERT textbookPractice question here
NCERT Exercise 11.1, Q1Practice 11.1 · Q1
NCERT Exercise 11.1, Q2Practice 11.1 · Q2
NCERT Exercise 11.1, Q3Practice 11.1 · Q3
NCERT Exercise 11.1, Q4Practice 11.1 · Q4
NCERT Exercise 11.1, Q5Practice 11.1 · Q5
NCERT Exercise 11.2, Q1Practice 11.2 · Q1
NCERT Exercise 11.2, Q2Practice 11.2 · Q2
NCERT Exercise 11.2, Q3Practice 11.2 · Q3
NCERT Exercise 11.2, Q4Practice 11.2 · Q4
NCERT Exercise 11.2, Q5Practice 11.2 · Q5
NCERT Exercise 11.2, Q6Practice 11.2 · Q6
NCERT Exercise 11.2, Q7Practice 11.2 · Q7
NCERT Exercise 11.2, Q8Practice 11.2 · Q8
NCERT Exercise 11.2, Q9Practice 11.2 · Q9
NCERT Exercise 11.2, Q10Practice 11.2 · Q10
NCERT Exercise 11.2, Q11Practice 11.2 · Q11
NCERT Exercise 11.2, Q12Practice 11.2 · Q12
NCERT Exercise 11.2, Q13Practice 11.2 · Q13
NCERT Exercise 11.2, Q14Practice 11.2 · Q14
NCERT Exercise 11.2, Q15Practice 11.2 · Q15
NCERT Miscellaneous Exercise, Q1Miscellaneous exercise · Q1
NCERT Miscellaneous Exercise, Q2Miscellaneous exercise · Q2
NCERT Miscellaneous Exercise, Q3Miscellaneous exercise · Q3
NCERT Miscellaneous Exercise, Q4Miscellaneous exercise · Q4
NCERT Miscellaneous Exercise, Q5Miscellaneous exercise · Q5

Quick check: MCQs on Three Dimensional Geometry

  1. 11.1 Introduction3 questions
  2. Direction ratios3 questions
  3. 11.2.1 Direction cosines of a line passing through two points2 questions
  4. 11.3.1 Equation of a line through a given point and parallel to a given vector3 questions
  5. 11.4 Angle between Two Lines3 questions
  6. 11.5.2 Distance between parallel lines4 questions
Glossary · 11

Key terms (English–Hindi)

Cartesian equation of a lineरेखा का कार्तीय समीकरणrekha ka kaarteey sameekaran
The line written in coordinates, x−x1a=y−y1b=z−z1c, through (x1,y1,z1) with direction ratios a,b,c.First seen in the chapter →
collinearसंरेखsanrekh
Lying on one straight line.First seen in the chapter →
common perpendicularउभयनिष्ठ लंबubhayanishth lamb
The one segment that meets two skew lines and is perpendicular to both; its length is their shortest distance.First seen in the chapter →
coplanarसमतलीयsamtaleey
Lying in one plane. Two lines are coplanar exactly when they meet or are parallel.First seen in the chapter →
directed lineदिष्ट रेखाdisht rekha
A line together with a chosen one of its two directions, shown by an arrow.First seen in the chapter →
direction anglesदिक्-कोणdik-kon
The angles α,β,γ (each from 0∘ to 180∘) that a directed line makes with the positive x-, y- and z-axes.First seen in the chapter →
direction cosinesदिक्-कोसाइनdik-cosine
The cosines l,m,n of the direction angles; they satisfy l2+m2+n2=1.First seen in the chapter →
direction ratiosदिक्-अनुपातdik-anupaat
Any three numbers, not all zero, in the same ratio as the direction cosines of a line.First seen in the chapter →
parameterप्राचलpraachal
The real number λ in r⃗=a⃗+λb⃗; each value picks out one point of the line.First seen in the chapter →
shortest distanceन्यूनतम दूरीnyoontam doori
The length of the shortest segment joining a point of one line to a point of the other.First seen in the chapter →
skew linesविषमतलीय रेखाएँvishamtaleey rekhaayen
A pair of lines in space that never meet and are not parallel; no plane holds both.First seen in the chapter →