Find the vector and parametric equations of a line.
Find the vector and scalar equations of a plane.
We can use the concept of vectors and points to find equations for arbitrary lines in \(\mathbb{R}^{n}\), although in this section the focus will be on lines in \(\mathbb{R}^{3}.\)
To begin, consider the case \(n=1\) so we have \(\mathbb{R}^{1}=\mathbb{R}\). There is only one line here which is the familiar number line, that is \(\mathbb{R}\) itself. Therefore it is not necessary to explore the case of \(n=1\) further.
Now consider the case where \(n=2\), in other words \(\mathbb{R}^2\). Let \(P\) and \(P_0\) be two different points in \(\mathbb{R}^{2}\) which are contained in a line \(L\). Let \(\vec{p}\) and \(\vec{p_0}\) be the position vectors for the points \(P\) and \(P_0\) respectively. Suppose that \(Q\) is an arbitrary point on \(L\). Consider the following diagram.
Our goal is to be able to define \(Q\) in terms of \(P\) and \(P_0\). Consider the vector \(\overrightarrow{P_0P} = \vec{p} - \vec{p_0}\) which has its tail at \(P_0\) and point at \(P\). If we add \(\vec{p} - \vec{p_0}\) to the position vector \(\vec{p_0}\) for \(P_0\), the sum would be a vector with its point at \(P\). In other words, \[\vec{p} = \vec{p_0} + (\vec{p} - \vec{p_0})\nonumber \]
Now suppose we were to add \(t(\vec{p} - \vec{p_0})\) to \(\vec{p}\) where \(t\) is some scalar. You can see that by doing so, we could find a vector with its point at \(Q\). In other words, we can find \(t\) such that \[\vec{q} = \vec{p_0} + t \left( \vec{p}- \vec{p_0}\right)\nonumber \]
This equation determines the line \(L\) in \(\mathbb{R}^2\). In fact, it determines a line \(L\) in \(\mathbb{R}^n\). Consider the following definition.
Definition \(\PageIndex{1}\): Vector Equation of a Line
Suppose a line \(L\) in \(\mathbb{R}^{n}\) contains the two different points \(P\) and \(P_0\). Let \(\vec{p}\) and \(\vec{p_0}\) be the position vectors of these two points, respectively. Then, \(L\) is the collection of points \(Q\) which have the position vector \(\vec{q}\) given by \[\vec{q}=\vec{p_0}+t\left( \vec{p}-\vec{p_0}\right)\nonumber \] where \(t\in \mathbb{R}\).
Let \(\vec{d} = \vec{p} - \vec{p_0}\). Then \(\vec{d}\) is the direction vector for \(L\) and the vector equation for \(L\) is given by \[\vec{p}=\vec{p_0}+t\vec{d}, t\in\mathbb{R}\nonumber \]
Note that this definition agrees with the usual notion of a line in two dimensions and so this is consistent with earlier concepts. Consider now points in \(\mathbb{R}^3\). If a point \(P \in \mathbb{R}^3\) is given by \(P = \left( x,y,z \right)\), \(P_0 \in \mathbb{R}^3\) by \(P_0 = \left( x_0, y_0, z_0 \right)\), then we can write \[\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{c} x_0 \\ y_0 \\ z_0 \end{array} \right] + t \left[ \begin{array}{c} a \\ b \\ c \end{array} \right] \nonumber \] where \(\vec{d} = \left[ \begin{array}{c} a \\ b \\ c \end{array} \right]\). This is the vector equation of \(L\) written in component form .
The following theorem claims that such an equation is in fact a line.
Proposition \(\PageIndex{1}\): Algebraic Description of a Straight Line
Let \(\vec{a},\vec{b}\in \mathbb{R}^{n}\) with \(\vec{b}\neq \vec{0}\). Then \(\vec{x}=\vec{a}+t\vec{b},\; t\in \mathbb{R}\), is a line.
Proof
Let \(\vec{x_{1}}, \vec{x_{2}} \in \mathbb{R}^n\). Define \(\vec{x_{1}}=\vec{a}\) and let \(\vec{x_{2}}-\vec{x_{1}}=\vec{b}\). Since \(\vec{b} \neq \vec{0}\), it follows that \(\vec{x_{2}}\neq \vec{x_{1}}.\) Then \(\vec{a}+t\vec{b}=\vec{x_{1}} + t\left( \vec{x_{2}}-\vec{x_{1}}\right)\). It follows that \(\vec{x}=\vec{a}+t\vec{b}\) is a line containing the two different points \(X_1\) and \(X_2\) whose position vectors are given by \(\vec{x}_1\) and \(\vec{x}_2\) respectively.
We can use the above discussion to find the equation of a line when given two distinct points. Consider the following example.
Example \(\PageIndex{1}\): A Line From Two Points
Find a vector equation for the line through the points \(P_0 = \left( 1,2,0\right)\) and \(P = \left( 2,-4,6\right).\)
Solution
We will use the definition of a line given above in Definition \(\PageIndex{1}\) to write this line in the form
Let \(\vec{q} = \left[ \begin{array}{c} x \\ y \\ z \end{array} \right]\). Then, we can find \(\vec{p}\) and \(\vec{p_0}\) by taking the position vectors of points \(P\) and \(P_0\) respectively. Then,
\[\vec{q}=\vec{p_0}+t\left( \vec{p}-\vec{p_0}\right)\nonumber \] can be written as
\[\left[ \begin{array}{c} x \\ y \\ z \\ \end{array} \right] = \left[ \begin{array}{c} 1 \\ 2 \\ 0 \end{array} \right] + t \left[ \begin{array}{r} 1 \\ -6 \\ 6 \end{array} \right], \;t\in \mathbb{R}\nonumber \]
Here, the direction vector \(\left[ \begin{array}{r} 1 \\ -6 \\ 6 \end{array} \right]\) is obtained by \(\vec{p} - \vec{p_0} = \left[ \begin{array}{r} 2 \\ -4 \\ 6 \end{array} \right] - \left[ \begin{array}{r} 1 \\ 2 \\ 0 \end{array} \right]\) as indicated above in Definition \(\PageIndex{1}\).
Notice that in the above example we said that we found “a” vector equation for the line, not “the” equation. The reason for this terminology is that there are infinitely many different vector equations for the same line. To see this, replace \(t\) with another parameter, say \(3s.\) Then you obtain a different vector equation for the same line because the same set of points is obtained.
In Example \(\PageIndex{1}\), the vector given by \(\left[ \begin{array}{r} 1 \\ -6 \\ 6 \end{array} \right]\) is the direction vector defined in Definition \(\PageIndex{1}\). If we know the direction vector of a line, as well as a point on the line, we can find the vector equation.
Consider the following example.
Example \(\PageIndex{2}\): A Line From a Point and a Direction Vector
Find a vector equation for the line which contains the point \(P_0 = \left( 1,2,0\right)\) and has direction vector \(\vec{d} = \left[ \begin{array}{c} 1 \\ 2 \\ 1 \end{array} \right]\)
Solution
We will use Definition \(\PageIndex{1}\) to write this line in the form \(\vec{p}=\vec{p_0}+t\vec{d},\; t\in \mathbb{R}\). We are given the direction vector \(\vec{d}\). In order to find \(\vec{p_0}\), we can use the position vector of the point \(P_0\). This is given by \(\left[ \begin{array}{c} 1 \\ 2 \\ 0 \end{array} \right].\) Letting \(\vec{p} = \left[ \begin{array}{c} x \\ y \\ z \end{array} \right]\), the equation for the line is given by \[\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{c} 1 \\ 2 \\ 0 \end{array} \right] + t \left[ \begin{array}{c} 1 \\ 2 \\ 1 \end{array} \right], \;t\in \mathbb{R} \label{vectoreqn}\]
We sometimes elect to write a line such as the one given in \(\eqref{vectoreqn}\) in the form \[\begin{array}{ll} \left. \begin{array}{l} x=1+t \\ y=2+2t \\ z=t \end{array} \right\} & \mbox{where} \; t\in \mathbb{R} \end{array} \label{parameqn}\] This set of equations give the same information as \(\eqref{vectoreqn}\), and is called the parametric equation of the line.
Consider the following definition.
Definition \(\PageIndex{2}\): Parametric Equation of a Line
Let \(L\) be a line in \(\mathbb{R}^3\) which has direction vector \(\vec{d} = \left[ \begin{array}{c} a \\ b \\ c \end{array} \right]\) and goes through the point \(P_0 = \left( x_0, y_0, z_0 \right)\). Then, letting \(t\) be a parameter, we can write \(L\) as \[\begin{array}{ll} \left. \begin{array}{c} x = x_0 + ta \\ y = y_0 + tb \\ z = z_0 + tc \end{array} \right\} & \mbox{where} \; t\in \mathbb{R} \end{array}\nonumber \] This is called a parametric equation of the line \(L\).
You can verify that the form discussed following Example \(\PageIndex{2}\) in equation \(\eqref{parameqn}\) is of the form given in Definition \(\PageIndex{2}\).
There is one other form for a line which is useful, which is the symmetric form. Consider the line given by \(\eqref{parameqn}\). You can solve for the parameter \(t\) to write \[\begin{array}{l} t=x-1 \\ t=\frac{y-2}{2} \\ t=z \end{array}\nonumber \] Therefore, \[x-1=\frac{y-2}{2}=z\nonumber \] This is the symmetric form of the line.
In the following example, we look at how to take the equation of a line from symmetric form to parametric form.
Example \(\PageIndex{3}\): Change Symmetric Form to Parametric Form
Suppose the symmetric form of a line is \[\frac{x-2}{3}=\frac{y-1}{2}=z+3\nonumber \] Write the line in parametric form as well as vector form.
Solution
We want to write this line in the form given by Definition \(\PageIndex{2}\). This is of the form \[\begin{array}{ll} \left. \begin{array}{c} x = x_0 + ta \\ y = y_0 + tb \\ z = z_0 + tc \end{array} \right\} & \mbox{where} \; t\in \mathbb{R} \end{array}\nonumber \]
Let \(t=\frac{x-2}{3},t=\frac{y-1}{2}\) and \(t=z+3\), as given in the symmetric form of the line. Then solving for \(x,y,z,\) yields \[\begin{array}{ll} \left. \begin{array}{c} x=2 + 3t \\ y=1 + 2t \\ z=-3 + t \end{array} \right\} & \mbox{with} \;t\in \mathbb{R} \end{array}\nonumber \]
This is the parametric equation for this line.
Now, we want to write this line in the form given by Definition \(\PageIndex{1}\). This is the form \[\vec{p}=\vec{p_0}+t\vec{d}\nonumber\] where \(t\in \mathbb{R}\). This equation becomes \[\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{r} 2 \\ 1 \\ -3 \end{array} \right] + t \left[ \begin{array}{r} 3 \\ 2 \\ 1 \end{array} \right], \;t\in \mathbb{R}\nonumber \]
Much like the above discussion with lines, vectors can be used to determine planes in \(\mathbb{R}^n\). Given a vector \(\vec{n}\) in \(\mathbb{R}^n\) and a point \(P_0\), it is possible to find a unique plane which contains \(P_0\) and is perpendicular to the given vector.
Definition \(\PageIndex{3}\): Normal Vector
Let \(\vec{n}\) be a nonzero vector in \(\mathbb{R}^n\). Then \(\vec{n}\) is called a normal vector to a plane if and only if \[\vec{n} \bullet \vec{v} = 0\nonumber \] for every vector \(\vec{v}\) in the plane.
In other words, we say that \(\vec{n}\) is orthogonal (perpendicular) to every vector in the plane.
Consider now a plane with normal vector given by \(\vec{n}\), and containing a point \(P_0\). Notice that this plane is unique. If \(P\) is an arbitrary point on this plane, then by definition the normal vector is orthogonal to the vector between \(P_0\) and \(P\). Letting \(\overrightarrow{0P}\) and \(\overrightarrow{0P_0}\) be the position vectors of points \(P\) and \(P_0\) respectively, it follows that \[\vec{n} \bullet (\overrightarrow{0P} - \overrightarrow{0P_0}) = 0\nonumber \] or \[\vec{n} \bullet \overrightarrow{P_0P} = 0\nonumber \]
The first of these equations gives the vector equation of the plane.
Definition \(\PageIndex{4}\): Vector Equation of a Plane
Let \(\vec{n}\) be the normal vector for a plane which contains a point \(P_0\). If \(P\) is an arbitrary point on this plane, then the vector equation of the plane is given by \[\vec{n} \bullet (\overrightarrow{0P} - \overrightarrow{0P_0}) = 0\nonumber \]
Notice that this equation can be used to determine if a point \(P\) is contained in a certain plane.
Example \(\PageIndex{4}\): A Point in a Plane
Let \(\vec{n} = \left[ \begin{array}{r} 1 \\ 2 \\ 3 \end{array} \right]\) be the normal vector for a plane which contains the point \(P_0 = \left( 2, 1, 4 \right)\). Determine if the point \(P = \left( 5, 4, 1 \right)\) is contained in this plane.
Solution
By Definition \(\PageIndex{2}\), \(P\) is a point in the plane if it satisfies the equation \[\vec{n} \bullet (\overrightarrow{0P} - \overrightarrow{0P_0}) = 0\nonumber \]
Therefore \(P = ( 5, 4, 1)\) is contained in the plane.
Suppose \(\vec{n} = \left[ \begin{array}{c} a \\ b \\ c \end{array} \right]\), \(P = \left( x,y,z\right)\) and \(P_0 = (x_0, y_0, z_0 )\).
Then \[\begin{aligned} \vec{n} \bullet (\overrightarrow{0P} - \overrightarrow{0P_0}) &= 0 \\ \left[ \begin{array}{c} a \\ b \\ c \end{array} \right] \bullet \left( \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] - \left[ \begin{array}{c} x_0 \\ y_0 \\ z_0 \end{array} \right] \right) &= 0 \\ \left[ \begin{array}{c} a \\ b \\ c \end{array} \right] \bullet \left[ \begin{array}{c} x - x_0 \\ y - y_0 \\ z - z_0 \end{array} \right] &= 0 \\ a(x - x_0) + b (y - y_0) + c (z-z_0) &= 0 \end{aligned}\]
We can also write this equation as \[ax + by + cz = ax_0 + by_0 + cz_0\nonumber \]
Notice that since \(P_0\) is given, \(ax_0+by_0+cz_0\) is a known scalar, which we can call \(d\). This equation becomes \[ax + by + cz = d\nonumber \]
Definition \(\PageIndex{5}\): Scalar Equation of a Plane
Let \(\vec{n} = \left[ \begin{array}{c} a \\ b \\ c \end{array} \right]\) be the normal vector for a plane which contains the point \(P_0 = (x_0, y_0, z_0)\).Then if \(P=(x,y,z)\) is an arbitrary point on the plane, the scalar equation of the plane is given by \[ax + by + cz = d\nonumber \] where \(a,b,c,d \in \mathbb{R}\) and \(d = ax_0 + by_0 + cz_0\).
Consider the following equation.
Example \(\PageIndex{5}\): Finding the Equation of a Plane
Find an equation of the plane containing \(P_0 = (3, -2, 5)\) and orthogonal to \(\vec{n} = \left[ \begin{array}{r} -2 \\ 4 \\ 1 \end{array} \right]\).
Solution
The above vector \(\vec{n}\) is the normal vector for this plane. Using Definition \(\PageIndex{2}\), we can determine the vector equation for this plane. \[\begin{aligned} \vec{n} \bullet (\overrightarrow{0P} - \overrightarrow{0P_0}) &= 0 \\ \left[ \begin{array}{r} -2 \\ 4 \\ 1 \end{array} \right] \bullet \left(\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] - \left[ \begin{array}{r} 3 \\ -2 \\ 5 \end{array} \right] \right) &= 0 \\ \left[ \begin{array}{r} -2 \\ 4 \\ 1 \end{array} \right] \bullet \left[ \begin{array}{c} x - 3 \\ y + 2 \\ z - 5 \end{array} \right] &= 0 \end{aligned}\]
Using Definition \(\PageIndex{3}\), we can determine the scalar equation of the plane. \[-2x + 4y + 1z = -2(3) + 4(-2) + 1(5) = -9\nonumber \]
Hence, the vector equation of the plane is \[\left[ \begin{array}{r} -2 \\ 4 \\ 1 \end{array} \right] \bullet \left[ \begin{array}{c} x - 3 \\ y + 2 \\ z - 5 \end{array} \right] = 0\nonumber \] and the scalar equation is \[-2x + 4y + 1z = -9\nonumber \]
Example \(\PageIndex{6}\): Shortest Distance From a Point to a Plane
Find the shortest distance from the point \(P = (3,2,3)\) to the plane given by
\(2x + y + 2z = 2\), and find the point \(Q\) on the plane that is closest to \(P\).
Solution
Pick an arbitrary point \(P_0\) on the plane. Then, it follows that \[\overrightarrow{QP} = proj_{\vec{n}}\overrightarrow{P_0P}\nonumber \] and \(\| \overrightarrow{QP} \|\) is the shortest distance from \(P\) to the plane. Further, the vector \(\overrightarrow{0Q} = \overrightarrow{0P} - \overrightarrow{QP}\) gives the necessary point \(Q\).
From the above scalar equation, we have that \(\vec{n} = \left[ \begin{array}{c} 2 \\ 1 \\ 2 \end{array} \right]\). Now, choose \(P_0 = (1, 0, 0)\) so that \(\vec{n} \bullet \overrightarrow{0P} = 2 = d\). Then, \(\overrightarrow{P_0P} = \left[ \begin{array}{c} 3 \\ 2 \\ 3 \end{array} \right] - \left[ \begin{array}{c} 1 \\ 0 \\ 0 \end{array} \right] = \left[ \begin{array}{c} 2 \\ 2 \\ 3 \end{array} \right]\).