QlarIITy

MathematicsIIT-JEE 1998Single correct

If g(f(x))=∣sin⁡x∣g(f(x))=|\sin x| and f(g(x))=(sin⁡x)2f(g(x))=(\sin\sqrt{x})^{2}, then

  1. Option A: f(x)=sin⁡2xf(x)=\sin^{2}x, g(x)=xg(x)=\sqrt{x}
  2. Option B: f(x)=sin⁡xf(x)=\sin x, g(x)=∣x∣g(x)=|x|
  3. Option C: f(x)=x2f(x)=x^{2}, g(x)=sin⁡xg(x)=\sin\sqrt{x}
  4. Option D: ff and gg cannot be determined
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. A candidate pair must satisfy both composition conditions, so f∘gf\circ g and g∘fg\circ f are tested separately.

Concept refresher. g(f(x))g(f(x)) means apply ff first, then gg. A candidate pair is correct only if both given compositions come out right. Also t2=∣t∣\sqrt{t^{2}}=|t|.

Approach. Substitute each pair into both compositions.

  1. Step 1: Pair (A)

    f(x)=sin⁡2xf(x)=\sin^{2}x, g(x)=xg(x)=\sqrt{x}:

    g(f(x))=sin⁡2x=∣sin⁡x∣,f(g(x))=sin⁡2x=(sin⁡x)2g(f(x))=\sqrt{\sin^{2}x}=|\sin x|,\qquad f(g(x))=\sin^{2}\sqrt{x}=(\sin\sqrt{x})^{2}

    Both match.

  2. Step 2: Pair (B)

    f(x)=sin⁡xf(x)=\sin x, g(x)=∣x∣g(x)=|x|: g(f(x))=∣sin⁡x∣g(f(x))=|\sin x| matches, but f(g(x))=sin⁡∣x∣≠(sin⁡x)2f(g(x))=\sin|x|\ne(\sin\sqrt{x})^{2}.

  3. Step 3: Pair (C)

    f(x)=x2f(x)=x^{2}, g(x)=sin⁡xg(x)=\sin\sqrt{x}: f(g(x))=(sin⁡x)2f(g(x))=(\sin\sqrt{x})^{2} matches, but g(f(x))=sin⁡x2=sin⁡∣x∣≠∣sin⁡x∣g(f(x))=\sin\sqrt{x^{2}}=\sin|x|\ne|\sin x|.

Answer. (A)

Why the other options are wrong

  • (B) It gives g(f(x))g(f(x)) correctly but f(g(x))=sin⁡∣x∣f(g(x))=\sin|x|, not (sin⁡x)2(\sin\sqrt{x})^{2}.
  • (C) It gives f(g(x))f(g(x)) correctly but g(f(x))=sin⁡∣x∣g(f(x))=\sin|x|, not ∣sin⁡x∣|\sin x|.
  • (D) The pair in (A) satisfies both relations, so ff and gg can be found.

Key takeaway

The trap. Accepting a pair after one check, or simplifying x2\sqrt{x^{2}} to xx instead of ∣x∣|x|, lets a wrong option through.

How toppers think. They plug each option into both compositions and use sin⁡2x=∣sin⁡x∣\sqrt{\sin^{2}x}=|\sin x| and sin⁡x2=sin⁡∣x∣\sin\sqrt{x^{2}}=\sin|x| to separate them quickly.

Remember. u2=∣u∣\sqrt{u^{2}}=|u|, and order matters: (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)) is in general different from g(f(x))g(f(x)).

More on Composite & Inverse Functions