Skip to main content

Section 3.2 Vector Equations of Lines

Sets of vectors can be used to represent various geometric objects in 2 and 3 dimensions. First, we will consider using vectors to represent lines in \(\mathbb{R}^2\text{,}\) and then in \(\mathbb{R}^3\text{.}\) In \(\mathbb{R}^2\text{,}\) it is simpler to represent lines in Cartesian form, using its slope and \(y\)-intercept, for example. However, in 3D, lines do not have a “slope” or “\(y\)-intercept”, in the same sense. Then, the vector form will make describing lines in 3D much easier.

Subsection 3.2.1 Intro to Vector Parametric Form of a Line in the Plane

Recall that in algebra, a line is given by a Cartesian equation, e.g. of the form \(y = mx + b\text{,}\) where \(x, y\) are variables, and \(m, b\) are constants (slope-intercept form). More precisely, a line is an (infinite) set of points in the plane. In particular, the line \(y = mx + b\) could be represented as the set,
\begin{equation*} \set{(x,mx + b): x \in \mathbb{R}} \end{equation*}
That is, the set of all points of the form \((x,mx + b)\text{,}\) where \(x\) ranges over all real numbers. The number \(x\) here is called a parameter, because it is a quantity which specifies each point on the line. Here, it happens to represent the \(x\)-coordinate of the line, but its label does not change the line. That is,
\begin{equation*} \set{(x,mx + b): x \in \mathbb{R}} = \set{(t,mt + b): t \in \mathbb{R}} \end{equation*}
both represent the same set of points, and the same line. We typically represent parameters by \(t\text{.}\) Representing points in the plane as position vectors, this line can be written as the set of all vectors,
\begin{equation*} \set{\begin{bmatrix} t \\ mt + b \end{bmatrix}: t \in \mathbb{R}} \end{equation*}
We can rewrite this vector in terms of the part which depends on the parameter \(t\) and that part which doesn't,
\begin{equation*} \set{t \begin{bmatrix} 1 \\ m \end{bmatrix} + \begin{bmatrix} 0 \\ b \end{bmatrix}: t \in \mathbb{R}} \end{equation*}
Roughly, the \(y\)-intercept \(b\) specifies a "starting point" for the line, and the slope \(m\) specifies the "direction" the line is in (when moving 1 unit right, we move \(m\) units up).
Using the language of vectors, we can form a more vector focused form of a line.
Suppose we want a line to pass through the point \(\vec{r}_0 = (x_0, y_0)\text{.}\) This vector will act as a “starting point” for the line. Then, we specify another vector \(\vec{v} = (a,b)\text{,}\) which represents the direction from the starting point \(\vec{r}_0\) which we want the line to travel, called a direction vector. Note that a line goes in two opposite directions, so \(-\vec{v}\) would also work. Then, consider adding some multiple of \(\vec{v}\) to \(\vec{r}_0\text{.}\) Say, of the form,
\begin{equation*} \vec{r}_0 + t \vec{v} = \begin{bmatrix} x_0 \\ y_0 \end{bmatrix} + t \begin{bmatrix} a \\ b \end{bmatrix} \end{equation*}
where \(t \in \mathbb{R}\text{.}\) The resuling vectors, for varying \(t\text{,}\) trace out a line in the plane. As \(t\) runs from \(-\infty\) to \(\infty\text{,}\) the vectors sweep out the entire line. Then, we say that the set,
\begin{equation*} \set{\vec{r}_0 + t \vec{v}: t \in \mathbb{R}} \end{equation*}
is the vector parametric form of the line.
Note that the direction vector \(\vec{v}\) is not unique, because any other vector parallel to it would also specify the same line. Also, the point on the line is not unique, because we could have used any other point on the line.
Another way to think about this, is that \(\vec{r}\) is a point on the line if and only if \(\vec{r} - \vec{r}_0\) is parallel to \(\vec{v}\text{,}\) i.e. \(\vec{r} - \vec{r}_0 = t \vec{v}\text{,}\) which is an equivalent equation.
More explicitly, we can compare components,
\begin{align*} \begin{bmatrix} x \\ y \end{bmatrix} \amp = \begin{bmatrix} x_0 \\ y_0 \end{bmatrix} + t \begin{bmatrix} a \\ b \end{bmatrix}\\ \begin{bmatrix} x \\ y \end{bmatrix} \amp = \begin{bmatrix} x_0 + ta \\ y_0 + tb \end{bmatrix} \end{align*}
Then, by equating components, this results in the equations,
\begin{equation*} \boxed{\begin{cases} x = x_0 + at \\ y = y_0 + bt \end{cases} \qquad -\infty \lt t \lt \infty} \end{equation*}
This is called the scalar parametric form of a line. You may have encountered this form if you have studied parametric equations in pre-calculus or calculus.
Another method of specifying a line is to specify two points \(\vec{r}_0, \vec{r}_1\) on the line. This is because a direction vector for the line is the difference between the points, \(\vec{v} = \vec{r}_1 - \vec{r}_0\text{,}\) and one of the points (say \(\vec{r}_0\)) can be used as the starting point. Thus, the vector parametric form is,
\begin{equation*} \boxed{\vec{r} = \vec{r}_0 + t (\vec{r}_1 - \vec{r}_0) \qquad -\infty \lt t \lt \infty} \end{equation*}
Notice that \(\vec{r}_0\) is on the line, corresponding to \(t = 0\text{,}\) and the point \(\vec{r}_1\) is on the line, corresponding to \(t = 1\text{.}\)

Subsection 3.2.2 Lines Using Two Points

Recall that a line can also be specified using two points \((x_1, y_1), (x_2, y_2)\text{.}\) Then, a direction vector is the vector that is the difference of the points, as vectors,
\begin{equation*} \vec{v} = \vecii{x_2 - x_1}{y_2 - y_1} \end{equation*}
Then, using the point \(\vec{r}_0 = (x_1, y_1)\) as a refernce point, the vector parametric equation of the line is again \(\vec{r} = \vec{r}_0 + t \vec{v}\text{.}\) Or, in scalar parametric form,
\begin{equation*} \begin{cases} x = x_1 + t(x_2 - x_1) \\ y = y_1 + t(y_2 - y_1) \end{cases} \qquad -\infty \lt t \lt \infty \end{equation*}

Subsection 3.2.3 Lines in \(\mathbb{R}^3\)

In \(\mathbb{R}^3\text{,}\) the equation of a line builds off the case for \(\mathbb{R}^2\text{.}\) Notice that in Cartesian coordinates, it is unclear how to extend the plane equation \(y = mx + b\text{,}\) to an equation in \(\mathbb{R}^3\) involving all of \(x, y, z\text{.}\)
Again, a line can be completely determined by a point (say \(\vec{r}_0 = (x_0, y_0, z_0) \in \mathbb{R}^3\)), and a vector (say \(\vec{v} = (a,b,c) \in \mathbb{R}^3\)).
Then, if \(\vec{r} = (x,y,z)\) is a point on the line, then \(\vec{r} - \vec{r}_0\) is parallel to \(\vec{v}\text{.}\) That is, \(\vec{r} - \vec{r}_0 = t \vec{v}\) for some \(t \in \mathbb{R}\text{.}\) Then, the line can be written as,
Then, similarly, we can compare components, to obtain the scalar parametric form of a line,
\begin{equation*} \boxed{\begin{cases} x = x_0 + at \\ y = y_0 + bt \\ z = z_0 + ct \end{cases} \qquad -\infty \lt t \lt \infty} \end{equation*}
Again, the direction vector \(\vec{v}\) and point \(\vec{r}_0\) are both not unique.
Similarly, we can use two points \(\vec{r}_0, \vec{r}_1\) to specify the line, given by,
\begin{equation*} \vec{r} = \vec{r}_0 + t (\vec{r}_1 - \vec{r}_0) \qquad -\infty \lt t \lt \infty \end{equation*}

Subsection 3.2.4 Cartesian Equation of a Line in \(\mathbb{R}^3\)

Using some algebraic manipulations, we can eliminate the parameter \(t\text{,}\) to write the equation of a line in Cartesian form. Recall that,
\begin{equation*} \begin{cases} x = x_0 + at \\ y = y_0 + bt \\ z = z_0 + ct \end{cases} \qquad -\infty \lt t \lt \infty \end{equation*}
Then, solving for \(t\) in each equation,
\begin{equation*} t = \frac{x - x_0}{a} \quad t = \frac{y - y_0}{b} \quad t = \frac{z - z_0}{c} \end{equation*}
For every \(t\text{,}\) the three quantities on the right-hand side of these equations must be equal. That is,
\begin{equation*} \boxed{\frac{x - x_0}{a} = \frac{y - y_0}{b} = \frac{z - z_0}{c}} \end{equation*}
This is the Cartesian equation of a line in \(\mathbb{R}^3\text{.}\) Really, it is two equations, say,
\begin{equation*} \frac{x - x_0}{a} = \frac{y - y_0}{b} \qquad \text{and} \qquad \frac{y - y_0}{b} = \frac{z - z_0}{c} \end{equation*}

Subsection 3.2.5 Affine Combination Form of a Line

Let \(\vec{u}, \vec{v}\) be vectors. Then, consider the line segment connecting the two heads of the vectors in standard position. The midpoint of this line segment is the point \(\frac{1}{2}(\vec{u} + \vec{v})\text{.}\) That is, the linear combination,
\begin{equation*} \frac{1}{2} \vec{u} + \frac{1}{2} \vec{v} \end{equation*}
More generally, by varying the weights of this linear combination, but requiring that the weights sum to 1, we can reach every point along this line segment. Further, if we allow the weights to vary over all real numbers (but still require them to sum to 1), then we can access all points on the line extending in the direction of this segment. Equivalently, the line along \(\vec{b} - \vec{a}\text{.}\)
Then, if we are given two points \(\vec{u}, \vec{v}\) in the plane, we can form the line between them by considering the set of all linear combinations of the vectors, where the weights sum to 1. We specify this by denoting one weight by \(t\text{,}\) and the other weight by \(1-t\text{.}\) Then,
\begin{equation*} \set{(1 - t) \vec{u} + t \vec{v}: t \in \mathbb{R}} \end{equation*}
Linear combinations where the weights sum to 1 are called affine combinations.