Q.Find the angle between the lines whose direction ratios are a,b,c and b−c,c−a,a−b.
Concept understanding — Angle Between Lines
Angle Between Two Lines
In space, the angle between two lines is measured through their directions, not their positions — two lines that never meet still have a well-defined angle between them (the angle you would see if you slid one across to meet the other).
So the angle between the lines is just the angle between their direction vectors. If the lines run along b1 and b2,
cosθ=∣b1∣∣b2∣∣b1⋅b2∣
Why the absolute value
A line has two opposite directions, so b and −b describe the same line. The modulus in the numerator picks the acute angle (0∘≤θ≤90∘), which is the convention for the angle between lines.
In Cartesian form
If the lines have direction ratios (a1,b1,c1) and (a2,b2,c2),
cosθ=a12+b12+c12a22+b22+c22∣a1a2+b1b2+c1c2∣.
If instead you know the direction cosines (l1,m1,n1) and (l2,m2,n2), the denominators are both 1 and cosθ=∣l1l2+m1m2+n1n2∣.
Two special cases
- Parallel: the direction ratios are proportional, a2a1=b2b1=c2c1.
- Perpendicular: the dot product vanishes, a1a2+b1b2+c1c2=0.
Example
Lines with directions b1=(1,2,2) and b2=(2,2,1):
cosθ=99∣1⋅2+2⋅2+2⋅1∣=98,
so θ=cos−198.
Finding the angle between two lines using their direction ratios or direction cosines is one of the most exam-relevant results in the NCERT Class 12 Three Dimensional Geometry chapter, tested in CBSE boards, JEE Main and several state CETs. "Angle between two lines in 3D formula" is a commonly searched revision topic, and the same absolute-value trick reappears later for angles between lines and planes.
Concept: Angle Between Lines — the angle θ between two lines with direction ratios (a,b,c) and (b−c,c−a,a−b) is given by
cosθ=a2+b2+c2(b−c)2+(c−a)2+(a−b)2a(b−c)+b(c−a)+c(a−b).
Step 1: Compute the numerator:
a(b−c)+b(c−a)+c(a−b)=ab−ac+bc−ab+ac−bc=0.
Step 2: Since the numerator is zero, cosθ=0, so θ=90∘.
The angle between the lines is 90∘.
The angle between two lines depends only on their direction ratios. Using the dot product formula, the cosine of the angle simplifies to zero, meaning the lines are perpendicular. The angle is 90∘.
Concept and Intuition
The angle between two lines in space is defined as the acute angle between their direction vectors. If two lines have direction ratios (a,b,c) and (b−c,c−a,a−b), we are essentially comparing two vectors. The key tool is the dot product: for vectors u and v,
cosθ=∣u∣∣v∣u⋅v.
If the dot product turns out to be zero, the lines are perpendicular — and that is exactly what happens here. The structure of the second set of ratios is cleverly designed to make the dot product vanish, regardless of the values of a,b,c (as long as they are not all zero).
A common mistake is to assume the lines are parallel or to try finding the angle by inspection. Always compute the dot product explicitly — the symmetry here is deceptive.
Step-by-Step Solution
-
Write the direction vectors.
Let u=ai^+bj^+ck^ and v=(b−c)i^+(c−a)j^+(a−b)k^.
-
Compute the dot product.
u⋅v=a(b−c)+b(c−a)+c(a−b).
- Expand and simplify.
=ab−ac+bc−ab+ac−bc.
Every term cancels: ab cancels with −ab, −ac cancels with +ac, bc cancels with −bc.
So u⋅v=0.
- Interpret the result. A zero dot product means the vectors are perpendicular. Therefore, the angle between the lines is 90∘.
You don’t even need to compute the magnitudes — the dot product alone tells you the cosine is zero, so the angle is fixed. This is a classic trick: the second set of ratios is the cyclic difference of the first.
The angle between the lines is 90∘ (they are perpendicular).
Method: Angle Between Two Lines from Direction Ratios
Use this whenever two lines are given by their direction ratios (or direction vectors) and you must find the angle between them — including the special "are they perpendicular?" case.
Steps
Step 1: Write each line's direction ratios as a vector.
A line's position is irrelevant to the angle; only its direction matters. Call them b1=(a1,b1,c1) and b2=(a2,b2,c2).
Step 2: Form the cosine from the dot product.
cosθ=∣b1∣∣b2∣∣b1⋅b2∣=a12+b12+c12a22+b22+c22∣a1a2+b1b2+c1c2∣
The modulus in the numerator forces the acute angle, the convention for the angle between lines.
Step 3: Check the numerator first.
Compute the dot product a1a2+b1b2+c1c2 before touching the magnitudes. If it comes out 0, the lines are perpendicular and θ=90∘ immediately — no magnitudes needed. If it is non-zero, evaluate the two square roots and take θ=cos−1(⋯). When the ratios are symbolic (letters, not numbers), expanding the dot product and watching for terms that cancel is exactly what reveals a hidden right angle.
Common Mistakes
Mistake 1: Trying to judge the angle by inspection instead of computing the dot product.
Why it's wrong: the second set of ratios (b−c,c−a,a−b) looks unrelated to (a,b,c), and guessing (e.g. "they look parallel") misses that the dot product is engineered to vanish. Correct approach: always evaluate a(b−c)+b(c−a)+c(a−b); it collapses to 0, so θ=90∘.
Mistake 2: Wasting effort on the magnitudes before checking the numerator.
Why it's wrong: once the dot product is 0, cosθ=0 regardless of the denominators, so computing a2+b2+c2 etc. is unnecessary. Correct approach: check the numerator first; a zero there settles the angle at once.
Showing the 12 most recent of 67 on this concept.
- AP EAPCET 2021Set eng-2021-08-25-AN1 markMCQQ.If the direction ratios of two lines are given by 3lm−4ln+mn=0 and l+2m+3n=0, then the angle between the lines is ________ (A) 2π (B) 3π (C) 4π (D) 6π
›Reveal solutionSolution
The linear relation combined with the quadratic relation gives two explicit direction-ratio triples; their dot product is zero. Answer: θ=π/2.
Concept and Intuition
A pair of homogeneous-degree-2 relation and a linear relation in (l,m,n) together represent two actual lines through a point. Eliminating one variable from the linear relation and substituting into the quadratic relation gives a single-variable quadratic whose two roots correspond to the two lines' direction ratios.
Step-by-Step Solution
- From l+2m+3n=0: l=−2m−3n.
- Substitute into 3lm−4ln+mn=0: 3(−2m−3n)m−4(−2m−3n)n+mn=−6m2−9mn+8mn+12n2+mn=−6m2+12n2=0.
- So m2=2n2⇒m=±2n. Take n=1.
- Case 1: m=2, l=−22−3. Case 2: m=−2, l=22−3.
- Dot product: l1l2+m1m2+n1n2=(−22−3)(22−3)+(2)(−2)+1⋅1. (−22−3)(22−3)=−(8−9)=1 (using (a+b)(a−b) pattern with sign care), so sum =1−2+1=0.
- Since the dot product is zero, the lines are perpendicular: θ=π/2.
Common Mistakes
- Sign errors expanding (−22−3)(22−3) — treat it carefully term by term.
- Forgetting that a homogeneous quadratic + linear pair represents two lines, not one.
✓Final answerThe correct option is (A) — 2π.
ANSWER: A
- AP EAPCET 2026Set eng-2026-05-12-AN1 markMCQQ.If the angle between the lines having direction ratios (3,1,2) and (1,−1,2) is θ, then cos2θ= (A) 71 (B) 7−1 (C) 73 (D) 7−3
›Reveal solutionSolution
Computing cosθ from the direction-ratio dot-product formula and applying the double-angle identity gives cos2θ=−71.
Concept and Intuition
The angle between two lines with direction ratios (a1,b1,c1) and (a2,b2,c2) satisfies
cosθ=a12+b12+c12a22+b22+c22a1a2+b1b2+c1c2.
Once cosθ is known, cos2θ=2cos2θ−1 follows directly from the double angle formula — no need to find θ itself.
Step-by-Step Solution
- Direction ratios: (3,1,2) and (1,−1,2).
- Dot product: 3(1)+1(−1)+2(2)=3−1+4=6.
- Magnitudes: 9+1+4=14, 1+1+4=6.
- cosθ=14⋅66=846=2216=213.
- cos2θ=219=73.
- cos2θ=2⋅73−1=76−1=−71.
Common Mistakes
- Forgetting the identity needs cos2θ, not cosθ itself, before doubling.
- Sign error in the dot product (missing that 1×(−1)=−1).
✓Final answerThe correct option is (B) — 7−1.
ANSWER: B
- AP EAPCET 2024Set eng-2024-05-22-AN1 markMCQQ.If a line L makes angles 3π and 4π with Y-axis and Z-axis respectively, then the angle between L and another line having direction ratios 1, 1, 1 is (A) Cos−1(62) (B) Cos−1(332+1) (C) Cos−1(32−1) (D) Cos−1(62+1)
›Reveal solutionSolution
Find the missing direction cosine from l2+m2+n2=1, then use cosθ=ll2+mm2+nn2 against (1,1,1); the answer is Cos−1(62+1).
Concept and Intuition
The direction cosines of a line satisfy l2+m2+n2=1 where l=cosα, m=cosβ, n=cosγ are the cosines of the angles the line makes with the X, Y, Z axes respectively. Once all three are known, the angle between two lines is cosθ=l1l2+m1m2+n1n2.
Step-by-Step Solution
- Given angle with Y-axis is 3π: m=cos3π=21.
- Given angle with Z-axis is 4π: n=cos4π=21.
- From l2+m2+n2=1: l2=1−41−21=41⇒l=21 (taking the positive root).
- Direction cosines of the second line with ratios (1,1,1): (31,31,31).
- cosθ=l⋅31+m⋅31+n⋅31=3l+m+n=321+21+21=31+21=2⋅32+1=62+1.
- So θ=Cos−1(62+1).
Common Mistakes
- Forgetting the third direction cosine must be solved from l2+m2+n2=1, not assumed.
- Not converting (1,1,1) (direction ratios) into direction cosines by dividing by 3 before using the dot-product formula.
✓Final answerThe correct option is (D) — Cos−1(62+1).
ANSWER: D
- AP EAPCET 2026Set eng-2026-05-14-AN1 markMCQQ.The acute angle between the lines whose direction cosines satisfy the relations l2−5m2+n2=0 and l+m−n=0 is (A) Cos−1(43) (B) 3π (C) Cos−1(32) (D) 6π
›Reveal solutionSolution
The two relations on direction cosines actually describe a pair of lines; solving them simultaneously extracts both direction ratios, and the angle between them is π/3.
Concept and Intuition
A single homogeneous quadratic relation like l2−5m2+n2=0 together with a linear relation like l+m−n=0 defines two lines through the origin (the linear relation is a plane, and the quadratic relation restricted to that plane factors into two linear factors — i.e. two direction ratios). Once we have both direction ratio triples, the angle between the lines is just the standard angle-between-vectors formula.
Step-by-Step Solution
- From l+m−n=0: n=l+m.
- Substitute into l2−5m2+n2=0: l2−5m2+(l+m)2=0.
- Expand: l2−5m2+l2+2lm+m2=0⇒2l2+2lm−4m2=0.
- Divide by 2: l2+lm−2m2=0.
- Factor: (l+2m)(l−m)=0, so l=−2m or l=m.
- Case l=m: take m=1⇒l=1, n=l+m=2. Direction ratios (1,1,2).
- Case l=−2m: take m=1⇒l=−2, n=l+m=−1. Direction ratios (−2,1,−1).
- Angle between (1,1,2) and (−2,1,−1): dot product =1(−2)+1(1)+2(−1)=−2+1−2=−3.
- Magnitudes: 1+1+4=6 and 4+1+1=6.
- cosθ=6⋅6∣−3∣=63=21 (taking absolute value since we want the acute angle).
- θ=cos−1(1/2)=π/3.
Common Mistakes
- Forgetting to take the absolute value of the dot product when the problem asks for the acute angle specifically.
- Arithmetic slip while expanding (l+m)2.
✓Final answerThe correct option is (B) — 3π.
ANSWER: B
- AP EAPCET 2021Set eng-2021-08-24-FN1 markMCQQ.The angle between the lines whose direction cosines are given by the equations l2+m2−n2=0, l+m+n=0 is ____ (A) 6π (B) 4π (C) 3π (D) 2π
›Reveal solutionSolution
Eliminate n between the two given relations to find the two actual sets of direction ratios, then compute the angle between them directly.
Concept and Intuition
The two given equations jointly define (generically) two lines through the origin whose direction cosines satisfy both. Eliminating one variable reduces the quadratic relation to a simple product-equals-zero form, revealing the two explicit direction-ratio triples.
Step-by-Step Solution
- From l+m+n=0: n=−(l+m).
- Substitute into l2+m2−n2=0: l2+m2−(l+m)2=l2+m2−l2−2lm−m2=−2lm=0.
- So lm=0, meaning l=0 or m=0.
- If l=0: n=−m, giving direction ratios (0,1,−1).
- If m=0: n=−l, giving direction ratios (1,0,−1).
- Angle between (0,1,−1) and (1,0,−1): cosθ=0+1+11+0+1(0)(1)+(1)(0)+(−1)(−1)=2⋅21=21.
- So θ=cos−1(1/2)=3π.
Common Mistakes
- Trying to use the general angle-between-lines formula for pairs of direction-cosine equations without first simplifying — direct elimination is far cleaner here.
- Sign slips substituting n=−(l+m).
✓Final answerThe correct option is (C) — 3π.
ANSWER: C
- AP EAPCET 2024Set eng-2024-05-23-FN1 markMCQQ.If the direction cosines of two lines are given by l+m+n=0 and mn−2lm−2nl=0, then the acute angle between those lines is (A) 2π/5 (B) π/3 (C) π/4 (D) π/60
›Reveal solutionSolution
Eliminate n using the linear relation, factor the resulting quadratic in l,m to get two sets of direction ratios, then use the cosine formula between two lines.
Concept and Intuition
When direction cosines satisfy one linear and one quadratic (or bilinear) relation, substituting the linear relation into the quadratic one reduces it to a single quadratic in the ratio l:m, whose two roots give the direction ratios of the two lines being described.
Step-by-Step Solution
- From l+m+n=0: n=−(l+m).
- Substitute into mn−2lm−2nl=0:
m(−(l+m))−2lm−2(−(l+m))l=−lm−m2−2lm+2l2+2lm=2l2−lm−m2=0
- Solve for l in terms of m: 2l2−lm−m2=0⇒l=4m±m2+8m2=4m±3m, giving l=m or l=−2m.
- Case 1: l=m=1⇒n=−(1+1)=−2. Direction ratios: (1,1,−2).
- Case 2: l=−1,m=2⇒n=−(−1+2)=−1. Direction ratios: (−1,2,−1)∝(1,−2,1).
- Angle between the lines: cosθ=1+1+41+4+1∣(1)(1)+(1)(−2)+(−2)(1)∣=6∣1−2−2∣=63=21.
- θ=3π (acute angle, taking absolute value of cosine).
Common Mistakes
- Not taking the absolute value in the cosine formula (would give an obtuse angle instead of the requested acute one).
- Losing one of the two roots of the quadratic in l,m.
✓Final answerThe correct option is (B) — π/3.
ANSWER: B
- AP EAPCET 2022Set eng-2022-07-07-FN1 markMCQQ.Suppose (l1,m1,n1) and (l2,m2,n2) are the directional cosines of two lines and θ is the angle between them and cosθ=±(l1l2+m1m2+n1n2). Let A=(1,−2,3), B=(3,1,−3) and C=(−3,1,3) be the vertices of a triangle ABC. Then cosA= (A) −351 (B) 71 (C) −71 (D) 351
›Reveal solutionSolution
The angle at vertex A between sides AB and AC is found from the dot product formula cosA=∣AB∣∣AC∣AB⋅AC=351.
Concept and Intuition
The angle between two lines through a common vertex of a triangle equals the angle between the vectors from that vertex to the other two vertices. This is exactly the direction-cosine formula for the angle between two lines given in the problem, applied to vectors AB and AC.
Step-by-Step Solution
- A=(1,−2,3),B=(3,1,−3),C=(−3,1,3).
- AB=B−A=(2,3,−6); ∣AB∣=4+9+36=49=7.
- AC=C−A=(−4,3,0); ∣AC∣=16+9+0=25=5.
- AB⋅AC=(2)(−4)+(3)(3)+(−6)(0)=−8+9+0=1.
- cosA=∣AB∣∣AC∣AB⋅AC=7×51=351.
Common Mistakes
- Using BA and CA inconsistently (mixing directions), which can flip the sign — although here the dot product is positive so the sign issue is not fatal, it is easy to make an error in general.
- Forgetting that the angle "at A" always uses vectors emanating from A, not B or C.
✓Final answerThe correct option is (D) — 351.
ANSWER: D
- AP EAPCET 2026Set eng-2026-05-12-FN1 markMCQQ.The angle between the lines whose direction cosines are given by the equations 2l−m+n=0 and lm+2mn−10nl=0 is θ, then cosθ= (A) 37020 (B) 7010 (C) 708 (D) 37016
›Reveal solutionSolution
Eliminating n between the two given relations yields a quadratic in m/l whose two roots are the direction ratios of the two lines; their angle has cosθ=8/70.
Concept and Intuition
When direction cosines satisfy one linear relation and one homogeneous quadratic relation, eliminating one variable between them produces a quadratic whose two roots correspond to the direction ratios of the two lines being jointly described.
Step-by-Step Solution
- From 2l−m+n=0: n=m−2l.
- Substitute into lm+2mn−10nl=0: lm+2m(m−2l)−10(m−2l)l=0.
- Expand: lm+2m2−4ml−10ml+20l2=0⇒2m2+(1−4−10)lm+20l2=0⇒2m2−13lm+20l2=0.
- Divide by l2, let k=m/l: 2k2−13k+20=0⇒k=413±169−160=413±3, giving k=4 or k=2.5.
- Case k=4: m=4l, n=m−2l=2l — direction ratios (1,4,2) (taking l=1).
- Case k=2.5: taking l=2, m=5, n=m−2l=1 — direction ratios (2,5,1).
- cosθ=1+16+44+25+1(1)(2)+(4)(5)+(2)(1)=21⋅302+20+2=63024=37024=708.
Common Mistakes
- Sign error collecting the lm coefficient (1−4−10=−13, easy to miscount).
- Using an inconvenient value for l that leaves fractional direction ratios (choosing l=2 for the second root avoids this).
✓Final answerThe correct option is (C) — 708.
ANSWER: C
- AP EAPCET 2021Set eng-2021-08-23-AN1 markMCQQ.The angle between the straight lines 3x+4y+9=0 and x−7y−22=0 is ______ (A) 4π (B) 6π (C) 3π (D) 8π
›Reveal solutionSolution
This tests the standard formula for the angle between two lines given their slopes. The answer is 4π.
Concept and Intuition
The angle θ between two lines with slopes m1,m2 satisfies tanθ=1+m1m2m1−m2. We extract each slope from its line equation and substitute.
Step-by-Step Solution
- 3x+4y+9=0⇒y=−43x−49, so m1=−43.
- x−7y−22=0⇒y=71x−722, so m2=71.
- tanθ=1+m1m2m1−m2=1+(−43)(71)−43−71.
- Numerator: −2821−284=−2825. Denominator: 1−283=2825.
- tanθ=25/28−25/28=1⇒θ=4π.
Common Mistakes
- Slope sign error when rearranging 3x+4y+9=0 to slope-intercept form.
- Forgetting the absolute value, which could otherwise give a negative or obtuse-angle tangent.
✓Final answerThe correct option is (A) — 4π.
ANSWER: A
- AP EAPCET 2021Set eng-2021-08-25-FN1 markMCQQ.The angle between the lines ab(x2−y2)+(a2−b2)xy=0 is ______ (A) 2π (B) 3π (C) 4π (D) 6π
›Reveal solutionSolution
The coefficients of x2 and y2 in this pair-of-lines equation are exact negatives of each other, which is exactly the condition for the two lines to be perpendicular.
Concept and Intuition
For a homogeneous pair of lines Ax2+2Hxy+By2=0, the lines are perpendicular precisely when the coefficient of x2 plus the coefficient of y2 is zero (A+B=0) — this is a standard, easily-checked shortcut, avoiding the need to compute the actual slopes.
Step-by-Step Solution
- Expand the given equation: abx2−aby2+(a2−b2)xy=0, i.e. abx2+(a2−b2)xy−aby2=0.
- Compare to Ax2+2Hxy+By2=0: A=ab, B=−ab.
- Check A+B=ab+(−ab)=0.
- This satisfies the perpendicularity condition for a homogeneous pair of lines, so the angle between them is 2π, independent of the specific values of a and b.
Common Mistakes
- Trying to compute the angle formula tanθ=A+B2H2−AB directly without noticing A+B=0 makes the denominator zero (which itself signals θ=π/2, rather than being an error).
- Missing the sign flip (−ab, not +ab) when reading off B from the y2 term.
✓Final answerThe correct option is (A) — 2π.
ANSWER: A
- AP EAPCET 2024Set eng-2024-05-20-AN1 markMCQQ.The angle between the line with the direction ratios (2,5,1) and the plane 8x+2y−z=4 is (A) cos−1(980464) (B) sin−1(980464) (C) sin−1(207025) (D) cos−1(207025)
›Reveal solutionSolution
The angle between a line and a plane uses the sine formula with the plane's normal vector (not the cosine formula used for line–line or plane–plane angles).
Concept and Intuition
If ϕ is the angle between the line and the normal to the plane, then the angle θ between the line and the plane itself is the complement: θ=90∘−ϕ, so sinθ=cosϕ=∣n∣∣d∣∣n⋅d∣.
Step-by-Step Solution
- Plane 8x+2y−z=4 has normal n=(8,2,−1).
- Line has direction ratios d=(2,5,1).
- n⋅d=8(2)+2(5)+(−1)(1)=16+10−1=25.
- ∣n∣=64+4+1=69.
- ∣d∣=4+25+1=30.
- ∣n∣∣d∣=69×30=2070.
- sinθ=207025, so θ=sin−1(207025).
Common Mistakes
- Using cos−1 instead of sin−1 (that formula is for the angle between the line and the plane's normal, not the plane itself).
- Arithmetic slip computing ∣n∣ or ∣d∣.
✓Final answerThe correct option is (C) — sin−1(207025).
ANSWER: C
- AP EAPCET 2021Set eng-2021-10-05-FN1 markMCQQ.The angle between the pair of lines represented by the equation (a2−3b2)x2+8abxy+(b2−3a2)y2=0 is (A) 30° (B) 45° (C) 75° (D) 60°
›Reveal solutionSolution
Plug the coefficients into the pair-of-lines angle formula; the (a2+b2) factors cancel neatly, leaving a constant angle independent of a,b. The answer is (D).
Concept and Intuition
Even though the coefficients depend on parameters a,b, the angle-between-lines formula often simplifies to a value independent of those parameters — a hallmark of this classic type.
Step-by-Step Solution
- Here A=a2−3b2, B=b2−3a2, 2H=8ab⇒H=4ab.
- A+B=(a2−3b2)+(b2−3a2)=−2a2−2b2=−2(a2+b2).
- AB=(a2−3b2)(b2−3a2)=a2b2−3a4−3b4+9a2b2=10a2b2−3a4−3b4.
- H2−AB=16a2b2−(10a2b2−3a4−3b4)=6a2b2+3a4+3b4=3(a4+2a2b2+b4)=3(a2+b2)2.
- tanθ=A+B2H2−AB=−2(a2+b2)23(a2+b2)=3.
- θ=60∘.
Common Mistakes
- Arithmetic slip expanding (a2−3b2)(b2−3a2) — easy to mis-collect the a2b2 terms.
- Forgetting to take the absolute value, which would otherwise suggest an obtuse angle.
✓Final answerThe correct option is (D) — 60°.
ANSWER: D
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.