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))=∣sinx∣ and f(g(x))=(sinx)2, then determine f(x) and g(x).
f(x) and g(x) are as follows:
a) f(x)=sin2x and g(x)=x
b) f(x)=sinx and g(x)=[x]
c) f(x)=x2 and g(x)=sinx
d) f and g cannot be determined.
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)) is basically substituting g(x) in the place of x in f(x).Suppose, we have, f(x)=x, then f(g(x))=g(x). Also, we need to keep in mind that x2=∣x∣, not just x.
Complete answer: We are given g(f(x))=∣sinx∣ and f(g(x))=(sinx)2
In option a), we have f(x)=sin2x and g(x)=x
So,
⇒f(g(x))=sin2(g(x))
⇒f(g(x))=sin2(x) as (g(x)=x)
⇒f(g(x))=(sinx)2
And,
g(f(x))=f(x)
⇒g(f(x))=sin2x as f(x)=sin2x
⇒g(f(x))=∣sinx∣
We see that, option a) satisfies the given condition.
In option b), we have f(x)=sinx and g(x)=[x]
So,
f(g(x))=sing(x)
⇒f(g(x))=sin[x] as g(x)=[x]
And,
g(f(x))=[f(x)]
⇒g(f(x))=[sinx] as f(x)=sinx
We see that option b) does not satisfy the given condition and hence, option b) is discarded.
In option c), we have f(x)=x2 and g(x)=sinx
So,
f(g(x))=(g(x))2
⇒f(g(x))=(sinx)2 as g(x)=sinx
⇒f(g(x))=sin2x
And,
g(f(x))=sinf(x)
⇒g(f(x))=sinx2 as f(x)=x2
⇒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 f and g cannot be determined
We already saw in option a) that we have such f and g which satisfy the given conditions and so we cannot just say that f and g cannot be determined.
Hence, option d) is discarded.
Therefore, the correct option is (a)
f(x)=sin2x and g(x)=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, not (sinx)2=sin2x2. 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.