By the end of this chapter you'll be able to…

  • 1Find the direction cosines and direction ratios of a line, including a line joining two given points
  • 2Write the vector and Cartesian equations of a line through a given point in a given direction
  • 3Find the angle between two lines from their direction ratios, and test for perpendicularity or parallelism
  • 4Compute the shortest distance between two skew lines using the cross-product formula
  • 5Recognise when two lines are parallel and switch to the separate parallel-lines distance formula instead
💡
Why this chapter matters
This chapter applies the previous chapter's vector machinery directly to lines in space — and because planes have been cut from the current syllabus, it is now a tightly focused 25-question chapter where mastering four formulas covers essentially everything that can be asked.

Three Dimensional Geometry

1. Check this before you revise anything

Planes have been removed from this chapter entirely — but the introduction still promises them. The chapter's opening paragraph says it will "discuss about the equations of lines and planes in space under different conditions, angle between two lines, two planes, a line and a plane, shortest distance between two skew lines and distance of a point from a plane."

Not one of those plane topics exists. The actual section list is:

SectionTopic
11.1Introduction
11.2Direction Cosines and Direction Ratios of a Line (11.2.1 through two points)
11.3Equation of a Line in Space (11.3.1 through a point, parallel to a vector)
11.4Angle between Two Lines
11.5Shortest Distance between Two Lines (11.5.1 skew, 11.5.2 parallel)

The word "plane" appears exactly six times in the whole 17-page chapter: three times inside that one introductory sentence, once as "XY-plane" in a diagram label, once as "the plane of the lines" inside a formula derivation, and once as "they lie in different planes" describing skew lines. There is no plane equation, no normal form, no angle-between-planes formula, no point-to-plane distance formula, and no exercise question involving a plane anywhere.

This matches the syllabus line exactly: "Direction cosines and direction ratios of a line joining two points. Cartesian equation and vector equation of a line, skew lines, shortest distance between two lines. Angle between two lines." Nothing about planes.

The old stub taught planes as a major section — the equation of a plane in normal form, angle between two planes, distance of a point from a plane. All removed in this rebuild.

This is also one of the smallest chapters in the book: Exercise 11.1 (5 questions), Exercise 11.2 (15), and a Miscellaneous Exercise (5) — 25 questions in total, against 261 in Chapter 7. Only Chapter 8 (9 questions) and Chapter 12 (10) are smaller.


2. Direction Cosines and Direction Ratios (Textbook 11.2)

A line in space has no single "slope" the way a line in the plane does. Instead its direction is recorded by the angles it makes with the three coordinate axes.

Direction cosines. If a directed line through the origin makes angles with the positive , and axes, then , , are its direction cosines, written .

A subtlety the textbook flags: a line has two directions, so reversing it replaces by . To make the triple unique you must fix a direction along the line first.

The fundamental relation. Take a point on the line at distance from the origin. Dropping perpendiculars to the axes gives , , . Therefore:

This is the test that separates direction cosines from direction ratios. If the squares of your three numbers do not add to , they are not direction cosines.

Direction ratios. Any triple proportional to is a set of direction ratios. So , , for some non-zero .

Because is arbitrary, direction ratios are not unique — a line has infinitely many sets. That is precisely what makes them convenient: you can clear fractions and cancel common factors freely. To recover the direction cosines, normalise:

Direction cosines of a line through two points (11.2.1). For and , the direction ratios of are simply the coordinate differences:

and dividing each by gives the direction cosines.

Collinearity. This gives the standard method for the last question of Exercise 11.1. Three points are collinear when the direction ratios of and are proportional — the shared point then forces all three onto one line.


3. Equation of a Line in Space (Textbook 11.3)

A line is pinned down by one point on it and one direction along it. That single sentence generates both forms below.

Vector form (11.3.1). Let be the position vector of a known point on the line, and a vector parallel to the line. For any point on the line with position vector , the segment is parallel to , so for some scalar . Since :

As runs over all reals, sweeps out the entire line. Each names exactly one point.

Cartesian form. Write and , and . Comparing components in gives , , . Solving each for and equating:

Here are direction ratios of the line and is a point on it. If the direction cosines are used instead of direction ratios, the common value of the three fractions is the actual distance from .

Line through two points. Given and , take , giving , or in Cartesian form:

The rewriting trap. Exam questions rarely present the Cartesian form cleanly. You will meet or or , and you must convert each to the standard shape before reading anything off:

The sign of the direction ratio flips whenever the variable is subtracted from a constant, and a coefficient on the variable must be divided out. Skipping this rewrite is the single largest source of lost marks in this chapter.


4. Angle between Two Lines (Textbook 11.4)

The angle between two lines is defined as the angle between their direction vectors. Since the dot product gives :

Why the absolute value. Each line has two possible direction vectors, and , which would give supplementary angles and . The convention is to report the acute angle, and taking the modulus in the numerator enforces that automatically. Omitting it and reporting an obtuse angle is a standard error.

In terms of direction ratios and :

and if direction cosines are used, the denominator is and the formula collapses to .

Two special cases account for most of Exercise 11.2:

ConditionTest on direction ratios
Lines are perpendicular ()
Lines are parallel ()

The perpendicularity test is what "find such that the lines are at right angles" questions reduce to: rewrite both equations into standard form, extract direction ratios, set the dot product to zero, solve for the parameter.


5. Shortest Distance between Two Lines (Textbook 11.5)

In a plane, two lines either meet or are parallel. In space there is a third possibility, and it is the one this section exists for.

Skew lines are lines that are neither parallel nor intersecting — they lie in different planes. Two edges of a room meeting at neither a corner nor running alongside each other are skew. For such lines the natural question is not "where do they meet" but "how close do they get".

The shortest distance between two lines is measured along the segment perpendicular to both.

Skew lines (11.5.1). For and , the vector is perpendicular to both directions, so it points along the common perpendicular. The shortest distance is the projection of the joining vector onto that direction:

Read that as: numerator measures how far apart the lines are along the common perpendicular, denominator normalises it to a true length.

A useful corollary. The two lines intersect exactly when , that is when . This is the coplanarity condition, and it is how "show these lines intersect" questions are answered.

Parallel lines (11.5.2). If the lines are parallel then and point the same way, so and the formula above divides by zero. Writing both lines with the same direction , the separate formula is:

Always test before you divide. Compute first. If it is the zero vector the lines are parallel and need the second formula; otherwise they are skew and the first applies. Exercise 11.2 deliberately includes one of each, so applying the skew formula blindly will fail on at least one question.

Worked, mirroring the textbook's own technique. Find so that and are perpendicular.

Rewrite each into standard form first. The first line becomes , with direction ratios . The second becomes , with direction ratios .

Setting the dot product to zero: , so , giving .


Summary

  • Direction cosines are the cosines of the angles with the axes and satisfy ; reversing the line's direction negates all three.
  • Direction ratios are any triple proportional to , so they are not unique; normalise by to recover direction cosines.
  • For a line through two points the direction ratios are the coordinate differences; three points are collinear when two such triples are proportional and share a point.
  • Line: , or — one point plus one direction determines it.
  • Always rewrite terms like into before reading direction ratios; the sign flips, and coefficients on the variable must be divided out.
  • Angle between lines: — the modulus forces the acute angle.
  • Perpendicular when ; parallel when the direction ratios are proportional.
  • Skew lines: , and is exactly the condition for the lines to intersect.
  • Parallel lines need the separate formula ; test before choosing.
  • Planes are not part of this chapter at all in the current edition, despite the introduction promising plane equations, angles between planes, and point-to-plane distance.

Key formulas & results

Everything you need to memorise, in one card. Screenshot this for revision.

Direction cosines
l = cos(alpha), m = cos(beta), n = cos(gamma), the cosines of the angles the line makes with the x, y, z axes
Reversing the direction of the line replaces (l,m,n) by (-l,-m,-n), so a direction must be fixed first
Fundamental relation for direction cosines
l^2 + m^2 + n^2 = 1
This is the test that separates direction cosines from direction ratios — if the squares do not sum to 1, they are ratios
Direction ratios and normalisation
Any (a,b,c) proportional to (l,m,n). Recover cosines by l = a/sqrt(a^2+b^2+c^2), and similarly for m and n
Direction ratios are not unique, so common factors may be cancelled and fractions cleared freely
Direction ratios of a line through two points
(x2-x1, y2-y1, z2-z1), divided by the distance PQ to give direction cosines
Terminal minus initial; this also gives the collinearity test for three points
Collinearity of three points
A, B, C are collinear when the direction ratios of AB and BC are proportional
The shared point B is what forces all three onto one line — state it explicitly in a proof
Equation of a line, vector form
r = a + lambda.b, where a is a point on the line and b is parallel to it
Each value of lambda names exactly one point; as lambda runs over the reals, P sweeps the whole line
Equation of a line, Cartesian form
(x-x1)/a = (y-y1)/b = (z-z1)/c
If direction cosines are used instead of ratios, the common value of the three fractions is the actual distance from (x1,y1,z1)
Line through two given points
(x-x1)/(x2-x1) = (y-y1)/(y2-y1) = (z-z1)/(z2-z1)
Equivalently r = a + lambda(b - a) in vector form
Rewriting into standard form
(1-x)/3 = (x-1)/(-3); (4-y)/5 = (y-4)/(-5); (7y-14)/(2p) = (y-2)/(2p/7)
The sign flips whenever the variable is subtracted from a constant, and a coefficient on the variable must be divided out
Angle between two lines
cos(theta) = |b1.b2| / (|b1|.|b2|)
The modulus forces the acute angle; without it you can report the supplementary obtuse angle by mistake
Angle in terms of direction ratios
cos(theta) = |a1a2 + b1b2 + c1c2| / (sqrt(a1^2+b1^2+c1^2) . sqrt(a2^2+b2^2+c2^2))
With direction cosines the denominator is 1, collapsing this to |l1l2 + m1m2 + n1n2|
Perpendicular and parallel conditions
Perpendicular: a1a2 + b1b2 + c1c2 = 0. Parallel: a1/a2 = b1/b2 = c1/c2
The perpendicularity test is what every find-the-parameter question reduces to
Shortest distance between skew lines
d = |(b1 x b2).(a2-a1)| / |b1 x b2|
Only valid when b1 x b2 is not the zero vector; compute the cross product before dividing
Condition for two lines to intersect
(b1 x b2).(a2-a1) = 0, that is the shortest distance is zero
This is the coplanarity condition and is how show-these-lines-intersect questions are answered
Distance between parallel lines
d = |b x (a2-a1)| / |b|, using the common direction b
Needed exactly when b1 x b2 = 0, where the skew formula divides by zero
⚠️

Common mistakes & fixes

These are the exact errors that cost students marks in board exams. Read them once, save yourself the trouble.

WATCH OUT
Reading direction ratios straight off a non-standard Cartesian form like (1-x)/3 or (4-y)/5
Rewrite as (x-1)/(-3) and (y-4)/(-5) first — the direction ratio's sign flips whenever the variable is subtracted from a constant rather than the other way round.
WATCH OUT
Applying the skew-lines shortest-distance formula to two parallel lines
If b1 x b2 = 0 the lines are parallel and the skew formula divides by zero — switch to d = |b x (a2-a1)| / |b| instead.
WATCH OUT
Looking for plane equations, angle-between-planes, or point-to-plane distance formulas in this chapter
Planes are not part of the current edition at all, despite the chapter's own introduction promising them — every question here concerns lines only.
WATCH OUT
Forgetting the absolute value in the angle formula and reporting an obtuse angle
The convention is to report the acute angle between two lines, which the absolute value in the numerator enforces automatically.
WATCH OUT
Confusing direction cosines with direction ratios when a question asks specifically for one of them
Direction cosines must satisfy l^2+m^2+n^2=1; if your answer's squares do not sum to 1, you have given direction ratios instead and need to normalise.

Practice problems

Work through this chapter's problems as a readiness check — reveal each solution, mark yourself honestly, and get your gap report at the end.

Readiness check

Are you exam-ready for Three Dimensional Geometry?

8 problems from this chapter. Try each one, reveal the worked solution, mark yourself honestly — get your gap report at the end.

8 questions~6 min

5-minute revision

The whole chapter, distilled. Read this the night before the exam.

  • Direction cosines satisfy l^2+m^2+n^2=1; direction ratios are any scalar multiple and must be normalised
  • Line: r = a + lambda.b, or (x-x1)/a = (y-y1)/b = (z-z1)/c
  • Rewrite forms like (1-x)/3 as (x-1)/(-3) before reading direction ratios — the sign flips
  • Angle between lines: cos(theta) = |b1.b2|/(|b1||b2|); zero dot product means perpendicular, proportional direction ratios mean parallel
  • Skew lines: d = |(b1 x b2).(a2-a1)| / |b1 x b2|
  • Parallel lines: d = |b x (a2-a1)| / |b| — the skew formula divides by zero here
  • Planes are entirely absent from the current edition of this chapter, despite the introduction promising them

CBSE marks blueprint

Where the marks come from in this chapter — so you can plan your prep.

Typical chapter weightage: Unit IV: Vectors and Three-Dimensional Geometry, no chapter-wise split published by CBSE

Question typeMarks eachTypical countWhat it tests
Direction Cosines and Direction Ratios, and the Equation of a Line in Space3-41Normalising direction ratios, collinearity of points, and writing vector/Cartesian line equations
Angle between Two Lines and Shortest Distance between Two Lines5-61The acute-angle formula, perpendicularity/parallelism conditions, and the skew-lines cross-product distance formula
Prep strategy
  • Always rewrite a Cartesian equation into standard (x-x1)/a form before extracting direction ratios — the sign flip on terms like (1-x)/3 is the most frequent source of lost marks
  • Before applying the shortest-distance formula, compute b1 x b2 and check it is nonzero; if it vanishes the lines are parallel and need the other formula
  • Memorise both distance formulas (skew and parallel) — questions deliberately include one of each
  • Do not revise plane equations, angles between planes, or point-to-plane distance for this chapter — none of it is in the current syllabus

Where this shows up in the real world

This chapter isn't just an exam topic — it lives in the world around you.

Robotics and CNC machining path planning

Determining whether two tool paths intersect, are parallel, or pass at a safe minimum separation uses exactly the skew-lines shortest-distance computation from section 11.5.

Air traffic control and collision avoidance

Two aircraft flight paths modelled as lines in space are checked for minimum separation using the same cross-product distance formula, with the result compared against a safety threshold.

Computer graphics: ray casting and 3D modelling

Rays in a rendering engine are lines in space defined exactly as r = a + lambda.b, and computing angles between them uses the direction-cosine dot product from this chapter.

Exam strategy

Battle-tested tips from teachers and toppers for this chapter.

1
Write the rewritten standard form of any non-standard Cartesian equation as an explicit intermediate line — examiners award marks for it and it prevents sign errors
2
State whether the lines are skew or parallel (with the cross-product check) before choosing which distance formula to apply
3
For angle questions, show the dot product and both magnitudes as separate labelled quantities before combining them
4
For collinearity proofs, explicitly state which point is common to both segments after showing the direction ratios are proportional

Going beyond the textbook

For olympiad aspirants and curious learners — topics that build on this chapter.

STRETCH
The equation of a plane and the full line-plane intersection theory, though cut from this syllabus, are the natural next step and appear throughout analytic geometry competitions
STRETCH
The scalar triple product gives an alternative one-line derivation of the skew-lines distance formula and a direct coplanarity test for two lines
STRETCH
Extending lines and distances into n-dimensional space leads to the general theory of affine subspaces and orthogonal projections in linear algebra
🚀

JEE Main & Advanced practice

Competitive-level problems on this chapter, above the board pattern. Try each one on paper before opening the solution.

JEE MainExtracting direction ratios from a non-standard Cartesian formSign-flip trap when the variable is subtracted from a constant

Find the value of so that the lines and are at right angles.

Stuck? Show the approach

Rewrite every term into the standard shape before reading off direction ratios, then set the dot product to zero.

Show the full solution

Rewriting: and , so the first line has direction ratios . Similarly the second has . Perpendicularity gives , so .

Answer: p = 70/11
The trap

Reading the direction ratios as and directly off the printed fractions — three separate sign errors and a missing division by 7 — is the single most common failure on this question type.

JEE MainRecognising parallel lines disguised in parametric formChoosing the right distance formula after checking the cross product

Find the shortest distance between and .

Stuck? Show the approach

Rewrite both into form, then check whether vanishes before choosing a formula.

Show the full solution

Rewriting gives , and , . Since , the lines are skew, so the standard formula applies: .

Answer: 8/sqrt(29) units
The trap

The parametric form hides the direction vectors — grouping the and coefficients incorrectly (e.g. reading as ) propagates through the entire cross product and gives a plausible-looking but wrong answer.

JEE AdvancedConstructing a line perpendicular to two given linesUsing the cross product to find a direction perpendicular to two directions at once

Find the vector equation of the line through and perpendicular to both and .

Stuck? Show the approach

A direction perpendicular to two given directions is exactly their cross product; simplify it before writing the final equation.

Show the full solution

The two direction vectors are and . Their cross product is , which simplifies by dividing by 12 to . With the point , the line is .

Answer: r = (i+2j-4k) + lambda(2i+3j+6k)
The trap

Leaving the direction vector as is not wrong, but failing to simplify it obscures the neat answer that examiners expect and makes subsequent checks harder.

Where else this chapter is tested

CBSE board isn't the only one — other exams test this chapter too.

CBSE Class 12 BoardHigh
JEE MainHigh
JEE AdvancedMedium

Questions students ask

The real ones — pulled from the Q&A community and tutor sessions.

No. The chapter's own introduction promises 'equations of lines and planes in space,' 'angle between two planes, a line and a plane,' and 'distance of a point from a plane' — but none of these exist in the actual sections (11.2 through 11.5 cover lines only). The word 'plane' appears just six times in the whole chapter, three of them inside that single introductory sentence.

Because the standard formula d = |(b1 x b2).(a2-a1)|/|b1 x b2| assumes the lines are skew. If the two lines are parallel, b1 x b2 is the zero vector and the formula breaks down — you need the separate parallel-lines formula d = |b x (a2-a1)|/|b| instead. Always check the cross product before dividing.

Rewrite it: (4-y)/5 = (y-4)/(-5), so the direction ratio for y is -5, not 5. The same applies to forms like (1-x)/3 (direction ratio -3) and (6-z)/5 (direction ratio -5). Failing to make this rewrite is the most common error in the angle and perpendicularity questions.
Verified by the tuition.in editorial team
Last reviewed on 18 August 2026. Written and reviewed by subject-matter experts — read about our process.
Editorial process →
Header Logo