Composition and Inverse Functions
Pass outputs through composed functions in the correct order, including domain restrictions on intermediate values. Determine when an inverse can uniquely recover an input and distinguish inversion from reciprocation.
Function composition joins rules by using one function's output as another function's input. An inverse function reverses a rule without losing which input produced which output. Both ideas require attention to order, domains, and information that may have been discarded.
Composition Passes an Output Forward
Let
and
The composition means apply first and then apply :
composed with , evaluated at , means apply to first and then apply to that result.
At , the intermediate value is , and the final output is .
Composition is read from the inside outward. In , the inner expression is evaluated first. The notation follows the same order even though is written on the left.
Order matters. Reversing the functions gives:
which is generally different from .
Exercise: Evaluate a composition
Let and . What is ?
Compute it first, then check your number.
HintWork from the inside outward
First compute . Use that output as the input to .
SolutionFollow the composition order
Apply first:
Then apply :
Therefore . Reversing the order would evaluate , a different result.
The Intermediate Output Must Be Allowed
The composition is defined only for inputs for which is defined and the resulting value belongs to the domain of .
For example, let:
Then:
Over the real numbers, the intermediate value must satisfy . Therefore the composition has domain , even though itself accepts every real input.
Exercise: Find the domain of a composition
Let and . What is the smallest real input allowed for ?
Compute it first, then check your number.
HintApply the outer function's domain
The outer square root requires .
SolutionRestrict the intermediate value
The composition is:
Its real-valued domain requires:
The smallest allowed input is .
Long compositions are often easier to inspect when intermediate values are named. If and , then . The same pattern describes unit conversion, coordinate transformations, signal processing stages, and layers in a neural network.
Composition is associative when all expressions are defined:
The grouping may change, but the order then then does not.
An Inverse Reverses a Function
Suppose maps an input to an output . An inverse function maps that output back to the original input. On the relevant domains, both directions must hold:
and
The notation means inverse function. It does not mean the reciprocal .
For:
write and solve for :
Therefore:
The inverse undoes the forward operations in reverse order: subtract and then divide by .
Exercise: Evaluate an inverse
For , what is ?
Compute it first, then check your number.
HintReverse the two operations
The forward rule multiplies by and then subtracts . Undo them in reverse order.
SolutionRecover the original input
Solving for gives:
Therefore:
Checking with the forward rule gives .
Exercise: Distinguish an inverse from a reciprocal
If , which rule is its inverse?
Select one choice, then check.
HintTest the round trip
Apply the candidate rule to and see whether it returns .
SolutionUndo multiplication
The forward function multiplies by , so the inverse divides by :
The round trip confirms it:
The reciprocal is a different function and does not undo .
An Inverse Requires Unique Recovery
For an inverse to recover an input, different allowed inputs must not produce the same output. Such a function is called one-to-one, or injective.
The function is not one-to-one on all real numbers because both and map to . From the output alone, an inverse cannot know which input to return. On a graph, this failure appears when a horizontal line crosses the graph more than once.
If the domain is restricted to , every output in has one allowed input, and the inverse is:
The inverse swaps the original function's domain and range. Its graph is the reflection of the original graph across the line .
Exercise: Identify a lost input distinction
Why does have no inverse on all real numbers?
Select one choice, then check.
HintTest opposite inputs
Evaluate the function at and .
SolutionShow the collision
Both inputs produce the same output:
An inverse receiving would not know which original input to return. Restricting the domain to or to would remove the collision and permit an inverse on the corresponding range.
Trace Forward, Then Reverse
For a composition, work from the innermost function outward and check that each intermediate value belongs to the next function's domain. For an inverse, ask whether the output uniquely identifies its input, reverse the operations in the opposite order, and verify both round trips. If a stage merges several inputs into one output, later stages cannot recover the lost distinction.