Step 1 — Set up the unit vector.
Take a unit vector u^ pointing along the line. Write it in components:
u^=(ux,uy,uz).
Why this step? A direction has no length of its own, so we standardise it to length 1. This removes the "how far" and keeps only "which way."
Step 2 — Identify each component as a direction cosine.
The x-component of u^ is its projection onto the x-axis:
ux=u^⋅i^=cosα=l.
Similarly uy=cosβ=m and uz=cosγ=n.
Why this step? The projection of a unit vector onto an axis IS the cosine of the angle it makes with that axis — that's the geometric meaning of the dot product.
Step 3 — Use that u^ has length 1.∣u^∣2=ux2+uy2+uz2=1.
Why this step? This is just the 3D Pythagoras theorem (distance formula) applied to a unit vector.
State the relation between direction cosines. → l2+m2+n2=1.
Why does it equal exactly 1? → They are components of a unit vector.
How do you get cosines from ratios (a,b,c)? → Divide each by a2+b2+c2.
What is sin2α+sin2β+sin2γ? → 2.
How many independent direction cosines are there? → Two.
Recall Feynman: explain to a 12-year-old
Imagine a single straight arrow floating in a room. To tell a friend exactly which way it points, you ask: "How much does it lean toward the wall on your right? Toward the front wall? Toward the ceiling?" Each "lean" is a number between −1 and 1. Here's the magic: if you square all three leans and add them, you ALWAYS get exactly 1 — no matter which way the arrow points! That's because the arrow has a fixed length of "one step," and those three leans are just how much of that one step goes sideways, forward, and up. By the Pythagoras rule, the pieces must add back up to the whole step: 1.
Dekho, 3D mein koi bhi line ek direction point karti hai. Us direction ko number mein batane ke liye hum dekhte hai ki line x-axis, y-axis aur z-axis ke saath kitna angle banati hai — ye angles hai α,β,γ. In angles ke cosine ko hum direction cosines kehte hai: l=cosα, m=cosβ, n=cosγ. Bas itni si baat hai.
Ab main secret formula: l2+m2+n2=1. Ye yaad rakhne ki cheez nahi, samajhne ki cheez hai. Socho ek unit vector (length exactly 1 wala arrow) line ke along. Us arrow ke x, y, z components hi to l,m,n hai (kyunki projection on axis = cosine of angle). Aur unit vector ki length 1 hoti hai, to Pythagoras lagao: components ke squares ka sum = length ka square = 1. Isliye l2+m2+n2=1. Pure magic Pythagoras se aa gaya!
Ek important galti se bacho: agar tumhe direction ratios(a,b,c) diye hai (jaise do points ka difference), to wo seedha identity satisfy nahi karte. Pehle unko length a2+b2+c2 se divide karo, tab true direction cosines milte hai jo identity follow karte hai. Aur jab n2=1−l2−m2 se n nikalo, to ± dono lena — kyunki line ke do opposite directions hote hai.
Practical fayda: agar koi tumhe teen angles de aur poochhe "aisi line possible hai kya?" — bas cos2 ka sum check karo. Agar 1 aaye to possible, warna impossible. Ye identity ek filter ki tarah kaam karta hai. Yahi 20% concept pure 3D geometry mein baar-baar use hota hai — angle between lines, equation of line, sab mein.