Combining and Composing Functions
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Form arithmetic combinations and retain every restriction from the original functions
- Evaluate compositions from tables and formulas by following the inside function first
- Compare composition orders and explain how intermediate units connect a model
- Determine a composite domain by checking the input and the intermediate output
- Decompose a formula and verify both its rule and its allowed inputs
Combining outputs at the same input
Suppose and . At input , we can add the outputs to get , subtract them to get , multiply them to get , or divide them to get . Each calculation uses the same input in both functions.
These arithmetic combinations of functions apply the named operation to the two outputs:
| Combination | Output at input |
|---|---|
| Sum | |
| Difference | |
| Product | |
| Quotient |
Write and for the domains of and , respectively. An input must belong to both original domains before either pair of outputs exists. Therefore the sum, difference, and product have domain , the intersection of the two domains. The quotient needs the additional condition . These are the domains of the combined functions unless a narrower domain is explicitly specified.
Worked example 1 Four operations, two domain decisions
Problem. Let on all real inputs and on its natural real domain. Give a formula and domain for each combination.
Part A: The sum .
Part B: The difference .
Part C: The product .
Part D: The quotient .
Solution. The root requires , or . Since accepts every real input, the shared domain is .
Part A: Add the outputs:
The domain is .
Part B: Subtract the second output from the first:
The domain is again .
Part C: Multiply the outputs:
The domain is . The product is defined at , where the root is zero.
Part D: Divide the first output by the second:
Now the root must also be nonzero. Exclude , leaving domain .
Check your understanding
The declared domains of and are and . What is the domain of ?
Both outputs must exist at the same input. The inputs shared by the two domains run from through , including both endpoints.
A simpler formula keeps its original restrictions
Simplifying a quotient changes its written form. It does not supply an output where the original quotient was undefined.
Worked example 2 A canceled factor leaves an excluded input
Problem. Let and , both on all real inputs. Define .
Part A: Simplify and state its domain.
Part B: Find .
Part C: Decide whether exists.
Solution. Part A: The denominator is zero at , so that input is excluded before we simplify. For the remaining inputs,
Canceling the nonzero factor gives for . Its domain is .
Part B: Input is allowed, giving .
Part C: Input is not allowed, because the original quotient would divide zero by zero. Thus does not exist.
The function on all real inputs has an extra point at input . It agrees with wherever is defined, but they are different functions because their domains differ. This remains true when a simplification looks harmless, such as multiplying a partially defined function by zero.
Passing one output into another function
Arithmetic uses two outputs at the same input. Composition instead uses one output as the next input. If and , then starting at , applying , and applying gives .
We write this as
The general notation is , read “f composed with g.” The inner function acts first. The symbol does not mean multiplication.
For example, let and , both on all real inputs. Replace the entire input of with :
In the other order, the whole output becomes the input to the squaring rule:
At input , the first order gives , while the second gives . Some particular pairs of functions do give the same composite in both orders, but there is no general permission to swap them.
For a table, perform the same two lookups: first find in the inner table, then look for that value as an input in the outer table. Do not read both tables at the original input.
Check your understanding
Given , , and , what is ?
The inner lookup gives . Use as the input for the outer lookup, giving . The value is not used in this order.
Order and units belong to the model
Worked example 3 A fixed discount before or after tax
Problem. A pricing model uses a discount dollars for an amount dollars and a tax rule dollars for . Compare starting prices , so both policies below are available. No other fees apply.
Part A: Write the price rule for discount first, then tax, and evaluate it for a starting price of dollars.
Part B: Write the price rule for tax first, then discount, and evaluate it at the same starting price.
Part C: State which policy is cheaper and by how much throughout the stated comparison domain.
Solution. Part A: Tax acts on the discounted amount, so it is the outer function:
At , the discount leaves dollars and the tax gives dollars.
Part B: The discount acts on the taxed amount:
At , tax gives dollars and the discount leaves dollars.
Part C: The first rule is ; the second is . Discount first is therefore cheaper by dollars for every . The tax is applied to a smaller amount in that policy.
Units also decide whether a proposed chain describes the intended process. Suppose gives liters of liquid after minutes, and gives the mass in kilograms of liters of that liquid. Use nonnegative times and volumes. Then converts minutes to liters to kilograms.
At three minutes, gives six liters, which converts to kilograms. The reversed expression does not describe this process: expects liters, not minutes, and expects minutes, not kilograms. Substituting numerical formulas alone would hide the mismatch.
Check your understanding
A model converts seconds to meters traveled, and converts meters traveled to energy used in joules. Which expression gives energy as a function of time?
First takes seconds and produces meters. Those meters are valid input units for , which produces joules. The intermediate quantity connects the models in that order.
Checking both stages of a composite domain
An input can pass the first rule and still fail the second. For and , input passes through both stages:
But if the square root gives zero, the reciprocal cannot use that output. The second check concerns , not the original number .
Worked example 4 A square root inside a reciprocal
Problem. Let on its natural real domain, and let for .
Part A: Write and find its domain.
Part B: Determine whether input is allowed, and explain how that is consistent with the domain of .
Solution. Part A: Substitute the root into the reciprocal:
The inner root needs . The outer reciprocal needs the root to be nonzero, so together the conditions require . Equivalently,
This means , giving domain .
Part B: Input is allowed. The inner function sends it to , a nonzero number that accepts. The reciprocal never receives in this calculation.
The domain rule follows the actual sequence. For , first require . Then require . In set notation,
Read this as the inputs accepted by whose outputs are accepted by . Intersecting and would test the same original input against both functions, which is the rule for arithmetic combinations, not composition. Keep any declared restrictions even when the composite formula simplifies.
Check your understanding
Let and , each on its natural real domain. What is the domain of ?
The inner linear rule accepts every real input. Its output must satisfy , which gives . The endpoint is allowed because the outer square root may equal zero.
Splitting a formula into stages
To decompose a function is to write it as a composition of simpler functions. Choose an intermediate quantity, name the rule that produces it, and describe what is done to it next. Then substitute back and check the domain.
Worked example 5 Two useful ways to split one rule
Problem. The function has domain .
Part A: Write with . State a rule and domain for , then verify the composite domain.
Part B: Give a different decomposition using . Verify that it produces the same function on all real inputs.
Solution. Part A: After forming , take its reciprocal. Choose for . Then
The inner output is at least , so it never reaches the forbidden input . Every real survives both stages.
Part B: After forming , add and take the reciprocal. Choose for . Then
Since , it never reaches . This composite also has domain . The decompositions differ, but both reproduce the formula and the original domain.
Check your understanding
To write as using , which outer rule works?
The inner rule already produces the entire quantity under the root. The remaining operation is to take its square root, so for . The composite consequently requires .