Intersection of 3 planes along a line I have three planes:
\begin{align*}
\pi_1: x+y+z&=2\\
\pi_2: x+ay+2z&=3\\
\pi_3: x+a^2y+4z&=3+a
\end{align*}
I want to determine a such that the three planes intersect along a line. I do this by setting up the system of equations:
$$
\begin{cases}
\begin{align*}
x+y+z&=2\\
x+ay+2z&=3\\
x+a^2y+4z&=3+a
\end{align*}
\end{cases}
$$
and solve for x, y and z. I subtract the first row from the second and third
$$
\begin{cases}
\begin{align*}
x+y+z&=2\\
(a-1)y+z&=1\\
(a^2-1)y+3z&=1+a.
\end{align*}
\end{cases}
$$
I subtract $(a+1)*\textrm{row}_1$ from the third row:
$$
\begin{cases}
\begin{align*}
x+y+z&=2\\
(a-1)y+z&=1\\
(2-a)z&=1+a.
\end{align*}
\end{cases}
$$
I think I am supposed to find an $a$ such that $0=0$ in the third row, but obviously there isn't any such $a$. Do I have the right idea about how to solve this? If so, where is my mistake?

Hint
See, that from your system of equations you can obtain two lines:
$$l_1:\begin{cases}x=(a-2)t+1\\y=t\\z=(1-a)t+1\end{cases}$$
$$l_2:\begin{cases}x=\frac{5-a}{3}+\frac{a^2-4}{3}t\\y=t\\z=\frac{a+1}{3}+\frac{1-a^2}{3}t\end{cases}$$
