Let $y=mx+b$ and $y=m'x+c$ be the equations of two lines in the plane. Write down vectors perpendicular to these lines. Show that these vectors are perpendicular to each other if and only if $mm'=-1$
I don't know how to find these vectors. The answer key states that these two vectors are $(-m, 1)$ and $(-m', 1)$.
From this, I can easily conclude that these two vectors are perpendicular when their dot products equals zero. that means $(-m, 1) \cdot (-m', 1)=mm'+1=0,$ thus $mm'=-1$
But how do you find these vectors to begin with?
Here is how you may find the vector $(-m,1)$.
Observe that $(0,b)$ and $(1,m+b)$ are the two points on the given line $y=mx+b$. They also represent two vectors $\vec{A}(0,b)$ and $\vec{B}(1,m+b)$, respectively, and their difference represents a vector parallel to the line $y=mx+b$, i.e.
$$\vec{B}(1,m+b)-\vec{A}(0,b)=\vec{AB}(1,m)$$
That is, the coordinates of the vector parallel to the line is just the coefficients of $y$ and $x$ in the line equation.
Similarly, given that the line $-my=x$ is perpendicular to $y=mx+b$, the vector parallel to $-my= x$, or perpendicular to $y=mx+b$ is $\vec{AB}_{\perp}(-m,1)$.
The other vector $(-m',1)$ can be deduced likewise.