Domain of Composite Function Calculator
Determine the exact domain of the composite function (f ∁ g)(x) = f(g(x)). Evaluates inner function restrictions, outer function constraints, and their mathematical set intersection.
Composite Function Domain Calculator
Supported patterns: sqrt(...), 1/(...), polynomial terms.
Step-by-Step Two-Stage Intersection Proof
Domain AnalysisHow to Find the Domain of a Composite Function
The domain of a composite function (f ∘ g)(x) consists of all real numbers x such that x is in the domain of the inner function g, and the resulting value g(x) is in the domain of the outer function f. Mathematically, Domain(f ∘ g) = { x ∈ Domain(g) | g(x) ∈ Domain(f) }. You must never simplify the composite formula before checking restrictions, because algebraic cancellation often hides critical points where the inner function is undefined.
What Is the Domain of a Composite Function?
In mathematics, a composite function is formed when the output of one function becomes the input of another. Denoted by the circle operator (f ∁ g)(x), it is evaluated from the inside out as f(g(x)). To calculate specific output values at given points, you can use our Composite Function Evaluator, or reverse-engineer compound expressions with our Decomposition of Composite Function Calculator.
The domain of any function is the complete set of allowable real input values x for which the function produces a well-defined real number. For composite functions, however, determining this set is uniquely nuanced because an input x must survive a sequential two-stage journey through two distinct mathematical machines.
An input x is valid if and only if it is acceptable to g, AND its output g(x) is acceptable to f.
The Two-Stage Function Pipeline
To visualize why finding the domain requires two separate tests, imagine a manufacturing pipeline with two connected conveyor belts:
Stage 1: Raw Input (x)
The number x is fed directly into the inner machine g. If x causes division by zero or a negative radical inside g, the machine jams immediately. x is disqualified.
Stage 2: Intermediate (g(x))
If machine g processes x successfully, it outputs the number g(x). This value is immediately delivered as the raw input to the outer machine f.
Stage 3: Final Output f(g(x))
The value g(x) must meet all domain requirements of f. If f cannot accept g(x), that initial input x is disqualified.
The Cardinal Rule: Why You Cannot Simplify First
The single most frequent error in advanced algebra and precalculus is simplifying the algebraic expression for f(g(x)) before determining its domain.
Consider the famous counterexample:
Algebraic simplification creates a "ghost" or removable discontinuity that masks the reality that the inner function blew up at x = 0. Always analyze domains before cancelling terms!
Common Algebraic Domain Restrictions
In real-valued functions, domain restrictions arise almost exclusively from three algebraic operations that are forbidden or undefined over the real numbers:
1. Division by Zero (Rational Fractions)
Any denominator must never equal zero. For any term P(x) / Q(x), set the condition Q(x) ≠ 0 and exclude those roots from the domain. When working with rational fractions and factoring, our Divide Algebraic Expressions Calculator provides step-by-step polynomial reduction.
2. Even Radicals (Square Roots, 4th Roots)
The radicand of any even root must be non-negative: radicand ≥ 0. (Note: If the square root is in a denominator, it must be strictly positive: radicand > 0). To simplify roots before checking, see our Simplifying Radical Expressions Tool and Division of Radical Expressions Calculator.
3. Logarithmic Arguments
Logarithms are only defined for strictly positive arguments: argument > 0 (verify log evaluations on our Logarithm Calculator).
Step-by-Step Domain Finding Algorithm
To find the domain of (f ∁ g)(x) systematically, execute these three steps:
Inspect the inner function g(x) in isolation. Identify any values of x that make g(x) undefined (such as dividing by zero or taking the square root of a negative). Let this set of allowable numbers be Set A.
Inspect the outer function f(u). Determine what restrictions exist on its dummy variable u. Replace u with the complete formula for g(x) and solve the resulting inequality or exclusion for x. Let this set be Set B.
Find the set intersection: Domain = Set A ∩ Set B. The final domain includes only values of x that belong to both sets. Express this result in interval notation.
Interval vs. Set-Builder Notation
Standard academic tests and calculus courses demand fluency in both interval and set-builder notation. If you need to interconvert representations, our Interval to Inequality Converter and Inequality to Interval Notation Tool provide automatic formatting:
| Condition Description | Inequality Form | Interval Notation | Set-Builder Notation |
|---|---|---|---|
| All real numbers greater than or equal to a | x ≥ a | [a, ∞) | { x ∈ ℝ | x ≥ a } |
| All real numbers strictly greater than a | x > a | (a, ∞) | { x ∈ ℝ | x > a } |
| Excluding a single number c | x ≠ c | (-∞, c) ∪ (c, ∞) | { x ∈ ℝ | x ≠ c } |
| Closed bounded interval between a and b | a ≤ x ≤ b | [a, b] | { x ∈ ℝ | a ≤ x ≤ b } |
Step-by-Step Graded Worked Examples
Find the domain of (f ∁ g)(x) where f(x) = √x and g(x) = 3x - 12.
Find the domain of (f ∁ g)(x) where f(x) = 5 / (x - 9) and g(x) = x².
Find the domain of (f ∁ g)(x) where f(x) = √x and g(x) = 2 / (x - 5).
Common Traps and Conceptual Pitfalls
Confusing (f ∘ g)(x) with (g ∘ f)(x)
Function composition is non-commutative: f(g(x)) ≠ g(f(x)) in general. Swapping the inner and outer functions alters both the algebraic formula and the domain completely.
Forgetting the Inner Function Restriction
Checking only the simplified composite formula and ignoring values where g(x) was originally undefined. If x cannot enter g, it can never enter f(g(x)).
Including Zero Denominators in Radicals
Setting x - 5 ≥ 0 when the square root appears in a denominator. While radicals normally allow zero (≥ 0), a denominator cannot equal zero, requiring strict positivity (> 0).
Using Square Brackets for Infinity
Writing [a, ∞]. Infinity is an unbounded mathematical concept, not a reachable number, and must always be bounded with an open round parenthesis: [a, ∞).
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.