3.6.43D Geometry

Direction cosines and direction ratios

1,740 words8 min readdifficulty · medium6 backlinks

1. Setting up — WHAT we are measuring

WHY these are special: Take a unit vector u^=(u1,u2,u3)\hat u=(u_1,u_2,u_3) pointing along the line. The angle between u^\hat u and the xx-axis unit vector i^=(1,0,0)\hat i=(1,0,0) satisfies cosα=u^i^u^i^=u1.\cos\alpha=\frac{\hat u\cdot\hat i}{|\hat u||\hat i|}=u_1. So l=u1l=u_1, and likewise m=u2, n=u3m=u_2,\ n=u_3. The direction cosines ARE the components of the unit vector along the line. That single fact drives everything below.

Figure — Direction cosines and direction ratios

2. The fundamental identity — DERIVED

HOW we get it (from scratch): Since (l,m,n)=u^(l,m,n)=\hat u is a unit vector, u^2=l2+m2+n2=1.|\hat u|^2=l^2+m^2+n^2=1. That's it — the identity is just "the length of a unit vector is 1." No memorisation needed.


3. Direction ratios (DRs) — WHY we need a looser notion

From DRs to DCs (DERIVED)

We need l=ka, m=kb, n=kcl=ka,\ m=kb,\ n=kc for some scale kk, with l2+m2+n2=1l^2+m^2+n^2=1: k2(a2+b2+c2)=1  k=±1a2+b2+c2.k^2(a^2+b^2+c^2)=1\ \Rightarrow\ k=\pm\frac{1}{\sqrt{a^2+b^2+c^2}}.


4. Angle between two lines — DERIVED

HOW: Each DC triple is a unit vector. The dot product of two unit vectors is the cosine of the angle between them: cosθ=u^1u^2=l1l2+m1m2+n1n2.\cos\theta=\hat u_1\cdot\hat u_2=l_1l_2+m_1m_2+n_1n_2.


5. Worked examples


Recall Feynman: explain to a 12-year-old

Imagine pointing a laser pen in some direction in a room. To tell a friend exactly which way it points, you say how much it leans toward the wall in front (x), the wall on the side (y), and the ceiling (z). "Direction cosines" are just three lean-numbers, scaled so that if you square them and add, you always get exactly 1 — like the laser arrow has length 1. "Direction ratios" are the lazy version: any three numbers in the same proportion, before you bother shrinking them to length 1.


Connections


Flashcards

What are direction cosines of a line?
The cosines l=cosα, m=cosβ, n=cosγl=\cos\alpha,\ m=\cos\beta,\ n=\cos\gamma of the angles the line makes with the positive x, y, z axes — equivalently the components of a unit vector along the line.
Identity satisfied by direction cosines?
l2+m2+n2=1l^2+m^2+n^2=1 (because they form a unit vector).
What are direction ratios?
Any three numbers a,b,ca,b,c (not all zero) proportional to the direction cosines; l:m:n=a:b:cl:m:n=a:b:c.
How many sets of DCs vs DRs does a line have?
Exactly two sets of DCs (opposite directions); infinitely many sets of DRs.
Convert DRs (a,b,c)(a,b,c) to DCs
l,m,n=±a,±b,±ca2+b2+c2l,m,n=\dfrac{\pm a,\pm b,\pm c}{\sqrt{a^2+b^2+c^2}}.
DRs of the line through (x1,y1,z1)(x_1,y_1,z_1) and (x2,y2,z2)(x_2,y_2,z_2)?
(x2x1, y2y1, z2z1)(x_2-x_1,\ y_2-y_1,\ z_2-z_1).
Angle between lines with DCs (l1,m1,n1),(l2,m2,n2)(l_1,m_1,n_1),(l_2,m_2,n_2)?
cosθ=l1l2+m1m2+n1n2\cos\theta=l_1l_2+m_1m_2+n_1n_2.
Condition for two lines (DRs) to be perpendicular?
a1a2+b1b2+c1c2=0a_1a_2+b_1b_2+c_1c_2=0.
Condition for two lines (DRs) to be parallel?
a1/a2=b1/b2=c1/c2a_1/a_2=b_1/b_2=c_1/c_2.
Why is cos2α+cos2β+cos2γ=1\cos^2\alpha+\cos^2\beta+\cos^2\gamma=1 (not with sines)?
Because the three axes are orthogonal, so the three cosines are the orthogonal components of one unit vector, whose squared length is 1.

Concept Map

makes angles

take cosines

components equal

dot with axis

length is 1

satisfy

difference of coords

any set proportional

proportional to

normalise divide by root a2+b2+c2

infinitely many sets

only two sets

Line in 3D

Direction angles alpha beta gamma

Direction cosines l m n

Unit vector u along line

Identity l2+m2+n2=1

Two points

Direction vector

Direction ratios a b c

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, 3D mein koi bhi line kisi direction mein point karti hai. Us direction ko numbers mein capture karne ke liye hum dekhte hain ki line har axis (x, y, z) ke saath kitna angle banati hai — yeh angles hote hain α,β,γ\alpha,\beta,\gamma. In angles ke cosines (l,m,n)=(cosα,cosβ,cosγ)(l,m,n)=(\cos\alpha,\cos\beta,\cos\gamma) ko direction cosines kehte hain. Asli trick yeh hai: yeh teen cosines actually ek unit vector ke components hi hote hain jo line ke along hai. Isiliye l2+m2+n2=1l^2+m^2+n^2=1 hamesha sach hota hai — kyunki unit vector ki length 1 hoti hai. Yaad rakho, sab cosine hai (sine nahi), kyunki teeno axes perpendicular hain.

Ab direction ratios kya hai? Jab line do points se guzarti hai, to direction vector (x2x1,y2y1,z2z1)(x_2-x_1,y_2-y_1,z_2-z_1) easily nikal aata hai, par inka square karke add karne pe 1 nahi aata. Yeh numbers DCs ke proportional hote hain — inhe DRs bolte hain. DRs casual hote hain (koi bhi scale chalega), DCs official hote hain (length 1 tak normalise). DR se DC banane ke liye, bas a2+b2+c2\sqrt{a^2+b^2+c^2} se divide kar do.

Do lines ke beech angle nikalna bahut clean hai: agar dono ke DCs unit vectors hain, to dot product hi cosine de deta hai — cosθ=l1l2+m1m2+n1n2\cos\theta=l_1l_2+m_1m_2+n_1n_2. DRs ke saath bas magnitudes se divide karna padta hai. Perpendicular ka matlab dot product zero, parallel ka matlab ratios equal. Yeh ek hi concept (unit vector + dot product) poore 3D geometry chapter — lines, planes, angles — mein baar baar kaam aata hai, isliye ise solid karo.

Go deeper — visual, from zero

Test yourself — 3D Geometry

Connections