• NEET
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • Class 6-10
      • Class 6th
      • Class 7th
      • Class 8th
      • Class 9th
      • Class 10th
    • View All Options
      • Online Courses
      • Offline Courses
      • Distance Learning
      • Hindi Medium Courses
    • NEET
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE (Main+Advanced)
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE Main
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • CUET
      • Class 12th
  • NEW
    • JEE MAIN 2025
    • NEET
      • 2024
      • 2023
      • 2022
    • Class 6-10
    • JEE Main
      • Previous Year Papers
      • Sample Papers
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • JEE Advanced
      • Previous Year Papers
      • Sample Papers
      • Mock Test
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • NEET
      • Previous Year Papers
      • Sample Papers
      • Mock Test
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • NCERT Solutions
      • Class 6
      • Class 7
      • Class 8
      • Class 9
      • Class 10
      • Class 11
      • Class 12
    • CBSE
      • Notes
      • Sample Papers
      • Question Papers
    • Olympiad
      • NSO
      • IMO
      • NMTC
    • ALLEN e-Store
    • AOSAT
    • ALLEN for Schools
    • About ALLEN
    • Blogs
    • News
    • Careers
    • Request a call back
    • Book home demo
JEE PhysicsJEE Chemistry
Home
JEE Maths
Direction Cosines

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

  1. l² + m² + n² = 1
  2. 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+c2​a​,m=a2+b2+c2​b​,n=a2+b2+c2​c​
  1. 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+c2​a​,m=a2+b2+c2​b​,n=a2+b2+c2​c​

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θ=l1​l2​+m1​m2​+n1​n2​

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)(3​1​,3​1​,3​1​)
  • 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=3​1​
DCs = (3​1​,3​1​,3​1​)


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

  1. Find DCs of line joining A(1, 2, 3) and B(4, 6, 9).
  2. Line has DRs 5, 12, 13. Find its DCs.
  3. If l=73​,m=72​, find n.
  4. Prove cos2α+cos2β+cos2γ=1.
  5. 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

Frequently Asked Questions

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 2025 - 26)


Choose class
Choose your goal
Preferred Mode
Choose State
  • About
    • About us
    • Blog
    • News
    • MyExam EduBlogs
    • Privacy policy
    • Public notice
    • Careers
    • Dhoni Inspires NEET Aspirants
    • Dhoni Inspires JEE Aspirants
  • Help & Support
    • Refund policy
    • Transfer policy
    • Terms & Conditions
    • Contact us
  • Popular goals
    • NEET Coaching
    • JEE Coaching
    • 6th to 10th
  • Courses
    • Online Courses
    • Distance Learning
    • Online Test Series
    • International Olympiads Online Course
    • NEET Test Series
    • JEE Test Series
    • JEE Main Test Series
    • CUET Test Series
  • Centers
    • Kota
    • Bangalore
    • Indore
    • Delhi
    • More centres
  • Exam information
    • JEE Main
    • JEE Advanced
    • NEET UG
    • CBSE
    • NCERT Solutions
    • NEET Mock Test
    • CUET
    • Olympiad
    • NEET 2025 Answer Key

ALLEN Career Institute Pvt. Ltd. © All Rights Reserved.

ISO