Lagrange's identity, the cosine and sine of the angle between lines, angle bisectors, and conditions for perpendicular and parallel lines.
Lesson 2 of 3
5 min read
7 practice questions
What this lesson covers
With direction cosines in hand, the angle between two lines is a short calculation. This lesson gives the cosine and sine of that angle, Lagrange's identity which links them, the directions of the angle bisectors, and conditions for lines to be perpendicular or parallel, including the case where the direction cosines are only known through two equations.
Lagrange's identity
For any two triples (l1,m1,n1) and (l2,m2,n2),
If (l1,m1,n1) and (l2,m2,n2) are the d.c.'s of two intersecting lines, the d.c.'s of the lines bisecting the angles between them are proportional to
(l1±l2,m1±m2,n1±n2).
Adding two unit vectors gives a vector along the bisector of the angle between them. Dividing by the length gives the actual d.c.'s of the bisectors:
For lines with d.c.'s (l1,m1,n1) and (l2,m2,n2):
they are perpendicular if l1l2+m1m2+n1n2=0;
they are parallel if l2l1=m2m1=n2n1.
For lines with d.r.'s (a1,b1,c1) and (a2,b2,c2):
they are perpendicular if a1a2+b1b2+c1c2=0;
they are parallel if a2a1=b2b1=c2c1.
Lines given by two relations
Sometimes the d.c.'s of two lines are given only as the two solutions of a pair of equations.
If the d.c.'s (l,m,n) of two lines satisfy al+bm+cn=0 and fmn+gnl+hlm=0, then the lines are
perpendicular if af+bg+ch=0;
parallel if af±bg±ch=0.
If the d.c.'s satisfy al+bm+cn=0 and ul2+vm2+wn2=0, the lines are
perpendicular if ∑a2(v+w)=a2(v+w)+b2(w+u)+c2(u+v)=0;
parallel if ua2+vb2+wc2=0.
To find the actual angle, eliminate one of l,m,n using the linear equation and solve the quadratic, as in Example 3.
Example 1
Find the angle between the lines with d.r.'s (1,1,2) and (2,−1,1), and check with the sine formula.
cosθ=66∣2−1+2∣=63=21,θ=60∘.
The d.c.'s are 61(1,1,2) and 61(2,−1,1). The three cross terms are 61(−1−2), 61(1+2) and 61(4−1), so sin2θ=369+9+9=43 and sinθ=23, as expected.
Example 2
Find k so that the lines with d.r.'s (2,k,3) and (1,−2,4) are perpendicular, and k so that (2,k,6) and (1,2,3) are parallel.
Perpendicular: 2−2k+12=0, so k=7. Parallel: 12=2k=36, so k=4.
Example 3
Find the angle between the lines whose d.c.'s satisfy l+m+n=0 and 2lm+2nl−mn=0.
Put n=−(l+m) in the second equation. Then 2nl=−2l(l+m) and −mn=m(l+m), so
2lm−2l2−2lm+lm+m2m2+lm−2l2(m−l)(m+2l)=0=0=0.
If m=l, then n=−2l, giving d.r.'s (1,1,−2). If m=−2l, then n=l, giving d.r.'s (1,−2,1). So
cosθ=66∣1−2−2∣=21,θ=60∘.
Practice
Find the acute angle between the lines with d.r.'s (1,−1,0) and (0,1,−1).
Find the angle between the lines with d.c.'s (72,73,−76) and (76,72,73).
Find k if the lines with d.r.'s (k,2,−1) and (3,−k,4) are perpendicular.
Find d.r.'s of a line perpendicular to both the lines with d.r.'s (1,2,3) and (2,3,1).
Show that the lines whose d.c.'s satisfy l+m+n=0 and mn+nl−2lm=0 are perpendicular.
Find the angle between the lines whose d.c.'s satisfy l+m+n=0 and l2+m2−n2=0.
Find the d.c.'s of the bisectors of the angles between the x axis and the y axis.
Answers
Show answers
cosθ=22∣0−1+0∣=21, so 60∘.
4912+6−18=0, so 90∘.
3k−2k−4=0, so k=4.
Solve a+2b+3c=0 and 2a+3b+c=0 by cross multiplication: (a,b,c) is proportional to (2−9,6−1,3−4)=(−7,5,−1), or (7,−5,1).
Here a=b=c=1, f=1, g=1, h=−2, and 11+11+1−2=0.
With n=−(l+m): l2+m2−(l+m)2=−2lm=0, so l=0 or m=0. The d.r.'s are (0,1,−1) and (1,0,−1), and cosθ=21, so θ=60∘.
θ=90∘, so 2cos45∘=2sin45∘=2. The bisectors have d.c.'s (21,21,0) and (21,−21,0).
Practice sets
Three sets on this lesson alone,
from a warm-up to a challenge. Work each problem on paper, then open its answer and worked solution.