Direction Cosines and Direction Ratios of a Line | Definitions & Formulas

Last Updated on Jun 07, 2025
Download As PDF
IMPORTANT LINKS

Direction cosine is the cosine of the angle made by the line in the three-dimensional space, with the x-axis, y-axis, and z-axis and Direction ratio helps in knowing the components of a line or a vector with reference to the three-axis, the x-axis, y-axis, and z-axis.

What are Direction Cosines and Direction Ratios?

Direction cosines and direction ratios come into existence as soon as a vector comes into existence in a three-dimensional coordinate space. Direction ratios are the components of a vector along the x-axis, y-axis, and z-axis, and direction cosine is the cosine of the angle subtended by this line with the x-axis, y-axis, and z-axis.


Maths Notes Free PDFs
Topic PDF Link
General and Middle Term in Binomial Free Notes PDF Download PDF
Circle Study Notes Download PDF
Tangents and Normal to Conics Download PDF
Increasing and Decreasing Function in Maths Download PDF
Wheatstone Bridge Notes Download PDF
Alternating Current Notes Download PDF
Friction in Physics Download PDF
Drift Velocity Notes Download PDF
Chemical Equilibrium Notes Download PDF
Quantum Number in Chemistry Notes Download PDF

Direction Cosines: The direction cosine is the cosine of the angle subtended by this line with the x-axis, y-axis, and z-axis respectively. If the angles subtended by the line with the three axes are α, β, and γ, then the direction cosines are cos⁡(α), cos⁡(β), and cos⁡(γ) respectively.

 

The direction cosines for a vector is

,

,

.

The direction cosines are also represented by , , and we often represent the direction cosines as

,

,

.

Direction Ratios: Direction ratios are the components of a vector along the x-axis, y-axis, and z-axis respectively.

The direction ratios of a vector is respectively, and these values represent the component values of the vector along the -axis, -axis, and -axis.

Direction ratios of a vector line joining two points , and are . The direction ratios are useful to find the direction cosines of a line.

Direction Cosines of the Line Passing Through Two Points

Let and be two points on the line .

Let l,m, and n are the direction cosines of the line PQ, and let it makes angles α, β, and γ with x-axis, y-axis, and z-axis respectively.

Draw a perpendicular from and to the plane.

Let these perpendiculars meet the plane at and respectively.

Draw a perpendicular from to meet at .

Now in right angle triangle , .

Therefore,

Similarly, we get

Hence the direction cosines of the line segment joining the points and are , , and , where .

Test Series
131.1k Students
NCERT XI-XII Physics Foundation Pack Mock Test
323 TOTAL TESTS | 5 Free Tests
  • 3 Live Test
  • 163 Class XI Chapter Tests
  • 157 Class XII Chapter Tests

Get Started

Direction Cosines when Line does not Pass Through Origin

When the line does not pass through the origin then how one can find the direction cosines of the line. The answer is simple. Consider another fictitious line parallel to our line such that the second line passes through the origin. Now, the angles made by this line with the three axes will be the same as that made by our original line and hence the direction cosines of the angles made by this fictitious line with the axes will be the same for our original line as well.

Here, the line under question is labeled as OP. It passes through the origin and we are to find out the direction cosines of the line.

Let us assume that the magnitude of the vector is ‘r’ and the vector makes angles α, β, and γ with the coordinate axes. Now, using Pythagoras theorem, we can express the coordinates of the point P(x,y,z) as

where,

Now, we can replace , , and with , , and respectively. Then, we have

, , and

In the orthogonal system, we can represent in its unit vector components form as

Substitute the values of , , and in the above equation, we get

By the above statement, it can be said that the direction cosines are the coefficients of the unit vectors , , , where the unit vector is .

Relationship Between Direction Cosines

Let be any line through the origin which has direction cosines , , and .

Let be the point having coordinates and .

Then ……(equation 1)

From P drawPA,PB,PC perpendicular on the coordinate axis, so that OA=x, OB=y, OC=z.

Also, , ,

From triangle ,

Similarly, and

Hence from equation 1, we get

Hence we have the relationship between the direction cosines as .

Difference Between Direction Ratios and Direction Cosines

The difference between direction ratios and direction cosines are listed below:

Direction Cosines

Direction Ratios

The direction cosine is the cosine of the angle subtended by this line with the -axis, -axis, and -axis.

The direction ratios are the components of a vector along the -axis, -axis, and -axis

The direction cosines for a vector are , , .

The direction ratios of a vector are , ,

Direction Cosines and Direction Ratios Formulas

The formulas for direction cosines and direction ratios are tabulated below:

Description

Formula

Direction ratios of a vector .

, ,

Direction cosines for a vector .

, ,

Direction ratios of a vector line joining two points , and .

Direction cosines for a line passing through two points , and .

Relationship between the direction cosines

Solved Examples of Direction Cosines and Direction Ratios

Example 1: Find the direction cosines and direction ratios of the following vector: .

Solution: The direction ratios of are , , .

The direction cosinesare , , , where .

We know , then

Therefore, the direction cosines are , , .

Example 2: Find the direction cosines of a vector whose direction ratios are , , .

Solution: The direction cosines are , , , where .

Here , ,

We know , then

Therefore, the direction cosines are , , .

Example 3: Find the direction cosines of the line joining and .

Solution: The formula for the direction cosines for a line joining two points is as follows:

DirectionCosines=.

Here and

Substitute these values in the formula of direction cosines for a line joining two points, we get

DirectionCosines=

Therefore, the direction cosines of the line joining and are , , .

Example 4: Find the directional cosines for a line that makes , , and with the , , and axes respectively.

Solution: The directional cosines for the given line are,

, , and

, , and

Therefore, the directional cosines for the given line are , , and .

If you are checking Direction Cosines and Direction Ratios article, check related maths articles:

Difference between Line and Line Segment

Properties of Parallel Lines

Addition on Number Line

Distance between Two Lines

General Equation of a Line

Vertical Line

We hope that the above article is helpful for your understanding and exam preparations. Stay tuned to the Testbook App for more updates on related topics from Mathematics, and various such subjects. Also, reach out to the test series available to examine your knowledge regarding several exams.For better practice, solve the below provided previous year papers and mock tests for each of the given entrance exam:

Important Links
NEET Exam
NEET Previous Year Question Papers NEET Mock Test NEET Syllabus
CUET Exam
CUET Previous Year Question Papers CUET Mock Test CUET Syllabus
JEE Main Exam
JEE Main Previous Year Question Papers JEE Main Mock Test JEE Main Syllabus
JEE Advanced Exam
JEE Advanced Previous Year Question Papers JEE Advanced Mock Test JEE Advanced Syllabus

More Articles for Maths

FAQs For Direction Cosines and Direction Ratios

The direction ratio represents the components of a vector or a line with respect to the three-axis, and the direction cosines represent the angle subtended by the line with respect to the three-axis.

The direction ratios of a vector are , , and the direction cosines are , , .

The direction ratios of a vector is respectively, and these values represent the component values of the vector along the -axis, -axis, and -axis.

The direction cosine is the cosine of the angle subtended by this line with the latex]x[/latex]-axis, -axis, and -axis respectively. If the angles subtended by the line with the three axes are , , and , then the direction cosines are , , and .

Yes, the direction cosines can be zero. The direction cosine of , and axes are , and .

Yes, infinitely many sets of direction ratios exist for a line, all proportional to one another.

They are used in 3D geometry, physics (especially in vectors and motion), engineering, and computer graphics for determining orientation and angles.

No, they are not unique. Any scalar multiple of a set of direction ratios also represents the same line.

Yes, direction cosines can be negative depending on the direction of the line. For example, if the line is pointing in the negative x-direction, then the cosine of the angle it makes with the x-axis will be negative.

Direction ratios represent a vector along the line. They give the relative amount the line moves along the x, y, and z directions. It’s like saying “for every step in x, take this much in y and z.”

Report An Error