I have the following:
$\vec{w} = \begin{bmatrix}1 \\ \\ 2\end{bmatrix},$ where $\vec{w}$ is a position vector.
If I do a vector multiplication with $\vec{w}$ and two coordinates $x_1$ and $x_2$,
$\begin{bmatrix}1 \\ \\ 2\end{bmatrix}^T \begin{bmatrix}x_1 \\ \\ x_2\end{bmatrix} = 3$, where $3$ is the intercept.
The above matrix equation becomes
$x_1 + 2x_2 - 3 = 0$
or
$x_2 = -\dfrac{1}{2}x_1 + \dfrac{3}{2}$
The graphical presentation of the relationship between $\vec{w}$ and the above equation $x_2 = -\dfrac{1}{2}x_1 + \dfrac{3}{2}$ becomes perpendicular as follows:
But how can I show the equation and $\vec{w}$ is perpendicular?

The line $OW$ has its equation $x_2=2x_1$ with slope $2$ and the other line has slope $\dfrac{-1}{2}$ so their product is $-1$.