The locus of midpoints of the perpendicular drawn from the points on the line to the line x=y is
The general point on the line is
The foot of the perpendicular of on the line is
Simplify
And
Hence the foot of the perpendicular of on the line is
Suppose that be any point on the locus.
The point is midpoint of and
It implies that
Eliminate h to get the locus of the point
Therefore, the locus is