Let $a_1x+b_1y+c_1z+d_1=0$ and $a_2x+b_2y+c_2z+d_2=0$ be the equations that describe two planes. In my lecture notes, it's written that $a_1x+b_1y+c_1z+d_1=0$ and $a_2x+b_2y+c_2z+d_2=0$ have a straight line as their intersection if
$$y=-\frac{c_1a_2-c_2a_1}{b_2c_1-c_2b_1}x-\frac{c_1d_2-c_2d_1}{b_2c_1-c_2b_1}$$ and
$$z=-\frac{b_1a_2-b_2a_1}{b_2c_1-c_2b_1}x-\frac{b_1d_2-b_2d_1}{b_2c_1-c_2b_1}$$
I don't see how we get this condition.
Any help will be appreciated.
Thank you
In order to find the intersection between the planes $a_1x+b_1y+c_1z+d_1=0$ and $a_2x+b_2y+c_2z+d_2=0$, we have to solve the system of equations: \begin{cases} &a_1x+b_1y+c_1z+d_1=0;\\ &a_2x+b_2y+c_2z+d_2=0. \end{cases} We can rewrite it as \begin{cases} &b_1y+c_1z=-a_1x-d_1;\\ &b_2y+c_2z=-a_2x-d_2. \end{cases} In the matrix notation, we have $$\begin{pmatrix} b_1 & c_1\\ b_2 & c_2 \end{pmatrix}\begin{pmatrix} y\\ z \end{pmatrix}=\begin{pmatrix} -a_1x-d_1\\ -a_2x-d_2 \end{pmatrix}\Longrightarrow\begin{pmatrix} y\\ z \end{pmatrix}=\begin{pmatrix} b_1 & c_1\\ b_2 & c_2 \end{pmatrix}^{-1}\begin{pmatrix} -a_1x-d_1\\ -a_2x-d_2 \end{pmatrix}.$$ Suppose that $b_2c_1-c_2b_1\neq0$. Then $$\begin{pmatrix} b_1 & c_1\\ b_2 & c_2 \end{pmatrix}^{-1}=-\frac{1}{b_2c_1-c_2b_1}\begin{pmatrix} c_2 & -c_1\\ -b_2 & b_1 \end{pmatrix}.$$ Substituting this into the previous equation, we get $$\begin{pmatrix} y\\ z \end{pmatrix}=-\frac{1}{b_2c_1-c_2b_1}\begin{pmatrix} c_2 & -c_1\\ -b_2 & b_1 \end{pmatrix}\begin{pmatrix} -a_1x-d_1\\ -a_2x-d_2 \end{pmatrix}.$$ It follows that $$\begin{pmatrix} y\\ z \end{pmatrix}=-\frac{1}{b_2c_1-c_2b_1}\begin{pmatrix} (c_1a_2-c_2a_1)x+(c_1d_2-c_2d_1)\\ (b_2a_1-b_1a_2)x+(b_2d_1-b_1d_2) \end{pmatrix}.$$ Therefore, \begin{align} y&=-\frac{c_1a_2-c_2a_1}{b_2c_1-c_2b_1}x-\frac{c_1d_2-c_2d_1}{b_2c_1-c_2b_1};\\ z&=-\frac{b_2a_1-b_1a_2}{b_2c_1-c_2b_1}x-\frac{b_2d_1-b_1d_2}{b_2c_1-c_2b_1}, \end{align} which are the equations that describe a straight line.