Find the direction cosines of the line passing through two points 2 4 and 1 2 3

The direction cosines of a line are the cosines of the angles which the line makes with the positive directions of the coordinate axes. In this article, we will learn about the direction cosines of the line. If α, β, and γ are the angles made by the line segment with the coordinate axis then these angles are known as the direction angles. The cosines of direction angles are the direction cosines of the line. So, cos α, cos β, and cos γ are known as the direction cosines. Denoted by l, m, and n.

l = cos α

m = cos β

n = cos γ

Find the direction cosines of the line passing through two points 2 4 and 1 2 3

A concept related to direction cosines is direction ratios. Direction ratios are three numbers that are proportional to the direction cosines of a line. Hence, if ‘a’, ‘b’ and ‘c’ denote the direction ratios and l, m, n denote the direction cosines then, we must have

a/l = b/m = c/n.

Direction Cosines of a Line Joining Two Points

If we have two points A(x1, y1, z1) and B(x2, y2, z2), then the direction cosines of the line segment joining these two points are

\(\begin{array}{l}\frac{x_2-x_1}{AB}, \frac{y_2-y_1}{AB}\end{array} \)

and

\(\begin{array}{l}\frac{z_2-z_1}{AB}\end{array} \)

. AB is found using the distance formula.

Solved Examples

Example 1: Find the direction ratios and direction cosines of a line joining the points (3, -4, 6) and (5, 2, 5).

Solution:

Given points are A(3, -4, 6) and B(5, 2, 5)

The direction ratios of the line joining AB is

a = x2 – x1 = 5 – 3 = 2

b = y2 – y1 = 2 + 4 = 6

c = z2 – z1 = 5 – 6 = -1

AB =

\(\begin{array}{l}\sqrt{2^2+6^2+(-1)^2} = \sqrt{41}\end{array} \)

So direction cosines of the line = 2/√41, 6/√41, -1/√41.

Example 2: Find the direction cosines of the line joining the points (2,1,2) and (4,2,0).

Solution:

Let the points are A(2,1,2) and B(4,2,0).

x2-x1 = 4-2 = 2

y2-y1 = 2-1 = 1

z2-z1 = 0-2 = -2

AB = √(22+12+(-2)2)= 3

Hence the direction cosines are ⅔, ⅓, -⅔.

Example 3: Find the direction cosines of the line joining the points (2,3,-1) and (3,-2,1).

Solution:

Let the points are A(2,3,-1) and B(3,-2,1).

x2-x1 = 3-2 = 1

y2-y1 = -2-3 = -5

z2-z1 = 1- (-1) = 2

AB = √(12+(-5)2+22)= √30

Hence the direction cosines are 1/√30, -5/√30, 2/√30.

Also Read

3 D geometry

Properties of triangle and height and distances

Practice Problems:

Problem 1: Find the direction cosines of the line joining the points (3,0,2) and (5,3,1).

Problem 2: Find the direction cosines of a vector whose direction ratios are 2, 3, -6.

The components of a vector along the x-axis, y-axis, z-axis respectively are called the direction ratios.

Direction cosines of a vector is defined as the cosines of the angles between the three coordinate axes and the vector.

If l, m and n are the direction cosines of a line, then l2+m2+n2 = 1.

Yes, the direction cosines of two parallel lines are always the same.

\[\text{The direction cosines of the line passing through two points }P \left( x_1 , y_1 , z_1 \right) \text{ and}  \ Q \left( x_2 , y_2 , z_2 \right) \text{are} \frac{x_2 - x_1}{PQ}, \frac{y_2 - y_1}{PQ}, \frac{z_2 - z_1}{PQ} . \]\[\text{ Here,} \]

\[PQ = \sqrt{\left( x_2 - x_1 \right)^2 + \left( y_2 - y_1 \right)^2 + \left( z_2 - z_1 \right)^2}\]

\[P = \left( - 2, 4, - 5 \right) \]

\[Q = \left( 1, 2, 3 \right)\]

\[ \therefore PQ = \sqrt{\left[ 1 - \left( - 2 \right) \right]^2 + \left( 2 - 4 \right)^2 + \left[ 3 - \left( - 5 \right) \right]^2} = \sqrt{77}\]

\[\text{Thus, the direction cosines of the line joining two points are }\frac{1 - \left( - 2 \right)}{\sqrt{77}}, \frac{2 - 4}{\sqrt{77}}, \frac{3 - \left( - 5 \right)}{\sqrt{77}}, \text{i . e }. \frac{3}{\sqrt{77}}, \frac{- 2}{\sqrt{77}}, \frac{8}{\sqrt{77}} .\]


Page 2

\[\text{The given points are}  \text{ A }\left( 2, 3, - 4 \right), B\left( 1, - 2, 3 \right) \text{and}\ C \left( 3, 8, - 11 \right) . \]

\[\text{We know that the direction ratios of the line joining the points, } \left( x_1 , y_1 , z_1 \right) \text{and}\ \left( x_2 , y_2 , z_2 \right) \text{are } \ x_2 - x_1 , y_2 - y_1 , z_2 - z_1 . \]

\[\text{The direction ratios of the line joining A and B are } 1 - 2, - 2 - 3, 3 + 4,\text{ i . e }. - 1, - 5, 7 . \]

\[\text{The direction ratios of the line joining B and C are }  3 - 1, 8 + 2, - 11 - 3, \text{i . e }. 2, 10, - 14 . \]

\[\text {It is clear that the direction ratios of BC are  - 2 times that of AB, i . e . they are proportional . }\]

\[\text{Therefore, AB is parallel to BC . }\]

\[\text{Also, point B is common in both AB and BC . }\]

\[\text{Therefore, points A, B and C are collinear .}\]

Find the direction cosines of the sides of the triangle whose vertices are (3, 5, –4), (–1, 1, 2) and (–5, –5, –2).

Let A(3, 5, – 4), B(–1, 1, 2), C(–5, –5, –2) be the vertices of ΔABC.

Direction ratios of AB are – 1 – 3, 1 – 5, 2 + 4 i.e. – 4, – 4, 6
          Dividing each by 

Find the direction cosines of the line passing through two points 2 4 and 1 2 3

Find the direction cosines of the line passing through two points 2 4 and 1 2 3

cosines of the line AB as 
Find the direction cosines of the line passing through two points 2 4 and 1 2 3

    i.e.       
Find the direction cosines of the line passing through two points 2 4 and 1 2 3

Find the direction cosines of the line passing through two points 2 4 and 1 2 3

Direction ratios of BC are – 5 + 1, –5 –1, –2 –2 i.e. – 4, –6, –4.


               Dividing each by
Find the direction cosines of the line passing through two points 2 4 and 1 2 3
     
           direction ratios of the line BC as 
Find the direction cosines of the line passing through two points 2 4 and 1 2 3
  Direction ratios of CA are 3+5, 5+5,  -4+2 i.e., 8, 10 -2.

  Dividing each by 

Find the direction cosines of the line passing through two points 2 4 and 1 2 3


direction ratios of the line CA as 
Find the direction cosines of the line passing through two points 2 4 and 1 2 3