Find gg of and f∘gf \circ g, if f:R→Rf: \mathbf{R} \rightarrow \mathbf{R} and g:R→Rg: \mathbf{R} \rightarrow \mathbf{R} are given by f(x)=cos⁡xf(x)=\cos x and g(x)=3x2g(x)=3 x^{2}. Show that gg of ≠\neq fog.

Answer: g∘f(x)=3cos⁡2xg \circ f(x) = 3\cos^2 x and f∘g(x)=cos⁡(3x2)f \circ g(x) = \cos(3x^2). Since 3cos⁡2x≠cos⁡(3x2)3\cos^2 x \neq \cos(3x^2), it is shown that g∘f≠f∘gg \circ f \neq f \circ g.

Step-by-step solution

Step 1: Define the functions

We are given two functions, f(x)=cos⁡xf(x) = \cos x and g(x)=3x2g(x) = 3x^2. Both functions map real numbers to real numbers.

Step 2: Calculate g∘fg \circ f

To find g∘f(x)g \circ f(x), we substitute f(x)f(x) into g(x)g(x). Since f(x)=cos⁡xf(x) = \cos x, we replace xx in g(x)g(x) with cos⁡x\cos x. This gives us 3(cos⁡x)23(\cos x)^2, which simplifies to 3cos⁡2x3\cos^2 x.

Step 3: Calculate f∘gf \circ g

To find f∘g(x)f \circ g(x), we substitute g(x)g(x) into f(x)f(x). Since g(x)=3x2g(x) = 3x^2, we replace xx in f(x)f(x) with 3x23x^2. This results in cos⁡(3x2)\cos(3x^2).

Step 4: Compare g∘fg \circ f and f∘gf \circ g

By comparing the results, we see that g∘f(x)=3cos⁡2xg \circ f(x) = 3\cos^2 x and f∘g(x)=cos⁡(3x2)f \circ g(x) = \cos(3x^2). These two expressions are generally not equal for all values of xx. For example, if x=0x=0, g∘f(0)=3cos⁡2(0)=3(1)2=3g \circ f(0) = 3\cos^2(0) = 3(1)^2 = 3, while f∘g(0)=cos⁡(3(0)2)=cos⁡(0)=1f \circ g(0) = \cos(3(0)^2) = \cos(0) = 1. Since 3≠13 \neq 1, we have shown that g∘f≠f∘gg \circ f \neq f \circ g.

More from this chapter

All Relations and Functions solutions →

Solve your own maths question free →