How would you describe the existence of a composite function $f(g(x))$in terms of range of $g$ and domain of $f$ . Does range of $g$ need to be subset of domain of $f$ or is it sufficient if the two sets have intersection only?
I used to define composite function if range of $g$ is a subset of domain of $f$ and in that case domain of the composite function is same as domain of the function $g$ but I have come across questions where only intersection exists. In that type of situation domain of composite function can not be the domain of $g$. I have this issue related to high school mathematics. Could you please help me to find the most appropriate way of describing the issue to the students relevant to their level of studies .
For further clarification here you have examples
Let $f(x) = x^2$ and $g(x) = \sqrt{x-1}$.
Here range of $g$ is a subset of domain of $f $, therefore $f(g(x)) = x -1$ exists. Now the issue is can you say $f(g(0))= - 1$ because 0 is not in the domain of $g$?Let $f(x)= x + 2$ and $g(x) = 1/(x - 1)$.
Here range of $f$ is not a subset of domain of $g$ , now what about $g(f(x)) = 1/(x+1)$, how can you explain the way to obtain domain of this composite function because here that is not the same domain of $f$?Do we need to treat finding expression for $g(f(x))$ and finding composite function $g(f(x))$ in two different ways?
Edited
By going through the suggested answers following are the conclusions I could able to make ,
- When the terms function or domain not mention in the question we can treat$ f(g(x))$ as an expression and substitute any real value to $x$ if output is real.
- When the domain of $f$ and $g$ are given $f(g(x))$ can be defined if range of $g$ is a subset of domain of $f$.
- When domain of $f$ and $g$ are not given we have to determine the domain of $g$ such that range of $g$ is a subset of domain of $f$ and range of $f(g(x))$ should be determined according to the selected domain of $g$.
If you have any exceptions please mention it in your answers or comment about it so that we can make the final conclusion.