Skip to content
Question of 104

Q.If f:R→Rf:R \to R where f(x)=cos⁡xf(x) = \cos x and g:R→Rg:R \to R where g(x)=x2g(x) = x^2, then prove that fog≠goffog \neq gof.

Uttar Pradesh UpmspUP Board (UPMSP) Intermediate 2022Subjective· 1mImportance★★★★★
0% · 0/104 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Composition is order-sensitive: (f∘g)(x)=cos⁡(x2)(f\circ g)(x)=\cos(x^2) but (g∘f)(x)=cos⁡2x(g\circ f)(x)=\cos^2x, and one counterexample proves f∘g≠g∘ff\circ g\ne g\circ f.

Concept. To disprove an equality of functions it is enough to find one input where the two sides differ.

With f(x)=cos⁡xf(x)=\cos x and g(x)=x2g(x)=x^2:

(f∘g)(x)=f(g(x))=f(x2)=cos⁡(x2),(f\circ g)(x)=f(g(x))=f(x^2)=\cos(x^2),

(g∘f)(x)=g(f(x))=g(cos⁡x)=(cos⁡x)2=cos⁡2x.(g\circ f)(x)=g(f(x))=g(\cos x)=(\cos x)^2=\cos^2 x.

Take x=πx=\sqrt{\pi}:

(f∘g)(π)=cos⁡π=−1,(g∘f)(π)=cos⁡2π≥0.(f\circ g)(\sqrt\pi)=\cos\pi=-1,\qquad (g\circ f)(\sqrt\pi)=\cos^2\sqrt\pi\ge 0. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.