Free Mathematics Class 12 CBSE notes · practise this chapter with an AI quiz

← All study notes

How to Describe the Path of a Drone Flying in a Straight Line

Define direction cosines and direction ratios and prove l^2 + m^2 + n^2 = 1, find them for the line through two points, and write vector and Cartesian equations of a line through a point parallel to a vector or through two points.

How do you pin down a straight line in three-dimensional space?

On a flat page, a slope and a point fix a line. In space a line can tilt any way, so we need three numbers for its direction and one point it passes through. A drone flying straight from one rooftop to another traces exactly such a line.

This part covers direction cosines and ratios, the line through two points, and the vector and Cartesian equations of a line.

What are the direction cosines and direction ratios of a line, and why is l^2 + m^2 + n^2 = 1?

**If a directed line makes angles , and with the , and axes, its direction cosines are , , ; any three numbers proportional to them are direction ratios; and .

Proof of the relation.** Take a point on a line through the origin, with . Projecting onto the axes gives , and . Since ,



From ratios to cosines. If the direction ratios are , , , divide each by , using the same sign throughout.

Worked example. Direction ratios give , so the direction cosines are



Check: .

An everyday example. A kite string stretching up from a child's hand makes definite angles with the east, north and vertical directions, captured by three direction cosines.

The substance. A line has two sets of direction cosines, one for each way along it — reversing the direction changes all three signs.

How do you find the direction cosines and direction ratios of the line joining two points?

**For the line through and , the direction ratios are , , , and dividing them by the distance gives the direction cosines.

The formulae:**



Worked example. For and , the direction ratios are and , so



Collinearity test. Points , and are collinear when the direction ratios of and are proportional. For , and , gives and gives — proportional, so the points are collinear.

An everyday example. A zipline from a hilltop platform to a lower landing point has its direction fixed entirely by the coordinates of its two ends.

The substance. **Direction ratios from to are the negatives of those from to ** — both describe the same line.

How do you write the vector and Cartesian equations of a line through a given point parallel to a given vector?

**A line through the point with position vector parallel to has vector equation ; if the point is and has direction ratios , its Cartesian equation is .

Why.** Any point on the line satisfies for some real , so .

Worked example. The line through parallel to :





A point on the line. Putting gives , which makes all three fractions equal to .

An everyday example. A laser beam leaving a pointer in a fixed direction traces , with measuring how far along the beam you are.

The substance. A zero in a denominator of the Cartesian form is allowed — it means that coordinate stays constant along the line.

How do you write the equation of a line through two points and convert between vector and Cartesian forms?

**The line through points with position vectors and is , and through and its Cartesian form is .

Worked example — two points.** The line through and has direction :



Cartesian to vector. From , read the point and direction :



An everyday example. A metro line running straight between two stations is fully described once the positions of the two stations are known.

The substance. The same line has many equations — any point on it and any multiple of its direction vector give a valid form.
Exam tip

What earns full marks on direction cosines and equations of lines?

**Write the point and the direction vector separately before building either form, and make every numerator look like .

-
Direction cosines**: , with
- From ratios: divide by
- Two points: ratios , ,
- Vector form: , or through two points
- Cartesian form:

The trap. Reading the direction ratio straight from . **Rewrite it as first, so the ratio is , not .**
Did you know

How do 3D animation programs move objects along straight paths?

When an animated object slides from one spot to another, the software stores the start point and the end point and moves it along .

As runs from to , the object glides smoothly from start to finish, and places it exactly halfway.

This simple vector equation of a line, applied to vast numbers of points, is behind much of the smooth motion in animated scenes and games.
Exam relevance

How are direction cosines and equations of lines tested in JEE Main?

Three Dimensional Geometry is a JEE Main unit, and direction cosines and line equations are its starting tools.

What gets asked. Direction cosines from ratios or from two points, **using to find a missing cosine, collinearity of three points, and converting line equations between vector and Cartesian forms, often with a point found from a parameter value. These lead to angles between lines and shortest distances, which JEE Advanced combines with planes.

Question types. Multiple-choice and numerical-value questions.

The trap that costs marks. Misreading direction ratios** from equations not written in the standard form.
Key takeaways

What must you be able to do from this part?

- Direction cosines and ratios: are cosines of the angles with the axes, with ; ratios give cosines
- Line joining two points: ratios are coordinate differences; divide by the distance for cosines
- Point and direction: and
- Two points: ; convert forms by reading off the point and the direction

Write the vector and Cartesian equations of the line through and , and explain what the in its direction ratios tells you.

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Three Dimensional Geometry — Part 1Create a free account
← Back to all articles