Parametric equations of a line
The parametric equation of a line is the basic way of describing a line in the plane or in space.
Motivation
How could we describe a line in the plane? We know that two different points are enough to determine a line – let’s call them A and B. In other words: given two different points, exactly one line p passes through them:
How else could we describe this line, using vectors? We can add to the picture a vector
The vector
The new lines p1 and p2 have the same direction as the line p and the same direction as the vector
We can write any line as
The direction vector of a line
If we have a line
We have a line p with two points A, B on it. The direction vector will be equal to the directed line segment
The vector
The end point of the vector
Drawn in the picture:
We can see that the green vector
Parametric equations of a line
We have a line p, a point A that lies on it and a direction vector
If we add a direction vector to a point on the line, we get a point X that also lies on the line. In effect, we are just “moving the point A in the direction of the vector by a distance equal to the magnitude of
What would happen if we took just half of the vector
We can see that whenever we add any multiple of the direction vector
In fact, whichever point X on the line p we choose, we can always write it as the sum of the point A and the direction vector
In other words, if we substituted all the real numbers for t in this equation one after another, we would get all the points that make up the line p – the whole line p. This equation is called the parametric equation of the line
We can replace the previous equation with a system of equations. If the point X has coordinates (x, y), the point A has coordinates (a1, a2) and the vector
which can be rewritten as the system of equations mentioned above (we write the x-coordinate and the y-coordinate separately):
Every line in the plane can be described by such a system of equations.
Restricting the parameter
In the previous section we said that if we substitute all the real numbers for the parameter t in the parametric equation, we get a line. What would happen if we did not take all the real numbers, but only half of them – say, just the non-negative real numbers?
We would get a ray. Let’s go back to this picture…
…and we can see that for all positive multiples (that is, positive t) of the direction vector
The dashed line shows the points we would get if we substituted all the negative numbers for t instead.
If we substituted all the numbers from the unit interval [0, 1] for t, we would get a line segment whose length equals the magnitude of the direction vector. We would get this red line segment:
Examples
In the plane we have two points A(−1, 3) and B(2, 5).
-
Find the parametric equations of the line p through the points A, B. First we find the direction vector. We take the directed line segment
, so the direction vector has coordinatesThe parametric equation of a line has the general form
, so after substituting we get the equationwhich we can rewrite as a system like this:
Because we are describing a line, t ∈ ℝ. The picture follows a little further down.
-
Find the parametric equations of the ray r that starts at the point A and passes through the point B. We use the same parametric equation and just restrict the parameter t. All that matters now is whether t ∈ [0, ∞) or t ∈ (−∞, 0].
We obtained the direction vector from the directed line segment
, which means that the start point is A and the end point is B. That is exactly what we need – our ray should also start at A. So we do not have to reverse the direction using negative values of the parameter, and we take t from the non-negative interval t ∈ [0, ∞).The picture showing the solution of this problem and the previous one:
-
Find the midpoint of the line segment AB. There are two ways to do it. The first is to add the coordinates of the points A, B and divide the resulting coordinates by two. Let’s do that:
But we can get the same point using the direction vector. We got it from the directed line segment
, which means that when we add , we get the point B. So if we add half of the direction vector to A, we get the midpoint of the line segment :We can see that we got the same point. A picture to check:
Chapters: Parametric equations of a line, General equation of a line, Normal vector of a line, Slope-intercept form of a line, Equation of a line in 3D