Let $p$ be a line in $\mathbb{R}^3$ denoted as follows: $ p = { \begin{bmatrix} 3, 1, 2 \end{bmatrix} + t \begin{bmatrix} -1, 1,0 \end{bmatrix} : t \in \mathbb{R} } $
a) For which $a, b, c, d \in \mathbb{R}$ does the space with the general equation $ax + by + cz = d$ contain the line $p$? b) Find some system of 2 linear equations with 3 unknowns whose set of all solutions is equal to p.
Note: In part (a), all quads satisfying the condition must be described. In part (a), It is required that the equation $ax + by + cz = d$ to describe a space/plane, i.e. excluding the degenerative forms. In part b), on the other hand, it is sufficient to find only a one system of equations.
My idea: For it to work, we need to find the normal vector (a vector that is perpendicular to the direction vector), and then plug in the starting coordinates from the input. Is there a more practical way of solving this? How should I approach the (b)?
For part a), you want any point on the line $p$ to obey the equation of the plane. $$a(3-t)+b(1+t)+2c=d$$ We can rewrite this as $$3a+b+2c+t(-a+b)=d$$ The numbers $a,b,c,d$ can't depend on $t$, so the solution is to choose $b=a$ and $3a+b+2c=d$.
For part b), think what is the meaning of an equation with three variables: it's a plane. A system with two such equation means an intersection of two planes. So all you need is to choose two planes with the form in part a), such that the normals are not parallel/antiparallel. Any pair of such planes is a solution for your question