How do you find a point Q on the line L such that PQ is perpendicular to L

1.1k Views Asked by At

P is the point (1,1,1) and the line L is given by the equation

x ¯ = t ( 1 0 - 1 )

2

There are 2 best solutions below

1
On

Point Q is a projection of point P onto line L. You can find it calculating dot product of vector L and P:

L = (1 0 -1)

Lnorm = L / length(L)

P = (1 1 1)

Q = Lnorm * dot(P, Lnorm)

P.S. But this is not universal. I simplified formula because you line L starts at point (0 0 0). In general case formula will be Q = A + Lnorm * dot(P - A, Lnorm), where A is some point on line L.

0
On

For $a,b,c,d,e,f\in \Bbb R$ and $t\in \Bbb R,$ let $v(t)=(at+b,ct+d,et+f).$ If $L=\{v(t):t\in \Bbb R\}$ and $P=(x,y,z)$ then the square of the distance from $P$ to any $v(t)\in L$ is $G(t)=(at+b-x)^2+(ct+d-y)^2+(et+f-z)^2,$ which is a quadratic function of $t$. When $G(t_0)=\min \{G(t):t\in \Bbb R\}$ we have $v(t_0)=Q.$