Lines in Space
DIRECTION COSINES OF A LINE
If , , be the angles which a given directed line makes with the positive directions of the co-ordinate axes, then cos, cos, cos are called the direction cosines of the given line and are generally denoted by l, m, n respectively.
Thus, l = cos, m = cos and n = cos
By the definition it follows that the direction cosine of the axis of x are respectively cos0°, cos90°, cos 90° i.e. (1, 0, 0).
Similarly direction cosines of the axes of y and z are respectively (0, 1, 0) and (0, 0, 1).
Relation between the Direction Cosines:
Let OP be any line through the origin O which has direction cosines l, m, n.
Let P (x, y, z) and OP = r
Then OP2 = x2 + y2 + z2 = r2 …. (1)
From P draw PA, PB, PC perpendicular on the coordinate axes, so that
OA = x, OB = y, OC = z.
Also, POA = , POB = and POC = .
From triangle AOP, l = cos = x = lr
Similarly y = mr and z = nr
Hence from (1)
r2(l2 + m2 + n2) = x2 + y2 + z2 = r2 l2 + m2 + n2 = 1
Note:
If the coordinates of any point P be (x, y, z) and l, m, n be the direction cosines of the line OP, O being the origin, then (lr, mr, nr) will give us the co-ordinates of a point on the line OP which is at a distance r from (0, 0, 0).
Direction Ratios:
If a, b, c are three numbers proportional to the direction cosine l, m, n of a straight line, then a, b, c are called its direction ratios. They are also called direction numbers or direction components.
Hence by definition, we have
(say)
l = ak, m = bk, n = ck k2(a2 + b2 + c2) = l2 + m2 + n2 = 1
k = =
l = . Similarly m = and n =
where the same sign either positive or negative is to be chosen throughout.
Example: If 2, – 3, 6 be the direction ratios, then the actual direction cosines are .
Note:
Direction cosines of a line are unique but direction ratios of a line in no way unique but can be infinite.
Parallel Lines:
Since parallel lines have the same direction, it follows that the direction cosines of two or more parallel straight lines are the same. So in case of lines, which do not pass through the origin, we can draw a parallel line passing through the origin and direction cosines of that line can be found.
Illustration 1: Find the direction cosines of two lines which are connected by the relations l–5m + 3n = 0 and 7l2 + 5m2 – 3n2 = 0.
Solution: The given relations are
l–5m + 3n = 0 l = 5m – 3n ……(1)
and 7l2 + 5m2 – 3n2 = 0 ……(2)
Putting the value of l from (1) in (2), we get
7(5m – 3n)2 + 5m2 – 3n2 = 0
or, 180m2 – 210mn + 60n2 = 0 or, (2m – n)(3m – 2n) = 0
or
when i.e. n = 2m
l = 5m – 3n = –m or = –1
thus and = –1 giving
or,
So, direction cosines of one line are –, ,
Again when or n =
l = 5m – 3. or
Thus, and giving
The direction cosines of the other line are .
Direction Cosine of a Line joining two given Points:
The direction ratios of line PQ joining P (x1, y1, z1) and Q(x2, y2, z2) are x2 – x1 = a(say), y2 – y1 = b (say) and z2 – z1 = c (say).
Then direction cosines are
l = , m = , n =
Illustration 2: Find the direction ratios and direction cosines of the line joining the points A(6, –7, –1) and B(2, –3, 1).
Solution: Direction ratios of AB are (4, – 4, – 2) = (2, – 2, – 1)
a2 + b2 + c2 = 9
Direction cosines are .
Angle between two Lines:
Let be the angle between two straight lines AB and AC whose direction cosines are given whose direction cosines are l1, m1, n1 and l2, m2, n2 respectively, is given by cos = l1l2 + m1m2 + n1n2
If direction ratios of two lines are a1, b1, c1 and a2, b2, c2 are given, then angle between two lines is given by cos =
Particular Results:
We have, sin2 = 1 – cos2
= – (l1l2 + m1m2 + n1n2)2
= (l1m2 – l2m1)2 + (m1n2 – m2n1)2 + (n1l2 – n2l1)2
sin = .
Condition of perpendicularity:
If the given lines are perpendicular, then = 900 i.e. cos = 0
l1l2 + m1m2 + n1n2 = 0 or a1a2 + b1b2 + c1c2 = 0 .
Condition of parallelism:
If the given lines are parallel, then = 00 i.e. sin = 0
(l1m2 – l2m1)2 + (m1n2 – m2n1)2 + (n1l2 – n2l1)2 = 0
which is true, only when
l1m2 – l2m1 = 0, m1n2 – m2n1 = 0 and n1l2 – n2l1 = 0
Similarly, .
Illustration 3: Show that two lines having direction ratios –1, 3, 2 and 2, 2, –2 are perpendicular.
Solution: a1a2 + b1b2 + c1c2 = (–1)(2) + (3)(2) + (2)(–2) = –2 + 6 – 4 = 0
lines are perpendicular.
Projection of a Line:
Projection of the line joining two point P (x1, y1, z1) and Q (x2, y2, z2) on another line whose direction cosines are l, m, n is
AB = l(x2 – x1) + m(y2 – y1) + n(z2 – z1)
Perpendicular Distance of a Point from a Line:
Let AB is straight line passing through point A (a, b, c) and having direction cosines l, m, n.
AN = projection of line AP on straight line AB
= l(x – a) + m(y – b) + n(z – c)
and AP =
perpendicular distance of point P
PN =
Illustration 4: Find out perpendicular distance of point P (0, –1, 3) from straight line passing through A (1, –3, 2) and having direction ratios 1, 2, 2.
Solution: Direction cosines of the line is i.e. .
PN = l(x – a) + m(y – b) + n(z – c) = (0 – 1) + (–1 + 3) + (3 – 2) =
AP =
Perpendicular distance PN = .
Area of a Triangle
x
y
z =
So, area of DABC is given by the relation 2 =
EQUATION OF STRAIGHT LINE IN DIFFERENT FORMS
Symmetrical Form:
Equation of straight line passing through point P (x1, y1, z1) and whose direction cosines are l, m, n is
Equation of straight line passing through two points P (x1, y1, z1) and Q (x2, y2, z2) is
.
Note:
The general coordinates of a point on a line is given by (x1 + lr, y1 + mr, z1 + nr) where r is distance between point (x1, y1, z1) and point whose coordinates is to be written.
Illustration 5. Find the equations of the straight lines through the point (a, b, c) which are
(a) parallel to z-axis
(b) perpendicular to z-axis
Solution (i) Equation of straight lines parallel to z-axis have = 900, = 900, = 00 l = 0, m = 0, n = 1
Therefore equation of straight line is parallel to z-axis and passing through (a, b, c) is
(ii) equation of straight lines perpendicular to z-axis
let they make , angle with x and y axes respectively.
Then equation of straight lines perpendicular to z axis and passing through (a, b, c) is .
Shortest Distance between two non Intersecting Line:
Two lines are called non intersecting lines if they do not lie in the same plane. The straight line which is perpendicular to each of non-intersecting lines is called the line of shortest distance. And length of shortest distance line intercepted between two lines is called length of shortest distance.
Method: Let the equation of two non-intersecting lines be
= r1 (say) ……(1)
And = r2 (say) ……(2)
Any point on line (1) is P (x1 + l1r1, y1 + m1r1, z1 + n1r1) and on line (2) is Q (x2 + l2r2, y2 + m2r2, z2 + n2r2).
Let PQ be the line of shortest distance. Its direction ratios will be
[(l1r1 + x1– x2– l2r2), (m1r1 + y1– y2– m2r2), (n1r1 + z1– z2– n2r2)]
This line is perpendicular to both given line. By using condition of perpendicularity we obtain 2 equations in r1 and r2.
So by solving these, values of r1 and r2 can be found. And subsequently point P and Q can be found. The distance PQ is shortest distance.
The shortest distance can be found by PQ =
.
Note: If any straight line is given in general form then it can be transformed into symmetrical form and we can further proceed.
Illustration 6: Find the shortest distance between the lines , . Also find the equation of line of shortest distance.
Solution: Given lines are = r1 (say) ……(1)
= r2 (say) ……(2)
Any point on line (1) is P (3r1 + 3, 8 – r1, r1 + 3) and on line (2) is
Q (–3 – 3r2, 2r2 – 7, 4r2 + 6).
If PQ is line of shortest distance, then direction ratios of PQ
= (3r1 + 3) – (–3 – 3r2), (8 – r1) – (2r2 – 7), (r1+ 3) – (4r2 + 6)
i.e. 3r1 + 3r2 + 6, –r1 – 3r2 + 15, r1 – 4r2 – 3
As PQ is perpendicular to liens (1) and (2)
3(3r1 + 3r2 + 6) – 1(–r1 – 2r2 + 15) + 1(r1 – 4r2 + 3) = 0
11r1 + 7r2 = 0 ……(3)
and –3(3r1 + 3r2 + 6) + 2(–r1 – 2r2 + 15) + 4(r1 – 4r2 + 3) = 0
i.e. 7r1 + 11r2 = 0 ……(4)
On solving equations (3) and (4), we get r1 = r2= 0.
So, point P (3, 8,3) and Q (–3, –7, 6)
Length of shortest distance PQ =
Direction ratios of shortest distance line is 2, 5, –1
Equation of shortest distance line .
Ready to master Three Dimensional Geometry?
Take a full mock test, practice concept-by-concept, and get an AI-powered rank prediction — all on Fundamenthol.