Algebra Precalculus – Can a Function Have More Than One Left Inverse?

algebra-precalculusfunctions

Given two non-empty sets $A$ and $B$, and given a function $f \colon A \to B$, a function $g \colon B \to A$ is said to be a left inverse of $f$ if the function $g o f \colon A \to A$ is the identity function $i_A$ on $A$, that is, if $g(f(a)) = a$ for each $a \in A$. Similarly, a function $h \colon B \to A$ is a right inverse of $f$ if the function $f o h \colon B \to B$ is the identity function $i_B$ on $B$.

I know that if $f$ has a left inverse, then $f$ is injective, and if $f$ has a right inverse, then $f$ is surjective; so if $f$ has a left inverse $g$ and a right inverse $h$, then $f$ is bijective and moreover $g = h = f^{-1}$.

I also know that a function can have two right inverses; e.g., let $f \colon \mathbf{R} \to [0, +\infty)$ be defined as $f(x) \colon = x^2$ for all $x \in \mathbf{R}$. Then both $g_+ \colon [0, +\infty) \to \mathbf{R}$ and $g_- \colon [0, +\infty) \to \mathbf{R}$ defined as $g_+(x) \colon = \sqrt{x}$ and $g_-(x) \colon = -\sqrt{x}$ for all $x\in [0, +\infty)$ are right inverses for $f$, since $$f(g_{\pm}(x)) = f(\pm \sqrt{x}) = (\pm\sqrt{x})^2 = x$$ for all $x \in [0, +\infty)$.

Can a (non-surjective) function have more than one left inverse?

Best Answer

If you don't require the domain of $g$ to be the range of $f$, then you can get different left inverses by having functions differ on the part of $B$ that is not in the range of $f$.