Question

If g(x)=1−xg(x) = 1 - x and h(x)=xx−1h(x) = \dfrac{x}{x-1}, then g(h(x))h(g(x))\dfrac{g(h(x))}{h(g(x))} is:

Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2015 answer key

Solution

Substitute the definitions of g(x)g(x) and h(x)h(x) into numerator and denominator and simplify the rational expression.

Given g(x)=1−xg(x) = 1 - x and h(x)=xx−1h(x) = \frac{x}{x-1}.

  1. Compute the numerator g(h(x))g(h(x)):
g(h(x))=1−h(x)=1−xx−1=(x−1)−xx−1=−1x−1=11−x.g(h(x)) = 1 - h(x) = 1 - \frac{x}{x-1} = \frac{(x-1) - x}{x-1} = \frac{-1}{x-1} = \frac{1}{1-x}.
  1. Compute the denominator h(g(x))h(g(x)):
h(g(x))=g(x)g(x)−1=1−x(1−x)−1=1−x−x=x−1x.h(g(x)) = \frac{g(x)}{g(x) - 1} = \frac{1 - x}{(1 - x) - 1} = \frac{1 - x}{-x} = \frac{x - 1}{x}.
  1. Evaluate the quotient:
g(h(x))h(g(x))=−1x−1x−1x=−x(x−1)2.\frac{g(h(x))}{h(g(x))} = \frac{\frac{-1}{x-1}}{\frac{x-1}{x}} = \frac{-x}{(x-1)^2}.
  1. Compare with Option A:
h(x)g(x)=xx−11−x=x(x−1)(1−x)=−x(x−1)2.\frac{h(x)}{g(x)} = \frac{\frac{x}{x-1}}{1-x} = \frac{x}{(x-1)(1-x)} = \frac{-x}{(x-1)^2}.

Both expressions are identical. Thus, g(h(x))h(g(x))=h(x)g(x)\frac{g(h(x))}{h(g(x))} = \frac{h(x)}{g(x)} (option A).

Final answer

A

Common trap

Making an algebraic sign error when simplifying the denominator h(g(x))=(1−x)/(−x)h(g(x)) = (1-x)/(-x).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 1
Question
15 of 65, printed as CS Q.5
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.