Skip to content
Official PYQ · 2015

GATE CS 2015 Set 1 Q5 — Sets, Relations and Functions

Explain with AI

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

Choose one option
View worked solution

Answer: A

We are given the functions:

g(x)=1−xg(x) = 1 - x

h(x)=xx−1h(x) = \frac{x}{x-1}

Let us compute the numerator and denominator of the given expression step-by-step.

Step 1: Compute the Numerator g(h(x))g(h(x))

g(h(x))=1−h(x)=1−xx−1g(h(x)) = 1 - h(x) = 1 - \frac{x}{x-1}

g(h(x))=(x−1)−xx−1=−1x−1=11−xg(h(x)) = \frac{(x-1) - x}{x-1} = \frac{-1}{x-1} = \frac{1}{1-x}

Step 2: Compute the Denominator h(g(x))h(g(x))

h(g(x))=g(x)g(x)−1=1−x(1−x)−1h(g(x)) = \frac{g(x)}{g(x)-1} = \frac{1-x}{(1-x)-1}

h(g(x))=1−x−x=x−1xh(g(x)) = \frac{1-x}{-x} = \frac{x-1}{x}

Step 3: Compute the Ratio g(h(x))h(g(x))\frac{g(h(x))}{h(g(x))}

g(h(x))h(g(x))=11−xx−1x=11−x⋅xx−1=x(1−x)(x−1)\frac{g(h(x))}{h(g(x))} = \frac{\frac{1}{1-x}}{\frac{x-1}{x}} = \frac{1}{1-x} \cdot \frac{x}{x-1} = \frac{x}{(1-x)(x-1)}

Step 4: Check Option A

Let us evaluate Option A, which is h(x)g(x)\frac{h(x)}{g(x)}:

h(x)g(x)=xx−11−x=x(x−1)(1−x)\frac{h(x)}{g(x)} = \frac{\frac{x}{x-1}}{1-x} = \frac{x}{(x-1)(1-x)}

Since this matches the ratio computed in Step 3, the correct option is A.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Sets, Relations and Functions questions