JEE maths study guide

Direction cosines and direction ratios for JEE maths

Direction cosines and direction ratios describe a line's direction in three dimensions. Direction cosines are the cosines of its oriented angles with the positive coordinate axes. A nonzero proportional triple gives direction ratios. For an oriented direction triple (a, b, c), division by √(a² + b² + c²) gives its direction cosines.

Made for: Indian JEE maths students who know three-dimensional coordinates and vector length.

What should you take away?

  • Direction cosines have a sum of squares equal to one.
  • Direction ratios can have any nonzero common scale factor.
  • A chosen orientation fixes the signs of all three direction cosines.
  • The all-zero triple cannot describe or normalize a direction.

What do direction cosines and direction ratios describe?

For a directed line, l = cos α, m = cos β, and n = cos γ are its direction cosines. The angles refer to the positive x-, y-, and z-axes.

These angles lie from 0° to 180°. The direction cosines satisfy l² + m² + n² = 1. Equivalently, they are the components of a unit vector along the chosen direction. They describe orientation, rather than a point where the line happens to pass.

Direction ratios are any nonzero common multiple of a direction-cosine triple. Thus (a, b, c) is a valid ratio triple when at least one entry is nonzero. Infinitely many triples describe the same undirected line. A positive scale preserves an oriented direction, while a negative scale reverses it.

To normalize an oriented triple, use R = √(a² + b² + c²). Its direction cosines are (a/R, b/R, c/R). The denominator is positive because the triple is not zero. The opposite orientation has the negative of all three entries, rather than an independent choice for each sign.

    How do two distinct points give normalized direction cosines?

    For the direction from P(−1, 2, 0) to Q(1, −1, 6), the coordinate differences are (2, −3, 6). The direction cosines are (2/7, −3/7, 6/7).

    Subtract P from Q in each coordinate. The differences are 1 − (−1) = 2, −1 − 2 = −3, and 6 − 0 = 6. Since the points are distinct, the triple is nonzero. These differences describe the particular orientation from P toward Q.

    Its length is R = √(2² + (−3)² + 6²) = √(4 + 9 + 36) = 7. Divide every component by 7. This gives l = 2/7, m = −3/7, and n = 6/7. The positive denominator keeps each component's sign.

    The sum of squared direction cosines is 4/49 + 9/49 + 36/49 = 1. The negative second entry means that the angle with the positive y-axis is obtuse. Reversal from Q toward P gives (−2/7, 3/7, −6/7). It describes the same line with the opposite orientation.

    • Subtract coordinates in the requested orientation.
    • Calculate the positive length of the difference triple.
    • Divide every component by that length and verify the squared sum.

    Which sign and zero-vector errors change the direction?

    Normalization needs a nonzero triple and one common positive length. A simultaneous sign reversal changes orientation. An arbitrary single-component sign change generally changes the line.

    A direction-ratio triple does not need a unit squared sum. For example, the worked ratio triple has squared sum 49 and is valid. Calling it a direction-cosine triple would be incorrect. Only its normalized version has the required squared sum of one.

    The familiar plus-or-minus normalization for an undirected line has one shared sign choice. All three direction cosines reverse together. Changing only the negative middle entry of the worked triple to positive does not give its reverse. The altered triple describes a different line direction.

    The triple (0, 0, 0) has no direction because its normalization would divide by zero. A zero component alone is valid. It means that the line direction is perpendicular to that coordinate axis. Two identical points give the all-zero difference triple and cannot determine a unique line direction.

      Can you normalize a new direction and identify its axis angles?

      An oriented direction is represented by (−4, 0, 3). Find its direction cosines and classify its angles with the positive coordinate axes.

      Calculate the positive norm of the given triple. Divide its three entries by the same norm. Use the signs of those normalized entries to classify the angles. A negative cosine gives an obtuse angle, zero gives 90°, and a positive cosine gives an acute angle in this example.

      Next compare the triple (8, 0, −6). Determine its common factor relative to the original triple before normalization. Make sure that your comparison separates an undirected line from its selected orientation. The zero middle entry does not remove the distinction between the two opposite directions.

      Answer: The norm is √(16 + 0 + 9) = 5, so the direction cosines are (−4/5, 0, 3/5). The x-axis angle is obtuse, the y-axis angle is 90°, and the z-axis angle is acute. The triple (8, 0, −6) is minus two times the original, so its normalized triple (4/5, 0, −3/5) reverses the orientation.

        What else should you know?

        Can direction ratios contain a zero?

        Yes. One or two entries can be zero. All three entries cannot be zero because a zero triple has no direction.

        Does every line have only one ratio triple?

        No. Any nonzero common scaling gives another ratio triple for the same undirected line. The sign of that scaling determines orientation.

        Can direction cosines be greater than one in magnitude?

        No. Each entry is a cosine and the squared sum is one. A value outside [−1, 1] indicates an invalid normalized triple.

        What should you do next?

        Apply the idea to one attempted problem. Ask a qualified teacher to resolve disputed mathematics.

        Try one maths problem

        What changed: Initial article prepared with Codex and its subagents, textbook sources, and a separate automated review. Mathematics reviewed and publication approved by AIR1 site owner on 2026-11-03. No independent professional review is claimed.