Find the domain and range of the composition g o f.

Check the final answer first, then review the worked steps.

Answer

(a) \{0, 2, 3, 4, 9\}, (b) \{2, 3\}

Reasoning

Domain: $x \in \{0, 2, 3, 4, 9\} \implies f(x) \in \{3, 7, 8, 9\} \subseteq \text{Dom}(g)$.
Range: $g(f(0))=3, g(f(2))=2, g(f(3))=3, g(f(4))=3, g(f(9))=2$.

Step-by-step solution

The domain of $g \circ f$ consists of $x$ in the domain of $f$ such that $f(x)$ is in the domain of $g$. For $x \in \{0, 2, 3, 4, 9\}$, $f(x) \in \{3, 7, 8, 9\}$. Since all these outputs are in the domain of $g$, the domain is $\{0, 2, 3, 4, 9\}$. The range is the set of values $g(f(x))$ for these $x$: $g(f(0))=g(7)=3$, $g(f(2))=g(3)=2$, $g(f(3))=g(7)=3$, $g(f(4))=g(9)=3$, $g(f(9))=g(8)=2$. Thus, the range is $\{2, 3\}$.