Quarry School

A composite domain has two gates

Subject: MathematicsLeans on: Domain of a fractionLeans on: Solving a linear equationLeans on: Fraction equationLeans on: Interval notationLeans on: Dividing fractionsLeans on: Composition order
Level 1 · FoundationsAbout 18 min read7 new termsKeystone idea. Later lessons build on this one.
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Leans on

    Quick review (2 minutes)

    In plain words

    Picture a trip with two ticket checks.

    Rule

    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.

    Step

    1. 1. Find the inner domain. Record inputs making an inner denominator zero or violating any other inner requirement.

    2. 2. Find what the outer function cannot accept. For an outer denominator, determine its forbidden input values.

    3. 3. Set g(x) equal to each forbidden outer input and solve. Exclude the solutions that are in the inner domain.

    4. 4. Keep only starting inputs passing both gates. For roots, use inequalities rather than only equations, as the next lesson explains.

    5. 5. Write the result in interval notation and check a permitted input and each excluded input using the original stages.

    Question

    Let f(x) = 5x−1 and g(x) = 43x−2. 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.

    Answer

    Domain: (−∞, 23) ∪ (23, 2) ∪ (2, ∞).
    Set-builder: {x | x ≠ 23 and x ≠ 2}.

    Trap

    Checking only the simplified final denominator. That can lose an inner restriction which disappeared during algebra.

    Strategy

    1. 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.

    2. 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.

    3. 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.

    4. For a root, solve an inequality for its inside. When removing a root by squaring, first check that both compared quantities are nonnegative.

    5. Keep only starting inputs that pass both gates. Write intervals with included endpoints closed and excluded endpoints open. Retain every original restriction after simplification.

    Term

    Function

    Definition

    A rule that gives exactly one output for each input it accepts.

    Term

    Input

    Definition

    The starting value you give a function. It goes inside the parentheses in function notation.

    Term

    Output

    Definition

    The answer a function produces from an accepted input.

    Term

    Evaluate

    Definition

    Find the output of a function or the value of an expression for a given input.

    Term

    Domain

    Definition

    All inputs for which a function is defined.

    Term

    Range

    Definition

    All outputs a function actually produces from its allowed inputs.

    Term

    Undefined

    Definition

    Having no permitted output under the rule being used, as with division by zero or a negative real square-root radicand.

    Term

    Inner function

    Definition

    The function evaluated first in a composition. Its output becomes the next function's input.

    Term

    Outer function

    Definition

    The function evaluated second in a two-function composition. It receives the inner function's output.

    Term

    Substitution

    Definition

    Replacing a variable with a number or expression everywhere that variable appears. Parentheses hold a multi-term replacement together.

    Term

    Square root

    Definition

    The nonnegative number whose square is the given nonnegative number. Here the √ symbol names that one nonnegative value.

    Term

    Reciprocal

    Definition

    One divided by a nonzero number. A fraction's reciprocal swaps its top and bottom, and their product is 1.

    Term

    Interval notation

    Definition

    A way to write stretches of the number line. Brackets include finite endpoints; parentheses exclude endpoints and always accompany infinity.

    Term

    Formula

    Definition

    A written rule using numbers, symbols, and operations to describe how a quantity is calculated.

    Term

    Table

    Definition

    An organized display of matching values. In a function table, each input and its output share a column or row.

    Term

    Graph

    Definition

    A picture of coordinate pairs. A function graph shows each input horizontally and its output vertically.

    Term

    Denominator

    Definition

    The bottom of a fraction. It names the divisor and cannot be zero.

    Term

    Real number

    Definition

    A number on the ordinary number line, including negatives, zero, fractions, and numbers such as 2.

    Term

    Nonnegative

    Definition

    Greater than or equal to zero. Zero is included, while positive means greater than zero and excludes zero.

    Term

    Fraction

    Definition

    One number divided by another nonzero number. The top is divided by the bottom; equal pieces give a picture of its size.

    Term

    Intermediate answer

    Definition

    The in-between output of the first function, which becomes the next function’s input.

    Term

    Linear

    Definition

    A formula built from a constant times the input plus a constant. Its graph is a straight line.

    Term

    Hole

    Definition

    One missing graph point, shown with an open dot. Its input does not have that plotted value.

    Term

    Solve

    Definition

    Find every input that makes a stated equality or inequality true. This differs from evaluating at a given input.

    Term

    Equation

    Definition

    A statement that two expressions have equal values.

    Term

    Inequality

    Definition

    A comparison saying less than, greater than, or either relation with equality allowed. It can describe many permitted inputs rather than one number.

    Term

    Numerator

    Definition

    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

    xg takes x?f takes g(x)?firstsecondg(x)answer
    x goes into g takes x?, then g(x) into f takes g(x)?: answer.

    Reminder

    Reminder: Domain of a fraction, Solving a linear equation, Fraction equation, Interval notation, Dividing fractions, Composition order
    • Domain of a fraction. 43x−2 requires 3x − 2 ≠ 0, so x ≠ 23.
    • Solving a linear equation. 4 = 3x − 2 becomes 6 = 3x, then x = 2.
    • Fraction equation. 43x−2 = 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 ÷ 14 = 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 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.

    The same idea, five ways

    Say it

    x must get through g, then g of x must get through f.

    Write it

    The domain of f after g is every starting input that both stages can use in order.

    In math
    • (f ∘ g)(x) = f(g(x))
    • {x | x is in the domain of g and g(x) is in the domain of f}
    Like

    Two ticket gates check different tickets.

    See it
    xg takes x?f takes g(x)?firstsecondg(x)answer
    The same picture again: x goes into g takes x?, then g(x) into f takes g(x)?: answer.

    The same idea, other ways

    As two ticket gates

    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.

    starting ticket xg checks xf checks newticketfirstsecondnew ticket g(x)complete trip
    The second gate inspects the intermediate ticket.
    As two questions

    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

    With the two excluded numbers

    At 23, 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 = 23: g fails

    x = 2: g(2) = 1, then f fails

    Why a canceled restriction survives

    If g(x) = 1x and f(x) = 1x, the composite simplifies to x. But the first machine still cannot start at zero, so the composite is x with x ≠ 0.

    x ≠ 0reciprocalreciprocalfirstsecond1/xx
    Two reciprocals undo each other only after the first one exists.
    start xg(x)f(g(x))what happens
    0−2−53both stages work
    1453both stages work
    23undefinedundefinedinner bottom is 0
    21undefinedouter bottom is 0

    Part 1: Watch each gate before solving

    Try a few starting tickets first. Input 0 passes through −2 to −53. Input 1 passes through 4 to 53. Input 23 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) = 5x−1 and g(x) = 43x−2.
    • Undefined means a stage has no permitted answer.
    input xoutput g(x)0−2142 ÷ 3undefined21↓ evaluate: input given, read the output below it
    Read the g answer below each start.

    Worked example

    Four starting tickets

    Trace starts 0, 1, 23, 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
    input xoutput f(g(x))0−5 ÷ 315 ÷ 32 ÷ 3undefined2undefined↓ evaluate: input given, read the output below it
    The final table records success only when both stages work.
    1. g(0)=4−2=−2; f(−2)=5−3=−53.Both bottoms are nonzero.
    2. g(1)=41=4; f(4)=53.The in-between input 4 is allowed by f.
    3. At 23, g has bottom 3×23−2=0, so stop.A failed first stage gives no answer to hand over.
    4. g(2)=44=1, then f(1) has bottom 0, so stop.An existing in-between answer can still be forbidden by the outer function.
    Answer
    • 0 works.
    • 1 works.
    • 23 fails at gate 1.
    • 2 fails at gate 2.
    Double-check For input 1, the final 53 multiplied by its outer bottom 3 returns the top 5.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: f accepts every start except 1, so the composite should exclude 1.
    The composite sends g(1) = 4 into f, so start 1 works.
    ✓ Instead: Exclude start 2 because g(2) = 1.

    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.
    5excluded(−∞, 5) ∪ (5, ∞)
    The inner denominator excludes input 5 before any outer operation.

    Worked example

    An unrestricted outer rule still needs an inner answer

    Let g(x) = 1x−5 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
    6g: 1/(x − 5)add 2firstsecond13
    The outer addition cannot begin until the fraction produces an answer.
    1. Set x−5=0 to locate the failed inner start. Add 5: x=5. Plug back in: 5−5=0. Therefore require x≠5.The equation finds the input that would make the inner bottom zero, so we exclude it.
    2. There are no further restrictions from f.Adding 2 accepts every real intermediate answer.
    Answer
    (−∞,5)∪(5,∞).
    Double-check At 6, g(6) = 1 and f(1) = 3; at 5, the first division has no value.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: f(x) = x + 2 accepts everything, so f(g(x)) accepts everything.
    At start 5, g(5) = 10 has no value.
    ✓ Instead: The domain excludes 5 before f can act.

    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) = 1x−1, the second gate requires g(x) ≠ 1.
    • Do not merely intersect the two original domains as if both received x.
    1/2g: doublef: 1/(u − 1)firstsecond1undefined
    Starting at 12 causes an outer failure even though the inner rule works.

    Worked example

    A forbidden outer input changes its starting location

    Let f(x) = 1x−1 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
    1/2
    The open point 0.5 is exactly 12. Start 1 is allowed because its handoff is 2.
    1. g accepts every real starting input.Doubling has no denominator or square root restriction.
    2. Find starts that hand f the forbidden input 1: solve 2x=1. Divide by 2: x=12. Plug back in: g(12)=1 and f(1)=10. Exclude 12.The solve step translates the outer forbidden input into the failed starting input.
    Answer
    (−∞,12)∪(12,∞).
    Double-check Starting at 1 works: g(1) = 2 and f(2) = 1. Starting at 12 fails: g(12) = 1 and f(1) is undefined.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Exclude x = 1 because f forbids 1.
    Start 1 gives g(1) = 2 and f(2) = 1, so it passes both gates.
    ✓ Instead: Exclude 12, the start whose doubled value is 1.

    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.
    0still excluded(−∞, 0) ∪ (0, ∞)
    The formula x returns its input, but the original reciprocal chain still excludes zero.

    Worked example

    Two reciprocals hide a hole

    Let f(x) = 1x and g(x) = 1x. 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
    4reciprocalreciprocalfirstsecond1/44
    The two stages return the original input only when the first stage exists.
    1. Require x≠0 for g(x).The inner reciprocal cannot divide by zero.
    2. The outer function requires g(x)≠0; this holds for every x≠0.1x cannot equal zero when its denominator is nonzero.
    3. f(g(x))=1÷1x=x, with x≠0.Dividing by a nonzero fraction multiplies by its reciprocal.
    Answer
    • f(g(x)) = x with x ≠ 0.
    • Domain: (−∞, 0) ∪ (0, ∞).
    Double-check At x = 4, g(4) = 14 and f(14) = 4. At 0 the first reciprocal fails even though the simplified expression x would have a value.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Two reciprocals give x, so zero is now allowed.
    The first reciprocal at zero is still 10.
    ✓ Instead: Keep x ≠ 0 beside the formula x.

    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) = x2, its outputs are [0, ∞). The root f(x) = x accepts every one of them.
    • If g(x) = x − 5, its outputs include negatives, so an outer root requires x ≥ 5.
    range−222468
    The square only produces heights zero and above, which the next root accepts.

    Worked example

    All square outputs fit the root

    Let g(x) = x2 and f(x) = 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
    −3squarerootfirstsecond93
    Every square output is an accepted root input.
    1. Every real x can be squared, and x2≥0.A square of a real number never gives a negative answer.
    2. Every such output can enter f, so f(g(x))=x2=|x| for every real x.The root returns the nonnegative size of x.
    Answer
    • f(g(x)) = |x|.
    • Domain: (−∞, ∞).
    Double-check At x = −3, the path is −3 to 9 to 3. The answer is |−3| = 3, so the final output need not equal the signed start.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Every g can be followed by a root on its whole domain.
    For g(x) = x − 5, start 4 gives −1, which a real root rejects.
    ✓ Instead: For this g, solve x − 5 ≥ 0 to find allowed starts x ≥ 5; the domain is [5, ∞).

    Tips and tricks

    • Compare the inner outputs to the outer accepted inputs; the two lists describe different stages.

    5 How

    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.

    Find the domain of f(g(x))

    1
    Does g have a fraction bottom that depends on x?
    YesSet that bottom = 0, solve, plug back in, and exclude those starts at gate 1.
    NoContinue to the root check.
    ↓
    2
    Does g have an even root?
    YesRequire the inside ≥ 0, or > 0 when that root is a bottom. Solve for the allowed starts.
    NoContinue to gate 2.
    ↓
    3
    Does f have a fraction bottom that depends on its input?
    YesReplace its input with g(x). Set the resulting bottom = 0 and solve to locate starts to exclude at gate 2.
    NoContinue to the outer root check.
    ↓
    4
    Does f have an even root?
    YesReplace its input with g(x). Require its inside ≥ 0, or > 0 when that root is a bottom. Keep the starts satisfying this requirement.
    NoGate 2 has no root requirement.
    ↓
    5
    Does a square-root output have to equal a negative forbidden input?
    YesThere is no such start because a square root cannot give a negative answer. Do not exclude a candidate obtained by squaring that impossible equation.
    NoSolve any remaining equation, then check its candidates in the original expression.
    1. 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.
    2. 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.
    3. 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.
    4. For a root, solve an inequality for its inside. When removing a root by squaring, first check that both compared quantities are nonnegative.
    5. 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

    OpenStax problem

    Let f(x) = 5x−1 and g(x) = 43x−2. 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
    0.672
    The open points exclude 23 and 2. The label 0.67 approximates 23; use the exact fraction in your answer.
    1. Gate 1: set 3x−2=0 to find the starting input that makes g divide by zero.A zero inner bottom prevents any in-between answer.
    2. Add 2: 3x=2. Divide by 3: x=23. Plug back in: 3×23−2=2−2=0. Exclude 23.Balanced operations find the failed start, and substitution confirms the zero bottom.
    3. Gate 2: f cannot accept 1, since 1−1=0. Find every start whose g answer is 1.The outer function receives g(x), so the forbidden number is a handoff value.
    4. Solve 43x−2=1. On the inner domain multiply by the nonzero 3x−2: 4=3x−2.This locates starts that reach the forbidden outer input. The first exclusion makes the multiplication legal.
    5. Add 2: 6=3x. Divide by 3: x=2.These operations find the start that causes the second failure.
    6. Plug back in: g(2)=46−2=1, and f(1)=50. Exclude 2.The first stage works at 2, but its answer breaks the second division.
    7. Keep x≠23 and x≠2. Split the line at these two excluded points.All remaining starts pass both original bottoms.
    Answer
    • Domain: (−∞, 23) ∪ (23, 2) ∪ (2, ∞).
    • Set-builder: {x | x ≠ 23 and x ≠ 2}.
    Double-check At x = 0, g(0) = −2 and f(−2) = −53, so a permitted input works. At x = 23, g fails. At x = 2, g(2) = 1 exists but f(1) fails. The two exclusions have different causes.

    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
    (−∞, ∞)
    No starting inputs are excluded.
    1. g accepts every real x.Adding 3 has no restriction.
    2. f accepts every real intermediate output.Multiplying by 2 has no restriction.
    Answer
    (−∞,∞).
    Double-check Even x = −10 works: g(−10) = −7 and f(−7) = −14; the same two arithmetic actions work for every real input.

    Rung 2 of 5

    One forbidden outer value

    Let g(x) = x + 2 and f(x) = 1x. 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
    −2excluded(−∞, −2) ∪ (−2, ∞)
    The forbidden intermediate zero comes from starting input −2.
    1. g accepts all real inputs, but f requires g(x)≠0.The reciprocal's denominator is its input.
    2. Set x+2=0 to locate the forbidden handoff zero. Subtract 2: x=−2. Plug back in: g(−2)=0, so f(g(−2))=10. Exclude −2.This solves for the starting input that breaks the outer division.
    Answer
    (−∞,−2)∪(−2,∞).
    Double-check At 0 the path is 0 to 2 to 12. At −2, the path stops after producing 0.

    Rung 3 of 5

    An inner restriction only

    Let g(x) = 2x+4 and f(x) = x2. 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
    −3gsquarefirstsecond24
    Only the inner denominator limits this path.
    1. Set x+4=0 to locate the inner zero bottom. Subtract 4: x=−4. Plug back in: −4+4=0. Exclude −4.The equation identifies the failed first-stage input.
    2. No further exclusion is needed.The outer square accepts any real intermediate output.
    Answer
    (−∞,−4)∪(−4,∞).
    Double-check At −3, g(−3) = 2 and f(2) = 4. At −4 the first stage divides by zero.

    Rung 4 of 5

    Two fraction exclusions

    Let g(x) = 2x+1 and f(x) = 1x−3. 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
    −1−0.33
    Exclude −1 and −13. The plotted −0.33 approximates −13; keep the exact fraction in your answer.
    1. Gate 1: x+1=0 gives x=−1. Plug back in: −1+1=0. Exclude −1.This finds and confirms the inner zero bottom.
    2. At gate 2, solve 2x+1=3: 2=3(x+1).f rejects input 3, and x + 1 is nonzero on the inner domain.
    3. 2=3x+3, so −1=3x and x=−13. Plug back in: x+1=23; g(x)=2÷23=3, so f(3) has bottom 0. Exclude this start.This start makes the outer denominator zero.
    Answer
    (−∞,−1)∪(−1,−13)∪(−13,∞).
    Double-check At 0, g(0) = 2 and f(2) = −1. At −1 g fails. At −13, g returns 3 and f fails.

    Rung 5 of 5

    The first restriction disappears from the formula

    Let g(x) = 1x−5 and f(x) = 1x. 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
    5hidden restriction(−∞, 5) ∪ (5, ∞)
    The domain preserves the missing starting input after simplification.
    1. Set x−5=0 to find the failed inner bottom. Add 5: x=5. Substitution gives 5−5=0. Exclude 5.The shorter final expression must retain this original failed input.
    2. The inner output is never zero on that domain.A fraction with numerator 1 and a nonzero denominator cannot be zero.
    3. f(g(x))=1÷1x−5=x−5, still with x≠5.The reciprocal undoes the first reciprocal only at allowed inputs.
    Answer
    • f(g(x))=x−5,x≠5.
    • Domain: (−∞, 5) ∪ (5, ∞).
    Double-check At 7 the path is 7 to 12 to 2, matching 7 − 5. At 5 the first step is undefined, so the apparent simplified value 0 cannot be used.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Intersect the domains of f and g directly to find the composite domain.
    The two functions receive different inputs: g receives x and f receives g(x).
    ✓ Instead: For f(x) = 1x−1 and g(x) = 2x, exclude x = 12, not x = 1.
    ✗ Not this: If the composition simplifies to x, its domain must be all real numbers.
    The original inner reciprocal may fail at zero before simplification is possible.
    ✓ Instead: For two reciprocal functions, retain x ≠ 0.

    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.