When a point (x,y) is reflected across the line y = x:
We have the transformation rule:
That is, the x-coordinate and y-coordinate change places.
For example:
If we reflect the point (2,5) over y=x, the image of the given point will be:
If the coordinate has a positive x and negative y, the transformation will be: