A composite function is a function obtained by applying functions one after another.
Example
Consider the functions f and g defined by
f:x↦x+1,g:x↦x2,for x∈R,for x∈R.
Then we have fg(3)=f(32)=9+1=10.
The composite function fg represents the function
obtained by first applying g followed by f.
On the other hand gf(3)=g(3+1)=42=16 so the composite function gf represents first applying f followed by g.
Visualization
f:x↦x+1,g:x↦x2,for x∈R,for x∈R.