Invertible Functions and Unique Preimages


Invertible Functions and Unique Preimages

Hope
Let’s look at a function f from a set X to a set Y. The key question is: when is f invertible? We’ll show that it’s exactly when, for every y in the codomain Y, the equation f(x) = y has one and only one solution x in X.

Anna
That phrase “for every y in the codomain” is important. We’re not just asking whether some outputs can be reached. We’re asking whether every member of Y has a preimage, and whether that preimage is unique.

Hope
Start by assuming f is invertible. That means there’s an inverse function, f inverse, mapping from Y back to X. It satisfies two composition rules: f inverse composed with f is the identity on X, and f composed with f inverse is the identity on Y.

Anna
In everyday terms, going from X to Y with f and then back with f inverse returns you to your original element of X. And starting in Y, going back with f inverse and then forward with f returns you to your original element of Y.

Hope
Now choose any y in Y. Because f inverse maps every element of Y into X, f inverse of y is an element of X. And the composition rule tells us that f applied to f inverse of y gives us y. So we’ve found a solution to f(x) = y: it’s x = f inverse of y.

Anna
That proves a solution exists for every y. How do we know it’s the only solution? Suppose some x in X also satisfies f(x) = y. Apply f inverse to both sides. Then x becomes f inverse of f of x, which equals x by the identity rule. On the other side, we get f inverse of y. So any solution must equal f inverse of y.

Hope
Exactly. The inverse gives us a solution, and the composition rule shows every possible solution has to be that same one. So invertibility implies a unique solution for every y in Y.

Anna
Now let’s prove the reverse. Suppose that for every y in Y, the equation f(x) = y has a unique solution in X. We want to use that assumption to build an inverse function.

Hope
Define a function s from Y to X like this: s(y) is the unique solution in X to f(x) = y. This is a valid function because our assumption gives a solution for every y, and uniqueness means there’s exactly one value of X assigned to each y.

Anna
So s takes an output y and returns the one input that f sends to y. Let’s check the first composition. If we start with any y in Y, s(y) is a solution to f(x) = y. Therefore f of s of y equals y.

Hope
And because that works for every y in Y, the composition f composed with s is the identity function on Y. In symbols, f∘s = identity on Y.

Anna
We also need the other composition: s composed with f should be the identity on X. Take any a in X. Applying f gives f(a), which is an element of Y. Then s of f(a) is the unique solution to the equation f(x) = f(a).

Hope
But a itself solves that equation. Since the solution is unique, it must be a. So s(f(a)) = a for every a in X, which means s∘f is the identity on X.

Anna
Now we have both composition rules: f∘s is the identity on Y, and s∘f is the identity on X. Those are precisely the conditions for s to be an inverse of f.

Hope
So the assumption that every y has a unique solution lets us construct an inverse. The ‘every y has a solution’ part ensures all of Y is reached; the ‘unique’ part ensures each y comes from only one x.

Anna
Putting both directions together: f is invertible if and only if, for every y in its codomain Y, there exists a unique x in its domain X such that f(x) = y. And when f is invertible, that unique solution is f inverse of y.

Ask anything
We've read this whole study set, so questions about it get the best answers.