GATE 2015 CS – Question 11
If $g(x) = 1 - x$ and $h(x) = \frac{x}{x-1}$, then $\frac{g(h(x))}{h(g(x))}$ is:
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) $\frac{h(x)}{g(x)}$
Explanation
$g(h(x)) = 1 - \frac{x}{x-1} = \frac{-1}{x-1}$ and $h(g(x)) = \frac{1-x}{(1-x)-1} = \frac{x-1}{x}$. Their ratio is $\frac{-1}{x-1} \cdot \frac{x}{x-1} = \frac{-x}{(x-1)^2}$. Also $\frac{h(x)}{g(x)} = \frac{x}{(x-1)(1-x)} = \frac{-x}{(x-1)^2}$, which matches.