1. Home
  2. Explore
  3. Mathematics
  4. Invertible Functions and Unique Preimages

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Invertible Functions and Unique Preimages

Invertible Functions and Unique Solutions

Let f:X→Yf:X\to Yf:X→Y be a function from a domain XXX to a codomain YYY. The equation

f(x)=yf(x)=yf(x)=y

asks whether an input x∈Xx\in Xx∈X maps to a specified output y∈Yy\in Yy∈Y.

The key relationship is:

A function f:X→Yf:X\to Yf:X→Y is invertible if and only if, for every y∈Yy\in Yy∈Y, the equation f(x)=yf(x)=yf(x)=y has exactly one solution x∈Xx\in Xx∈X.

The phrase “exactly one solution” contains two requirements: a solution must exist, and no other solution may exist.


What invertibility means

A function f:X→Yf:X\to Yf:X→Y is invertible when there is a function f−1:Y→Xf^{-1}:Y\to Xf−1:Y→X that reverses the action of fff. Applying the function and then its inverse returns the original input; applying the inverse and then the function returns the original output:

f−1∘f=id⁡Xandf∘f−1=id⁡Y.f^{-1}\circ f=\operatorname{id}_X \qquad\text{and}\qquad f\circ f^{-1}=\operatorname{id}_Y.f−1∘f=idX​andf∘f−1=idY​.

Here, id⁡X\operatorname{id}_XidX​ and id⁡Y\operatorname{id}_YidY​ are the identity functions on XXX and YYY. An identity function leaves every element unchanged.

  • For every x∈Xx\in Xx∈X, f−1(f(x))=xf^{-1}(f(x))=xf−1(f(x))=x.

  • For every y∈Yy\in Yy∈Y, f(f−1(y))=yf(f^{-1}(y))=yf(f−1(y))=y.

The inverse has domain YYY and codomain XXX, reversing the direction of the original function.


If fff is invertible, every yyy has a unique preimage

Suppose fff is invertible, and choose any y∈Yy\in Yy∈Y. Since f−1f^{-1}f−1 maps elements of YYY to elements of XXX, the value f−1(y)f^{-1}(y)f−1(y) is an element of the domain.

Using the inverse identity,

f(f−1(y))=y.f\bigl(f^{-1}(y)\bigr)=y.f(f−1(y))=y.

Therefore, x=f−1(y)x=f^{-1}(y)x=f−1(y) is a solution to f(x)=yf(x)=yf(x)=y. A solution exists for every y∈Yy\in Yy∈Y.

To see why the solution is unique, suppose some x∈Xx\in Xx∈X satisfies f(x)=yf(x)=yf(x)=y. Applying f−1f^{-1}f−1 to both sides gives

f−1(f(x))=f−1(y).f^{-1}(f(x))=f^{-1}(y).f−1(f(x))=f−1(y).

Since f−1∘f=id⁡Xf^{-1}\circ f=\operatorname{id}_Xf−1∘f=idX​, the left side is xxx. Thus,

x=f−1(y).x=f^{-1}(y).x=f−1(y).

Every solution must equal f−1(y)f^{-1}(y)f−1(y), so there cannot be a second, different solution. Hence, for each y∈Yy\in Yy∈Y, the unique solution is

x=f−1(y).x=f^{-1}(y).x=f−1(y).

If every yyy has a unique preimage, then fff is invertible

Now suppose that for every y∈Yy\in Yy∈Y, the equation f(x)=yf(x)=yf(x)=y has a unique solution in XXX.

This assumption allows a function s:Y→Xs:Y\to Xs:Y→X to be defined by assigning to each yyy its unique solution:

s(y)=the unique x∈X such that f(x)=y.s(y)=\text{the unique }x\in X\text{ such that }f(x)=y.s(y)=the unique x∈X such that f(x)=y.

This definition gives a valid function because every y∈Yy\in Yy∈Y has exactly one corresponding solution. Thus, sss assigns one and only one element of XXX to each element of YYY.

The composition f∘sf\circ sf∘s

For any y∈Yy\in Yy∈Y, the value s(y)s(y)s(y) is defined to be a solution of f(x)=yf(x)=yf(x)=y. Therefore,

f(s(y))=y.f(s(y))=y.f(s(y))=y.

This holds for every y∈Yy\in Yy∈Y, so

f∘s=id⁡Y.f\circ s=\operatorname{id}_Y.f∘s=idY​.

The composition s∘fs\circ fs∘f

Take any a∈Xa\in Xa∈X. The value f(a)f(a)f(a) is in YYY. By definition, s(f(a))s(f(a))s(f(a)) is the unique element of XXX that solves

f(x)=f(a).f(x)=f(a).f(x)=f(a).

The element aaa is a solution to this equation. Because the solution is unique, it must be the only one. Consequently,

s(f(a))=a.s(f(a))=a.s(f(a))=a.

This holds for every a∈Xa\in Xa∈X, so

s∘f=id⁡X.s\circ f=\operatorname{id}_X.s∘f=idX​.

The function sss therefore satisfies both conditions required of an inverse. Hence, fff is invertible, and s=f−1s=f^{-1}s=f−1.


Connection to one-to-one and onto functions

The unique-solution condition combines two important properties:

  • Onto (surjective): Every y∈Yy\in Yy∈Y is the image of at least one x∈X.Thisensuresthatasolutiontox\in X. This ensures that a solution tox∈X.Thisensuresthatasolutiontof(x)=yexistsforeveryexists for everyexistsforeveryy$ in the codomain.

  • One-to-one (injective): No two distinct elements of XXX map to the same element of YYY. This ensures that the solution is unique.

Thus, f:X→Yf:X\to Yf:X→Y is invertible exactly when it is both one-to-one and onto—that is, bijective.


Main result

For a function f:X→Yf:X\to Yf:X→Y, the following statements are equivalent:

  1. fff is invertible.

  2. Every y∈Yy\in Yy∈Y has exactly one preimage in XXX.

  3. The equation f(x)=yf(x)=yf(x)=y has a unique solution x∈Xx\in Xx∈X for every y∈Yy\in Yy∈Y.

  4. fff is both one-to-one and onto.

When these conditions hold, the unique solution for a given yyy is x=f−1(y)x=f^{-1}(y)x=f−1(y).

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent