Inverses of Compositions
In this explanation I'm going to talk about how to find the inverse of a composition of functions. Before going on you may want to read about simplifying composite functions and any of the materials here on inverses you'd like.
Suppose f and g are invertible functions. That is, there are functions f−1 and g−1 such that
f(f−1(x))=f−1(f(x))=x
g(g−1(x))=g−1(g(x))=x
whenever x is in the domain of f and g. Now we're going to talk about inverses of compositions of functions.
A composition of two functions f and g is a single function represented by the expression f(g(x)), meaning we have an input x and then apply g to it. Whatever output we get, we apply to f. Note that this is DIFFERENT from g(f(x)), which applies f to the argument x and then applies g.
Let's think about whether f(g(x)) has an inverse. Remember, our goal is to apply a function to get "back" to x, and it's important that f and g have inverses. We can think of this as a game, where we try to "rescue" x from inside f(g(x)). Let's work our way from the outside in. If we apply f−1, we get
f−1(f(g(x))=g(x).
Now, if we apply g−1, we will get
g−1(f−1(f(g(x)))=g−1(g(x))=x.
This makes us think g−1(f−1(x)) is the inverse of f(g(x)), and this will be true if we also check that f(g(g−1(f−1(x)))). Let's do that one step at a time, using that f−1 is the inverse of f and g−1 is the inverse of g.
f(g(g−1(f−1(x))))=f(f−1(x))=x.
We used that g(g−1(y))=y, where y=f−1(x). That let us simplify everything to the end.
In summary, if f and g have inverse functions f−1 and g−1, respectively, the inverse of f(g(x)) is g−1(f−1(x)).