I have a straight line given by: $$ \begin{cases} x - y - 4z + 12 = 0 \\ 2x + y -2z + 3 = 0 \end{cases}$$
I'm looking to convert it to the parametric form of straight line like this:
$$\vec{r} = p_1 + t\vec{v}$$
The way I currently do it is:
- Eliminate one variable - in this case $-3x-3y+6=0 \implies x+y=2$
- Let one variable be $t$ - in this case $y=t$
- Write $t$ in terms of other variables - in this case it's $t=2-x$ and $t=\frac{14-4z}{2}$
- Write it all in one line: $\frac{x-2}{-1} = y = \frac{z-\frac{14}{4}}{- \frac{1}{2}}$
- Write the parametric form: $\vec{r} = (2, 0, \frac{14}{4}) + t (-1, 1, -\frac{1}{2})$
First, is my method correct? Secondly, this is a rather long method and produces ugly parametric form, can I do this quicker and better?
You do not need step 4. you can directly settle for
$\begin{cases} x=2-t\\ y=t\\ z=\dfrac{7-t}2 \end{cases}$
And notice that you already have your parametric representation !
$M=(2,0,\frac 72)+t(-1,1,-\frac 12)$
Anyway, you can also select two values of $t$ that give "nice" points $A$ and $B$ if you are not satisfied with the fractionnal coefficients.
For instance $t=1$ gives $A=(1,1,3)$ and $t=-1$ gives $B=(3,-1,4)$
Calculate the direction vector $\vec u=\vec{AB}=(2,-2,1)$
And you get your line : $M=A+t\vec u=(1+2t,1-2t,3+t)$