Composite and inverse functions
A composite function applies one function and then another. An inverse function reverses the action of a one-to-one function. The two ideas are linked: if exists, composing it with returns the original input.
This lesson explains how to calculate composites, find inverses, choose valid domains and ranges, and avoid the notation errors that make these questions harder than they need to be.
Before you start
Section titled “Before you start”You should be comfortable with:
- substituting into function notation
- rearranging equations
- solving linear and quadratic equations
- identifying the domain and range of a function
- reading graphs of functions
Composite functions
Section titled “Composite functions”The composite function means “apply first, then apply ”:
The function nearest to acts first. You can picture the input passing through two machines:
Similarly,
so acts first. In general,
Example 1: finding two composites
Section titled “Example 1: finding two composites”Let
To find , substitute the whole expression wherever appears in :
For , substitute into :
These expressions are different because changing the order changes the calculation.
Example 2: evaluating at a particular input
Section titled “Example 2: evaluating at a particular input”Using the same functions, find .
One method is to use the composite found above:
You can also work from the inside out:
then
The second method is often safer when only one numerical value is required.
Example 3: three functions
Section titled “Example 3: three functions”Let
Find . Read from right to left:
Therefore,
The restriction comes from . Simplifying a composite must not make you forget restrictions inherited from the original functions.
Domains of composite functions
Section titled “Domains of composite functions”For to be defined:
- must lie in the domain of .
- The output must lie in the domain of .
Example 4: a composite with a square root
Section titled “Example 4: a composite with a square root”Let
Then
For a real square root, its input must be non-negative:
so the domain is
In the reverse order,
whose domain is . Again, order matters.
Example 5: a hidden excluded value
Section titled “Example 5: a hidden excluded value”Let
Then
The denominator cannot be zero, so . Equivalently, cannot equal , since is excluded from the domain of .
Inverse functions
Section titled “Inverse functions”An inverse function undoes the original function. If
then
The symbol does not mean the reciprocal . These are different objects:
For example, if , then its inverse is , while its reciprocal is .
The inverse relationship
Section titled “The inverse relationship”Where both compositions are defined,
and
The first composition applies and then undoes it. The second applies the inverse and then reverses that operation with .
How to find an inverse function
Section titled “How to find an inverse function”Use this reliable procedure:
- Write .
- Rearrange the equation to make the subject.
- Replace by and write the result as .
- State the domain of the inverse when it is relevant.
Example 6: inverse of a linear function
Section titled “Example 6: inverse of a linear function”Let
Start with
Rearrange for :
Therefore,
Check by composition:
This check catches most rearrangement errors.
Example 7: inverse of a fractional function
Section titled “Example 7: inverse of a fractional function”Let
Write
Multiply both sides by :
Collect the terms containing :
Hence
so
The inverse excludes because is not in the range of the original function. Notice that the domain and range swap:
When does an inverse exist?
Section titled “When does an inverse exist?”A function has an inverse function only if it is one-to-one on its stated domain. This means that every output comes from exactly one input.
The horizontal line test gives a graphical check. If any horizontal line crosses the graph more than once, the function is not one-to-one and has no inverse on that domain.
For example, on all real numbers has no inverse function because
The proposed inverse could not know whether to return or .
Restricting a domain
Section titled “Restricting a domain”We can make invertible by restricting its domain.
If
then
If instead
then
The same formula for therefore produces different inverses on different restricted domains.
Example 8: inverse of a restricted quadratic
Section titled “Example 8: inverse of a restricted quadratic”Let
Find .
Begin with
Then
Because the original domain says , we know . We therefore take the positive square root:
Thus
The inverse domain is the range of .
If the original restriction had been , the inverse would instead be
Graphs of inverse functions
Section titled “Graphs of inverse functions”The points on a function and its inverse have their coordinates exchanged:
So if lies on , then lies on . Exchanging coordinates reflects a graph in the line
This explains why the domain and range swap. It also provides a visual check: the graphs of a function and its inverse should be mirror images in . See transformations of graphs for related graph techniques.
Solving equations using composites and inverses
Section titled “Solving equations using composites and inverses”Example 9: solve a composite equation
Section titled “Example 9: solve a composite equation”Let
Solve .
First form the composite:
Now solve:
Both answers are valid unless the domain has been restricted.
Example 10: use an inverse to solve an equation
Section titled “Example 10: use an inverse to solve an equation”Let . Solve .
The inverse is
Apply to both sides:
This is the function version of performing inverse operations on an equation.
Example 11: find an unknown function
Section titled “Example 11: find an unknown function”Suppose
and
Find .
Since , applying to gives
Therefore,
so
Alternatively, apply to the composite:
Common misconceptions
Section titled “Common misconceptions”- Reading from left to right. The inside function acts first, so .
- Treating as . An inverse reverses a function; a reciprocal divides by its output.
- Replacing only part of an expression. When substituting into , use brackets around the entire expression before simplifying.
- Assuming every function has an inverse. A function must be one-to-one on its stated domain.
- Writing automatically when inverting a quadratic. The domain restriction determines which square-root branch is valid.
- Forgetting domains after simplifying. Restrictions from denominators, roots and the original function still apply.
- Checking only . When domains are delicate, check both and on their appropriate domains.
Quick checks
Section titled “Quick checks”1. Calculate composites
Section titled “1. Calculate composites”Given
find and .
Answer
2. Find an inverse
Section titled “2. Find an inverse”Find the inverse of
Answer
From ,
Therefore,
3. Use a restricted domain
Section titled “3. Use a restricted domain”The function
has domain . Find and state its domain.
Answer
Complete the square:
Since , take the positive square root when reversing the function:
Hence
4. Check a domain
Section titled “4. Check a domain”Let
Find and state its domain.
Answer
The input to cannot be zero, so . The domain is therefore .
What to learn next
Section titled “What to learn next”Composite and inverse functions support later work with function transformations, exponential functions, and inverse trigonometric functions. Before moving on, make sure you can explain why composition order matters and why a domain restriction may be necessary before an inverse exists.