I understand that for composite function $(g\circ f)(x)$ to exist, range of $f(x)$ must be a subset of domain of $g(x)$. This is so that every output value of $f(x)$ is mapped to one value of $g(x)$.
However, is this on the assumption that both $g(x)$ and $f(x)$ are functions? Must they both be functions?
Imagine a case where $f(x) = \pm \sqrt{x}$ and $g(x) = x^2$. in this case $g(f(x))$ is a function right? So I suppose we do not need both $g(x)$ and $f(x)$ to be functions?
So what does "range of $f(x)$ must be a subset of domain of $g(x)$" actually conclude?
Addon: I've realised that the example I have given, is for the special case when $g$ and $f$ are inverse of one another. so $(g\circ f)(x) = x$. My conclusion is that for composite function $(g\circ f)(x)$ to exists, either
- $g(x)$ and $f(x)$ has to be functions, or
- $g(x)$ and $f(x)$ are inverse of one another.
Am I right? Any help is much appreciated! I still need help.
1.1) For g(f(x)) to be functions, range of f must be subset of domain of g.
2.1) Can g(f(x)) still be a function? 2.1.1) Yes if g and f are inverse of one another. g(f(x)) = x and therefore a function. 2.1.2) If g and f are not inverse of one another. can they still be functions? Are there any conditions (as a rule of thumb) for them to be functions?
– Yan Bo Pei Sep 22 '18 at 17:30