Learning Objectives
- Write the vector, parametric, and symmetric equations of a line through a given point in a given direction, and a line through two given points.
- Find the distance from a point to a given line.
Equations for a Line in Space
Let’s first explore what it means for two vectors to be parallel. Recall that parallel vectors must have the same or opposite directions. If two nonzero vectors, and , are parallel, we claim there must be a scalar, , such that . If and have the same direction, simply choose . If and have opposite directions, choose . Note that the converse holds as well. If for some scalar , then either and have the same direction or opposite directions , so and are parallel. Therefore, two nonzero vectors and are parallel if and only if for some scalar . By convention, the zero vector is considered to be parallel to all vectors.
As in two dimensions, we can describe a line in space using a point on the line and the direction of the line, or a parallel vector, which we call the direction vector (Figure 1). Let be a line in space passing through point . Let be a vector parallel to . Then, for any point on line , we know that is parallel to . Thus, as we just discussed, there is a scalar, , such that , which gives

Figure 1. Vector is the direction vector for .
Using vector operations, we can rewrite this equation as
.
Setting and , we now have the vector equation of a line:
.
Equating components, the Vector Equation of a Line shows that the following equations are simultaneously true: , , and . If we solve each of these equations for the component variables , , and , we get a set of equations in which each variable is defined in terms of the parameter and that, together, describe the line. This set of three equations forms a set of parametric equations of a line:
.
If we solve each of the equations for assuming , , and are nonzero, we get a different description of the same line:
.
Because each expression equals , they all have the same value. We can set them equal to each other to create symmetric equations of a line:
We summarize the results in the following theorem.
THEOREM: parametric and symmetric equations of a line
A line parallel to vector and passing through point can be described by the following parametric equations:
.
If the constants , , and are all nonzero, then can be described by the symmetric equation of the line:
.
The parametric equations of a line are not unique. Using a different parallel vector or a different point on the line leads to a different, equivalent representation. Each set of parametric equations leads to a related set of symmetric equations, so it follows that a symmetric equation of a line is not unique either.
Example: equations of a line in space
Find parametric and symmetric equations of the line passing through points and .
try it
Find parametric and symmetric equations of the line passing through points and .
Sometimes we don’t want the equation of a whole line, just a line segment. In this case, we limit the values of our parameter . For example, let and be points on a line, and let and be the associated position vectors. In addition, let . We want to find a vector equation for the line segment between and . Using as our known point on the line, and as the direction vector equation, the Vector Equation of a Line gives
.
Using properties of vectors, then
.
Thus, the vector equation of the line passing through and is
.
Remember that we didn’t want the equation of the whole line, just the line segment between and . Notice that when , we have , and when , we have . Therefore, the vector equation of the line segment between and is
, .
Going back to the Vector Equation of a Line, we can also find parametric equations for this line segment. We have
.
Then, the parametric equations are
, , , .
Example: parametric equations of a line segment
Find parametric equations of the line segment between the points and .
try it
Find parametric equations of the line segment between points and .
Distance between a Point and a Line
We already know how to calculate the distance between two points in space. We now expand this definition to describe the distance between a point and a line in space. Several real-world contexts exist when it is important to be able to calculate these distances. When building a home, for example, builders must consider “setback” requirements, when structures or fixtures have to be a certain distance from the property line. Air travel offers another example. Airlines are concerned about the distances between populated areas and proposed flight paths.
Let be a line in the plane and let be any point not on the line. Then, we define distance from to as the length of line segment , where is a point on such that is perpendicular to (Figure 2).

Figure 2. The distance from point to line is the length of .

Figure 3. Vectors and form two sides of a parallelogram with base and height , which is the distance between a line and a point in space.
By Theorem: Area of a Parallelogram, vectors and form two sides of a parallelogram with area . Using a formula from geometry, the area of this parallelogram can also be calculated as the product of its base and height:
.
We can use this formula to find a general formula for the distance between a line in space and any point not on the line.
THEOREM: distance from a point to a line
Let be a line in space passing through point with direction vector . If is any point not on , then the distance from to is
.
Example: calculating the distance from a point to a line
Find the distance between t point and line .
try it
Find the distance between point and the line with parametric equations , , .
Watch the following video to see the worked solution to the above Try IT.
Relationships between Lines
Given two lines in the two-dimensional plane, the lines are equal, they are parallel but not equal, or they intersect in a single point. In three dimensions, a fourth case is possible. If two lines in space are not parallel, but do not intersect, then the lines are said to be skew lines (Figure 5).

Figure 5. In three dimensions, it is possible that two lines do not cross, even when they have different directions.

Figure 6. Determine the relationship between two lines based on whether their direction vectors are parallel and whether they share a point.
Example: classifying lines in space
For each pair of lines, determine whether the lines are equal, parallel but not equal, skew, or intersecting.
- : , ,
: , , - :
: - : , ,
:
try it
Describe the relationship between the lines with the following parametric equations:
, ,
, , .
Candela Citations
- CP 2.45. Authored by: Ryan Melton. License: CC BY: Attribution
- Calculus Volume 3. Authored by: Gilbert Strang, Edwin (Jed) Herman. Provided by: OpenStax. Located at: https://openstax.org/books/calculus-volume-3/pages/1-introduction. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Access for free at https://openstax.org/books/calculus-volume-3/pages/1-introduction