Solveeit Logo

Question

Question: What is the derivative of \[y = \log \left( {2x} \right)\]?...

What is the derivative of y=log(2x)y = \log \left( {2x} \right)?

Explanation

Solution

Here we have y as a composition of two functions. We will use the chain rule and other commonly known derivatives of functions to find the derivative of y.

Complete step-by-step solution:
We will first write down the function given in the question, which is,
y=log(2x)y = \log \left( {2x} \right) - - - - - - - - - - - - - - - - - - - (1)
This is of the form y=f(x)y = f(x). Now, it is easy to find the derivative of y. We can simply differentiate both sides to get the value of the derivative dydx\dfrac{{dy}}{{dx}}.
But before that we have to note a few things about the given function. Observe that y=log(2x)y = \log \left( {2x} \right) is a composition of the functions where the outer function is g(x)=logxg(x) = \log x and the inner function is h(x)=2xh(x) = 2x, that is y=log(2x)=g(h(x))y = \log \left( {2x} \right) = g\left( {h(x)} \right).
Now, if there are two or more functions in composition, to derive them we have to use the chain rule. According to this rule the derivative of composition of two functions ddxg(h(x))=g(h(x))h(x)\dfrac{d}{{dx}}g\left( {h(x)} \right) = g'\left( {h(x)} \right)h'(x).
Now we will differentiate the given equation (1) on both sides with respect to x to get,
dydx=ddxlog(2x)\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\log \left( {2x} \right)
Here we can use the chain rule to get
dydx=12x.ddx(2x)\Rightarrow \dfrac{{dy}}{{dx}} = \dfrac{1}{{2x}}.\dfrac{d}{{dx}}\left( {2x} \right)
[ Using ddxlogx=1x\dfrac{d}{{dx}}\log x = \dfrac{1}{x}]
dydx=12x.2\Rightarrow \dfrac{{dy}}{{dx}} = \dfrac{1}{{2x}}.2 [ Using ddx(ax)=a\dfrac{d}{{dx}}(ax) = a]
dydx=1x\Rightarrow \dfrac{{dy}}{{dx}} = \dfrac{1}{x}
Hence the derivative of y=log(2x)y = \log \left( {2x} \right) is 1x\dfrac{1}{x}.

Note: We can easily get confused when trying to identify the inner and outer functions in a composition of two functions. For example, in cos2(x){\cos ^2}(x), the outer function is the square function x2{x^2} and the inner function is cosx\cos x.