Solveeit Logo

Question

Question: If \[g(f(x)) = |\sin x|\] and \[f(g(x)) = {(\sin \sqrt x )^2}\], then determine \[f(x)\] and \[g(x)\...

If g(f(x))=sinxg(f(x)) = |\sin x| and f(g(x))=(sinx)2f(g(x)) = {(\sin \sqrt x )^2}, then determine f(x)f(x) and g(x)g(x).
f(x)f(x) and g(x)g(x) are as follows:
a) f(x)=sin2xf(x) = {\sin ^2}x and g(x)=xg(x) = \sqrt x
b) f(x)=sinxf(x) = \sin x and g(x)=[x]g(x) = \left[ x \right]
c) f(x)=x2f(x) = {x^2} and g(x)=sinxg(x) = \sin \sqrt x
d) ff and gg cannot be determined.

Explanation

Solution

As we are given options here, we can go for checking option by option and then see which option satisfies the given conditions and the we can arrive at a conclusion. We know, f(g(x))f(g(x)) is basically substituting g(x)g(x) in the place of xx in f(x)f(x).Suppose, we have, f(x)=xf(x) = x, then f(g(x))=g(x)f(g(x)) = g(x). Also, we need to keep in mind that x2=x\sqrt {{x^2}} = |x|, not just xx.

Complete answer: We are given g(f(x))=sinxg(f(x)) = |\sin x| and f(g(x))=(sinx)2f(g(x)) = {(\sin \sqrt x )^2}
In option a), we have f(x)=sin2xf(x) = {\sin ^2}x and g(x)=xg(x) = \sqrt x
So,
f(g(x))=sin2(g(x))\Rightarrow f(g(x)) = {\sin ^2}(g(x))
f(g(x))=sin2(x)\Rightarrow f(g(x)) = {\sin ^2}(\sqrt x ) as (g(x)=x)(g(x) = \sqrt x )
f(g(x))=(sinx)2\Rightarrow f(g(x)) = {(\sin \sqrt x )^2}
And,
g(f(x))=f(x)g(f(x)) = \sqrt {f(x)}
g(f(x))=sin2x\Rightarrow g(f(x)) = \sqrt {{{\sin }^2}x} as f(x)=sin2xf(x) = {\sin ^2}x
g(f(x))=sinx\Rightarrow g(f(x)) = |\sin x|
We see that, option a) satisfies the given condition.
In option b), we have f(x)=sinxf(x) = \sin x and g(x)=[x]g(x) = \left[ x \right]
So,
f(g(x))=sing(x)f(g(x)) = \sin g(x)
f(g(x))=sin[x]\Rightarrow f(g(x)) = \sin \left[ x \right] as g(x)=[x]g(x) = \left[ x \right]
And,
g(f(x))=[f(x)]g(f(x)) = \left[ {f(x)} \right]
g(f(x))=[sinx]\Rightarrow g(f(x)) = \left[ {\sin x} \right] as f(x)=sinxf(x) = \sin x
We see that option b) does not satisfy the given condition and hence, option b) is discarded.
In option c), we have f(x)=x2f(x) = {x^2} and g(x)=sinxg(x) = \sin \sqrt x
So,
f(g(x))=(g(x))2f(g(x)) = {(g(x))^2}
f(g(x))=(sinx)2\Rightarrow f(g(x)) = {(\sin \sqrt x )^2} as g(x)=sinxg(x) = \sin \sqrt x
f(g(x))=sin2x\Rightarrow f(g(x)) = {\sin ^2}\sqrt x
And,
g(f(x))=sinf(x)g(f(x)) = \sin \sqrt {f(x)}
g(f(x))=sinx2\Rightarrow g(f(x)) = \sin \sqrt {{x^2}} as f(x)=x2f(x) = {x^2}
g(f(x))=sinx\Rightarrow g(f(x)) = \sin |x|
Hence, we see that option c) does not satisfy the given condition and hence option c) is discarded.
In option d), we have ff and gg cannot be determined
We already saw in option a) that we have such ff and gg which satisfy the given conditions and so we cannot just say that ff and gg cannot be determined.
Hence, option d) is discarded.
Therefore, the correct option is (a)
f(x)=sin2xf(x) = {\sin ^2}x and g(x)=xg(x) = \sqrt x

Note:
First of all, we need to be very careful with our concepts of trigonometry, like we have to keep in mind that (sinx)2=sin2x{(\sin x)^2} = {\sin ^2}x, not (sinx)2=sin2x2{(\sin x)^2} = {\sin ^2}{x^2}. Also, we need to check every option even if we got our option a) correct or option b) correct. And, we need to take care while solving for the composition function i.e. we should take care that substitution is made everywhere in the function.