Solveeit Logo

Question

Question: The derivative of \( \log \left| x \right| \) is: (A) \( \dfrac{1}{x},x > 0 \) (B) \( \dfrac{1...

The derivative of logx\log \left| x \right| is:
(A) 1x,x>0\dfrac{1}{x},x > 0
(B) 1x,x0\dfrac{1}{{\left| x \right|}},x \ne 0
(C) 1x,x0\dfrac{1}{x},x \ne 0
(D) None of these

Explanation

Solution

Hint : In the given question, we have to find the derivative of a composite logarithmic function. The input of the logarithmic function provided to us is x\left| x \right| . So, we interpret the modulus function as a piecewise function and find the derivative in both the cases accordingly. We must know the derivative of logarithmic function to solve the given problem.

Complete step-by-step answer :
Now, the given function is logx\log \left| x \right| .
We know that the modulus function gives only the positive values of a variable. So, we interpret the modulus as a piecewise function.
So, for positive values of x, we have, x=x\left| x \right| = x .
Also, for negative values of x, we have, x=(x)\left| x \right| = \left( { - x} \right) .
Hence, we have, x=x\left| x \right| = - x for x<0x < 0 and x=x\left| x \right| = x for x>0x > 0 .
So, when x>0x > 0 , logx=logx\log \left| x \right| = \log x .
We know that the derivative of log(x)\log \left( x \right) is 1x\dfrac{1}{x} . Hence, we get,
d(logx)dx=d(logx)dx=1x\Rightarrow \dfrac{{d\left( {\log \left| x \right|} \right)}}{{dx}} = \dfrac{{d\left( {\log x} \right)}}{{dx}} = \dfrac{1}{x}
Now, when x<0x < 0 , logx=log(x)\log \left| x \right| = \log \left( { - x} \right) .
We know that the derivative of log(x)\log \left( x \right) is 1x\dfrac{1}{x} . Hence, we get,
d(logx)dx=d(log(x))dx=1x×(1)=1x\dfrac{{d\left( {\log \left| x \right|} \right)}}{{dx}} = \dfrac{{d\left( {\log \left( { - x} \right)} \right)}}{{dx}} = \dfrac{1}{{ - x}} \times \left( { - 1} \right) = \dfrac{1}{x}.
So, the derivative of the function logx\log \left| x \right| is 1x,x0\dfrac{1}{x},x \ne 0 .
Hence, option (C) is the correct answer.
So, the correct answer is “Option C”.

Note : We must know the rules of differentiation such as chain rule before solving the problem. Chain rule of differentiation helps us in differentiating composite functions layer by layer. We must remember derivatives of some basic functions. One must know how to differentiate a piecewise function to solve such questions.