Other / Mixed Topics

Your answer
Answer & solution
Official answer: A
Substitute before simplifying: g(h(x))=1−x/(x−1)=−1/(x−1), whereas h(g(x))=(1−x)/((1−x)−1)=(x−1)/x. Division gives −x/(x−1)2. Option D has the same squared denominator but the wrong sign. The original composition needs x≠1 and x≠0; simplification must not silently restore excluded inputs.
Solution: For x≠0, 1, g(h(x))=−1/(x−1) and h(g(x))=(x−1)/x. Their ratio is−x/(x−1)2=h(x)/g(x), A. The exclusions are needed for the displayed compositions and ratio.