Notation: using capitals for vectors, lower case for scalars, and
subscripts for vector components.
# 2.1 Nearest
Point On Perpendicular Bisector
Find the distance
from a given point
to the nearest point
on the perpendicular bisector of two other given points
and
.
(Practical use: drawing Voronoi tesselation using distance estimate,
when
and
are the two nearest centers to
.)
Let the function to be minimized be
then
Let the midpoint of
be
and the normal of the bisector be
.
Then let the constraint on
be
with
By the method of Lagrange multiplier, solve simultaneously
that is
In matrix form using 4D with
,
that gives
Subtracting from the bottom row,
times the top row,
times the second row, and so on (Gaussian elimination by elementary row
operations), gives the equivalent triangular system:
Solving by back substitution,
Therefore
Checking the result, geometric considerations indicate the line
should be perpendicular to the perpendicular bisector, so vector
projection can be used:
This is the same answer, which is good. The dance with Lagrange
multipliers may be more useful in other circumstances.