Suppose $f$ and $g$ are such that $f(g(x)) = 1$. Does this imply that $g(f(x))$ is constant?
2026-03-31 10:45:42.1774953942
Composition of two functions is constant
967 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
NO.
$$f(x) = \begin{cases} 1 & x \geq 0 \\ 0 & x < 0 \end{cases}$$
$$g(x) = x^2, \,\,\, \forall x \in \mathbb{R}$$
We then have $$f(g(x)) = f(x^2) = 1, \,\,\,\, \forall x \in \mathbb{R}$$ whereas $$g(f(x)) = f(x)^2 = \begin{cases} 1 & x \geq 0 \\ 0 & x < 0 \end{cases}$$