A composite domain has two gates
Leans on
Quick review (2 minutes)
Picture a trip with two ticket checks.
The domain of f ∘ g consists of the x values allowed by g for which g(x) is allowed by f.
Keep original restrictions when simplifying the composite formula.
1. Find the inner domain. Record inputs making an inner denominator zero or violating any other inner requirement.
2. Find what the outer function cannot accept. For an outer denominator, determine its forbidden input values.
3. Set g(x) equal to each forbidden outer input and solve. Exclude the solutions that are in the inner domain.
4. Keep only starting inputs passing both gates. For roots, use inequalities rather than only equations, as the next lesson explains.
5. Write the result in interval notation and check a permitted input and each excluded input using the original stages.
Let f(x) = and g(x) = . Find the domain of (f ∘ g)(x). You want every starting number that can get through g and then f. Plan: find where the first bottom is zero, then find where g hands f the number 1; exclude both starts.
Domain: (−∞, ) ∪ (, 2) ∪ (2, ∞).
Set-builder: {x | x ≠ and x ≠ 2}.
Checking only the simplified final denominator. That can lose an inner restriction which disappeared during algebra.
Gate 1: begin with any stated input list or interval for the inner function, then write every requirement in its original formula. A bottom must be nonzero; an even root must have a nonnegative inside; a root in a bottom needs a positive inside.
Gate 2: keep any stated outer input list or interval, and write the outer formula’s requirements with g(x) in every input slot. These requirements check the in-between answer.
To locate a zero bottom, set it equal to 0 and solve. This finds starts that break the division. Substitute each candidate into the original stages to confirm which gate fails.
For a root, solve an inequality for its inside. When removing a root by squaring, first check that both compared quantities are nonnegative.
Keep only starting inputs that pass both gates. Write intervals with included endpoints closed and excluded endpoints open. Retain every original restriction after simplification.
Function
A rule that gives exactly one output for each input it accepts.
Input
The starting value you give a function. It goes inside the parentheses in function notation.
Output
The answer a function produces from an accepted input.
Evaluate
Find the output of a function or the value of an expression for a given input.
Domain
All inputs for which a function is defined.
Range
All outputs a function actually produces from its allowed inputs.
Undefined
Having no permitted output under the rule being used, as with division by zero or a negative real square-root radicand.
Inner function
The function evaluated first in a composition. Its output becomes the next function's input.
Outer function
The function evaluated second in a two-function composition. It receives the inner function's output.
Substitution
Replacing a variable with a number or expression everywhere that variable appears. Parentheses hold a multi-term replacement together.
Square root
The nonnegative number whose square is the given nonnegative number. Here the √ symbol names that one nonnegative value.
Reciprocal
One divided by a nonzero number. A fraction's reciprocal swaps its top and bottom, and their product is 1.
Interval notation
A way to write stretches of the number line. Brackets include finite endpoints; parentheses exclude endpoints and always accompany infinity.
Formula
A written rule using numbers, symbols, and operations to describe how a quantity is calculated.
Table
An organized display of matching values. In a function table, each input and its output share a column or row.
Graph
A picture of coordinate pairs. A function graph shows each input horizontally and its output vertically.
Denominator
The bottom of a fraction. It names the divisor and cannot be zero.
Real number
A number on the ordinary number line, including negatives, zero, fractions, and numbers such as .
Nonnegative
Greater than or equal to zero. Zero is included, while positive means greater than zero and excludes zero.
Fraction
One number divided by another nonzero number. The top is divided by the bottom; equal pieces give a picture of its size.
Intermediate answer
The in-between output of the first function, which becomes the next function’s input.
Linear
A formula built from a constant times the input plus a constant. Its graph is a straight line.
Hole
One missing graph point, shown with an open dot. Its input does not have that plotted value.
Solve
Find every input that makes a stated equality or inequality true. This differs from evaluating at a given input.
Equation
A statement that two expressions have equal values.
Inequality
A comparison saying less than, greater than, or either relation with equality allowed. It can describe many permitted inputs rather than one number.
Numerator
The top of a fraction. It is the amount divided by the denominator.
1 In plain words
Picture a trip with two ticket checks. The first gate checks your starting ticket. The second checks the ticket you receive after the first stage. Passing the first gate does not promise that you can pass the second. A composite domain is the list of starts that pass both checks. First, the inner function must accept your starting number x. Then the outer function must accept the answer g(x). These are the starts for which neither calculation stops. In the heating model, a day outside the calendar fails first; a temperature outside the cost chart fails second. Keep both checks before simplifying, because a shorter formula can hide a failed first stage.
2 Picture it
Reminder
Reminder: Domain of a fraction, Solving a linear equation, Fraction equation, Interval notation, Dividing fractions, Composition order
- Domain of a fraction. requires 3x − 2 ≠ 0, so x ≠ .
- Solving a linear equation. 4 = 3x − 2 becomes 6 = 3x, then x = 2.
- Fraction equation. = 1 permits multiplying by 3x − 2 only after requiring it nonzero.
- Interval notation. Removing 2 gives (−∞, 2) ∪ (2, ∞); parentheses exclude the point.
- Dividing fractions. 1 ÷ = 4, because division multiplies by the reciprocal.
- Composition order. f(g(x)) checks g at x first and f at the resulting number second.
3 Why
You cannot evaluate f(g(x)) if g gives no answer. You also cannot finish when g gives an answer that f cannot accept. These are separate ways the path can stop. The outer restriction applies to the in-between answer g(x), not directly to x. Solving for starts that produce forbidden answers converts the second gate into a restriction on x. Simplifying afterward does not create an answer at an earlier failed stage. This is why a composition can accept an x that f alone rejects, provided g changes it into an input f accepts.
4 The rule
The domain of consists of the x values allowed by g for which g(x) is allowed by f.
Keep original restrictions when simplifying the composite formula.
The same idea, five ways
x must get through g, then g of x must get through f.
The domain of f after g is every starting input that both stages can use in order.
- (f ∘ g)(x) = f(g(x))
- {x | x is in the domain of g and g(x) is in the domain of f}
Two ticket gates check different tickets.
The same idea, other ways
A valid starting ticket gets you through gate 1. Gate 2 checks a new ticket made by gate 1. You must check both, because they examine different things.
Ask: can I calculate g(x)? Then ask: can I calculate f at that answer? If either answer is no, the starting input is outside the composite domain.
Does g accept x?
Does f accept g(x)?
Keep x only if both answers are yes
At , the inner fraction has bottom zero. At 2, the inner fraction works and returns 1, but the outer fraction has bottom zero. These failures occur at different gates.
x = : g fails
x = 2: g(2) = 1, then f fails
If g(x) = and f(x) = , the composite simplifies to x. But the first machine still cannot start at zero, so the composite is x with x ≠ 0.
| start x | g(x) | f(g(x)) | what happens |
|---|---|---|---|
| 0 | both stages work | ||
| 1 | 4 | both stages work | |
| undefined | undefined | inner bottom is 0 | |
| 2 | 1 | undefined | outer bottom is 0 |
Part 1: Watch each gate before solving
Try a few starting tickets first. Input 0 passes through −2 to −. Input 1 passes through 4 to . Input stops in the first machine. Input 2 produces 1, then stops in the second. Solving finds every start that stops, beyond the ones you happen to try.
- These pictures use f(x) = and g(x) = .
- Undefined means a stage has no permitted answer.
Worked example
Four starting tickets
Trace starts 0, 1, , and 2 through the two functions. You want to see which stage succeeds or fails. Plan: calculate g first and calculate f only if g gives an answer.
Show the steps and the answer
- ; .Both bottoms are nonzero.
- ; .The in-between input 4 is allowed by f.
- At , g has bottom , so stop.A failed first stage gives no answer to hand over.
- , then f(1) has bottom 0, so stop.An existing in-between answer can still be forbidden by the outer function.
- 0 works.
- 1 works.
- fails at gate 1.
- 2 fails at gate 2.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- The pictures show the handoff. Solving finds every starting input that creates a failed handoff.
Part 2: Gate 1: the inner function accepts x
Begin with the original inner formula. Its accepted inputs are the starting territory for the composition. A failure here means there is no intermediate answer to hand over.
- Every composite input must be in the inner domain.
- An unrestricted outer function cannot rescue a failed inner stage.
Worked example
An unrestricted outer rule still needs an inner answer
Let g(x) = and f(x) = x + 2. Find the domain of f(g(x)). You want starting inputs that make the inner fraction exist. Plan: inspect the original inside rule, then inspect the outside rule at the inside answer, keeping both restrictions.
Show the steps and the answer
- Set to locate the failed inner start. Add 5: . Plug back in: . Therefore require .The equation finds the input that would make the inner bottom zero, so we exclude it.
- There are no further restrictions from f.Adding 2 accepts every real intermediate answer.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Begin with the original inner formula, even if the outer operation looks unrestricted.
Part 3: Gate 2: the outer function accepts g(x)
The outer function's forbidden numbers are intermediate outputs. Find which starting inputs would produce those numbers. The starting number itself may be allowed by the outer formula or forbidden by it; that alone does not decide the composition.
- For f(x) = , the second gate requires g(x) ≠ 1.
- Do not merely intersect the two original domains as if both received x.
Worked example
A forbidden outer input changes its starting location
Let f(x) = and g(x) = 2x. Find the domain of f(g(x)). You want to avoid starting inputs whose doubled value is 1. Plan: inspect the original inside rule, then inspect the outside rule at the inside answer, keeping both restrictions.
Show the steps and the answer
- g accepts every real starting input.Doubling has no denominator or square root restriction.
- Find starts that hand f the forbidden input 1: solve . Divide by 2: . Plug back in: and . Exclude .The solve step translates the outer forbidden input into the failed starting input.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Write g(x) beside the outer input requirement before solving.
Part 4: Record the domain before simplifying
A shorter formula can conceal the first gate. Keep the original restrictions next to the simplified answer. The formula together with its domain describes the function.
- Simplification keeps outputs equal on the original domain.
- It does not add starting inputs that the original composition rejected.
Worked example
Two reciprocals hide a hole
Let f(x) = and g(x) = . Find f(g(x)) and its domain. You want the result of taking the reciprocal twice, while respecting the first division. Plan: inspect the original inside rule, then inspect the outside rule at the inside answer, keeping both restrictions.
Show the steps and the answer
- Require for g(x).The inner reciprocal cannot divide by zero.
- The outer function requires ; this holds for every . cannot equal zero when its denominator is nonzero.
- , with .Dividing by a nonzero fraction multiplies by its reciprocal.
- f(g(x)) = x with x ≠ 0.
- Domain: (−∞, 0) ∪ (0, ∞).
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- A function answer includes its formula and the original allowed inputs.
Part 5: The inner range can settle the second gate
The range is the list of answers a machine can produce. If every answer on that list is accepted by the next machine, gate 2 needs no extra exclusions. If some answers fail, keep only starts that avoid them.
- For g(x) = , its outputs are [0, ∞). The root f(x) = accepts every one of them.
- If g(x) = x − 5, its outputs include negatives, so an outer root requires x ≥ 5.
Worked example
All square outputs fit the root
Let g(x) = and f(x) = . Find f(g(x)) and its domain. You want to know whether every square answer can enter the root. Plan: compare g’s outputs with f’s accepted inputs.
Show the steps and the answer
- Every real x can be squared, and .A square of a real number never gives a negative answer.
- Every such output can enter f, so for every real x.The root returns the nonnegative size of x.
- f(g(x)) = |x|.
- Domain: (−∞, ∞).
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Compare the inner outputs to the outer accepted inputs; the two lists describe different stages.
5 How
- Find the inner domain. Record inputs making an inner denominator zero or violating any other inner requirement.
- Find what the outer function cannot accept. For an outer denominator, determine its forbidden input values.
- Set g(x) equal to each forbidden outer input and solve. Exclude the solutions that are in the inner domain.
- Keep only starting inputs passing both gates. For roots, use inequalities rather than only equations, as the next lesson explains.
- Write the result in interval notation and check a permitted input and each excluded input using the original stages.
Find the domain of f(g(x))
- Gate 1: begin with any stated input list or interval for the inner function, then write every requirement in its original formula. A bottom must be nonzero; an even root must have a nonnegative inside; a root in a bottom needs a positive inside.
- Gate 2: keep any stated outer input list or interval, and write the outer formula’s requirements with g(x) in every input slot. These requirements check the in-between answer.
- To locate a zero bottom, set it equal to 0 and solve. This finds starts that break the division. Substitute each candidate into the original stages to confirm which gate fails.
- For a root, solve an inequality for its inside. When removing a root by squaring, first check that both compared quantities are nonnegative.
- Keep only starting inputs that pass both gates. Write intervals with included endpoints closed and excluded endpoints open. Retain every original restriction after simplification.
6 Worked example
Worked example
Two different failures in a fraction composition
Let f(x) = and g(x) = . Find the domain of (f ∘ g)(x). You want every starting number that can get through g and then f. Plan: find where the first bottom is zero, then find where g hands f the number 1; exclude both starts.
Show the steps and the answer
- Gate 1: set to find the starting input that makes g divide by zero.A zero inner bottom prevents any in-between answer.
- Add 2: . Divide by 3: . Plug back in: . Exclude .Balanced operations find the failed start, and substitution confirms the zero bottom.
- Gate 2: f cannot accept 1, since . Find every start whose g answer is 1.The outer function receives g(x), so the forbidden number is a handoff value.
- Solve . On the inner domain multiply by the nonzero : .This locates starts that reach the forbidden outer input. The first exclusion makes the multiplication legal.
- Add 2: . Divide by 3: .These operations find the start that causes the second failure.
- Plug back in: , and . Exclude 2.The first stage works at 2, but its answer breaks the second division.
- Keep and . Split the line at these two excluded points.All remaining starts pass both original bottoms.
- Domain: (−∞, ) ∪ (, 2) ∪ (2, ∞).
- Set-builder: {x | x ≠ and x ≠ 2}.
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 5
Both gates accept every real number
Let g(x) = x + 3 and f(x) = 2x. Find the domain of f(g(x)). You only need to decide which starting inputs can pass both rules. Plan: inspect the original inside rule, then inspect the outside rule at the inside answer, keeping both restrictions.
Show the steps and the answer
- g accepts every real x.Adding 3 has no restriction.
- f accepts every real intermediate output.Multiplying by 2 has no restriction.
Rung 2 of 5
One forbidden outer value
Let g(x) = x + 2 and f(x) = . Find the domain of f(g(x)). You must prevent the intermediate answer from becoming zero. Plan: inspect the original inside rule, then inspect the outside rule at the inside answer, keeping both restrictions.
Show the steps and the answer
- g accepts all real inputs, but f requires .The reciprocal's denominator is its input.
- Set to locate the forbidden handoff zero. Subtract 2: . Plug back in: , so . Exclude .This solves for the starting input that breaks the outer division.
Rung 3 of 5
An inner restriction only
Let g(x) = and f(x) = . Find the composite domain. You want a defined inner fraction followed by a square. Plan: inspect the original inside rule, then inspect the outside rule at the inside answer, keeping both restrictions.
Show the steps and the answer
- Set to locate the inner zero bottom. Subtract 4: . Plug back in: . Exclude .The equation identifies the failed first-stage input.
- No further exclusion is needed.The outer square accepts any real intermediate output.
Rung 4 of 5
Two fraction exclusions
Let g(x) = and f(x) = . Find the domain of f(g(x)). You must avoid an inner zero denominator and an intermediate value of 3. Plan: inspect the original inside rule, then inspect the outside rule at the inside answer, keeping both restrictions.
Show the steps and the answer
- Gate 1: gives . Plug back in: . Exclude .This finds and confirms the inner zero bottom.
- At gate 2, solve : .f rejects input 3, and x + 1 is nonzero on the inner domain.
- , so and . Plug back in: ; , so f(3) has bottom 0. Exclude this start.This start makes the outer denominator zero.
Rung 5 of 5
The first restriction disappears from the formula
Let g(x) = and f(x) = . Find the formula and domain of f(g(x)). Taking the reciprocal twice will shorten the formula, but both stages must first exist. Plan: inspect the original inside rule, then inspect the outside rule at the inside answer, keeping both restrictions.
Show the steps and the answer
- Set to find the failed inner bottom. Add 5: . Substitution gives . Exclude 5.The shorter final expression must retain this original failed input.
- The inner output is never zero on that domain.A fraction with numerator 1 and a nonzero denominator cannot be zero.
- , still with .The reciprocal undoes the first reciprocal only at allowed inputs.
- Domain: (−∞, 5) ∪ (5, ∞).
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Know cold: two gates, both must open. Write gate 1 and gate 2 as separate lines on the exam.
- Put on the cheat sheet for study: x must be accepted by the inner function, and the inner output must be accepted by the outer function.
- The whole inner range must fit the outer domain to compose on every inner input. If only some outputs fit, keep only the starting inputs that produce those outputs.
- Set-builder conditions that remove two points use and: {x | x ≠ a and x ≠ b}. Interval pieces use ∪ because an input may belong to any one piece.
- Gate 1 checks x. Gate 2 checks g(x).
7 The trap
Checking only the simplified final denominator. That can lose an inner restriction which disappeared during algebra.
Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.