The functions are and
.
Find inverse function of .
Change to
.
.
Interchange and
.
.
Solve for .
Change to
.
.
Find inverse function of .
.
Change to
.
.
Interchange and
.
.
Solve for .
Change to
.
.
Find .
Substitute in
.
Substitute in
.
.
.