Esta lección aún no está traducida. Por ahora se muestra en inglés; la versión en español está en camino.
In algebra you found inverse functions by swapping $x$ and $y$ and solving. Now we can say exactly when that works, using one-to-one and onto, and how inverses behave when functions are chained.
🔑 Idea clave
A function $f : A \to B$ has an inverse $f^{-1} : B \to A$, with $f^{-1}(f(a)) = a$ and $f(f^{-1}(b)) = b$, exactly when $f$ is a bijection. For bijections $f : A \to B$ and $g : B \to C$, $(g \circ f)^{-1} = f^{-1} \circ g^{-1}$: undo the last step first.
💡 Por qué funciona
Reverse every arrow of $f$. For the reversed arrows to form a function from $B$, each element of $B$ needs exactly one arrow coming back. "At least one" is exactly onto; "at most one" is exactly one-to-one. So the inverse exists precisely for bijections. For the composition, $g \circ f$ means "apply $f$, then $g$." To get back you must peel off $g$ first, then $f$, just as you take off your shoes before your socks.
A bijection. Press "Reverse the arrows": every element of $B$ has exactly one arrow back, so the reversed arrows form the inverse function. Remove an arrow, or add one, and see the inverse break.
Worked examples
✏️ Ejemplo resuelto: Inverting a formula
Show that $f : \mathbb{R} \to \mathbb{R}$, $f(x) = 3x - 2$, is a bijection, and find $f^{-1}$.
Solve $y = 3x - 2$ for $x$: $x = \frac{y + 2}{3}$. Every real $y$ gives exactly one real $x$, so $f$ is onto and one-to-one.
So $f^{-1}(y) = \frac{y + 2}{3}$, or, renaming the variable, $f^{-1}(x) = \frac{x + 2}{3}$.
✏️ Ejemplo resuelto: A permutation and its inverse
The bijection $f$ on $\{1, 2, 3, 4\}$ has $f(1) = 3$, $f(2) = 1$, $f(3) = 4$, $f(4) = 2$. Find $f^{-1}(1)$ and $f^{-1}(4)$.
$f^{-1}(1)$ is the input that $f$ sends to $1$: $f(2) = 1$, so $f^{-1}(1) = 2$.
$f(3) = 4$, so $f^{-1}(4) = 3$.
Respuesta: $2$ and $3$
⚠️ Error común
Undoing a composition in the original order. $(g \circ f)^{-1}$ is not $g^{-1} \circ f^{-1}$; that would try to undo $f$ while $g$'s effect is still on top. In the example, $g^{-1}(f^{-1}(125)) = \sqrt[3]{62}$, which is not $2$. Check by plugging one number through: apply $g \circ f$, then your inverse, and see whether you get the number back.
Práctica
Apruebas con 3 respuestas correctas, las 2 últimas seguidas. Cada respuesta correcta da 2 XP.