By composing functions, we apply one function to the result of another function. So the definition is as follows:
[tex]The \ \mathbf{composition} \ of \ the \ function \ f \ with \ the \ function \ g \ is:\\ \\ (f \circ g)(x)=f(g(x))[/tex]
Therefore, what happens during the process of composing functions is that:
[tex]The \ domain \ of \ (f \circ g) \ is \ the \ set \ of \ all \ x \ in \ the \ domain \ of \ g \\ such \ that \ g(x) \ is \ in \ the \ domain \ of \ f[/tex]
In other words, we send the result of [tex]g()[/tex] through the result of [tex]f()[/tex]