No. Opposite directions have opposite signs for DCs.
Yes, depending on direction relative to axis.
Yes. Use l^2+m^2+n^2=1
Not directly. But DCs of the normal vector describe plane orientation.
They help find angles, construct line equations, and perform vector analysis.
Join ALLEN!
(Session 2026 - 27)
Choose class
Choose your goal
Preferred Mode
Choose State
Direction Cosines
In 3D geometry, direction cosines play a key role in understanding the orientation of a line in space. Direction Cosines are the cosines of the angles that a line makes with the positive x, y, and z axes in three-dimensional space. Represented as l=cosα,m=cosβ,andn=cosγ, they indicate the orientation of a line relative to each coordinate axis. Together, these values form a unit vector, satisfying the identity l2+m2+n2=1. Direction cosines are essential in vector geometry, helping describe the direction of lines, resolve vectors, and calculate angles between them. They are particularly useful in physics, engineering, and competitive exams like JEE.
1.0What Are Direction Cosines?
The direction cosines of a line are the cosines of the angles between the line and the positive x, y, and z coordinate axes.
Let a line make angles α, β, and γ with the x, y, and z axes, respectively.
Then, the direction cosines are:
l = cos α
m = cos β
n = cos γ
The triple (l, m, n) is called the set of direction cosines (DCs) of the line.
2.0Key Properties of Direction Cosines
l² + m² + n² = 1
If a line is parallel to a vector a = ai + bj + ck, then:
Direction ratios (DRs) are a, b, c
Direction cosines are: l=a2+b2+c2a,m=a2+b2+c2b,n=a2+b2+c2c
Direction cosines are unit vectors in the direction of the line.
3.0Extended Theory of Direction Cosines
Geometric Meaning
Imagine a line in 3D space pointing in any direction. To describe how that line is oriented, we observe the angles it makes with the three coordinate axes. The cosines of these angles are the direction cosines.
DCs vs DRs
Feature
Direction Ratios (DRs)
Direction Cosines (DCs)
Definition
Any proportional set of values representing a line's direction
Cosines of angles the line makes with axes
Form
Any triple (a, b, c)
A unit vector (l, m, n)
Magnitude
Not necessarily 1
Always 1 (i.e.l2+m2+n2=1)
Usage
Used to find the line equation
Used to find angles with axes
4.0Converting Direction Ratios to Direction Cosines
Given direction ratios a, b, c, convert them into direction cosines using:
l=a2+b2+c2a,m=a2+b2+c2b,n=a2+b2+c2c
Relationship:
l2+m2+n2=1
Always valid for any direction cosines because they form a unit vector.
Use in Line Equations
A line passing through point P(x0,y0,z0) with direction cosines (l, m, n):
x=x0+lr,y=y0+mr,z=z0+nr
5.0Dot Product and Direction Cosines
Given two lines with DCs:
Line 1: (l1,m1,n1)
Line 2: (l2,m2,n2)
Then: cosθ=l1l2+m1m2+n1n2
Angles with Axes
For vector A = ai+bj+ck:
Angle with x-axis: cos−1(a∣A∣)cos−1(∣A∣a)
Angle with y-axis: cos−1(b∣A∣)cos−1(∣A∣b)
Angle with z-axis: cos−1(c∣A∣)cos−1(∣A∣c)
6.0Applications
Physics (forces, velocity)
Engineering (stress analysis)
Computer Graphics (rotation, rendering)
7.0Special Cases
Equal angles with all axes: (13,13,13)(31,31,31)
Along x-axis: (1, 0, 0)
Along y-axis: (0, 1, 0)
Along z-axis: (0, 0, 1)
8.0Solved Examples on Direction Cosines
Example 1: Find the direction cosines of a line through origin and (2, -3, 6).
Solution:
DRs = (2, -3, 6) Magnitude = 7
DCs = (27,−37,67)(72,7−3,76)
Example 2: A line makes equal angles with x, y, and z axes. Find its DCs.
Solution:
l2=1⇒l=31 DCs = (31,31,31)
Example 3: Find angle between lines with DCs (1/3, 2/3, 2/3) and (2/3, 2/3, 1/3).
Solution:
cosθ=92+94+92=98⇒θ=cos−1(98)
9.0Practice Questions on Direction Cosines
Find DCs of line joining A(1, 2, 3) and B(4, 6, 9).
Line has DRs 5, 12, 13. Find its DCs.
If l=73,m=72, find n.
Prove cos2α+cos2β+cos2γ=1.
DCs = (21,21,22): Find angle with z-axis.
Table of Contents
1.0What Are Direction Cosines?
2.0Key Properties of Direction Cosines
3.0Extended Theory of Direction Cosines
4.0Converting Direction Ratios to Direction Cosines
5.0Dot Product and Direction Cosines
5.1Angles with Axes
6.0Applications
7.0Special Cases
8.0Solved Examples on Direction Cosines
9.0Practice Questions on Direction Cosines
Direction Cosines: Definition, Properties, Extended Theory