In analytical geometry, the directional cosines also known as direction cosine of a vector is defined as the cosines of the angles between the three coordinate axes and the vector. In this section, we will first learn about the position vector of a point and direction cosines and then finding the angle between two lines.

**Position Vector**

Position vector simply denotes the position or location of a point in the three-dimensional Cartesian system with respect to a reference origin.

## Direction Cosines and Angle Between Two Lines

Let us consider a point P lying in space and if its position vector makes positive angles (anticlockwise direction) of α, β and γ with the positive x,y and z-axis respectively, then these angles are known as direction angles and on taking the cosine of these angles we get direction cosines. Taking direction cosines makes it easy to represent the direction of a vector in terms of angles with respect to the reference.

The coordinates of the point P may also be expressed as the product of the magnitude of the given vector and the cosines of direction on the three axes, i.e.

Where l, m, n represent the direction cosines of the given vector on the axes x, y, z respectively. We can clearly see that lr, mr, nr are in proportion to the direction cosines and these are called the direction ratios and they are denoted by a, b, c.

Let L_{1} and L_{2} represent two lines having the direction ratios as a_{1}, b_{1}, c_{1,} and a_{2}, b_{2}, c_{2} respectively such that they are passing through the origin. Let us choose a random point A on line L_{1} and B on line L_{2}. Considering the directed lines OA and OB as shown in the figure given below, let the angle between these lines be θ.

Using the concept of direction cosines and direction ratios, the angle θ between L_{1} and L_{2} is given by:

Therefore,

### Special Cases

- If L
_{1}and L_{2}having the direction ratios as a_{1}, b_{1}, c_{1}and a_{2}, b_{2}, c_{2}respectively are perpendicular to each other, then θ = 90^{0}. Therefore,*a*_{1}a_{2}+ b_{1}b_{2}+ c_{1}c_{2}= 0 - If L
_{1}and L_{2}having the direction ratios as a_{1}, b_{1}, c_{1}and a_{2}, b_{2}, c_{2}respectively are parallel to each other, then θ = 0^{0}.

- \(\begin{array}{l} \text {Therefore } \frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}\end{array} \)

### How to Find the Direction Cosine?

The direction cosine of the vector can be determined by dividing the corresponding coordinate of a vector by the vector length. The unit vector coordinate is equal to the direction cosine. One such property of the direction cosine is that the addition of the squares of the direction cosines is equivalent to one.

We know that the direction cosine is the cosine of the angle subtended by the line with the three coordinate axes, such as x-axis, y-axis and z-axis respectively. If the angles subtended by these three axes are α, β, and γ, then the direction cosines are cos α, cos β, cos γ respectively. The direction cosines are also represented by l, m, and n.

### Direction Cosines Examples

**Example 1: **

Determine the direction cosine of a line joining the point (-4, 2, 3) with the origin.

**Solution:**

Given that, the line joins the origin (0, 0, 0) and the point (-4, 2, 3). Hence, the direction ratios are -4, 2, 3.

Also, the magnitude of a line = √[(-4)^{2}+(2)^{2}+(3)^{2}]

= √(16+4+9) = √29.

Therefore, the direction cosines are ((-4/√29), (2/√29), (3/√29)).

**Example 2: **

Find the direction cosine of a vector joining the points A(1, 2, -3) and B(-1, -2, 1), directed from A to B.

**Solution:**

Given that, A(1, 2, -3) and B(-1, -2, 1)

Hence, the direction ratios are -2, -4, 4.

Magnitude = √[(-2)^{2}+(-4)^{2}+(4)^{2}]

= √(4+16+16) = √36 = 6.

Thus, the direction cosines are (-2/6, -4/6, 4/6), which is also equal to (-⅓, -⅔, ⅔)

**Example 3:**

**Solution:**

Given vector:

Thus, the direction ratios are 1, 2, 3.

= √(1+4+9) = √14.

Therefore, the direction cosines are ((1/√14), (2/√14), (3/√14))

Stay tuned with BYJU’S – The Learning App and download the app to learn all Maths-related concepts easily by exploring more videos.

## Frequently Asked Questions on Direction Cosines

### What is meant by direction cosines?

The direction cosine of a vector is defined as the cosine of the angle between the vector and the three positive coordinate axes.

### Does the direction cosines of two parallel lines are always the same?

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

### If l, m and n are the direction cosines of a line, then what is the relationship between the direction cosines of a line?

If l, m and n are the direction cosines of a line, then the relationship between the direction cosines of a line is l^{2}+m^{2}+n^{2} = 1.

### Does the direction cosine of a line is unique?

Yes, the direction cosine of a line is unique. However, there are infinitely many direction ratios, if direction ratios are proportional to the direction cosines.

### What is meant by position vector?

Position vector, also known as Euclidean vector represents the position or location of a point in the three-dimensional Cartesian system with respect to a reference origin.

## Comments