DoAssignment.ca
D2.5 · Compose functions algebraically and determine domains
Learn to compose functions algebraically and determine domains through clear examples and targeted practice.
Ontario Grade 12 Mathematics
Characteristics of Functions
Ontario Grade 12 Mathematics — Study topic D2.5
A function takes an input and follows a rule to produce an output. A composition uses the output of one function as the input of another. The order matters: one function acts on the original input, and the other acts on that result. In this lesson, you will compose functions algebraically and identify the inputs for which each composition is defined.
What you will learn
- Explain what it means to compose two functions.
- Write and simplify a composition algebraically.
- Determine a composition’s domain by checking the restrictions of both functions.
- Recognize that reversing the order of two functions can change the rule and the domain.
1. Prerequisite bridge: functions and domain restrictions
A function rule might be . The symbol is the input, and is the output. A function’s domain is the set of inputs for which its rule gives a defined real-number output.
Some rules restrict the input. A rational expression cannot have a zero denominator. A square root needs its radicand—the expression inside the root—to be zero or positive. A logarithm needs a positive argument. These restrictions matter when functions are composed because an inner function’s output becomes an input to the outer function.
A polynomial such as allows every real number as an input. For , the input is excluded because it makes the denominator zero. Keep the original function restrictions in view even after simplifying a composition.
- Domain means the allowed input values.
- A denominator must not equal zero.
- A square-root radicand must be at least zero.
- A logarithm’s argument must be positive.
2. Plain language and symbolic composition
To compose functions, feed the output of one function into another. The notation means . Read it as “ of of .” The function acts first; then acts on the result.
For example, if and , then changes to . The function then multiplies that result by . So . In the reverse order, . The two compositions do not generally have the same rule.
A useful way to organize the process is input, inner function, outer function, final output. To find a composition algebraically, replace the outer function’s input with the entire inner function rule. Use parentheses around the replacement so that every part of the inner rule is included.
- In , acts before .
- Substitute the complete inner rule into the outer rule.
- Changing the order can change the composition.
3. Determine the domain of a composition
A composition is defined only when two conditions are met. First, the original input must be allowed in the inner function. Second, the inner function’s output must be allowed as an input to the outer function. Check the inner function’s domain, then apply the outer function’s restrictions to the inner output.
For a square-root outer function, require its radicand to be non-negative after substitution. For a rational outer function, require its denominator to be nonzero after substitution. For a logarithmic outer function, require its argument to be positive after substitution. Include restrictions from the inner function as well.
The domain rule for a composition can be written as a set of allowed inputs. The input must belong to the inner function’s domain, and the inner function’s output must belong to the outer function’s domain.
Simplifying can make a rule look less restricted than the original composition. Do not use a simplified expression to restore an input that was excluded by an original function rule. Keep a record of every restriction, and combine them at the end.
When a restriction is an inequality involving a rational expression, identify values that make its numerator or denominator zero. Test the intervals between those values. A value that makes the denominator zero remains excluded. \operatorname{Dom}(f° g)=\{x∈\operatorname{Dom}(g):g(x)∈\operatorname{Dom}(f)\}
- Check both the inner function and the outer function’s input requirements.
- Apply outer-function restrictions to the inner output.
- Keep excluded values from the original function rules.
4. Apply the process in either order
In a composition problem, name the order before substituting. For each order, identify the inner rule, substitute it into the outer rule, and then check the domain. If the inner function is a square root, use its radicand restriction. If the outer function is rational, make sure its substituted denominator is not zero.
A composition’s rule and domain answer different questions. The rule gives the output for an allowed input. The domain states which inputs are allowed. Write them separately so neither is mistaken for the other.
- Name the order before substituting.
- Solve all restrictions created by the composition.
- State the rule and domain separately.
Order of operations in a composition
| Composition | First function used | Then function used |
|---|---|---|
Worked example
Two orders, two domains
Let and . Find both compositions and the domain of each.
- Compose after In , use the full rule for as the input to . The square root requires its radicand to be non-negative. The inner function is also undefined when its denominator is zero.
- Simplify and restrictCombine the terms inside the root. The denominator restriction excludes . For the square root, solve the resulting rational inequality. Its critical values are and . Testing the intervals shows the expression is non-negative when and when .
- Compose after Now acts first. Its square root requires . Substitute its output into the numerator and denominator of . The new denominator is a square root plus , which is at least for every allowed input, so it is never zero.
Answer: For , the rule is and the domain is . For , the rule is and the domain is .
Check: For the first composition, is excluded by , and is included because the radicand is zero. For the second, the square root allows , and the denominator is positive for every allowed input.
Common mistakes and how to avoid them
Treating as though acts first because it is written first.
Correction: Read the composition as . The inside function acts first.
Checking only the visible denominator or root in the simplified composition.
Correction: Check the restrictions of both original functions. Keep any excluded input even if algebraic simplification hides it.
Using a strict inequality for a square-root radicand.
Correction: A square-root radicand may equal zero, so use a non-negative condition and include valid boundary values.
Assuming the two orders have the same rule or domain.
Correction: Form each order separately. The inner function changes both the substitution and the restrictions.
Lesson summary
- A composition substitutes one function rule into another.
- In , acts first and acts second.
- The domain includes inputs allowed in the inner function whose outputs are also allowed in the outer function.
- Keep denominator, square-root, logarithm, and other original function restrictions when simplifying.
Check your understanding
Question 1
If and , which expression is (f° g)(x)?
Show answer and explanation
In , substitute the entire rule into the input of . This gives .
Question 2
Let and . What is the domain of (f° g)(x)?
Show answer and explanation
The composition is . Its radicand must satisfy , so .
Question 3
Let and . Which input is excluded from the domain of (f° g)(x)?
- No input is excluded
Show answer and explanation
The composition is . Its denominator is zero at , so that input is excluded.
Key terms
- Composition
- A function formed by using the output of one function as the input of another.
- Domain
- The set of inputs for which a function is defined.
- Inner function
- The function applied first in a composition; it appears inside the other function’s input.
- Radicand
- The expression inside a radical, such as inside .
Continue through MHF4U
View the complete MHF4U Ontario Grade 12 Mathematics curriculum and lessons
- D1.1 · Interpret rates of change in multiple representations
- D1.2 · Distinguish zero, constant, and changing rates
- D1.3 · Sketch graphs from verbal rate descriptions
- D1.4 · Calculate and interpret average rate of change
- D1.5 · Compare instantaneous and average rates of change
- D1.6 · Approximate instantaneous rates numerically
About this lesson and its review
Published by DoAssignment. This AI-assisted lesson follows Ontario Grade 12 Mathematics (MHF4U), expectation D2.5. It is a study resource, not an official curriculum publication.
Before publication, the draft is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability, and then requires administrator approval. Errors can still occur, so corrections are welcomed.