Equations of Lines in 3-Space
In 2-space, a line could be described by a vector equation or by one scalar equation. In 3-space, the vector equation still works perfectly, but a single scalar equation no longer describes a line at all. This page shows how to write lines in 3-space, and how to describe one using two planes instead.
Key ideas
Section titled “Key ideas”Why there’s no scalar equation of a line in 3-space
Section titled “Why there’s no scalar equation of a line in 3-space”In 2-space, the scalar equation works because there is only one direction perpendicular to a line (up to scalar multiples), so the normal pins down the line’s direction.
In 3-space, a whole flat fan of directions is perpendicular to any given vector. A single equation has solutions forming a plane (see linear equations in 2-space and 3-space), not a line. So a line in 3-space needs either a vector (or parametric) equation, or two scalar equations, one for each of two planes that meet in the line.
Vector and parametric equations
Section titled “Vector and parametric equations”Exactly as in 2-space, a line through with direction vector is
where and . In parametric form:
If you know two points and on the line, use (or any non-zero multiple of it, to keep the numbers small) and either point for .
A zero component in means that coordinate never changes. For example, the line has for every point, so it lies in the plane . IB courses write the same line with column vectors, ; it means exactly the same thing.
Symmetric equations (an aside)
Section titled “Symmetric equations (an aside)”If none of is zero, solve each parametric equation for and set the results equal:
These are the symmetric equations of the line. You’ll see them in some textbooks; they’re really two scalar equations in disguise (the first fraction equals the second, and the second equals the third).
Is a point on the line?
Section titled “Is a point on the line?”Substitute the point into the parametric equations and solve each one for . The point is on the line only if all three give the same .
A line as the intersection of two planes
Section titled “A line as the intersection of two planes”To describe a line with scalar equations, find two planes that contain it:
- From parametric to planes: solve one parametric equation for and substitute into the other two. Each result is the equation of a plane containing the line.
- From planes to parametric: solve the two plane equations together, letting one variable be the parameter (as in linear equations in 2-space and 3-space).
A quick check for the second direction: the line lies in both planes, so its direction is perpendicular to both normals. The cross product is a direction vector for the line.
Two lines in space
Section titled “Two lines in space”Two lines in 3-space are always in exactly one of four situations:
| Relationship | Directions parallel? | Common points |
|---|---|---|
| Coincident (the same line) | yes | all of them |
| Parallel and distinct | yes | none |
| Intersecting | no | exactly one |
| Skew | no | none |
Skew lines are new in 3-space: they point in different directions but never meet, like a road and an overpass crossing above it.
To decide which case you have, write the lines with different parameters, and , then:
- Are the directions parallel? Check whether is a scalar multiple of .
- If yes: test whether a point of one line is on the other (all three coordinates). On it means coincident; not on it means parallel and distinct.
- If no: set the components equal. That gives three equations in and . Solve two of them, then check the third. If it works, the lines intersect (substitute or to get the point). If it fails, the lines are skew.
The next page has more practice with this test, and also covers how a line meets a plane.
The angle between two lines is the angle between their direction vectors, using the dot product. Lines don’t have an “arrow” direction, so we always give the acute angle (between and ). The absolute value takes care of that:
This works for any two non-parallel lines, even skew ones. If the dot product is , the lines are perpendicular.
Worked examples
Section titled “Worked examples”Example 1: From a point and a direction
Section titled “Example 1: From a point and a direction”Write vector and parametric equations of the line through with direction vector , and find the point where .
Solution.
For : . Notice is for every point, because the direction vector has no -component.
Example 2: Through two points, and testing points
Section titled “Example 2: Through two points, and testing points”Find a vector equation of the line through and . Then decide whether and are on the line.
Solution. , so
For :
All three agree, so is on the line.
For : gives , and ✓, but . is not on the line, even though two of the coordinates matched.
Example 3: From parametric equations to two planes
Section titled “Example 3: From parametric equations to two planes”Write the line , , as the intersection of two planes.
Solution. From the first equation, . Substitute into the other two:
The line is the intersection of the planes and .
Check with , the point : ✓ and ✓.
Example 4: From two planes to a vector equation
Section titled “Example 4: From two planes to a vector equation”The line is the intersection of the planes and . Find a vector equation of .
Solution. Add the equations to eliminate both and :
Then the first equation gives , so . Let :
Check with the cross product: ✓. And the point satisfies both planes: ✓ and ✓.
Example 5: Intersecting or skew?
Section titled “Example 5: Intersecting or skew?”Classify the lines
Solution. The directions and aren’t multiples (the -components would need a multiplier of , but the -components would need ), so the lines aren’t parallel. Set the components equal:
Add the and equations to eliminate : , so . Then the equation gives .
Check the equation: , but . It fails, so there is no common point. The lines are skew.
You can see what’s happening: on is the point , and on is . Same and , but passes units above there.
Example 6: The angle between two lines
Section titled “Example 6: The angle between two lines”Find the acute angle between and .
Solution. Use the direction vectors and :
Without the absolute value you’d get , which is the obtuse angle between the two vectors. The lines make both angles where they cross, and the one we report is the acute one: .
(These two lines happen to be skew, which is fine: the angle only depends on the directions.)
Common mistakes
Section titled “Common mistakes”Writing a single scalar equation for a line in 3-space. An equation like is a plane. A line in 3-space needs a vector or parametric equation, or two scalar equations.
Testing only two coordinates. In Example 2, point matched the line in and but not in . All three components must give the same .
Using a position vector as the direction. The direction vector through and is , not or themselves.
Dividing by zero in symmetric equations. If a direction component is , that coordinate is constant. Write it separately (for example, ) instead of putting a in a denominator.
Using the same parameter for two different lines. When you work with two lines at once, give them different parameters, like and . Otherwise you’re forcing both lines to be at the “same time”, which is a different question.
Concluding that lines intersect after solving only two of the three equations. Two equations in two unknowns, and , almost always have a solution, so finding one proves nothing. In Example 5, the and equations gave and , but the equation failed, so the lines are skew. Always substitute into the third equation before you call the lines intersecting.
Practice
Section titled “Practice”1. (Warm-up) Write vector and parametric equations of the line through with direction vector . Find the point where .
Solution
For : .
2. (Warm-up) State a point on the line and a direction vector: , , .
Solution
At the point is . The coefficients of give the direction vector .
3. (Warm-up) Is the point on the line ?
Solution
gives . Then ✓ and ✓.
Yes, the point is on the line (at ).
4. (Core) Find vector and symmetric equations of the line through and .
Solution
, so use :
Symmetric equations:
Check : gives ✓.
5. (Core) Find a vector equation of the line through parallel to the line . Are the two lines the same?
Solution
Parallel lines share a direction vector:
Is on the given line? gives , but then . So the lines are parallel and distinct.
6. (Core)
- (a) Write a vector equation of the line through parallel to the -axis.
- (b) Explain why the equation does not describe a single line in 3-space.
Solution
(a) The -axis has direction :
(b) In 3-space, is free in : every point with works, for any . Those points form a plane (parallel to the -axis), not a line.
7. (Core) A line passes through and .
- (a) Write a vector equation and parametric equations for the line.
- (b) Write its symmetric equations, then use them to describe the line as the intersection of two planes in the form .
Solution
(a) Direction: .
Check: gives , which is ✓.
(b) Solve each parametric equation for and set them equal:
Take the equations two at a time. The first two give , so . The last two give , so , or .
The line is the intersection of and .
Check : ✓ and ✓. Check : ✓ and ✓.
8. (Core) Let and .
- (a) Show that the lines intersect, and find the point of intersection.
- (b) Find the acute angle between the lines, to one decimal place.
Solution
(a) and aren’t multiples, so the lines aren’t parallel. Set the components equal:
Add and : , so , and then gives .
Check : and ✓. All three work, so the lines intersect. With in : . Check with in : ✓.
(b)
9. (Challenge) Where does the line cross the -plane? Where does it cross the -plane?
Solution
The -plane is : gives , so the point is .
The -plane is : gives , so the point is .
10. (Challenge) Find a vector equation of the line of intersection of the planes and , using the cross product for the direction.
Solution
Direction: the line is perpendicular to both normals.
For a point, set : and . Adding gives , then . The point is .
Check with , the point : ✓ and ✓.
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
When you compare two lines, give them different parameters ( and ). The angle between two lines is the acute angle between their direction vectors; give angles in degrees, rounded to one decimal place.
Foundations
Section titled “Foundations”H1. (Foundations) A line passes through with direction vector .
- (a) Write a vector equation and parametric equations of the line.
- (b) Find the point on the line where .
- (c) Write symmetric equations of the line.
H2. (Foundations) Decide whether each point is on the line . Show the value of from each coordinate.
- (a)
- (b)
H3. (Core) The line passes through and .
- (a) Find a direction vector with the smallest possible whole-number components.
- (b) Write vector and parametric equations of .
- (c) Write in symmetric form. Explain what you must do differently with the -coordinate.
- (d) Find the point on with -coordinate .
H4. (Core) Write a vector equation for each line given in symmetric form.
- (a) . Then decide whether is on this line.
- (b) ,
H5. (Core) Let . Classify each pair of lines as parallel and distinct, or coincident. Justify your answer.
- (a) and
- (b) and
H6. (Core) Let and .
- (a) Show that the lines intersect, and find the point of intersection.
- (b) Find the angle between the lines.
Challenge
Section titled “Challenge”H7. (Challenge) Two aircraft fly straight paths near an airport. Measure positions in kilometres from the control tower, with east, north, and the altitude. Aircraft A flies level along , and aircraft B climbs along . (The paths are hypothetical, and and are just parameters, not times.)
- (a) Do the two flight paths cross? Justify your answer fully.
- (b) Find the angle between the two paths.
- (c) Air traffic controllers care about whether two aircraft are at the same place at the same time. Explain why paths that do cross don’t automatically mean the aircraft would meet.
H8. (Challenge) Let and .
- (a) Find the value of for which the lines intersect, and find the point of intersection.
- (b) Describe how the lines are related for every other value of . Explain.
H9. (Challenge) Lin is checking whether and intersect. Here is her work:
“Set the parts equal: . Set the parts equal: . Subtracting gives , so and . The lines intersect at , which is the point .”
- (a) Find and explain Lin’s error.
- (b) Classify the two lines correctly.
- (c) Lin’s point is on . Find the point of with the same - and -coordinates, and describe where it is compared with Lin’s point.
H10. (Challenge) (IB style) The lines and have equations
- (a) Show that and are not parallel.
- (b) Show that and are skew.
- (c) Find the acute angle between and .