Suppose that and be two points and P be a point on y=x such that is minimum then the point P
Suppose that the images of and in the line x=y are C and D respectively.
The point P is the point of intersection of the lines AD and x=y , it is coincide with the point of intersection of the lines BC and x=y
The image of in the line y=x is
The equation of the line joining an is
This can be simplified as
Plug in x=y to get the point of intersection of the above line and the line x=y.
It implies that
Therefore,