Inverse Functions – Are Mirror Image Functions Inverses?

functionsinverseinverse function

I know that for a function $f$ there exists an inverse $f^{-1}$ when $f$ is one-one and onto in its domain. I also know that a function $f$ and its inverse $f^{-1}$ are mirror images about the line $y=x$.

Now, can we say that when two functions which are exactly mirror images about the line $y=x$, are inverses of each other? Or in other words is the converse of the statement "Function and its inverse are mirror images of each other about the line $y=x$" is always true? If it is not always true, kindly give me circumstances when the converse fails.


Edit:

From this Quora answer, it is said that two functions having the same graph need not necessarily be equal. Then how can we conclude that the graph mirror imaged about the line $y=x$ is definitely its inverse?

Best Answer

Yes, because if one function is $y = f(x)$, the other is $x = g(y)$, since swapping $x$ and $y$ has the same effect as reflecting across the line $y=x$.

Substituting the first into the second, $x = g(y) = g(f(x))$, or in other words, $g^{-1} (x) = f(x)$ if $g^{-1} (x)$ exists. Similarly, substituting the other way around, $y = f(x) = f(g(y)$, so $f^{-1} (y) = g(y)$ if $f^{-1} (y)$ exists.

Related Question