Composition follows one function with another. Inversion reverses a one-to-one relationship. Both operations depend on which inputs and outputs are actually allowed, not just on the simplified appearance of a formula.
This lesson develops domain-sensitive compositions, rational inverses, restricted square-root branches and inverse transformations in reverse order. The introductory Composite Functions and Inverse Functions pages remain the starting points.
On this page
Determine a composite domain before simplifying
For , an input must first belong to the domain of , and its output under must belong to the domain of :
This is a two-stage condition, not simply the intersection of the two original input domains. The second function receives , not .
Let
For , first require . Then require . Since
the square-root condition holds exactly when . Hence
The endpoint 2 is excluded by the inner denominator. There is no allowed point at which the numerator 5 becomes zero.
Reverse the order and obtain a different domain
For , first require . Then the input supplied to must not equal 2:
Thus
The two composites differ in both formula and domain. A valid calculation of cannot be relabelled as . The OpenStax composition treatment states the underlying two-stage domain rule.
Retain a hole concealed by reciprocal cancellation
Take and . The inner function requires , and its value is never zero, so it always belongs to the domain of once that restriction is met.
Algebra gives
The final formula is a line with the point removed. Its range is , not all real numbers. The inverse of this restricted function is with domain .
An identity obtained after cancellation can conceal a lost input or output. Evaluate the original function stages before declaring that a composite is the unrestricted identity or an unrestricted polynomial.
Find a rational inverse and prove its range
Let
Set and solve for the original input:
The output 2 is impossible: would give . Conversely, for every , the proposed input is defined and is not 1; equality to 1 would again require . Substitution returns .
Therefore the range of is exactly , and
Its range is . Checking both compositions yields for and for .
Exchange coordinates and swap the actual domain and range
Diagram explanation and exact data
F has domain excluding 1 and range excluding 2. Its inverse has domain excluding 2 and range excluding 1. The point (0,-3) on F corresponds to (-3,0) on the inverse.
| Point on F | Reflected point on inverse |
|---|---|
The two graphs reflect across . Equal horizontal and vertical axis units are necessary if that reflection is to be represented faithfully in a drawing.
Check when a linear-fractional formula is invertible
For with real coefficients, a nonzero determinant is the decisive condition. Rearranging gives
If , the original domain excludes and its range excludes . The inverse has those exclusions exchanged. Substituting the inverse expression into the original returns because prevents the denominator from vanishing on the stated inverse domain.
If , the nonzero determinant requires , and the function is an ordinary invertible affine function. If and , the expression is constant, , wherever defined. It is not one-to-one on that full domain, so the apparent inverse formula must not be used. An identically zero denominator defines no function at all.
Choose the inverse branch from the original restriction
For , the unrestricted graph is not one-to-one. Solving gives two algebraic possibilities:
If the original domain is , choose the plus branch. Then
If the original domain is , choose the minus branch instead. A function inverse gives one output per input; writing an unresolved “±” would describe an inverse relation, not a single inverse function.
The composition exposes the restriction:
This equals when , but not generally when . The branch condition is what turns the expression into the correct inverse, not a licence to replace every by .
Reverse a chain of transformations
Consider
Its domain is all real numbers, and its range is . To reverse it, subtract 3, divide by 2, take the natural logarithm, add 1, then divide by 4:
The order is the reverse of the forward construction. Taking the logarithm before subtracting 3 would invert a different function.
If the original domain is restricted to , the range becomes
The same inverse formula then has this restricted interval as its domain. Inversion swaps the actual domain and range, not the largest natural domains that happen to fit the formulas.
Justify the inverse of a composite
If is a bijection from to and is a bijection from to , then
as a function from to . For a value , first undo to recover its input in , then undo to recover the original element of . This proves the order rather than merely memorising it.
When functions are restricted or their full ranges do not match, choose the relevant sets and restrictions explicitly before applying this formula. A cancellation inside a symbolic composition is not enough to establish bijectivity on arbitrary domains. The OpenStax inverse-function treatment gives the one-to-one and composition foundations.
For example, from to has inverse . The same square function from all reals is not one-to-one. Changing the domain changes whether the inverse-function law applies.
Practice questions
- Find the real domain of .
- Find the inverse of , stating its domain and range.
- Find the inverse of when the original domain is .
Check your answers
- First exclude 2. The radicand simplifies to , which is nonnegative exactly when . Thus the domain is .
- Solving gives . Its domain excludes 2 and its range excludes 1, reversing the original range and domain.
- The original restriction selects the lower branch: for . Its range is .
Related topics
Use Advanced Function Transformations for complete point and interval mappings. Inverse Trigonometric Functions applies branch restrictions to periodic functions; Limits in Calculus develops behaviour at the boundaries of these domains.
