📐 ICSE Class 12 Mathematics

Direction Cosines

Start MCQ Practice →

Direction Cosines

Subject: Class 12 Mathematics Chapter: Direction Cosines Topic: 12.2 Direction Cosines – Calculate direction cosines in space

1. Introduction

A line in space can point in infinitely many directions, and to describe exactly which way it points we need three numbers. If a line makes angles α, β and γ with the positive directions of the x-axis, y-axis and z-axis respectively, then the cosines of these three angles completely fix the direction of the line. These three numbers, written as l, m and n, are called the direction cosines of the line and are usually denoted by the ordered triple (l, m, n).

Direction cosines behave quite differently from ordinary coordinates. The point (1, 1, 1) and the point (2, 2, 2) occupy different places in space, yet a line pointing from the origin towards either of them has exactly the same direction. Direction cosines capture only the direction, not the length, so two parallel lines pointing the same way share the same direction cosines. This makes them an indispensable tool for comparing lines and computing angles between them.

In this chapter we will learn the definition of direction cosines, the all-important identity l² + m² + n² = 1, the direction cosines of the coordinate axes, and how to find the direction cosines of a line joining two given points. Worked examples throughout will show the step by step procedure that examiners expect, and the quick revision tables will help you memorise every formula before the test.

2. Direction Cosines of a Line

Consider a directed line L making angles α, β and γ with the positive directions of the x, y and z axes respectively. The direction cosines of L are defined as:

The direction cosines are written as an ordered triple (l, m, n). Some key points:

Direction cosines of the coordinate axes:

Example 1: A line makes angles 60°, 45° and 60° with the positive x, y and z axes. Find its direction cosines.

Solution: By definition:

l = cos 60° = 1/2 m = cos 45° = 1/√2 n = cos 60° = 1/2

Hence the direction cosines are (1/2, 1/√2, 1/2).

3. Relation Between the Direction Cosines

The three direction cosines of any line always satisfy the fundamental identity:

l² + m² + n² = 1

This identity follows because the direction cosines are the components of a unit vector along the line. It is used constantly to check answers and to compute a missing direction cosine.

Example 2: The direction cosines of a line are (1/2, √3/2, n). Find n.

Solution: Using l² + m² + n² = 1:

(1/2)² + (√3/2)² + n² = 1 1/4 + 3/4 + n² = 1 1 + n² = 1 ⇒ n² = 0 ⇒ n = 0.

So the direction cosines are (1/2, √3/2, 0).

Example 3: Find the angles that the line with direction cosines (1/√3, 1/√3, 1/√3) makes with the coordinate axes.

Solution: Since l = cos α, we have cos α = 1/√3, hence α = cos⁻¹(1/√3). Similarly β = cos⁻¹(1/√3) and γ = cos⁻¹(1/√3). The line is equally inclined to all three axes. Indeed, 3 × (1/√3)² = 1 confirms the identity holds.

Example 4: Show that the points (l, m, n) used as direction cosines always lie on the unit sphere centred at the origin.

Solution: The relation l² + m² + n² = 1 is exactly the equation of a sphere of radius 1. Hence the point (l, m, n) always lies on the surface of this unit sphere, which is why a direction is uniquely represented by a point on the unit sphere.

4. Direction Cosines of a Line Joining Two Points

Let a line pass through the points A(x1, y1, z1) and B(x2, y2, z2). The direction ratios of this line are (x2 − x1, y2 − y1, z2 − z1). If the length AB = √[(x2 − x1)² + (y2 − y1)² + (z2 − z1)²], then the direction cosines of the line are:

l = (x2 − x1)/AB, m = (y2 − y1)/AB, n = (z2 − z1)/AB

Each direction cosine is simply the corresponding component divided by the distance between the points. The reverse direction, from B to A, would give direction cosines with opposite signs.

Example 5: Find the direction cosines of the line joining A(1, 2, 3) and B(4, 6, 7).

Solution: First find the direction ratios:

x2 − x1 = 4 − 1 = 3 y2 − y1 = 6 − 2 = 4 z2 − z1 = 7 − 3 = 4

The distance AB = √(3² + 4² + 4²) = √(9 + 16 + 16) = √41.

Hence the direction cosines are l = 3/√41, m = 4/√41, n = 4/√41.

Example 6: Find the direction cosines of the line joining the origin to the point (3, 4, 12).

Solution: The distance from the origin is √(3² + 4² + 12²) = √(9 + 16 + 144) = √169 = 13. Hence the direction cosines are l = 3/13, m = 4/13, n = 12/13. Notice that (3/13)² + (4/13)² + (12/13)² = (9 + 16 + 144)/169 = 1, so the identity holds.

5. Quick Revision Tables

Table 1

Quantity Formula
Direction cosine l cos α, where α is the angle with the x-axis
Direction cosine m cos β, where β is the angle with the y-axis
Direction cosine n cos γ, where γ is the angle with the z-axis
Fundamental identity l² + m² + n² = 1
DCs of x-axis (1, 0, 0)
DCs of y-axis (0, 1, 0)
DCs of z-axis (0, 0, 1)
DCs of reversed line (−l, −m, −n)

Table 2

Situation Direction cosines
Line joining A(x1,y1,z1) and B(x2,y2,z2) ((x2−x1)/AB, (y2−y1)/AB, (z2−z1)/AB)
Line joining origin and (x, y, z) (x/√(x²+y²+z²), y/√(x²+y²+z²), z/√(x²+y²+z²))
Line equally inclined to all axes (1/√3, 1/√3, 1/√3)
Line with l = m = 0 Parallel to the z-axis
Line with n = 0 Lies in the XY-plane

6. Mind Map

flowchart TD
    A[Direction Cosines] --> B[Definition]
    A --> C[Identity l sq + m sq + n sq = 1]
    A --> D[Of Coordinate Axes]
    A --> E[Of a Line Joining Two Points]
    B --> B1[l = cos alpha]
    B --> B2[m = cos beta]
    B --> B3[n = cos gamma]
    C --> C1[Unit vector property]
    C --> C2[Checks answers]
    D --> D1[x-axis 1,0,0]
    D --> D2[y-axis 0,1,0]
    D --> D3[z-axis 0,0,1]
    E --> E1[Divide differences by distance]
    E --> E2[Reverse line changes all signs]

7. Important Diagrams (SVG)

Direction Cosines of a Line x-axis y-axis z-axis Line L alpha Golden Rule: Direction cosines are cosines of the angles made with the positive axes, and they always satisfy l sq + m sq + n sq = 1.

Direction Cosines of a Segment A(x1,y1,z1) B(x2,y2,z2) l, m, n x2 - x1 z2 - z1 Golden Rule: Divide each coordinate difference by the length of the segment to get its direction cosines.

8. Common Mistakes

  1. Forgetting that the direction cosines must satisfy l² + m² + n² = 1, and accepting any triple as direction cosines.
  2. Using direction ratios (which can be scaled) in place of direction cosines without normalising them by the distance.
  3. Omitting the negative signs when the line direction is reversed, giving (−l, −m, −n) wrongly as (l, m, n).
  4. Confusing the angle with the y-axis and the angle with the z-axis while writing m and n.
  5. Forgetting to divide the differences (x2 − x1), (y2 − y1), (z2 − z1) by the actual distance when finding the direction cosines of a segment.
  6. Writing cos α as α itself, or mixing degrees and radians while computing the cosines.

9. Exam Tips

  1. Always verify your direction cosines with l² + m² + n² = 1; it catches almost every arithmetic slip.
  2. When only direction ratios are given, convert them to direction cosines by dividing each by the square root of the sum of their squares.
  3. Read the sign carefully: direction cosines of a reversed line are the negatives of the original ones.
  4. For a line joining two points, compute the three differences first, then the distance, then divide to save time.
  5. Practise the standard values such as cos 0°, cos 90°, cos 60° and cos 45° because they appear repeatedly in direction cosine problems.

10. Conclusion

Direction cosines provide the cleanest way to describe the direction of a line in space using three dimensionless numbers that always satisfy l² + m² + n² = 1. They are unique for a given direction and reduce to simple fractions for the coordinate axes and for equally inclined lines. By dividing coordinate differences by the distance between two points, we can find the direction cosines of any segment, and we can recover the angles that a line makes with the axes by taking inverse cosines. These ideas form the vocabulary used everywhere else in three dimensional geometry, from writing equations of lines to computing angles between them.