Direction Cosines of a Vector
On this page· 13 sections
Source & scope. Class 12 Mathematics, Chapter 10 Vector Algebra, Section 10.2 Some Basic Concepts, the Direction Cosines sub-topic. Builds on: Position Vector of a Point. Next: Direction Ratios of a Vector, which generalises direction cosines to any proportional set of numbers.
Source & scope. Class 12 Mathematics, Chapter 10 Vector Algebra, Section 10.2 Some Basic Concepts, the Direction Cosines sub-topic. Builds on: Position Vector of a Point. Next: Direction Ratios of a Vector, which generalises direction cosines to any proportional set of numbers.
The direction cosines of a vector are the cosines of the angles the vector makes with the positive directions of the x, y and z axes, usually denoted l, m and n. If α, β, γ (the direction angles) are the angles made by a vector with the positive x, y, z axes respectively, then l = cos α, m = cos β, n = cos γ, and these three numbers always satisfy l² + m² + n² = 1.
At a glance
- Direction angles (α, β, γ): the angles a vector makes with the positive x, y, z axes respectively.
- Direction cosines (l, m, n): l = cos α, m = cos β, n = cos γ.
- For the position vector of P(x, y, z) with |OP| = r: l = x/r, m = y/r, n = z/r.
- Key identity: for any vector's direction cosines.
- P's coordinates can be re-expressed as (lr, mr, nr) using its direction cosines.
Learning objectives
- Define the direction angles and direction cosines of a vector.
- Derive l = x/r, m = y/r, n = z/r for the position vector of P(x, y, z).
- State and use the identity l² + m² + n² = 1.
- Compute the direction cosines of a given vector in component form.
Prerequisite knowledge
The reader should know the position vector of a point and its magnitude (|OP| = √(x² + y² + z²)), and basic right-triangle trigonometry (cosine of an angle as adjacent/hypotenuse).
Core explanation
Direction angles. Consider the position vector OP of a point P(x, y, z). Let α, β, γ be the angles made by the vector OP with the positive directions of the x-axis, y-axis and z-axis respectively — these three angles are called the direction angles of the vector.
Direction cosines. The cosine values of the direction angles — that is, cos α, cos β and cos γ — are called the direction cosines of the vector, usually denoted by the letters l, m and n respectively. So by definition:
Deriving l, m, n from coordinates. Let r = |OP| = √(x² + y² + z²). Looking at the right-angled triangle OAP formed by O, P and the foot of the perpendicular A from P onto the x-axis, the angle at O is α, the hypotenuse is OP = r, and the side along the x-axis has length x; so cos α = x/r, i.e. . By exactly the same reasoning applied to the y-axis and z-axis triangles, and . Equivalently, the coordinates of P can be written in terms of its direction cosines as (lr, mr, nr).
The fundamental identity. Since l = x/r, m = y/r, n = z/r, squaring and adding gives
So for any vector whatsoever, its direction cosines always satisfy — this identity is one of the most frequently used facts in 3D vector geometry and is a direct consequence of r being exactly the magnitude √(x² + y² + z²).
Why direction cosines matter. Unlike magnitude (which tells you "how far"), direction cosines tell you precisely "which way" a vector points, expressed as three numbers each lying between −1 and 1, with the built-in normalisation l² + m² + n² = 1 making them directly comparable between different vectors regardless of their individual lengths.
Key terms
- Direction angles (α, β, γ) — the angles a vector makes with the positive x, y, z axes.
- Direction cosines (l, m, n) — the cosines of the direction angles: l = cos α, m = cos β, n = cos γ.
- Fundamental identity — l² + m² + n² = 1, true for every vector's direction cosines.
- r — the magnitude |OP| of the vector, used in l = x/r, m = y/r, n = z/r.
Diagram / figure guidance
Draw the position vector OP of a point P(x, y, z) in 3D, with dashed perpendiculars from P onto each axis forming three right triangles. Mark the angle α at O between OP and the positive x-axis, β between OP and the y-axis, and γ between OP and the z-axis. Label the hypotenuse of each small triangle as r = |OP|.
Worked example
Find the direction cosines of the vector a = 3i − 4j + 12k.
Here the components are x = 3, y = −4, z = 12, so the magnitude is
By the formulas l = x/r, m = y/r, n = z/r:
Check: l² + m² + n² = (9 + 16 + 144)/169 = 169/169 = 1. ✓
So the direction cosines of a are (3/13, −4/13, 12/13).
Common misconceptions
- "Direction cosines can be any real numbers." Since each is a cosine of a genuine angle, every direction cosine lies between −1 and 1, and together they must satisfy l² + m² + n² = 1 — not every triple of numbers in [−1, 1] qualifies unless this identity holds.
- "l, m, n are the same as the vector's components." They are related but not identical: l, m, n are the components of the unit vector in the same direction (i.e. l = x/r, not x); the actual components x, y, z equal lr, mr, nr respectively.
- "A vector's direction cosines depend on its magnitude." They don't — scaling a vector by any positive scalar changes its magnitude r but leaves x/r, y/r, z/r (and hence l, m, n) unchanged, since direction cosines describe direction only.
- "Direction cosines and direction ratios are the same thing." Direction cosines are specifically normalised so that l² + m² + n² = 1; direction ratios (the next article) are any numbers proportional to l, m, n and generally do not satisfy that identity.
Exam application (JEE)
JEE frequently asks students to compute the direction cosines of a vector given in component form, or to use the identity l² + m² + n² = 1 to find a missing direction cosine when the other two (or a relation between them) are given. A very common trap is computing l, m, n correctly but forgetting to divide by the magnitude r — i.e. reporting the direction ratios (unnormalised) instead of the true direction cosines.
Frequently asked questions
- What are direction cosines? Direction cosines are the cosines of the angles a vector makes with the positive x, y and z axes, denoted l, m, n respectively.
- What is the relation between direction cosines and the coordinates of a point? For a point P(x, y, z) with |OP| = r, the direction cosines are l = x/r, m = y/r, n = z/r.
- What is the fundamental identity satisfied by direction cosines? For any vector, l² + m² + n² = 1 — a direct consequence of r being the magnitude of the vector.
- How do you find the direction cosines of a vector given in component form? Divide each component by the vector's magnitude: for a = xi + yj + zk with |a| = r, the direction cosines are (x/r, y/r, z/r).
- Can a direction cosine be negative? Yes — a negative direction cosine simply means the vector makes an obtuse angle with that particular axis.
Practice questions (original practice questions)
- The direction cosines of the vector 2i + 2j + k are:
- (a) (2, 2, 1)
- (b) (2/3, 2/3, 1/3)
- (c) (1/2, 1/2, 1)
- (d) (2/9, 2/9, 1/9)
- Answer: (b) — Magnitude = √(4+4+1) = 3, so l = 2/3, m = 2/3, n = 1/3.
- If the direction cosines of a vector are l = 1/2, m = 1/2, then n equals (taking n positive):
- (a) 0
- (b) 1/2
- (c) 1/√2
- (d) 1
- Answer: (c) — l² + m² + n² = 1 ⟹ 1/4 + 1/4 + n² = 1 ⟹ n² = 1/2 ⟹ n = 1/√2.
- The direction cosines of a vector always satisfy:
- (a) l + m + n = 1
- (b) l² + m² + n² = 1
- (c) lmn = 1
- (d) l² − m² + n² = 1
- Answer: (b) — This is the fundamental identity derived from r² = x² + y² + z².
- For the vector a = i − 2j + 2k, the direction cosine corresponding to the y-axis (m) is:
- (a) −2/3
- (b) 1/3
- (c) 2/3
- (d) −1/3
- Answer: (a) — |a| = √(1+4+4) = 3, so m = −2/3.
- If a vector makes equal angles with all three coordinate axes, each direction cosine equals:
- (a) 1/3
- (b) 1/√3
- (c) 1
- (d) √3
- Answer: (b) — Equal angles ⟹ l = m = n; then 3l² = 1 ⟹ l = 1/√3.
Quick revision
- Direction angles α, β, γ: angles with positive x, y, z axes.
- Direction cosines l = cos α, m = cos β, n = cos γ.
- For P(x, y, z), r = |OP|: l = x/r, m = y/r, n = z/r.
- Identity: l² + m² + n² = 1 always.
- Coordinates can be recovered as (lr, mr, nr).
Related articles
- Builds on: Position Vector of a Point
- Next: Direction Ratios of a Vector
- See also: Component Form of a Vector
- See also: Projection of a Vector on a Line
- Related topics: Algebra of Vectors in Component Form, Angle Between Two Vectors (Dot Product Formula), Anticommutative Property of the Vector Product, Area of a Parallelogram Using Vectors, Area of a Triangle Using Vectors, Associative Property of Vector Addition