The set of points \((x,y,z)\) that obey \(x+y+z=2\) form a plane. The set of points \((x,y,z)\) that obey \(x-y=0\) form a second plane. The set of points \((x,y,z)\) that obey both \(x+y+z=2\) and \(x-y=0\) lie on the intersection of these two planes and hence form a line. We shall find the parametric equations for that line.
To sketch \(x+y+z=2\) we observe that if any two of \(x,y,z\) are zero, then the third is \(2\text{.}\) So all of \((0,0,2)\text{,}\) \((0,2,0)\) and \((2,0,0)\) are on \(x+y+z=2\text{.}\) The plane \(x-y=0\) contains all of the \(z\)-axis, since \((0,0,z)\) obeys \(x-y=0\) for all \(z\text{.}\) Here are separate sketches of (parts of) the two planes.
And here is a sketch of their intersection
Method 1. Each point on the line has a different value of \(z\text{.}\) We’ll use \(z\) as the parameter. (We could just as well use \(x\) or \(y\text{.}\)) There is no law that requires us to use the parameter name \(t\text{,}\) but that’s what we have done so far, so set \(t=z\text{.}\) If \((x,y,z)\) is on the line then \(z=t\) and
\begin{align*}
x+y+t&=2\\
x-y\phantom{\ \,+t}&=0
\end{align*}
The second equation forces \(y=x\text{.}\) Substituting this into the first equation gives
\begin{gather*}
2x+t=2 \implies x=y=1-\tfrac{t}{2}
\end{gather*}
So the parametric equations are
\begin{gather*}
x=1-\frac{t}{2},\
y=1-\frac{t}{2},\
z=t\qquad\text{or}\qquad
\llt x-1,y-1,z\rgt = t\llt -\frac{1}{2}, -\frac{1}{2}, 1\rgt
\end{gather*}
Method 2. We first find one point on the line. There are lots of them. We’ll find the point with \(z=0\text{.}\) (We could just as well use z=123.4, but arguably \(z=0\) is a little easier.) If \((x,y,z)\) is on the line and \(z=0\text{,}\) then
\begin{align*}
x+y&=2\\
x-y&=0
\end{align*}
The second equation again forces \(y=x\text{.}\) Substituting this into the first equation gives
\begin{gather*}
2x=2 \implies x=y=1
\end{gather*}
So \((1,1,0)\) is on the line. Now we’ll find a direction vector, \(\vd\text{,}\) for the line.
Since the line is contained in the plane \(x+y+z=2\text{,}\) any vector lying on the line, like \(\vd\text{,}\) is also completely contained in that plane. So \(\vd\) must be perpendicular to the normal vector of \(x+y+z=2\text{,}\) which is \(\llt 1,1,1\rgt \text{.}\)
Similarly, since the line is contained in the plane \(x-y=0\text{,}\) any vector lying on the line, like \(\vd\text{,}\) is also completely contained in that plane. So \(\vd\) must be perpendicular to the normal vector of \(x-y=0\text{,}\) which is \(\llt 1,-1,0\rgt \text{.}\)
So we may choose for \(\vd\) any vector which is perpendicular to both \(\llt 1,1,1\rgt \) and \(\llt 1,-1,0\rgt\text{,}\) like, for example,
\begin{align*}
\vd&=\llt 1,-1,0\rgt \times\llt 1,1,1\rgt\\
& =\det\left[ \begin{matrix}\hi &\hj&\hk\\
1&-1&0\\ 1&1&1\end{matrix}\right]
=\hi\det\left[\begin{matrix}-1&0\\
1&1\end{matrix}\right]
-\hj\det\left[\begin{matrix}1&0\\
1&1\end{matrix}\right]
+\hk\det\left[\begin{matrix}1&-1\\
1&1\end{matrix}\right]\\
&=-\hi-\hj+2\hk
\end{align*}
We now have both a point on the line (namely \((1,1,0)\)) and a direction vector for the line (namely \(\llt -1,-1,2\rgt\)), so, as usual, the parametric equations for the line are
\begin{gather*}
\llt x-1,y-1,z\rgt =t\llt -1,-1,2\rgt \qquad\text{or}\qquad
x=1-t,\ y=1-t,\ z=2t
\end{gather*}
This looks a little different than the solution from method 1, but we’ll see in a moment that they are really the same. Before that, let’s do one more method.
Method 3. We’ll find two points on the line. We have already found that \((1,1,0)\) is on the line. From the picture above, it looks like \((0,0,2)\) is also on the line. This is indeed the case since \((0,0,2)\) obeys both \(x+y+z=2\) and \(x-y=0\text{.}\) Notice that we could also have guessed \((0,0,2)\) by setting \(x=0\) and then solving \(y+z=x+y+z=2\text{,}\) \(-y=x-y=0\) for \(x\) and \(y\text{.}\) As both \((1,1,0)\) and \((0,0,2)\) are on the line, the vector with head at \((1,1,0)\) and tail at \((0,0,2)\text{,}\) which is \(\llt 1-0,1-0,0-2\rgt =\llt 1,1,-2\rgt \text{,}\) is a direction vector for the line. As \((0,0,2)\) is a point on the line and \(\llt 1,1,-2\rgt \) is a direction vector for the line, the parametric equations for the line are
\begin{gather*}
\llt x-0,y-0,z-2\rgt =t\llt 1,1,-2\rgt \qquad\text{or}\qquad
x=t,\ y=t,\ z=2-2t
\end{gather*}
This also looks similar, but not quite identical, to our previous answers. Time for a comparison.
Comparing the answers. The parametric equations given by the three methods are different. That’s just because we have really used different parameters in the three methods, even though we have called the parameter \(t\) in each case. To clarify the relation between the three answers, rename the parameter of method 1 to \(t_1\text{,}\) the parameter of method 2 to \(t_2\) and the parameter of method 3 to \(t_3\text{.}\) The parametric equations then become
\begin{alignat*}{4}
&\text{Method 1:}\qquad &
x&=1-\frac{t_1}{2}\qquad &
y&=1-\frac{t_1}{2}\qquad &
z&=t_1\\
&\text{Method 2:}\qquad &
x&=1-t_2\qquad &
y&=1-t_2\qquad &
z&=2t_2\\
&\text{Method 3:}\qquad &
x&=t_3\qquad &
y&=t_3\qquad &
z&=2-2t_3
\end{alignat*}
Substituting \(t_1=2t_2\) into the Method 1 equations gives the Method 2 equations, and substituting \(t_3=1-t_2\) into the Method 3 equations gives the Method 2 equations. So all three really give the same line, just parametrized a little differently.