For this problem, it is easier to look at some special cases and use common sense than to fiddle with a general formula. So write a table with three rows. The first row contains , the second row lists and the third row lists . Then look at how to express values in the third row in terms of the first two rows. Or the other way around. E.g., if you find that for some function that has an inverse , then .