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.
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 ✓.
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.
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) Represent the line through and with a vector equation, with parametric equations, and as the intersection of two planes.
Solution
Direction: .
For the planes: is already one. From , , so , which is .
The line is the intersection of and .
Check : ✓ and ✓.
8. (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 .
9. (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 ✓.