The question is:
$f(x) = \dfrac{x}{x-1}$
$g(x) = \dfrac{1}{x}$
$h(x) = x^2 - 1$
Find $f \circ g \circ h$ and state its domain.
The answer the textbook states is that the domain is all real values of $x$, except $\pm 1$ and $\pm \sqrt{2}$.
However surely the domain excludes $0$ as well, since $g(0)$ is undefined.
You're not inputting $x$ into $g$, though. You're inputting $h(x)$. So yes, $g(0)$ is undefined, which means that whatever values of $x$ makes $h(x) = 0$ is not part of the domain. That's why they exclude $\pm1$.