So my question is: Find the equation of the line passing through a point $B$, with position vector $b$ relative to an origin $O$, which is perpendicular to and intersects the line $r = a + \lambda c$, $c \neq0$, given that $B$ is not a point of the line.
So far I know to let $r_1$ be the point on the line which the perpendicular line through $B$ intersects and so the vector $b-r_1$ must be perpendicular to the line with direction $c$.
And that $$\begin{align}(b-r_1)\cdot c&=0\\ (b−(a+\lambda c))\cdot c&=0 \end{align}$$
Assuming $\|c\|=1$
$$\lambda =(b−a)\cdot c$$
But now I am unsure where to go from here...
Thanks
Let the lines be $$ r = a + \lambda c \\ s = b + \mu f $$ You want a direction vector $f$ with $$ c \perp f \iff \\ 0 = c \cdot f \quad (*) $$
For example $f = (c_y, -c_x)$ would do the job, if we work in two dimensions: $$ (c_x, c_y) \cdot (c_y, -c_x) = c_x c_y + c_y (-c_x) = 0 $$
For more dimensions, we need to ensure that there is an intersection: $$ a + \lambda c = b + \mu f $$ for at least one $\lambda$ and $\mu$.
This gives $$ \lambda c - \mu f = b -a $$ then for any $f$ with $c \perp f$ we can multiply both sides by $c$ and get $$ \lambda c^2 = (b-a)\cdot c \Rightarrow \\ \lambda = \frac{(b-a)\cdot c}{c^2} \\ $$ which gives $$ \mu f = \frac{(b-a)\cdot c}{c^2} c - (b - a) $$ If we choose $$ f = \frac{(b-a)\cdot c}{c^2} c - (b - a) $$ and $f \ne 0$ then $\mu = 1$.