Why are the images of two inverse functions symmetric with respect to the line y = x;

Why are the images of two inverse functions symmetric with respect to the line y = x;

Because the inverse function is the exchange between the independent variable and the dependent variable, that is, the exchange of X and Y. in the image, it is expressed as the exchange of X axis and Y axis. The point on the line x = y is invariant, and the rest is symmetrical about it