Find the domain and range of the composition g o f

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

Answer

(a) \{1, 2, 6, 7\}, (b) \{1, 2, 4\}

Reasoning

f(1)=0, g(0)=1; f(2)=3, g(3)=4; f(6)=1, g(1)=2; f(7)=1, g(1)=2; f(8)=6, 6 \notin \text{dom}(g).

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$. Here, $f(1)=0, f(2)=3, f(6)=1, f(7)=1, f(8)=6$. Since $0, 3, 1$ are in the domain of $g$ but $6$ is not, the domain is $\{1, 2, 6, 7\}$. The range is $\{g(f(1)), g(f(2)), g(f(6)), g(f(7))\} = \{g(0), g(3), g(1), g(1)\} = \{1, 4, 2\}$.