Build f(g(x)) or g(f(x)) step by step. Get simplified composition, chain rule derivative, domain hints, and interactive graph.
A composite function is created when the output of one function becomes the input of another. Notation: (f ∘ g)(x) = f(g(x)). This operation is fundamental in calculus, physics, and mathematical modeling.
Chain rule – the derivative of a composite function
(f ∘ g)'(x) = f'(g(x)) · g'(x)
“Derivative of the outer function (evaluated at the inner) times derivative of the inner.”
For h(x) = f(g(x)) to be defined:
x must be in the domain of g.
g(x) must lie in the domain of f.
Example: f(x)=√x, g(x)=x-2. Domain of f∘g is x ≥ 2 because g(x) ≥ 0.
h(x) = e^(3x+1) → inner g(x)=3x+1, outer f(u)=e^u.
f ∘ (g ∘ h) = (f ∘ g) ∘ h (when defined).
f ∘ g is generally different from g ∘ f. (e.g., sin(x²) ≠ sin²(x)).
f ∘ id = f and id ∘ f = f where id(x)=x.
| Composite | Derivative (chain rule) |
|---|---|
| sin(kx) | k·cos(kx) |
| e^(ax+b) | a·e^(ax+b) |
| (p(x))ⁿ | n·(p(x))ⁿ⁻¹ · p'(x) |
| ln(g(x)) | g'(x)/g(x) |
| √(g(x)) | g'(x)/(2√(g(x))) |
sin(ωt+φ) — angular frequency ω inside.
σ(Wx+b)).
cos(2πft).
Why use this calculator? It performs symbolic composition and differentiation, handles trigonometric, exponential, logarithmic, and polynomial functions, and displays the chain rule step. Perfect for homework check or conceptual understanding.
^ for exponent (x^2)sqrt(x) for √xexp(x) for eˣlog(x) for natural logsin, cos, tan trigonometricabs(x) for absolute value