PYQ Vault

CBSE Class 12 Maths · Three Dimensional Geometry

Angle Between Two Lines

The angle between two lines is the angle between their directions: its cosine is the dot product of the direction vectors divided by their lengths, taken without sign for the acute angle.

Why this matters

32 questions, nineteen of them from board papers between 2023 and 2026. The board asked for the angle between two lines (2023, 2025 and 2026; in 2023 and 2026 the answer was the inverse cosine of 19/21), for the value of an unknown that makes two lines perpendicular (every year from 2023), for a vector perpendicular to a given line (2024), and for assertion-reason items on the conditions for parallel and perpendicular lines (2023 and 2026). A 2026 MCQ asked for the formula of the acute angle, which needs a modulus, and the 2025 metro case study asked whether two tracks are parallel. The textbook adds Examples 7 and 8, Exercise 11.2 Q1 to Q3 and Q8 to Q11, and Miscellaneous Exercise Q1 and Q3.

Concept 1 of 3: The angle between two lines

Two lines in space may not meet, but each has a direction. Draw lines parallel to both through the origin: the angle between these is the angle between the given lines. So only the direction ratios matter, never the points. The dot product gives the cosine, and taking its modulus gives the acute angle.

Definition

  • With direction ratios a1,b1,c1a_1, b_1, c_1 and a2,b2,c2a_2, b_2, c_2: cos⁡θ=∣a1a2+b1b2+c1c2∣a12+b12+c12 a22+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}}.
  • In vector form, for r⃗=a1⃗+λb1⃗\vec{r} = \vec{a_1} + \lambda\vec{b_1} and r⃗=a2⃗+μb2⃗\vec{r} = \vec{a_2} + \mu\vec{b_2}: cos⁡θ=∣b1⃗⋅b2⃗∣∣b1⃗∣ ∣b2⃗∣\cos\theta = \dfrac{|\vec{b_1} \cdot \vec{b_2}|}{|\vec{b_1}|\,|\vec{b_2}|}.
  • With direction cosines: cos⁡θ=∣l1l2+m1m2+n1n2∣\cos\theta = |l_1l_2 + m_1m_2 + n_1n_2|.
  • Put both lines in standard form first, and do not use the points a1⃗\vec{a_1}, a2⃗\vec{a_2} at all.
  • Give the answer as θ=cos⁡−1(…)\theta = \cos^{-1}(\ldots) unless it is a standard angle.

Acute angle between two lines

cos⁡θ=∣a1a2+b1b2+c1c2∣a12+b12+c12 a22+b22+c22=∣b1⃗⋅b2⃗∣∣b1⃗∣ ∣b2⃗∣\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}} = \dfrac{|\vec{b_1} \cdot \vec{b_2}|}{|\vec{b_1}|\,|\vec{b_2}|}
  • a1,b1,c1a_1, b_1, c_1direction ratios of the first line
  • a2,b2,c2a_2, b_2, c_2direction ratios of the second line

Worked example

Find the angle between the lines x−12=y+2−1=3−z−2\dfrac{x - 1}{2} = \dfrac{y + 2}{-1} = \dfrac{3 - z}{-2} and x6=y−12=z+53\dfrac{x}{6} = \dfrac{y - 1}{2} = \dfrac{z + 5}{3}.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/6/3 · Q25Moderate

Example 1 · Three Dimensional Geometry · Angle Between Two Lines

Find the angle at which the given lines are inclined to each other : l1:x−52=y+31=z−1−3l_1 : \dfrac{x - 5}{2} = \dfrac{y + 3}{1} = \dfrac{z - 1}{-3} l2:x3=y−12=z+5−1l_2 : \dfrac{x}{3} = \dfrac{y - 1}{2} = \dfrac{z + 5}{-1}

No modulus, an obtuse angle

Without the modulus a negative dot product gives an obtuse angle. The angle between two lines is taken acute, so cos⁡θ=∣l1l2+m1m2+n1n2∣\cos\theta = |l_1l_2 + m_1m_2 + n_1n_2|.

Using the points

The vectors a1⃗\vec{a_1} and a2⃗\vec{a_2} only place the lines. Putting them into the angle formula is a common slip in long vector equations.

A numerator with the variable second

In k−zc\dfrac{k - z}{c} the direction ratio is −c-c. A wrong sign changes the dot product and the angle.

Concept 2 of 3: Perpendicular lines, and finding an unknown

Two lines are perpendicular when the angle between them is 90∘90^\circ, so its cosine is 0. The denominator of the angle formula is never zero, so the numerator must be: the sum of products of the direction ratios is zero. An unknown in the direction ratios is then found from one equation.

Definition

  • Perpendicular: a1a2+b1b2+c1c2=0a_1a_2 + b_1b_2 + c_1c_2 = 0, that is b1⃗⋅b2⃗=0\vec{b_1} \cdot \vec{b_2} = 0.
  • Standard form first. 1−x3=x−1−3\dfrac{1 - x}{3} = \dfrac{x - 1}{-3}; 7y−142p=y−22p/7\dfrac{7y - 14}{2p} = \dfrac{y - 2}{2p/7}.
  • Lines written as x=py+qx = py + q, z=ry+sz = ry + s have direction ratios p,1,rp, 1, r. Two such lines are perpendicular when pp′+1+rr′=0pp' + 1 + rr' = 0.
  • Three lines are mutually perpendicular when every pair is.
  • An unknown that appears squared gives two values; keep both.

Condition for perpendicular lines

a1a2+b1b2+c1c2=0b1⃗⋅b2⃗=0a_1a_2 + b_1b_2 + c_1c_2 = 0 \qquad \vec{b_1} \cdot \vec{b_2} = 0

Worked example

Find the value of kk for which the lines x−23=1−yk=z+12\dfrac{x - 2}{3} = \dfrac{1 - y}{k} = \dfrac{z + 1}{2} and x+1k=y−34=2z−16\dfrac{x + 1}{k} = \dfrac{y - 3}{4} = \dfrac{2z - 1}{6} are perpendicular.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2026 · 65/3/1 · 25 (a)Moderate

Example 2 · Three Dimensional Geometry · Angle Between Two Lines

If the lines x−31=1−y1=z+2p\dfrac{x - 3}{1} = \dfrac{1 - y}{1} = \dfrac{z + 2}{p} and 2−x3=y+15=z+562p\dfrac{2 - x}{3} = \dfrac{y + 1}{5} = \dfrac{z + 56}{2p} are perpendicular to each other, then find the value(s) of p.

The sign hidden in the numerator

A numerator written as (number minus variable) flips the sign of its denominator. Missing this changes the equation, and the value of the unknown comes out wrong.

Forgetting the 1 for y

In x=py+qx = py + q, z=ry+sz = ry + s the direction ratios are p,1,rp, 1, r. Perpendicular means pp′+rr′=−1pp' + rr' = -1, not +1+1; the 2026 assertion printed +1+1 and was false.

One root of a square

When the unknown appears as a square, the equation has two roots. Both give perpendicular lines; write both.

Concept 3 of 3: Parallel lines

Parallel lines point the same way (or exactly the opposite way). So their direction ratios are proportional, one set a fixed multiple of the other, and the angle between them is 0. A zero dot product says the opposite: the lines are at right angles.

Definition

  • Parallel: a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}, that is b2⃗=kb1⃗\vec{b_2} = k\vec{b_1}, or b1⃗×b2⃗=0⃗\vec{b_1} \times \vec{b_2} = \vec{0}.
  • Not b1⃗⋅b2⃗=0\vec{b_1} \cdot \vec{b_2} = 0: that is the condition for perpendicular lines.
  • If one ratio differs from the other two, the lines are not parallel.

Condition for parallel lines

a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}

Worked example

Show that the line through (1,0,2)(1, 0, 2) and (4,6,5)(4, 6, 5) is parallel to the line r⃗=5i^−j^+λ(−2i^−4j^−2k^)\vec{r} = 5\hat{i} - \hat{j} + \lambda(-2\hat{i} - 4\hat{j} - 2\hat{k}).
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2023 · 65/3/1 · Q20Moderate

Example 3 · Three Dimensional Geometry · Angle Between Two Lines

Questions number 19 and 20 are Assertion and Reason based questions carrying 1 mark each. Two statements are given, one labelled Assertion (A) and the other labelled Reason (R). Select the correct answer from the codes (a), (b), (c) and (d) as given below.
Assertion (A) : A line through the points (4, 7, 8) and (2, 3, 4) is parallel to a line through the points (−1,−2,1)(-1, -2, 1) and (1, 2, 5). Reason (R) : Lines r⃗=a1⃗+λb1⃗\vec{r} = \vec{a_1} + \lambda \vec{b_1} and r⃗=a2⃗+μb2⃗\vec{r} = \vec{a_2} + \mu \vec{b_2} are parallel if b1⃗⋅b2⃗=0\vec{b_1} \cdot \vec{b_2} = 0.

Dot product zero means perpendicular

A Reason that says lines are parallel when b1⃗⋅b2⃗=0\vec{b_1} \cdot \vec{b_2} = 0 is false. Parallel needs proportional direction ratios.

Opposite directions still parallel

Direction ratios 3,−6,93, -6, 9 and −1,2,−3-1, 2, -3 are proportional with a negative multiplier. The lines are parallel; a minus sign does not stop that.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (3)

  • The angle between two lines

    Acute angle between two lines

    cos⁡θ=∣a1a2+b1b2+c1c2∣a12+b12+c12 a22+b22+c22=∣b1⃗⋅b2⃗∣∣b1⃗∣ ∣b2⃗∣\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}} = \dfrac{|\vec{b_1} \cdot \vec{b_2}|}{|\vec{b_1}|\,|\vec{b_2}|}
  • Perpendicular lines, and finding an unknown

    Condition for perpendicular lines

    a1a2+b1b2+c1c2=0b1⃗⋅b2⃗=0a_1a_2 + b_1b_2 + c_1c_2 = 0 \qquad \vec{b_1} \cdot \vec{b_2} = 0
  • Parallel lines

    Condition for parallel lines

    a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}

Watch out for (8)

Test yourself on Three Dimensional Geometry

15 past CBSE Class 12 questions from this chapter, timed at 23 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.