Equation of a Line in Space: Forms, Intersection and Shortest Distance
Updated 15 October 2026 · Fact-checked
A line in space is fixed by a point $\vec{a}$ on it and a direction $\vec{b}$. Its vector equation is $\vec{r} = \vec{a} + \lambda\vec{b}$; with $\vec{a} = (x_1, y_1, z_1)$ and $\vec{b} = (a, b, c)$, the Cartesian form is $\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}$, where a, b, c are direction ratios.
Understand Equation of a Line in Space
Point plus direction. Start at a point and move any multiple of a direction vector : every point of the line is , . Writing and equating components, , , ; eliminating gives the Cartesian (symmetric) form
The denominators are the direction ratios. A zero denominator is allowed: just means all along the line.
Through two points. Through and : , or . Three points are collinear when and are proportional. Use these displacement vectors, not the position vectors; that was the error the ISC 2025 examiners reported.
Standard form check. Before reading direction ratios, every numerator must be "variable minus number" with coefficient 1. For example, becomes , so the direction ratios are , not .
Axes. The x-axis is , that is ; a line parallel to the x-axis through is , .
Angle between two lines. With directions and , . Perpendicular: . Parallel: . A line parallel to a given one shares its direction ratios, as in the ISC 2025 honeybee question.
How two lines can sit. In space two lines are either parallel, intersecting, or skew (neither parallel nor meeting, so they lie in no common plane). Parallel and intersecting lines are coplanar.
Do they intersect? Write the general point of each line with its own parameter, equate two coordinates to find and , and test the third. If it agrees, the lines meet at that point; if not, and they are not parallel, they are skew.
Shortest distance between skew lines. The shortest segment between and is perpendicular to both lines, so it lies along . Its length is the projection of on that direction:
In Cartesian form the numerator is the determinant with rows , , . The lines intersect (are coplanar) exactly when this numerator is zero. For parallel lines with direction , .
Distance of a point from a line. For and the line , the general point is the foot of the perpendicular when ; solve for , then is the distance. Directly, .
Equation of a Line in Space: formulas to remember
- Vector form
- Through two points: replaced by .
- Cartesian form
- Coefficients of x, y, z must be 1 first.
- Angle between lines
- Perpendicular: .
- Skew lines SD
- Zero numerator: the lines intersect.
- Parallel lines
- Same direction .
- Point to line
- Or find the foot by .
How to solve Equation of a Line in Space questions
Most line questions follow one of three routines.
- 1Equation: find one point and one direction (from two points, or from a parallel line), then write both the vector and Cartesian forms.
- 2Relative position: compare directions first. Proportional means parallel (or the same line). Otherwise test for intersection with general points.
- 3Intersection: put ; solve two equations, check the third.
- 4Shortest distance: compute , then , divide by the modulus of the cross product and take the absolute value.
- 5Foot of a perpendicular: general point Q, vector PQ, set , solve for the parameter, find Q and PQ.
- 6Check: substitute the point you found into each line.
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.
Where a line meets a coordinate plane
Suppose a laser beam in a hall passes through the points (1, 2, 5) and (3, 3, 3), in metres, with the floor being the plane z = 0.
Find where the beam hits the floor.
Try it first, then show the solutionSolution
- Direction: ; line: .
- Floor: , so .
- Point: .
Answer: At (6, 4.5, 0).
Memory hook: To meet a plane, set its coordinate condition in the general point.
Angle between two lines
Imagine a tent pole whose top is at (0, 0, 4) with two guy ropes pegged at (3, 0, 0) and (0, 4, 0) (metres).
Find the angle between the two ropes.
Try it first, then show the solutionSolution
- Directions: and .
- .
Answer: .
Memory hook: Angle between lines = dot of directions over product of lengths.
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 + λ direction
Every line equation is "a point you know, plus a free multiple of the way it points".
Use it when: Writing any line.
Clean before you read
Make each numerator "x − number", "y − number", "z − number" with coefficient 1 before reading direction ratios.
Use it when: Lines given in awkward form.
P-I-S order
Parallel? (directions proportional) then Intersect? (general points agree) else Skew.
Use it when: Classifying two lines.
SD = shift · cross ÷ |cross|
Shift between the given points, dotted with the cross of the directions, over its length.
Use it when: Shortest distance.
Equation of a Line in Space: solved examples
Ordered from board level to HOTS. Try each one before you open the solution.
Example 1: Vector to Cartesian · 1 mark · MCQBoard level
The Cartesian form of is:
(a)
(b)
(c)
(d)
Try it first, then show the solutionSolution
- Point (2, −1, 4), direction (1, 2, −1).
Answer: (b).
Example 2: Line through two points and collinearity · 2 marks · Short answerBoard level
Find the vector and Cartesian equations of the line through and , and show that lies on it.
Try it first, then show the solutionSolution
- : ; . (1 mark)
- , so C is on the line (). (1 mark)
Answer: As above; C corresponds to .
Example 3: Angle and a perpendicularity condition · 3 marks · Short answerHarder board level
Find the angle between the lines and . Find k if the line is perpendicular to the first line.
Try it first, then show the solutionSolution
- , ; . (1 mark)
- , . (1 mark)
- Perpendicular: , so . (1 mark)
Answer: ; .
Example 4: Testing for intersection · 3 marks · Short answerHarder board level
Show that the lines and intersect, and find the point of intersection.
Try it first, then show the solutionSolution
- General points: and . (1 mark)
- y: ; x: , so . (1 mark)
- z: and : equal, so the lines meet at . (1 mark)
Answer: They intersect at (2, 1, 1).
Example 5: Shortest distance between skew lines · 4 marks · Long answerHarder board level
Find the shortest distance between and .
Try it first, then show the solutionSolution
- . (1 mark)
- ; . (1 mark)
- . (1 mark)
- ; non-zero, so the lines are skew. (1 mark)
Answer: units.
Example 6: Foot of the perpendicular from a point · 4 marks · Case-basedHOTS / competency
Suppose a straight water pipe runs along and a tap is at (metres). A short connecting pipe is laid from P perpendicular to the main pipe.
(i) Find the point Q where it joins the main pipe. (3 marks)
(ii) Find the length of the connecting pipe. (1 mark)
Try it first, then show the solutionSolution
- General point ; .
- , so .
- .
- , length .
Answer: (i) ; (ii) 1 m.
Where students lose marks in Equation of a Line in Space
The slips examiners see most often, and what to write instead.
Mistake: Collinearity from position vectors
The ISC 2025 examiners reported candidates using the position vectors of P, Q, R instead of , .
Do this: Subtract coordinates first; collinear when the displacement vectors are proportional.
Usually costs: 1 mark.
Mistake: Reading direction ratios from an unclean form
Numerators like or change the sign or scale of the direction ratio.
Wrong working
read as direction ratio 4.
Right working
: direction ratio −4.
Do this: Rewrite with coefficient +1 on each variable.
Usually costs: 1 to 2 marks.
Mistake: Missing the third-coordinate check
Finding λ and μ from two equations does not prove intersection.
Do this: Always substitute into the third equation and state the conclusion.
Usually costs: 1 mark.
Mistake: Forgetting the modulus in the SD formula
A negative dot product gives a negative "distance".
Do this: Write and quote the positive value with units.
Usually costs: 1 mark.
Exam tips
- Write both vector and Cartesian forms unless the question asks for one.
- Lay out the cross product as a determinant; examiners award a mark for it.
- State "the lines are skew" or "the lines intersect" explicitly after a shortest-distance calculation.
- Use different parameters (λ and μ) for the two lines.
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) 2, 4, 6
(b) 2, −4, 3
(c) 2, −4, 6
(d) 2, 4, 3Hint
Rewrite as and .
Answer
(b).
Q2 · 1 mark · Very short answerBoard level
Write the Cartesian equation of the line through parallel to .
Hint
Same direction ratios.
Answer
.
Q3 · 3 marks · Short answerHarder board level
Find k so that the lines and intersect, and find the point of intersection.
Hint
Use the x and z equations to get both parameters.
Answer
, , ; point .
Q4 · 2 marks · Short answerHarder board level
Find the distance between the parallel lines and .
Hint
Use .
Answer
; .
Q5 · 1 mark · Assertion-reasonHarder board level
Assertion (A): The lines and are skew.
Reason (R): Two lines that do not intersect are skew.
(a) Both true, R explains A. (b) Both true, R does not explain A. (c) A true, R false. (d) Both false.Hint
Is (1, 2, 3) on the first line?
Answer
(d): the directions are proportional and (1, 2, 3) lies on both, so they are the same line; and parallel lines do not meet but are not skew.
Q6 · 2 marks · Short answerHOTS / competency
Find the distance of from the line through the origin with direction ratios 2, 1, 2.
Hint
.
Answer
; .
Q7 · 4 marks · Case-basedHOTS / competency
Case study: Suppose two drones fly along and (metres).
(i) Show that the paths are not parallel. (1 mark)
(ii) Find the shortest distance between the paths. (2 marks)
(iii) The safety rule needs at least 3 m separation. Is it met? (1 mark)Hint
.
Answer
(i) (1, 1, 0) and (−1, 1, 0) are not proportional. (ii) m. (iii) No: the paths come within 2 m.
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.Equations of the y-axis?Show answer
, .
3.Condition for two lines to be perpendicular?Show answer
.
4.What are skew lines?Show answer
Lines that are neither parallel nor intersecting; they lie in no common plane.
5.If for non-parallel lines, what follows?Show answer
The lines intersect (they are coplanar).
Equation of a Line in Space: frequently asked questions
How do I convert a Cartesian line to vector form?
Read the point from the numerators and the direction from the denominators (after cleaning the form), then write \vec{r} = \vec{a} + \lambda\vec{b}.
How do I know whether two lines are skew?
First check the directions: if they are not proportional, the lines are not parallel. Then compute (\vec{a}_2 - \vec{a}_1) \cdot (\vec{b}_1 \times \vec{b}_2): zero means they intersect, non-zero means they are skew.
Can a direction ratio be zero?
Yes. A zero in the denominator means that coordinate stays constant along the line; for example, a line with direction ratios 1, 0, 0 is parallel to the x-axis.
Is the distance of a point from a line in the ISC syllabus?
Yes. The 2027 syllabus lists the distance of a point from a line and the shortest distance between two lines alongside the equations of lines.
How many marks do lines carry in ISC?
Three-dimensional geometry carries 6 marks. In 2025 a 2-mark item asked for a line parallel to a given line and a 1-mark item tested collinearity.