Describe all vectors $v = \pmatrix{x\\y}$ that are orthogonal to $u = \pmatrix{a\\b}$.
I know that vectors that are orthogonal will have a dot product of 0. So here's what I was thinking: \begin{align*} ax + by &= 0\\ yb &= -ax\\ y &= -ax/b \end{align*}
I then looked up the answer to check if I was right, and the solution says:
$v$ is of the form $k\pmatrix{b\\-a}$, where $k$ is a scalar.
Can anyone help me to understand how they came up with this answer?
The answers are equivalent. Your vector is $\vec v=\langle x, -ax/b\rangle$, which works for all $x\in\Bbb R$.
Factor out $x$: $\vec v=x\langle 1,-a/b\rangle$ and write $x=kb$.
Notice that your deductions work only if $b\neq 0$, you should treat that case separately.