Equation of a Line in Space: Vector and Cartesian Forms (Class 12)
Updated 15 October 2026 · Fact-checked
A line through the point with position vector a, parallel to b, has vector equation r = a + λb. If a = (x₁, y₁, z₁) and b has direction ratios a, b, c, the Cartesian form is (x − x₁)/a = (y − y₁)/b = (z − z₁)/c. The angle between lines is that between their directions.
Understand Equation of a Line in Space
Direction cosines and ratios. If a line makes angles with the positive x-, y- and z-axes, its direction cosines are , , , with . Any numbers proportional to them are direction ratios. From direction ratios, (and similarly for , ). For the line through and , the direction ratios are .
Vector form. A line through the point with position vector and parallel to is
, .
Each value of gives one point of the line. Through two points: .
Cartesian form. With and direction ratios :
.
Setting each fraction equal to gives the general point , the most useful tool in this chapter.
Reading a line correctly. Before reading the point and direction ratios, every numerator must be of the form with coefficient 1. For , rewrite as : the point is and the direction ratios are .
Angle between two lines. With direction vectors and (or direction ratios and ),
,
taking the acute angle. Lines are perpendicular if and parallel if .
A point at a given distance. Along , the distance from the point is , so points at distance have .
Planes are not in the 2026-27 syllabus; the chapter is about lines only (NCERT Sections 11.2 to 11.4).
Equation of a Line in Space: formulas to remember
- Vector equation
- Through , parallel to .
- Cartesian equation
- Coefficients of x, y, z must be 1 before reading.
- Through two points
- Vector form: .
- Direction cosines
- Up to an overall sign.
- Angle between lines
- Acute angle between the lines.
- Perpendicular and parallel
- Use direction ratios only, not points.
How to solve Equation of a Line in Space questions
Use this routine for writing, reading and comparing lines.
- 1Identify a point on the line and a direction vector (from a given parallel vector or from two points).
- 2Write the vector form and the Cartesian form; they must match.
- 3When reading a given Cartesian line, first make each numerator , , with coefficient 1, adjusting denominators.
- 4For a general point, set each fraction equal to and write .
- 5For angles, use only the direction ratios: dot product over the product of magnitudes.
- 6For conditions (perpendicular, parallel, point on line), write the equation and solve for the unknown.
Equation of a Line in Space in real life
Each concept, met in an everyday situation. Read the situation, try the problem, then check the solution. The one-line hook is what to remember.
Points on a line at a given distance
Suppose a laser in a lab is fixed at (in metres) and its beam points along .
Write the equation of the beam and find the point on the beam 14 m from the laser.
Try it first, then show the solutionSolution
- , (the beam goes forward only).
- , so distance .
- : point .
Answer: ; the point is .
Memory hook: Distance along a line is λ times the length of the direction vector.
Perpendicular lines
Imagine a plumber joining two straight pipes whose directions are and .
Is the joint a right angle?
Try it first, then show the solutionSolution
- Dot product of the directions: .
- A zero dot product means the directions are perpendicular.
Answer: Yes, the pipes meet at .
Memory hook: Perpendicular lines: direction ratios multiply and add to zero.
Tricks to remember Equation of a Line in Space
Short memory aids. Say each one aloud once, then use it on a question the same day.
Point plus λ direction
Every line is 'a point plus λ times a direction': .
Use it when: Writing any line.
Clean numerators first
Make each numerator exactly (coefficient 1, x first) before reading points or direction ratios.
Use it when: Lines like or .
Angles ignore points
Only the denominators (direction ratios) decide angles, parallelism and perpendicularity.
Use it when: Angle and condition questions.
General point is your best friend
Put the fractions equal to λ to get a moving point; most 3D problems start here.
Use it when: Distances, feet of perpendiculars, intersections.
Equation of a Line in Space: solved examples
Ordered from board level to HOTS. Try each one before you open the solution.
Example 1: Line through a point parallel to a vector · 2 marks · Very short answerBoard level
Find the vector and Cartesian equations of the line through parallel to .
Try it first, then show the solutionSolution
- Vector: . (1 mark)
- Cartesian: . (1 mark)
Answer: ;
Example 2: Reading a line in non-standard form · 2 marks · Very short answerBoard level
For the line , find a point on it, its direction ratios and its direction cosines.
Try it first, then show the solutionSolution
- Rewrite: . (1 mark)
- Point ; direction ratios ; direction cosines . (1 mark)
Answer: Point ; d.r. ; d.c.
Example 3: Line through two points and a point on it · 3 marks · Short answerHarder board level
Find the equation of the line through and , and the point on it whose z-coordinate is 9.
Try it first, then show the solutionSolution
- Direction ratios: . Line: . (1 mark)
- General point: . (1 mark)
- : point . (1 mark)
Answer: ; point
Example 4: Angle between two lines · 3 marks · Short answerHarder board level
Find the angle between the lines and .
Try it first, then show the solutionSolution
- Direction ratios and . (½ mark)
- Dot product ; magnitudes and . (1½ marks)
- , so . (1 mark)
Answer:
Example 5: A parameter for perpendicular lines · 3 marks · Short answerHOTS / competency
Find so that the lines and are perpendicular. Show also that they can never be parallel.
Try it first, then show the solutionSolution
- Perpendicular: . (1 mark)
- Parallel would need . (1 mark)
- gives , but then . So no k makes them parallel. (1 mark)
Answer: ; never parallel.
Example 6: Case study: a drone's straight flight · 4 marks · Case-basedHOTS / competency
Suppose a drone starts at and flies straight in the direction (units in hundreds of metres).
(i) Write the vector equation of its path. (1 mark)
(ii) Find the points on the line at distance 6 units from P. (2 marks)
(iii) Does the point lie on the path? (1 mark)
Try it first, then show the solutionSolution
- (i) . (1 mark)
- (ii) , so distance . (1 mark)
- : ; : . (1 mark)
- (iii) ; then and . Yes, it lies on the path. (1 mark)
Answer: (i) (ii) and (iii) yes, with .
Where students lose marks in Equation of a Line in Space
The slips examiners see most often, and what to write instead.
Mistake: Reading direction ratios from an unclean numerator
Coefficients of x, y, z must be 1 and the variable must come first.
Wrong working
: direction ratio for z is 2.
Right working
: direction ratio .
Do this: Rewrite every numerator before reading.
Usually costs: 1 to 2 marks and every later step.
Mistake: Using the point instead of the direction
Angles and parallelism depend only on directions.
Wrong working
Angle between lines through and computed from these points.
Right working
Use the denominators and .
Do this: Circle the denominators before computing angles.
Usually costs: The answer.
Mistake: Forgetting the negative λ for distance
There are two points at a given distance, one on each side.
Wrong working
Only .
Right working
and .
Do this: Use unless the direction is restricted.
Usually costs: 1 mark.
Mistake: Mixing vector and Cartesian forms
Writing combines two notations.
Wrong working
.
Right working
Vector: ; Cartesian: written separately.
Do this: Write each form on its own line.
Usually costs: Half a mark.
Exam tips
- Equation-of-a-line and direction-cosine questions appeared in the 2023, 2024 and 2026 papers, often as 1-mark MCQs and as the first part of 5-mark questions.
- Always write the general point of a line; it is the starting point for most longer 3D questions.
- Give both vector and Cartesian forms when asked for 'the equation' without specifying.
- Planes are not in the 2026-27 syllabus; skip any old question that needs a plane equation.
- Leave non-standard angles as .
Practice questions on Equation of a Line in Space
Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.
Q1 · 1 mark · MCQBoard level
The direction ratios of the line are:
(a)
(b)
(c)
(d)Hint
Rewrite as .
Answer
(b) .
Q2 · 2 marks · Very short answerBoard level
Find the direction cosines of a line that makes equal angles with the three coordinate axes.
Hint
and .
Answer
.
Q3 · 2 marks · Very short answerBoard level
Write the Cartesian equation of the line through and .
Hint
Direction ratios are the differences of coordinates.
Answer
.
Q4 · 3 marks · Short answerHarder board level
Show that the lines and are parallel, and that they are not the same line.
Hint
Compare direction ratios; then test whether lies on the second line.
Answer
, so the lines are parallel. On the second line, gives , the point , which is not . So the lines are distinct parallel lines.
Q5 · 1 mark · Assertion-reasonHarder board level
Assertion (A): can be the direction cosines of a line.
Reason (R): Direction cosines satisfy .
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.Hint
Compute .
Answer
(d). The squares add to , so A is false; R is true.
Q6 · 2 marks · Very short answerHarder board level
Find the angle between two lines with direction ratios and .
Hint
Dot product 1; magnitudes each.
Answer
, so .
Q7 · 3 marks · Short answerHOTS / competency
Find the point where the line through and meets the xy-plane ().
Hint
General point .
Answer
. Point: .
Test your recall
Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.
1.Vector equation of a line through parallel to ?Show answer
.
2.Direction ratios of the line through and ?Show answer
.
3.Sum of squares of direction cosines?Show answer
1.
4.Condition for perpendicular lines?Show answer
.
5.General point of ?Show answer
.
6.Direction cosines of the x-axis?Show answer
.
Equation of a Line in Space: frequently asked questions
What is the difference between direction cosines and direction ratios?
Direction cosines are the cosines of the angles a line makes with the axes, and their squares add up to 1. Direction ratios are any three numbers proportional to them; dividing by the square root of the sum of their squares gives the direction cosines.
How do I convert a vector equation into Cartesian form?
From r = a + λb, read the point (x₁, y₁, z₁) from a and the direction ratios from b, then write (x − x₁)/b₁ = (y − y₁)/b₂ = (z − z₁)/b₃.
Is the line through two points a separate topic for 2026-27?
NCERT dropped it as a separate section, but the syllabus includes direction ratios of a line joining two points, so you should be able to write such a line using the difference of coordinates as its direction.
Which NCERT sections cover this topic?
Sections 11.2 (Direction Cosines and Direction Ratios of a Line), 11.3 (Equation of a Line in Space) and 11.4 (Angle between Two Lines) of Chapter 11 in NCERT Mathematics Part II for Class 12.
Are planes in the 2026-27 syllabus?
No. Equations of planes, angles between planes and distances from planes were dropped. The chapter covers lines only.