Mathwords logoMathwords

Decomposition of Functions — Definition, Formula & Examples

Decomposition of functions is the reverse of composition. You take one complicated function and break it into two or more simpler functions that, when composed, rebuild the original.

A decomposition of a function hh is a pair of functions ff and gg such that h(x)=(f∘g)(x)=f(g(x))h(x) = (f \circ g)(x) = f(g(x)) for every xx in the domain of hh. Here gg is the inner function and ff is the outer function. Decompositions are not unique. The trivial choices f(x)=xf(x) = x or g(x)=xg(x) = x always work but are rarely useful.

Key Formula

h(x)=(f∘g)(x)=f(g(x))h(x) = (f \circ g)(x) = f\big(g(x)\big)
Where:
  • hh = The original function you want to break apart
  • gg = The inner function, applied to x first
  • ff = The outer function, applied to the output of g

Worked Example

Problem: Decompose h(x)=(3x+2)5h(x) = (3x + 2)^5 into an inner function gg and an outer function ff so that h(x)=f(g(x))h(x) = f(g(x)).
Step 1: Ask what happens to xx first. Before anything is raised to a power, xx is multiplied by 3 and then 2 is added. That is the inner function.
g(x)=3x+2g(x) = 3x + 2
Step 2: Ask what is done to that result. The whole quantity is raised to the 5th power. That is the outer function.
f(x)=x5f(x) = x^5
Step 3: Verify by composing. Substituting g(x)g(x) into ff gives back hh. As a numeric check at x=1x = 1, you get g(1)=5g(1) = 5 and f(5)=3125f(5) = 3125, which matches h(1)=55=3125h(1) = 5^5 = 3125.
f(g(x))=(3x+2)5=h(x)f(g(x)) = (3x + 2)^5 = h(x)
Answer: g(x)=3x+2g(x) = 3x + 2 (inner) and f(x)=x5f(x) = x^5 (outer), so h(x)=f(g(x))h(x) = f(g(x)).

Why It Matters

In AP Calculus, the chain rule requires you to spot the inner and outer functions before you can differentiate expressions like (3x+2)5(3x+2)^5 or sin⁡(x2)\sin(x^2). The same skill drives u-substitution in integration, where the inner function becomes uu.

Common Mistakes

Mistake: Swapping the inner and outer functions, for example writing f(x)=3x+2f(x) = 3x + 2 and g(x)=x5g(x) = x^5.
Correction: With that choice, f(g(x))=3x5+2f(g(x)) = 3x^5 + 2, which is a different function. At x=1x = 1 it gives 5 instead of 3125. The inner function is always the operation applied to xx first. Compose your answer to confirm it rebuilds hh.

Related Terms