How Two Lines in Space Can Neither Meet Nor Run Parallel
Find direction cosines and ratios of a line, write vector and Cartesian equations of lines, decide whether two lines are coplanar, intersecting or skew, and calculate the shortest distance between skew lines and from a point to a line.
How are straight lines described in three-dimensional space?
On a flat page, two lines either meet or are parallel. In space there is a third possibility: lines that never meet and are not parallel, like a flyover crossing above a road. Vector and Cartesian equations let us test which case applies and measure the gap between the lines.
This lesson covers direction cosines and ratios, equations of a line, coplanar and skew lines, and shortest distances.
This lesson covers direction cosines and ratios, equations of a line, coplanar and skew lines, and shortest distances.
How do you find the direction cosines and direction ratios of a line joining two points?
**The line joining and has direction ratios , and , and dividing each by the length PQ gives its direction cosines, which satisfy .
Worked example.** For and :
- Direction ratios: 2, 3 and 6
-
- Direction cosines: , and
Check. .
Worked example 2. A line makes equal angles with all three axes. Then and , so each direction cosine is , and the angle with each axis is about for the positive choice.
An everyday example. A zip-line cable from a hilltop platform down to a landing point has direction ratios given by the differences between the coordinates of its two ends.
The substance. A line has two sets of direction cosines — and — one for each way along it.
Worked example.** For and :
- Direction ratios: 2, 3 and 6
-
- Direction cosines: , and
Check. .
Worked example 2. A line makes equal angles with all three axes. Then and , so each direction cosine is , and the angle with each axis is about for the positive choice.
An everyday example. A zip-line cable from a hilltop platform down to a landing point has direction ratios given by the differences between the coordinates of its two ends.
The substance. A line has two sets of direction cosines — and — one for each way along it.
How do you write the vector and Cartesian equations of a line through one point or through two points?
**A line through the point with position vector , parallel to , has vector equation and Cartesian equation ; a line through two points uses the difference of their position vectors as .
Worked example (one point).** The line through parallel to is
Worked example (two points). Through and , the direction is , so the line is . Setting in returns the second point, as a check.
Angle between lines. For direction vectors and , .
An everyday example. A drone flying in a straight line from a known starting point in a fixed direction has position , where grows with time.
The substance. The same line has many equations — any point on it, and any multiple of its direction vector, give a valid form.
Worked example (one point).** The line through parallel to is
Worked example (two points). Through and , the direction is , so the line is . Setting in returns the second point, as a check.
Angle between lines. For direction vectors and , .
An everyday example. A drone flying in a straight line from a known starting point in a fixed direction has position , where grows with time.
The substance. The same line has many equations — any point on it, and any multiple of its direction vector, give a valid form.
How do you decide whether two lines are coplanar, skew or intersecting?
**Two non-parallel lines and are coplanar, and therefore intersect, exactly when ; otherwise they are skew — neither parallel nor meeting.
Cartesian test.** For lines through and with direction ratios and , they are coplanar when
Worked example (intersecting). Consider and . The determinant with rows , and is , so the lines are coplanar. Solving the two sets of equations shows that they meet at .
An everyday example. A flyover and the road passing beneath it run along skew lines — they are not parallel, yet they never meet.
The substance. Not parallel does not mean intersecting — in three dimensions, two lines chosen at random are almost always skew.
Cartesian test.** For lines through and with direction ratios and , they are coplanar when
Worked example (intersecting). Consider and . The determinant with rows , and is , so the lines are coplanar. Solving the two sets of equations shows that they meet at .
An everyday example. A flyover and the road passing beneath it run along skew lines — they are not parallel, yet they never meet.
The substance. Not parallel does not mean intersecting — in three dimensions, two lines chosen at random are almost always skew.
How do you find the shortest distance between two skew lines and the distance of a point from a line?
**The shortest distance between skew lines and is , and the distance of a point P from a line through A with direction is .
Worked example (skew lines).** For and :
-
- , with magnitude
-
- Shortest distance units
Worked example (point from a line). For and the line through the origin with direction , , so the distance is units.
An everyday example. Engineers checking the clearance between a power cable and a pipeline that cross at different heights calculate exactly this shortest distance.
The substance. The shortest distance runs along the common perpendicular — which is why , perpendicular to both lines, appears in the formula.
Worked example (skew lines).** For and :
-
- , with magnitude
-
- Shortest distance units
Worked example (point from a line). For and the line through the origin with direction , , so the distance is units.
An everyday example. Engineers checking the clearance between a power cable and a pipeline that cross at different heights calculate exactly this shortest distance.
The substance. The shortest distance runs along the common perpendicular — which is why , perpendicular to both lines, appears in the formula.
Exam tip
What earns full marks on lines in three dimensions?
**Write each line in the form first, labelling , , and clearly before using any formula.**
- Direction ratios from coordinate differences; cosines divide by the length
- and
- Coplanar when
- Shortest distance: that product's size divided by
The trap. Reading the point from as . **The point has , so change the sign inside the numerator.**
- Direction ratios from coordinate differences; cosines divide by the length
- and
- Coplanar when
- Shortest distance: that product's size divided by
The trap. Reading the point from as . **The point has , so change the sign inside the numerator.**
Did you know
How do air traffic controllers keep planes on crossing routes apart?
Flight routes are, to a first approximation, straight lines in three-dimensional space, and two routes at different heights usually form skew lines.
Controllers keep aircraft on crossing routes separated both horizontally and vertically, so that even at their closest approach the gap stays safe. The shortest distance between two skew lines is the geometric starting point for that check.
The same idea helps robots plan arm movements and lets games predict whether moving objects will collide.
Controllers keep aircraft on crossing routes separated both horizontally and vertically, so that even at their closest approach the gap stays safe. The shortest distance between two skew lines is the geometric starting point for that check.
The same idea helps robots plan arm movements and lets games predict whether moving objects will collide.
Exam relevance
How are lines in three dimensions tested in JEE Main and JEE Advanced?
Three Dimensional Geometry is a recurring JEE Main chapter, and JEE Advanced often combines lines with planes in the same question.
What gets asked. Shortest distance between skew lines, the point of intersection of two lines, conditions for coplanarity with a parameter, angles between lines, and the foot of the perpendicular from a point to a line.
Question types. Mostly numerical-value questions.
The trap that costs marks. Taking the wrong sign when reading a point from a Cartesian equation, which spoils every later step.
What gets asked. Shortest distance between skew lines, the point of intersection of two lines, conditions for coplanarity with a parameter, angles between lines, and the foot of the perpendicular from a point to a line.
Question types. Mostly numerical-value questions.
The trap that costs marks. Taking the wrong sign when reading a point from a Cartesian equation, which spoils every later step.
Key takeaways
What must you be able to do from this lesson?
- Direction cosines and ratios: coordinate differences, divided by the length for cosines, with
- Equations of a line: and the matching Cartesian form, through one or two points
- Coplanar and skew lines: test whether
- Distances: the shortest distance between skew lines, and for a point
Can you find the direction cosines of the line joining and ?
- Equations of a line: and the matching Cartesian form, through one or two points
- Coplanar and skew lines: test whether
- Distances: the shortest distance between skew lines, and for a point
Can you find the direction cosines of the line joining and ?