The effect of ’undoing’ a function

A function is a machine that converts an input into an output . That output is sometimes also indicated with the letter and then we write . The machine thus calculates for each an associated . One may wonder whether there is also an ’undo-machine’ that reverses the calculation of and converts the output back into the input .

We call a function an inverse function for if can calculate the input from every result of : . Because , we can also write as . If such a function exists we call invertible and the inverse function of (actually left invertible and left inverse, but that is not important for now).

We first look at some examples. The examples also show that the function rule of the inverse of a function can, in a number of cases, be determined from the rule of . Finding the inverse function is basically the same as solving an equation: for a given function , find a new formula that yields the unique for all , and for which it is true that . So for each this function yields the unique solution of the equation .

We call two functions inverses of each other, if they undo each other’s action. Therefore, not only has to undo the action of the function , but must also undo the action of . If and are inverse functions of each other, then we also write as , the inverse function of . Because the exact domain and codomain of inverse functions can be very important, we always use the extended notation for functions.

Note that speaking of the inverse function only makes sense if an inverse function is unique. This is indeed the case, as shown by the following property:

Extra 1: Existence and uniqueness of the inverse function

Note that it is important that an inverse function is uniquely defined to be able to speak of the inverse function. Strictly mathematically speaking, we should have been more careful, and only spoken of the inverse function after we had given the uniqueness property.

The same phenomenon also occurs in everyday life: one can only speak of my lover if one has a lover, and if one has only one lover. If either condition is not met, you must speak of one lover. This phenomenon is also very common in mathematics. We must be careful to define the square root, because both and are ’square roots’ of . This is solved by agreeing that the square root is the positive square root, which is unique. With the inverse function of the trigonometric functions sine and cosine, the problem is even bigger because there are infinitely many numbers that all have sine equal to zero, namely all multiples of . So we have to be very careful to speak about the inverse of sine.

The fact that an inverse function is unique as soon as it exists, can be proven as follows: take any invertible function , and suppose that you would have two inverse functions and of . Then we prove as follows the requirement of (and therefore at most only one inverse function can exist).

Choose any . It suffices to show that , because this equality for all means exactly that , since the domain and codomain of and are definitely equal. Now because is an inverse of . So we substitute in , and then we get This concludes the proof of the uniqueness of the inverse function.

You can also write the condition for inverse functions as

Two functions are thus each other’s inverse if their composition is the identical function , i.e. each maps itself. The graph of the identical function is the first bisector in the plane with equation . Schematically this becomes:

Extra 2: Subtle subtleties about the notation for inverse functions

The notation is somewhat dangerous, because two ’logical’ meanings are possible.

Indeed, with the symbol one could reasonably mean the following two things:

  • the inverse function of , so is such that
  • : the reciprocal of , so is such that

We agree to use only for the inverse function, and never for the reciprocal function. But, in some manuals, courses, web pages or circumstances, you may see other conventions.

If you evaluate these functions in a point, you can use parentheses to eliminate this ambiguity:

  • evaluating the inverse function of in can be written as
  • evaluating the reciprocal function of in can be written as or as

Extra 3: Subtle subtleties about the existence of inverse functions

You can ask yourself the question ”under what conditions does the function have an inverse?”. This corresponds to the question ”under what conditions does a function exist that can reverse the effect of the function ?”.

It might be simpler to ask ”under what conditions is it NOT possible to reverse the effect of a function ?”. Now imagine that you have a function that maps both and (with ) to the function value and that you want to find the inverse function for this function. Then the inverse function should map to both and . But a function has only one output for each input, so this is impossible. We have proven the following property:

A function for which two different and never have the same image is called an injective function or an injection.

The existence of such and is a sufficient condition for non-invertibility.

However, the condition is not necessary. Indeed, there exist injective functions that (according to the above definition) are non-invertible after all. Challenge: find an example. Hint: look up what surjective means.

To find the inverse function, one can follow the following step-by-step plan:

So it is possible that a function has no inverse, but a restriction of that function to a smaller (co)domain – which yields a new function – does have an inverse. Typical examples are the inverses of the sine, cosine and tangent.

Typical examples are the inverse functions of the trigonometric and exponential functions. If you are not already familiar with trigonometric, exponential and logarithmic functions, you can skip the details of the examples below.

2025-10-01 16:08:56