The theorem lands in graph-world
Recall from the Sets stratum (composition-inverses node): a function has an inverse if and only if is a bijection — both injective (one-to-one: different inputs give different outputs) and surjective (every output is achieved).
In graph-world, injectivity has a visual test: the horizontal line test. A function is injective if and only if every horizontal line intersects its graph at most once. Why? Because a horizontal line hits the graph at exactly the points where . If the line hits twice, there are two inputs mapping to the same output — injectivity fails, the bijection dies, and the inverse doesn't exist. The test is a single sweep of your eye; do not skip it.
Surjectivity is a domain/codomain declaration issue: the function defined by is not surjective onto (negative numbers aren't hit), but it IS surjective onto . The same function, different codomain choice, different verdict.
Putting it together: to get an invertible function, you need
- the horizontal line test to pass (injectivity), and
- the codomain to equal the range (surjectivity, which you often achieve by just declaring the codomain to be the range).
When both hold, is a bijection and exists.
Finding the inverse: swap and solve
Given , to find :
- Write .
- Swap and : write .
- Solve for . That is .
Why swapping works. The inverse function reverses the input-output pairing. If maps , then maps . Swapping and in the equation implements exactly this: the old input becomes the new output and vice versa. It's the same move we made in the Sets stratum — same fucking idea, different notation. You've already done this. You just didn't know it yet.
Example: .
Swap: . Solve: . So .
Verifying via composition — this IS the definition. An inverse must satisfy and . Check:
The composition test is not a ritual — it is the definition of inverse function, straight from the composition-inverses node. Do it until it's automatic.
Graphs mirror across
If is on the graph of — meaning — then is on the graph of — meaning . The input and output swap.
Now: what geometric transformation swaps and coordinates? Reflection across the line .
The graphs of and are mirror images across . Every point swaps its coordinates. The line is the mirror.
Verify it visually:
In that grapher, and are reflections of each other across (the third function). Every log law re-read: "the mirror of the exponential."
Restricting domains to force invertibility:
on fails the horizontal line test — . Not injective. Not invertible. If you naively "swap and solve," you get , which is not a function (two outputs for one input).
The fix: restrict the domain. On , the function is strictly increasing, hence injective, hence invertible. Its inverse on is .
This is not a cheat. It's the honest story behind the convention : the square root is defined as the inverse of on , and we pick the non-negative branch by convention to get a function. The convention exists to make a proper function, not some multi-valued fog machine. Conventions matter.
The same pattern repeats throughout mathematics: inverse trig functions (, , ) restrict the domain of sine, cosine, tangent to intervals where they're injective, producing proper inverse functions. The principle is always the same.
Exponential and logarithm: the marquee pair
is strictly increasing (for ) or strictly decreasing (for ) — either way, it passes the horizontal line test. Its inverse is .
The defining relationship:
These are just the two composition identities and , expressed in the specific notation of exponents and logs.
Every single log law, re-read as an inverse statement:
- : the log undoes the exponential.
- : the exponential undoes the log.
- : because — the inverse just translates the exponential product law.
The logarithm is not a separate subject. It is the inverse function of the exponential, full stop. Every log property is an exponential property read backwards through the mirror. If this feels obvious now, good — it should have felt obvious from day one, and the fact that it doesn't in most courses is the entire reason this lab exists.