You're offline — cached pages and worlds still work
Drishti Innovations logo
Drishti Innovations

Lines in 3D

Three Dimensional Geometry: Lines in 3D

Lines in 3D

Lines in 3D: Direction Cosines, Vector & Cartesian Forms, Skew Lines

What you'll learn

  • Express a line using direction cosines and direction ratios
  • Write the equation of a line in vector form and Cartesian form
  • Determine whether two lines are parallel, perpendicular, or skew
  • Find the shortest distance between two skew lines
  • Find the distance between two parallel lines

Key concepts

Level 1 — Foundations

A line in 3D is fully determined by a point on it and its direction.

Direction cosines (l, m, n): The cosines of the angles α, β, γ that the line makes with the positive x, y, z axes. l=cosα,m=cosβ,n=cosγ,l2+m2+n2=1l = \cos\alpha,\quad m = \cos\beta,\quad n = \cos\gamma, \quad l^2+m^2+n^2 = 1

Direction ratios (a, b, c): Any set of numbers proportional to the direction cosines. l=aa2+b2+c2,m=ba2+b2+c2,n=ca2+b2+c2l = \frac{a}{\sqrt{a^2+b^2+c^2}},\quad m = \frac{b}{\sqrt{a^2+b^2+c^2}},\quad n = \frac{c}{\sqrt{a^2+b^2+c^2}}

Vector form of a line through point a with direction b: r=a+λb,λR\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}, \quad \lambda \in \mathbb{R}

Cartesian form through (x₁, y₁, z₁) with direction ratios (l, m, n): xx1l=yy1m=zz1n\frac{x - x_1}{l} = \frac{y - y_1}{m} = \frac{z - z_1}{n}

Level 2 — JEE depth

Angle between two lines with direction cosines (l₁,m₁,n₁) and (l₂,m₂,n₂): cosθ=l1l2+m1m2+n1n2\cos\theta = |l_1l_2 + m_1m_2 + n_1n_2|

Using direction ratios (a₁,b₁,c₁) and (a₂,b₂,c₂): cosθ=a1a2+b1b2+c1c2a12+b12+c12a22+b22+c22\cos\theta = \frac{|a_1a_2 + b_1b_2 + c_1c_2|}{\sqrt{a_1^2+b_1^2+c_1^2}\cdot\sqrt{a_2^2+b_2^2+c_2^2}}

Perpendicular lines: l1l2+m1m2+n1n2=0l_1l_2 + m_1m_2 + n_1n_2 = 0, i.e., a1a2+b1b2+c1c2=0a_1a_2+b_1b_2+c_1c_2=0

Parallel lines: l1l2=m1m2=n1n2\dfrac{l_1}{l_2} = \dfrac{m_1}{m_2} = \dfrac{n_1}{n_2}, i.e., a1a2=b1b2=c1c2\dfrac{a_1}{a_2}=\dfrac{b_1}{b_2}=\dfrac{c_1}{c_2}

Skew lines: Lines that are neither parallel nor intersecting (they lie in different planes). Only possible in 3D.

Shortest distance between skew lines r=a1+λb1\mathbf{r} = \mathbf{a_1} + \lambda\mathbf{b_1} and r=a2+μb2\mathbf{r} = \mathbf{a_2} + \mu\mathbf{b_2}: d=(a2a1)(b1×b2)b1×b2d = \frac{|(\mathbf{a_2} - \mathbf{a_1}) \cdot (\mathbf{b_1} \times \mathbf{b_2})|}{|\mathbf{b_1} \times \mathbf{b_2}|}

Distance between parallel lines (b1b2\mathbf{b_1} \parallel \mathbf{b_2}, both equal b): d=(a2a1)×bbd = \frac{|(\mathbf{a_2} - \mathbf{a_1}) \times \mathbf{b}|}{|\mathbf{b}|}

Line through two points A(a) and B(b): r=a+λ(ba)\mathbf{r} = \mathbf{a} + \lambda(\mathbf{b} - \mathbf{a})

Worked example

Find the shortest distance between the skew lines:
L1: r = (i + 2j + k) + λ(i − j + k)
L2: r = (2i − j − k) + μ(2i + j + 2k)

Step 1: Identify vectors
  a1 = i + 2j + k,   b1 = i − j + k
  a2 = 2i − j − k,   b2 = 2i + j + 2k

Step 2: a2 − a1 = (2−1)i + (−1−2)j + (−1−1)k = i − 3j − 2k

Step 3: b1 × b2
  | i   j   k  |
  | 1  −1   1  |
  | 2   1   2  |
  = i[(−1)(2)−(1)(1)] − j[(1)(2)−(1)(2)] + k[(1)(1)−(−1)(2)]
  = i[−2−1] − j[2−2] + k[1+2]
  = −3i + 0j + 3k = −3i + 3k

Step 4: |b1 × b2| = √(9 + 0 + 9) = √18 = 3√2

Step 5: (a2−a1)·(b1×b2) = (1)(−3) + (−3)(0) + (−2)(3) = −3 − 0 − 6 = −9

Step 6: d = |−9| / (3√2) = 9/(3√2) = 3/√2 = 3√2/2

Common mistakes

MistakeWhy it happensFix
Forgetting l²+m²+n²=1 only for direction cosines, not ratiosMixing up cosines and ratiosDirection ratios need NOT satisfy a²+b²+c²=1; divide by √(a²+b²+c²) to get cosines
Using unsigned angle formula without absolute valueThe angle between lines is always acute (0° to 90°)Use
Confusing skew distance formula with parallel line distanceBoth look similarSkew: use b₁×b₂ in denominator; parallel: use (a₂−a₁)×b
Arithmetic slip in 3×3 determinant for b₁×b₂Rushing expansionWrite each 2×2 minor explicitly before subtracting

Board exam drill

  • Convert Cartesian line equation to direction ratios and then direction cosines
  • Check if two lines are parallel, perpendicular, or skew
  • Find the point of intersection of two intersecting lines
  • Find the angle between two given lines
  • Find shortest distance between two skew lines

NCERT diagrams to know

  • Fig 11.1: Direction angles α, β, γ of a line
  • Fig 11.3: Line through a point with given direction vector (vector form)
  • Fig 11.8: Two skew lines in 3D with the common perpendicular segment

Quick check

  • If direction ratios are (1, 1, 1), what are the direction cosines? → (1/√3, 1/√3, 1/√3)
  • Two lines: l₁/l₂ = m₁/m₂ = n₁/n₂ — what is their relationship? → Parallel
  • Can two lines in 2D be skew? → No, only in 3D
  • For skew lines, the shortest distance vector is perpendicular to both b₁ and b₂? → Yes
  • Stretch: Prove that the line joining (1,2,3) and (3,2,1) is perpendicular to the line joining (−1,1,0) and (0,2,1).

NCERT Chapter 11 link: Three Dimensional Geometry — lines covered in sections 11.2–11.4 with Exercises 11.1 and 11.2
Exam connections: Prerequisite for planes; connects to parametric coordinates and distance formula from Class 11 3D basics (Chapter 12)
Study strategy: Memorise the skew distance formula with the fraction as a whole — numerator is a scalar triple product. Practice 3 skew distance problems to lock it in before moving to planes.

Interactive Exploration Suggestions (Drishti Live Worlds)

  • Use the platform-native live simulation or PhET-style tool for this topic (number line, Venn, physics playground, molecule builder, sensor dashboard, etc.).
  • Mirror / body / home activity: physically do the concept (count objects, measure, role-play) and photograph or describe for portfolio.
  • Voice or text reflection with AI Mentor: explain the concept to a younger student or family member.

AI Mentor Prompts (Socratic, Board-Adaptive)

  • "Explain this concept to a Class 6 student using one real example from an Indian home, school, market, or festival."
  • "What is one common mistake students make here, and how would you catch yourself making it?"
  • Stretch: "How does this connect to coding, robotics, money, health, environment, or a future career?"

Gamification, Portfolio & Parent Visibility

  • Complete the core practice + one extension activity (photo, table, short reflection, or mini-project) for base XP + topic badge.
  • 5-7 day streak or family discussion note = multiplier + visible artifact in parent/principal dashboard.
  • Best real-world application stories (anonymised) featured on class or national leaderboard.

Robotics, STEM & Future Skills Bridges

  • One hands-on project or measurement using the Drishti kit or household items that makes the concept physical.
  • Direct link to at least one Future Skill track (Money Management, Green Tech, Cyber Defenders, Micro-Entrepreneurship, AI Mastery, Sustainable Living, Personality Development).
  • Coding extension where relevant (simple script, simulation, or data logging).

NEP 2020 & Full Education OS Alignment

This material emphasises experiential "learning by doing", competency (apply/create/analyse), vocational exposure, critical thinking, and multidisciplinary connections. Designed to feed live worlds, AI Mentor (with memory), gamification, robotics, parent analytics, and future skills — not just exam prep.

Portfolio Evidence Idea: Your photo/table/reflection/project + one sentence on "How this helps me in real life or a possible future path."

Open the Practice tab for aligned questions (easy/medium/hard + case-based) with full AI scaffolding.

See curriculum for cross-links and the full future-skills/robotics chapters.

Key Takeaways (TL;DR)

  • What you'll learn
  • Key concepts
  • Worked example
  • Common mistakes

Master this topic with Drishti OS

Get unlimited mock tests, AI-powered mentorship, and complete video courses when you join.

Start Free Practice