Skip to article content
JEE Strategy3 min read

JEE Main Maths Three Dimensional Geometry 2027: Direction Cosines, Lines & Shortest Distance

Distance and section formula in 3D, direction cosines and ratios, the equation of a line and the shortest distance between skew lines, with worked examples.

Edurack

October 1, 2026

JEE Main Maths Three Dimensional Geometry 2027: Direction Cosines, Lines & Shortest Distance

Three Dimensional Geometry is 2D coordinate geometry with one extra axis, and most of its ideas are direct extensions of what you already know. The one genuinely new idea, direction cosines, unlocks everything else in the chapter.

Direction cosines are nothing but the coordinates of a unit vector pointing the same way as your line.

Chapter at a Glance

SnapshotDetail
NTA unitUnit 11 of 14: Three Dimensional Geometry
Priority (trend-based)Moderate
Typical question styleDirection cosine and shortest-distance numericals in three dimensions
Best first stepLearn direction cosines and ratios first, then lines and skew-line distance

Priority reflects past-paper trends, not an official NTA weightage.

What the NTA Syllabus Covers

  • Coordinates of a point in space, distance between two points, section formula
  • Direction ratios and direction cosines, angle between two intersecting lines
  • Equation of a line, skew lines, the shortest distance between them and its equation

Master These Topics

1. Distance, Section Formula and Direction Cosines

Distance between (x1,y1,z1)(x_1,y_1,z_1) and (x2,y2,z2)(x_2,y_2,z_2): (x2−x1)2+(y2−y1)2+(z2−z1)2\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}.

Direction cosines l,m,nl, m, n of a line are the cosines of the angles it makes with the xx, yy and zz axes, and they always satisfy

l2+m2+n2=1l^2 + m^2 + n^2 = 1

If a line has direction ratios a,b,ca, b, c (any convenient multiple of the direction cosines), then l=aa2+b2+c2l = \dfrac{a}{\sqrt{a^2+b^2+c^2}}, and similarly for m,nm, n.

The diagonal from the origin to $P(2,3,6)$ has length $7$, and its direction cosines $\left(\tfrac{2}{7}, \tfrac{3}{7}, \tfrac{6}{7}\right)$ satisfy $l^2+m^2+n^2=1$.
The diagonal from the origin to $P(2,3,6)$ has length $7$, and its direction cosines $\left(\tfrac{2}{7}, \tfrac{3}{7}, \tfrac{6}{7}\right)$ satisfy $l^2+m^2+n^2=1$.

Worked example: For the line from the origin to P(2,3,6)P(2, 3, 6), the distance is 4+9+36=7\sqrt{4+9+36} = 7, so the direction cosines are l=27l = \tfrac{2}{7}, m=37m = \tfrac{3}{7}, n=67n = \tfrac{6}{7}. Checking: l2+m2+n2=4+9+3649=1l^2+m^2+n^2 = \tfrac{4+9+36}{49} = 1.

Trap: Direction ratios are not unique (any non-zero multiple works), but direction cosines are unique up to an overall sign, since they must satisfy l2+m2+n2=1l^2+m^2+n^2=1.

2. Angle Between Two Lines

For lines with direction ratios (a1,b1,c1)(a_1,b_1,c_1) and (a2,b2,c2)(a_2,b_2,c_2):

cos⁡θ=a1a2+b1b2+c1c2a12+b12+c12 a22+b22+c22\cos\theta = \frac{a_1a_2+b_1b_2+c_1c_2}{\sqrt{a_1^2+b_1^2+c_1^2}\,\sqrt{a_2^2+b_2^2+c_2^2}}

Worked example: Lines with direction ratios (1,1,2)(1,1,2) and (2,−1,1)(2,-1,1): cos⁡θ=2−1+266=36=12\cos\theta = \dfrac{2-1+2}{\sqrt{6}\sqrt{6}} = \dfrac{3}{6} = \dfrac{1}{2}, so θ=60°\theta = 60°.

Lines are perpendicular when a1a2+b1b2+c1c2=0a_1a_2+b_1b_2+c_1c_2=0, and parallel when their direction ratios are proportional.

3. Equation of a Line

The symmetric form of a line through (x1,y1,z1)(x_1,y_1,z_1) with direction ratios (a,b,c)(a,b,c) is

x−x1a=y−y1b=z−z1c\frac{x-x_1}{a} = \frac{y-y_1}{b} = \frac{z-z_1}{c}

4. Skew Lines and Shortest Distance

Skew lines are non-parallel lines that never meet. For two lines with position vectors a⃗1,a⃗2\vec{a}_1, \vec{a}_2 on them and direction vectors b⃗1,b⃗2\vec{b}_1, \vec{b}_2, the shortest distance is

d=∣(a⃗2−a⃗1)⋅(b⃗1×b⃗2)∣∣b⃗1×b⃗2∣d = \frac{\left\lvert(\vec{a}_2-\vec{a}_1)\cdot(\vec{b}_1 \times \vec{b}_2)\right\rvert}{\left\lvert \vec{b}_1 \times \vec{b}_2\right\rvert}

If b⃗1×b⃗2=0⃗\vec{b}_1 \times \vec{b}_2 = \vec{0}, the lines are parallel and a different (simpler) distance formula applies instead.

Worked example: Line 1 passes through (0,0,0)(0,0,0) with direction (1,0,0)(1,0,0), and line 2 passes through (0,1,1)(0,1,1) with direction (0,1,0)(0,1,0). Here b⃗1×b⃗2=(1,0,0)×(0,1,0)=(0,0,1)\vec{b}_1 \times \vec{b}_2 = (1,0,0)\times(0,1,0) = (0,0,1), and a⃗2−a⃗1=(0,1,1)\vec{a}_2 - \vec{a}_1 = (0,1,1), so d=∣0+0+1∣1=1d = \dfrac{\lvert 0+0+1\rvert}{1} = 1.


Common Traps to Avoid

  • Treating direction ratios as if they were unique like direction cosines.
  • Forgetting to check b⃗1×b⃗2≠0⃗\vec{b}_1 \times \vec{b}_2 \ne \vec{0} before using the skew-line distance formula.
  • Mixing up the perpendicularity condition (a1a2+b1b2+c1c2=0a_1a_2+b_1b_2+c_1c_2=0) with the parallel condition (proportional ratios).
  • Using the 2D distance formula and forgetting the zz-coordinate term.

60-Second Revision Sheet

  • l2+m2+n2=1l^2+m^2+n^2=1; direction cosines from ratios: l=a/a2+b2+c2l = a/\sqrt{a^2+b^2+c^2}
  • cos⁡θ=a1a2+b1b2+c1c2a12+b12+c12a22+b22+c22\cos\theta = \dfrac{a_1a_2+b_1b_2+c_1c_2}{\sqrt{a_1^2+b_1^2+c_1^2}\sqrt{a_2^2+b_2^2+c_2^2}}
  • Line: x−x1a=y−y1b=z−z1c\dfrac{x-x_1}{a}=\dfrac{y-y_1}{b}=\dfrac{z-z_1}{c}
  • Shortest distance between skew lines: ∣(a⃗2−a⃗1)⋅(b⃗1×b⃗2)∣∣b⃗1×b⃗2∣\dfrac{\lvert(\vec{a}_2-\vec{a}_1)\cdot(\vec{b}_1\times\vec{b}_2)\rvert}{\lvert\vec{b}_1\times\vec{b}_2\rvert}

Your Study Plan

  1. Day 1: distance, section formula and direction cosines.
  2. Day 2: angle between lines, parallel and perpendicular conditions.
  3. Day 3: equation of a line in symmetric and vector form.
  4. Day 4: skew lines, shortest distance and a timed mixed set.

Practice Three Dimensional Geometry Questions Free → (opens in a new tab)


Continue Your Maths Journey


Frequently Asked Questions

What is the difference between direction ratios and direction cosines?

Direction ratios are any set of numbers proportional to the direction cosines. Direction cosines are the specific values that satisfy l2+m2+n2=1l^2+m^2+n^2=1.

How do I know two lines are skew?

They are skew if they are not parallel (their direction vectors are not proportional) and they do not intersect.

Ready to put this into practice?

See the matching test series on Edurack.

View on Edurack
All posts
Free call back from the Edurack team

Confused about your JEE preparation?Let's talk it through.

Leave your number and someone from our team will call you back to answer your questions and help you choose the right tests and mentors.

  • Get the right test series for your exam and stage
  • Know which mentor batch actually fits you
  • No cost, no obligation — your number is used only for this call

Request a call back

Takes about 10 seconds.

+91

Target exam

Current class

We'll only use your number to call you about Edurack.