1.2 - Combining functions
Applying one function after another creates a new function, but the order and permitted inputs both matter. In this part of 1.2, you will form composite rules, decide when a composition exists, and solve equations while keeping the original domain restrictions.
Order of composition
Start with , double it, then add : the answer is . Add first, then double: the answer is . Why does using the same two operations give different answers? A composition records their order.
Let and . The chain means apply , then . Cambridge writes the combined function as : the function nearest the input acts first.
Composite function
The composite function means after : first calculate , then use that output as the input to . It is not multiplication of by .
To form an expression, replace every occurrence of the input variable in the outer rule by the entire inner expression. Brackets protect that expression.
Order of composition
In general, . Each composition also requires the inner outputs to be permitted inputs to the outer function.
Not in the formula booklet: learn it.
The following pair uses the same two functions and changes only their order.
Worked example 1: applying g after f
Question. Functions and are defined for all real by and . Find and .
Plan. Put into the square in , then simplify.
Answer. , and .
Check. Following the original chain, and , agreeing with the composite expression.
Reverse the order. This time the square is formed before doubling and subtracting .
Worked example 2: applying f after g
Question. For the same functions and , find and .
Plan. Replace the input in by .
Answer. , and .
Check. , then . The values and confirm that reversing the order can change the result.
A repeated composition is written . For example, if , then . This differs from , which squares the output.
Watch out
The wrong line substitutes into only part of the square. The correct line is .
Try the reversed order with a fresh pair.
When composition exists
An output from the first function must be a legal input to the second. If even one input in the stated domain of produces an output outside the domain of , then cannot be formed on the whole stated domain of .
Condition for a composite
The composite , with domain equal to the stated domain of , exists only when
Here means “is contained in”, including the possibility of equality.
Not in the formula booklet: learn it.
For example, if has range and has domain , every output of can enter , so exists. The two sets need not be equal. Do not compare the two domains, and do not compare the range of with the domain of when deciding about .
Sometimes a composition fails for the original functions, but a restriction of the inner function's domain makes it possible. State that restriction explicitly: you are then forming a composite using the restricted function, rather than claiming that the original composite existed.
Worked example 3: including the boundary
Question. Let for , and for . Determine whether exists for the stated functions. If it does not, find the largest restriction of the domain of that permits it, and give the composite rule.
Plan. Compare the whole range of with the domain of , then require .
The range of is . It includes negative values, which are outside the domain of ; for instance, .
For a restriction that works,
This is already inside the original domain .
Answer. The original does not exist on . Restricting to permits the rule , with domain .
Check. At the boundary , the chain is , which is defined. Every gives a non-negative inner output.
Change the outer rule by taking its reciprocal. Zero is now forbidden, so the endpoint changes from inclusive to strict.
Worked example 4: excluding the boundary
Question. Let for , and for . Determine whether exists for the stated functions. Find the largest restriction of the domain of that permits it and give its rule.
Plan. Require the inner output to be strictly positive, because it enters a square root in a denominator.
The range of is not contained in . For the restricted function,
Answer. The original does not exist on . Restricting to gives , with domain .
Check. At , the chain gives . At , it would require , confirming why equality must be excluded.
Always retain the original restrictions. If the inner function had domain , the requirement would leave the composite domain at , rather than enlarge it to . Cancelling algebraic factors also does not restore an input excluded by an original rule.
Exam tip
Support an existence decision with the relevant range and domain. A successful numerical example proves only that one chain works; the condition must hold for every input in the inner function's stated domain.
Use the strict boundary in a new composition.
Equations with composites
A composite equation is an ordinary equation after you have formed the correct rule. Its solutions must still belong to the composite's domain. Algebra can produce a candidate that the function itself does not allow.
Worked example 5: a non-negative input
Question. Let for , and for . Solve .
Plan. Form , solve the equation, then apply the domain of .
The range of is , contained in the domain of , so the composite exists on .
The real numbers whose square is are and . Only is in the domain.
Answer. .
Check. , then . The rejected value is not a permitted input to , even though it satisfies the algebraic equation.
Change only the domain of the inner function. The equation is unchanged, but the accepted answer switches branch.
Worked example 6: a non-positive input
Question. Let for , and for . Solve .
Plan. Use the same composite algebra, then keep the candidate allowed by .
Only the negative candidate belongs to the stated domain.
Answer. .
Check. , then . The positive candidate would require evaluating , which is undefined.
For an equation such as , first find both composite rules and both domains. A solution must belong to both domains, so use their intersection. If the resulting equation has no permitted root, state that there is no solution.
Watch out
“” solves over all real numbers. It is not the final answer when the original function restricts to one side of zero. Test candidates against the original domain before substituting them into the original chain.
Solve one more equation on a negative branch.
Quick Recap
- In , apply first and second; substitute the whole inner expression.
- For the stated functions, the range of must be contained in the domain of .
- If a domain restriction is needed, state it explicitly and retain every original restriction.
- Solve a composite equation using its rule, then reject candidates outside its domain.
The opening calculations differ because composition records an order: doubling before adding is not the same as adding before doubling.