If $f(x) = \sqrt{x}$ and $g(x) = \dfrac{x}{x-1}$, I want to find $D_{f \circ g}$ using the definition $$D_{f \circ g} = \{x \in D_{g}: g(x) \in D_{f} \}$$ I used that $g(x) = 1 + \dfrac{1}{x-1}$ and $D_{f}= [0, \infty[$. but I reach a contradiction that $x \in \mathbb{R} - \{1\}$ and $0 \geq x > 1$, so could anyone tell me the correct answer?
Thanks!
\begin{align} D_{f \circ g} &= \{x \in D_{g}: g(x) \in D_{f} \}\\ &= \{x \in \mathbb{R} - \{1\}: \dfrac{x}{x-1} \in D_{f} \}\\ &= \{x \in \mathbb{R} - \{1\}: \dfrac{x}{x-1} \geq0 \}\\ &= \{x \in \mathbb{R} - \{1\}: x\in(-\infty,0]\cup(1,\infty) \}\\ &= (-\infty,0]\cup(1,\infty) \end{align}