Question
Question: What is the derivative of \[y = \log \left( {2x} \right)\]?...
What is the derivative of y=log(2x)?
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) - - - - - - - - - - - - - - - - - - - (1)
This is of the form 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 dxdy.
But before that we have to note a few things about the given function. Observe that y=log(2x) is a composition of the functions where the outer function is g(x)=logx and the inner function is h(x)=2x, that is y=log(2x)=g(h(x)).
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 dxdg(h(x))=g′(h(x))h′(x).
Now we will differentiate the given equation (1) on both sides with respect to x to get,
dxdy=dxdlog(2x)
Here we can use the chain rule to get
⇒dxdy=2x1.dxd(2x)
[ Using dxdlogx=x1]
⇒dxdy=2x1.2 [ Using dxd(ax)=a]
⇒dxdy=x1
Hence the derivative of y=log(2x) is x1.
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), the outer function is the square function x2 and the inner function is cosx.