Composite Function Decomposition Calculator
Decompose any composite function h(x) = (f ∁ g)(x) into its constituent inner function g(x) and outer function f(u) with complete algebraic substitution verification, domain analysis, and calculus Chain Rule derivatives.
Composite Function Input
h(x) = f(g(x))Supports radicals (sqrt, cbrt), powers (^n), fractions (1/x), trig (sin, cos, tan), exp (e^x), ln/log, and abs.
Alternative Valid Decompositions & Non-Uniqueness
Function decomposition is not unique. Any composite function can be decomposed into multiple valid pairs of inner and outer functions that satisfy f(g(x)) = h(x):
f(u) = √u
Standard choice isolating the innermost algebraic expression.
f(u) = √(u + 5)
Shifts constant addition into the outer function.
f(u) = √(2u + 5)
Decomposes down to the purest power kernel.
How to Decompose a Composite Function h(x) into f(u) and g(x)
To decompose a composite function h(x): 1) Identify the innermost operation or expression acting on the variable x; assign this as the inner function g(x). 2) Replace that entire expression in h(x) with an intermediate variable u; the resulting equation is the outer function f(u). 3) Verify that evaluating f(g(x)) reproduces the original expression h(x).
Function Decomposition: Formal Mathematical Definition
In functional analysis and algebra, function composition combines two functions g: X → Y and f: Y → Z to create a single composite map:
Function decomposition is the reverse engineering process: starting with the target expression h(x), we factor it into an inner function g(x) that executes first, and an outer function f(u) that acts upon the output of g.
Structural Recognition & Pattern Identification
Decomposing functions relies on identifying the outermost algebraic operator:
| Operator Class | Composite Function h(x) | Inner Function g(x) | Outer Function f(u) |
|---|---|---|---|
| Radical | √(2x² + 5) | 2x² + 5 | √u |
| Polynomial Power | (3x - 4)⁵ | 3x - 4 | u⁵ |
| Rational Reciprocal | 1 / (x² + 1) | x² + 1 | 1 / u |
| Trigonometric | sin(4x - π) | 4x - π | sin(u) |
| Exponential | e^(-x²) | -x² | e^u |
| Logarithmic | ln(x³ + 2) | x³ + 2 | ln(u) |
Non-Uniqueness & Alternative Decomposition Strategies
A fundamental truth of function composition is that decomposition is non-unique. Consider the expression h(x) = (2x + 1)³:
g(x) = 2x + 1
f(u) = u³
The entire base is taken as the inner function.
g(x) = 2x
f(u) = (u + 1)³
Shifts constant translation into the outer function.
g(x) = x + 0.5
f(u) = 8u³
Factors out 2³ = 8 as an outer amplitude scale.
Calculus Applications: Chain Rule & u-Substitution
Function decomposition is the primary mental prerequisite for foundational calculus techniques:
d/dx [f(g(x))] = f'(g(x)) · g'(x)
Differentiating sin(x²) requires decomposing into g(x) = x² and f(u) = sin(u), yielding cos(x²) × 2x.
∫ f(g(x)) g'(x) dx = ∫ f(u) du
Evaluating indefinite integrals requires isolating u = g(x) so that its derivative du = g'(x)dx cancels the remaining factor in the integrand.
Domain and Range Restrictions Across Layers
The composite function h(x) = f(g(x)) is defined if and only if:
For example, in h(x) = √(4 - x²), the outer function f(u) = √u requires u ≥ 0. Therefore, we require g(x) = 4 - x² ≥ 0, restricting the domain of h(x) to the closed interval [-2, 2].
Step-by-Step Worked Decomposition Examples
Example: Decompose h(x) = 1 / √(3x + 1)
Inner expression: g(x) = 3x + 1
Outer wrapper: f(u) = 1 / √u
Verification: f(g(x)) = 1 / √(3x + 1) = h(x) ✓
Common Pitfalls & Trivial Trap Warnings
Writing g(x) = x and f(u) = h(u) is rejected on exams because it does not break down any algebraic complexity.
Confusing f(g(x)) with g(f(x)). If g(x) = x + 1 and f(u) = u², then f(g(x)) = (x+1)², whereas g(f(x)) = x² + 1.
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.