Its domain contains exactly the inputs in the domain of g whose outputs lie in the domain of f. Both stages must be legal.
Example
Let f(u)=u and g(x)=x−3. Then (f∘g)(x)=x−3 with domain x≥3. Reversing the order gives (g∘f)(x)=x−3 with domain x≥0. The different order changes both the rule and its domain.
Avoid this mistake
Composition is not multiplication. f(g(x)) generally differs from f(x)g(x).