The SSN you have is yours alone: no other (living) person has your SSN.
So we can consider the function SSA that associates Americans with their unique SSNs. Now the Social Security Administration (SSA) can take your name and give your SSN; furthermore, if I give them a SSN, they can tell me your name. That is, they can go back and forth between their domain and range. They can go "backwards".
So really we can think of two functions here: one, call it , that has as its domain names, and returns SSN numbers (which are in the range); from that function, we can define another function, call it , which has its domain SSN numbers, and which returns names in its range.
Now here's a function that won't work backwards. Consider the function IRS, which takes your name and associates it with the income taxes you paid last year. While the IRS can take your name (and SSN!), and tell how much you paid in taxes (let's say that it was $500), they can't take a dollar amount ($500) and tell your name -- because there might be 100,000 people who paid that amount in taxes. The tax amount is not unique to you, in general.
The first kind of function is called a one-to-one function, and it is invertible -- that is, from it we can create another function which goes backwards, from the range of the original function to the domain. Here's a picture of the situation:
Notice the notation: the inverse of is , and the domains and ranges of the two are interchanged.
Graphically, we use the horizontal line test to see if a function is one-to-one:
Left: one-to-one
No horizontal line crosses more than once |
Right: not one-to-one
Here's a horizontal line that crosses more than once |
If no horizontal line crosses the function more than once, then the function is one-to-one.
Question: which functions in our function zoo are one-to-one, and hence invertible?
This says maps to , then sends back to .
This says maps to , then sends back to .
The role of is played by 2; the role of is played by 4.
This is the silly step! Because our favorite independent variable is x, we do this. There's no reason not to leave the inverse as
It will just bother most textbook writers.
In fact, it's better to leave it this way, because it indicates that the domain of is the range of (and vice versa).
If you understand why I'm making a big deal about this, then you're doing really well. Keep it up! If you don't understand, ask a question.
It's easy, if you have the graph of : just reflect the graph of across the line :
Why does this work? Because the inverse function just swaps the domain and range of , which means that the x and y-axes are swapped.
Notice that the example of function composition has invertible functions everywhere:
From this picture we can conclude that the composition of invertible functions is invertible on its domain.