[Math] Find a 2d unit vector perpendicular to a given vector

linear algebravectors

So I'm given the vector 5i-12j and I need to find a unit vector perpendicular to this line. I know I need to use the dot product in some way, shape, or form, but I just can't figure it out.

Thank you for your help.

Best Answer

given a non zero vector

$\vec{u}=(a,b)=a\vec{i}+b\vec{j}$

the vector $\vec{v}=(b,\color{red}{-}a)$ is perpendicular to $\vec{u}$.

the unit vector is then obtained by dividing by its norm

$||\vec{v}||=\sqrt{a^2+b^2}$.

so, the vector you seek is

$$\left(\frac{b}{||\vec{v}||},\frac{\color{red}{-}a}{||\vec{v}||}\right)$$.

Related Question