Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

How To Find Direction Ratios And Direction Cosines In 3D Geometry

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

Formula Steps And Solved Examples Of Direction Ratios And Direction Cosines

Vector: Direction Cosines

Before discussing the directional cosines of a vector, let us discuss the position vector. Just like the name suggests, a position vector indicates the position of any point relative with respect to any reference origin.

Consider any arbitrary point in three-dimensional space having the coordinates (x,y,z) as concerning the origin O (0,0,0).


(Image will be uploaded soon)


The position vector in the above figure is given as |PQ| = r = √(x - 0)2 + (y - 0)2 + (z - 0)2

|PQ| = r = √x2 + y2 + z2


Direction Cosines

Consider the following figure that represents a vector P in space with variable O being the reference origin of the vector P. Let the position vector make a positive angle (anticlockwise direction) of α, β, and γ with the positive x, y, and z-axis respectively. These angles are known as direction angles. When we take the cosine of these angles, we can find out the direction cosines. Taking direction cosines makes it easy to represent the direction of a vector in terms of angles for reference.


(Image will be uploaded soon)


\[cos \alpha = \frac{x}{|\overline{r}|}\]

\[cos \beta = \frac{y}{|\overline{r}|}\]

\[cos \gamma = \frac{z}{|\overline{r}|}\]

This is how the cosines of the directions of a vector are represented mathematically.

\[cos \alpha = \frac{x}{\sqrt{x^{2} + y^{2} + z^{2}}}\]

\[cos \beta = \frac{y}{\sqrt{x^{2} + y^{2} + z^{2}}}\]

\[cos \gamma = \frac{z}{\sqrt{x^{2} + y^{2} + z^{2}}}\]


Direction Ratios

The product of the magnitude of any given vector can be represented with point P, and the cosines of direction on the three axes, i.e.

a = lr

b = mr

c = nr

Where, 

l = direction of the cosine on the axis X.

m = direction of the cosine on the axis Y.

n = direction of the cosine on the axis Z.

This helps to understand that lr, mr, and nr are in proportion to direction cosines. Hence, they are called direction ratios and are represented by the variables a, b and c.

Where the axes l, m, n represent the respective direction cosines of any given vector on the axes X, Y, Z respectively. We can 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.

\[\frac{l}{a} = \frac{1}{\sqrt{x^{2} + y^{2} + z^{2}}}\]

\[\frac{m}{b} = \frac{1}{\sqrt{x^{2} + y^{2} + z^{2}}}\]

\[\frac{n}{c} = \frac{1}{\sqrt{x^{2} + y^{2} + z^{2}}}\]

From the above theory, we have learned about direction ratios and direction cosines. Let us apply this knowledge and solve some problems.


Solved Examples

1. Consider the point  A(x, y, z) having coordinates (3, 4, 5). Find the direction ratios and the direction cosines with the origin point being O(0, 0, 0).


(Image will be uploaded soon)


We have learned that,

\[cos \alpha = \frac{x}{|\overline{r}|}\]

\[cos \beta = \frac{y}{|\overline{r}|}\]

\[cos \gamma = \frac{z}{|\overline{r}|}\]

\[\Rightarrow \sqrt{x^{2} + y^{2} + z^{2}} = \sqrt{3^{2} + 4^{2} + 5^{2}}\]

\[\Rightarrow \sqrt{x^{2} + y^{2} + z^{2}} = \sqrt{50} = 5\sqrt{2}\]

Hence, we can conclude that:

\[l = cos \alpha = \frac{3}{5\sqrt{2}}\]

\[m = cos \beta = \frac{4}{5\sqrt{2}}\]

\[n = cos \gamma = \frac{5}{5\sqrt{2}} = \frac{1}{\sqrt{2}}\]

The direction ratio of the given point A(x, y, z) will be 3:4:5.

x = 3

y = 4

z = 5

FAQs on How To Find Direction Ratios And Direction Cosines In 3D Geometry

1. What are direction ratios and direction cosines?

The direction ratios (DRs) of a line are any three numbers proportional to its direction, while the direction cosines (DCs) are the cosines of the angles the line makes with the coordinate axes.

  • If a line makes angles α, β, γ with x, y, z-axes, then DCs are l = cosα, m = cosβ, n = cosγ.
  • Direction ratios are any proportional set a, b, c such that l = a/√(a²+b²+c²), etc.
  • DRs are not unique, but DCs are uniquely determined.

2. How do you find direction ratios of a line?

The direction ratios of a line can be obtained from its equation or from two points on the line.

  • From two points A(x₁,y₁,z₁) and B(x₂,y₂,z₂): DRs = (x₂−x₁, y₂−y₁, z₂−z₁).
  • From symmetric form (x−x₁)/a = (y−y₁)/b = (z−z₁)/c: DRs are a, b, c.
  • Any proportional multiples (ka, kb, kc) are also valid DRs.

3. How do you calculate direction cosines from direction ratios?

Direction cosines are found by dividing each direction ratio by the magnitude of the vector formed by them.

  • If DRs are a, b, c, then magnitude = √(a²+b²+c²).
  • Direction cosines: l = a/√(a²+b²+c²), m = b/√(a²+b²+c²), n = c/√(a²+b²+c²).
  • These satisfy l² + m² + n² = 1.

4. What is the formula for direction cosines?

The formula for direction cosines of a line is l = cosα, m = cosβ, n = cosγ, where α, β, γ are angles with the x, y, z-axes.

  • They satisfy the identity l² + m² + n² = 1.
  • If DRs are known, use l = a/√(a²+b²+c²) and similarly for m, n.

5. What is the relationship between direction ratios and direction cosines?

Direction cosines are the normalized form of direction ratios.

  • If DRs are a, b, c, then DCs are (a, b, c)/√(a²+b²+c²).
  • Thus, DCs = DRs ÷ magnitude of DRs.
  • Every set of DCs gives a unique direction, while DRs can have infinitely many proportional values.

6. How do you find direction ratios from two given points?

To find direction ratios from two points, subtract the coordinates of the first point from the second point.

  • Given A(1,2,3) and B(4,6,5).
  • DRs = (4−1, 6−2, 5−3) = (3, 4, 2).
  • Any multiple like (6,8,4) is also valid.

7. What condition do direction cosines always satisfy?

Direction cosines always satisfy the identity l² + m² + n² = 1.

  • This comes from the property of cosines of angles with coordinate axes.
  • If given numbers do not satisfy this condition, they cannot be valid direction cosines.

8. Can direction ratios be zero or negative?

Yes, direction ratios can be positive, negative, or zero depending on the line’s orientation.

  • If a line is parallel to the x-axis, DRs may be (1,0,0).
  • Negative values indicate direction opposite to the positive axis.
  • All three cannot be zero simultaneously.

9. How do you find the angle between two lines using direction cosines?

The angle between two lines is found using the formula cosθ = l₁l₂ + m₁m₂ + n₁n₂.

  • (l₁, m₁, n₁) and (l₂, m₂, n₂) are DCs of the two lines.
  • Substitute values and compute θ using inverse cosine.
  • If cosθ = 0, the lines are perpendicular.

10. Can you give an example of finding direction cosines?

Yes, direction cosines can be found by normalizing the direction ratios.

  • Let DRs be (2, -1, 2).
  • Magnitude = √(4+1+4) = 3.
  • DCs = (2/3, -1/3, 2/3).
  • Check: (2/3)² + (-1/3)² + (2/3)² = 1.