3.6.73D Geometry

Angle between two lines

1,559 words7 min readdifficulty · medium6 backlinks

WHAT are we even measuring?

WHY take the acute angle? Two intersecting lines actually form two pairs of angles (θ\theta and 180θ180^\circ-\theta). A line points "both ways", so flipping a direction vector b\vec b to b-\vec b describes the same line but gives the supplementary angle. To get a single, unambiguous answer we force it to be acute by putting a modulus |\,\cdot\,| in the formula.


HOW: deriving the formula from scratch

We start from the ONLY thing we need — the dot product definition.

Step 1 — Dot product definition. b1b2=b1b2cosθ\vec{b_1}\cdot\vec{b_2} = |\vec{b_1}|\,|\vec{b_2}|\cos\theta Why this step? This is the first-principles bridge between an algebraic operation (components) and a geometric quantity (angle).

Step 2 — Solve for cosθ\cos\theta. cosθ=b1b2b1b2\cos\theta = \frac{\vec{b_1}\cdot\vec{b_2}}{|\vec{b_1}|\,|\vec{b_2}|} Why this step? We want the angle, so isolate cosθ\cos\theta.

Step 3 — Force the acute angle. Because b\vec b and b-\vec b give the same line, we take absolute value of the numerator:   cosθ=b1b2b1b2  \boxed{\;\cos\theta = \frac{|\vec{b_1}\cdot\vec{b_2}|}{|\vec{b_1}|\,|\vec{b_2}|}\;} Why this step? cosθ|\cos\theta| guarantees θ[0,90]\theta\in[0^\circ,90^\circ].

There's also a clean sin\sin form using the cross product: sinθ=b1×b2b1b2\sin\theta = \frac{|\vec{b_1}\times\vec{b_2}|}{|\vec{b_1}|\,|\vec{b_2}|} Why useful? Sometimes you have the cross product handy; also lets you find tanθ\tan\theta safely.

Figure — Angle between two lines

Worked examples


Common mistakes (Steel-man + fix)


Recall Feynman: explain to a 12-year-old

Imagine two pencils lying on a table, both passing through the same spot. The corner where they meet makes an angle — and that angle doesn't care where on the table the pencils are, only which way they point. A "direction arrow" tells us which way a pencil points. To find the angle between two arrows we use a magic recipe called the dot product: multiply matching parts, add them up, then divide by the arrows' lengths. The result is the cosine of the angle. We also keep the answer "small" (always less than a right angle) because a pencil pointing left is the same line as one pointing right.


Active-recall flashcards

What determines the angle between two lines in 3D?
Only their direction vectors (orientation), not their position.
Formula for angle between lines with direction ratios?
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}}
Why is there a modulus in the formula?
Because the angle between lines is defined as acute; a line points both ways, so b-\vec b would give the supplement.
Condition for two lines to be perpendicular?
a1a2+b1b2+c1c2=0a_1a_2+b_1b_2+c_1c_2=0 (dot product zero).
Condition for two lines to be parallel?
Direction ratios proportional: a1a2=b1b2=c1c2\frac{a_1}{a_2}=\frac{b_1}{b_2}=\frac{c_1}{c_2}.
With direction cosines, what is cosθ\cos\theta?
l1l2+m1m2+n1n2|l_1l_2+m_1m_2+n_1n_2| (denominator is 1, since they're unit vectors).
In symmetric form xx0a=\frac{x-x_0}{a}=\dots, which numbers are the direction ratios?
The denominators (a,b,c)(a,b,c) — not the point (x0,y0,z0)(x_0,y_0,z_0).
Cross-product form for the angle?
sinθ=b1×b2b1b2\sin\theta=\dfrac{|\vec{b_1}\times\vec{b_2}|}{|\vec{b_1}||\vec{b_2}|}.
Angle between (1,2,2)(1,2,2) and (2,2,1)(2,2,1)?
cos1(8/9)27.3\cos^{-1}(8/9)\approx 27.3^\circ.

Connections

Concept Map

orientation captured by

position irrelevant, only direction

solve for cos theta

take modulus of numerator

creates supplementary ambiguity

written in components

if unit vectors

cos theta = 0

ratios proportional

gives sin theta

reduces to

Line in 3D

Direction vector b

Angle between two lines

Dot product definition

cos theta formula

Force acute angle 0 to 90

b and -b same line

Direction ratios formula

Direction cosines form

Perpendicular: dot product = 0

Parallel lines

Cross product

sin form for tan theta

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, 3D mein ek line ka sirf direction important hota hai — woh kahan rakhi hai, isse angle pe koi farak nahi padta. Isliye do lines ke beech ka angle nikalne ke liye hum unke direction vectors b1\vec{b_1} aur b2\vec{b_2} ka angle nikaalte hain. Aur vectors ke beech angle? Wahi purana dot product wala funda: b1b2=b1b2cosθ\vec{b_1}\cdot\vec{b_2}=|\vec{b_1}||\vec{b_2}|\cos\theta. Bas isko cosθ\cos\theta ke liye solve kar lo.

Ek choti si twist hai — line dono direction mein point karti hai, matlab b\vec b aur b-\vec b same line hai. Isliye answer kabhi obtuse na aaye, hum upar modulus |\,\cdot\,| lagate hain. Toh final formula: cosθ=b1b2b1b2\cos\theta=\frac{|\vec{b_1}\cdot\vec{b_2}|}{|\vec{b_1}||\vec{b_2}|}, aur angle hamesha acute (0 se 90 degree) aata hai.

Do special cases yaad rakho, ratta mat maaro — derive karo. Perpendicular matlab cos90=0\cos 90^\circ=0, toh sirf numerator (dot product) zero: a1a2+b1b2+c1c2=0a_1a_2+b_1b_2+c_1c_2=0. Parallel matlab dono same direction, toh ratios proportional: a1a2=b1b2=c1c2\frac{a_1}{a_2}=\frac{b_1}{b_2}=\frac{c_1}{c_2}.

Sabse common galti: jab line symmetric form x12=y3=z+14\frac{x-1}{2}=\frac{y}{3}=\frac{z+1}{4} mein di ho, toh denominators (2,3,4)(2,3,4) direction ratios hain — point (1,0,1)(1,0,-1) ko mat use karna. Aur direction ratios unit nahi hote, isliye magnitude se divide karna mat bhoolna. Bas itna dhyaan rakho, exam mein ye topic free marks hai!

Go deeper — visual, from zero

Test yourself — 3D Geometry

Connections