Question
Question: If \(f\left( x \right)={{e}^{x}}\) and \(g\left( x \right)=\log \left( {{e}^{x}} \right)\) then whic...
If f(x)=ex and g(x)=log(ex) then which of the following is correct?
(a) f(g(x))=g(f(x))
(b) f(g(x))=g(f(x))
(c) f(g(x))+g(f(x))=0
(d) f(g(x))−g(f(x))=1
Solution
Simplify the function g(x)=log(ex) by using the formulas log(am)=mloga and loge=1. Assume the base of the log equal to e, i.e. it is a natural log. Now, find the composite functions f(g(x)) and g(f(x)) one by one. To find f(g(x)) substitute the value of g(x) in place of x in the function f(x) and similarly find g(f(x)) by substituting f(x) in place of x in the function g(x). Check for the correct option.
Complete step by step solution:
Here we have been provided with the functions f(x)=ex and g(x)=log(ex), we are asked to choose the correct option regarding the composite functions f(g(x)) and g(f(x)). First let us simplify g(x)=log(ex) further.
Now, we haven’t been provided with any base value of the log in the function g(x), so in mathematics we assume the base value in such a case equal to e. In other words we can say that the given log is assumed to be a natural log. Using the formulas log(am)=mloga and loge=1 we get,
⇒g(x)=xlog(e)⇒g(x)=x
The composite function f(g(x)) can be obtained by substituting g(x) in place of x in the function f(x)=ex, so we get,
⇒f(g(x))=f(x)⇒f(g(x))=ex
Similarly, the composite function g(f(x)) can be obtained by substituting f(x) in place of x in the function g(x)=x, so we get,
⇒g(f(x))=g(ex)⇒g(f(x))=ex
Clearly we can see that the two composite functions f(g(x)) and g(f(x)) are equal.
∴f(g(x))=g(f(x))
Hence, option (b) is the correct answer.
Note: Even if we assume the base of the log equal to 10, i.e. the log is a assumed to be a common log, we are going to get the same result but then the composite functions will become f(g(x))=g(f(x))=exlog10e. However, always remember that if no base value is present then assume the given log as a natural log. Remember the properties of logarithms for simplifying the functions.