Asking what the inverse of a function is, is the same as asking what is the function that will undo this function?

 

What is the inverse of the function f(x)=x+3? That is asking the question, if I put a number into this function (call that number a), it will give me another number (call it b). What is the function which, whatever number I put in, when applied to the number that comes out from the first function will be the original number. That is to say:

 

If f(a)=b. Then what is the function g for which g(b)=a. That would give you g(f(a))=a. g Is then the inverse of f and we can write g(x)=f^{-1}(x). g(x) is the thing that undoes f. Put simply, composing the inverse of a function, with the function will, on the appropriate domain, return the identity (ie. not do anything to the number you put in).

 

In the case of the above function f(x)=x+3, the answer is simple. If I want to undo the action of ‘adding 3’, all I have to do is to subtract 3. So f^{-1}(x)=x-3. Try composing these functions:

 

f^{-1}\circ f=(x+3)-3=x

 

Here, we don’t have to specify the domain because this will work everywhere. In particular, the range of the original function (all the numbers that it can spit out) and the domain of the second function (all the numbers that it can take in) are the same. So whatever number we put into the original function come out and can be taken by the second function (the inverse) and all is well.

 

What is the inverse of f(x)=x^2? Well, as it stands, there isn’t a unique answer. We are trying to find a unique inverse for a function. Let’s say we put in the number 2. Of course we get out 4. If we put in 3, we get out 9. It’s pretty clear how to undo this process. We just take the square root. So you might be tempted to say that here the inverse of f is: f^{-1}(x)=\sqrt{x}. Indeed if you put 9 into this you get out 3, so you’re back to where you started, and we’re happy.

 

How about if we put in -3? Well, putting in -3 to the original function gives us 9. Plug it into what we thought was the inverse and we are left with 3, which isn’t what we started with, so f^{-1}(x)=\sqrt{x} doesn’t seem to have been such a good guess. We could try again with f^{-1}(x)=-\sqrt{x} and it would work for the negative numbers, but it wouldn’t work for the positive numbers. Why is this? Well, the reason is that if you plot the graph of y=x^2, you find a point on the x-axis, it will uniquely take you to a point on the y-axes by finding where it cuts the graph. However, given a point on the y-axis, there are two possible places on the graph that it can cut through. This function is not one-to-one. In fact it is two-to-one. Two different x-values will give the same y-value.

 

For this reason we can’t actually find a unique inverse for a many-to-one function. How can we get around this? Well, the way we will do it is to restrict the domain. The function f(x)=x^2 does not have a unique inverse, but the function f(x)=x^2 restricted to the domain [0,\infty) turns out to be just fine. This function is indeed one-to-one, because we’re saying that we’re no longer allowed to plug in negative numbers. So while the graph of the function on the left doesn’t have an inverse, the middle and right functions do.

 

domains

 

There’s a really easy way to tell whether a function has an inverse by looking at its graph. We know that a function is a well-defined function if it passes the vertical line test: Does a vertical line ever pass through more than one point on the graph? If so, it fails the test and it is not a well defined function. A function is invertible if it passes the horizontal line test: Does a horizontal line ever pass through more than one point on the graph? If so, then it’s not invertible.

 

The other way to picture it is to reflect the graph in the line x=y. If this gives you a well defined function (ie. passing the vertical line test), then you have an invertible function. The solid blue, green and red lines in the graphs below are the graphs above (dashed blue, green and red) flipped in the line x=y (dashed black lines).

domains2

 

Notice that the blue solid line clearly does not define a function, but the green and blue solid lines do (they pass the vertical line test).

 

ok, so it’s clear now that to define an inverse for f(x)=x^2 we have to be careful about the domain – in this case we can choose positive, or negative x, but not both (though of course you could choose a strange domain like (-\infty,-3)\cup[0,3] if you were feeling perverse. Make sure you can see why this would give an invertible function.

 

Let’s now look at a function which is not just two-to-one, but many-to-one. In fact we’re going to look at a function which is infinite-to-one. Let’s look at f(x)=sin(x). Can we invert it? Well, clearly if we reflect y=sin(x) in the line y=x, we get something which definitely doesn’t look like a function (the dashed blue line is y=sin(x), the solid blue line is the reflected y=sin(x) and the dashed black line is y=x).

sinarcsinWhile this might be pretty, the blue solid line sure doesn’t give a function. How could we give a function which is the inverse of sin(x)? Well, again we can restrict the domain.

 

Because trigonometric functions describe angles, it would seem natural to consider the fundamental domain, which is the range 0\le x<2\pi. If we look at this region however it still doesn’t give a one-to-one function, so we have to restrict even more. The most natural domain which gives a one-to-one function would actually be between -\frac{\pi}{2}\le x<\frac{pi}{2}. If we go any further than this in either direction then the function starts to give us values that we’ve already obtained from within this range. Let’s plot the graph of sin(x), and its inverse (as well as the reflecting line y=x) within this range:

 

invsin

Ok, now it looks like we’re getting somewhere. The function looks to be one-to-one and passes the vertical line test, so we seem to have found an inverse function for sin(x) within the restricted domain.

In the next post we will see how we can use this function to solve equations of the form \sin(x)=\frac{1}{2}.

How clear is this post?