We can also see this as an optimization problem:
min∣∣xp−xh∣∣xp∈Σ
Then:
∣∣xp−xh∣∣=(xp−xh)2⇒min∣∣xp−xh∣∣=min(xp−xh)2 ∣=min(xp−xh)2 ∣=α⋅min(xp−xh)2,α>0
→ We can reformulate the problem as searching for:
min21(xp−xh)2
Being vectors xp and xh we can write:
min21(xp−xh)(xp−xh)T
And also we rewrite the constraint: xp∈Σ, (ax+by+cz+d=0) as:
[a,b,c]⋅xp+d=0
Then the problem becomes:
min21(xp−xh)(xp−xh)T[a,b,c]⋅xp+d=0
Lagrangian Approach:
Using the HCR - Lagrangian Theorem we can rewrite the problem as:
Q(xp,λ)=21(xp−xh)(xp−xh)T+λT⋅([a,b,c]⋅xp+d)
and search for its minimum, so:
(xp,λ):⎩⎨⎧∂xp∂Q(xp,λ)=0∂λ∂Q(xp,λ)=0
Then we have:
(xp,λ):{(xp−xh)+λT⋅[a,b,c]=0[a,b,c]⋅xp+d=0
So, with a bit of substitutions we obtain:
xp=−∣∣[a,b,c]∣∣2[a,b,c]⋅d