
What is the derivative of \[\log\left| x \right|\]?
A. \[\dfrac{1}{x}, x > 0\]
B. \[\dfrac{1}{{\left| x \right|}}, x \ne 0\]
C. \[\dfrac{1}{x}, x \ne 0\]
D. None of these
Answer
233.1k+ views
Hint In the given question, logarithmic expression is given. First we will apply the absolute property that \[\left| x \right| = \left\{ {\begin{array}{*{20}{c}}{ - x}&{x < 0}\\x&{x \ge 0}\end{array}} \right.\]. Then differentiating the given expression with respect to \[x\] by using the formula \[\dfrac{d}{{dx}}\left( {\log x} \right) = \dfrac{1}{x}\].
Formula used:
For \[x > 0\]: \[\log\left| x \right| = \log x\]
For \[x < 0\]: \[\log\left| x \right| = \log\left( { - x} \right)\]
\[\dfrac{d}{{dx}}\left( {\log x} \right) = \dfrac{1}{x}\dfrac{d}{{dx}}\left( x \right)\]
Product rule formula: \[\dfrac{d}{{dx}}\left( {uv} \right) = u\dfrac{{dv}}{{dx}} + v\dfrac{{du}}{{dx}}\]
Complete step by step solution:
The given logarithmic expression is, \[\log\left| x \right|\].
Let consider, \[y = \log\left| x \right|\]
Now differentiate the above equation with respect to \[x\].
For \[x > 0\]:
\[\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {\log\left| x \right|} \right)\]
\[ \Rightarrow \]\[\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {logx} \right)\] [since \[\log\left| x \right| = \log x\]]
\[ \Rightarrow \]\[\dfrac{{dy}}{{dx}} = \dfrac{1}{x}\]
For \[x < 0\]:
\[\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {\log\left| x \right|} \right)\]
\[ \Rightarrow \]\[\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {\log\left( { - x} \right)} \right)\] [since \[\log\left| x \right| = \log\left( { - x} \right)\]]
\[ \Rightarrow \]\[\dfrac{{dy}}{{dx}} = \dfrac{1}{{ - x}}\left( { - 1} \right)\]
\[ \Rightarrow \]\[\dfrac{{dy}}{{dx}} = \dfrac{1}{x}\]
So, derivative of \[log\left| x \right| = \dfrac{1}{x}\] , where \[x \ne 0\].
Hence the correct option is option C.
Note: Students are often get confused with the value of \[\dfrac{d}{{dx}}\left( {\log\left( { - x} \right)} \right)\] whether or \[\dfrac{{ - 1}}{x}\]. But the correct value is \[\dfrac{d}{{dx}}\left( {\log\left( { - x} \right)} \right) = \dfrac{1}{x}\]. Because to calculate the derivative of \[\log\left( { - x} \right)\], we have to apply the chain rule. Because of that negative sign get cancelled.
Formula used:
For \[x > 0\]: \[\log\left| x \right| = \log x\]
For \[x < 0\]: \[\log\left| x \right| = \log\left( { - x} \right)\]
\[\dfrac{d}{{dx}}\left( {\log x} \right) = \dfrac{1}{x}\dfrac{d}{{dx}}\left( x \right)\]
Product rule formula: \[\dfrac{d}{{dx}}\left( {uv} \right) = u\dfrac{{dv}}{{dx}} + v\dfrac{{du}}{{dx}}\]
Complete step by step solution:
The given logarithmic expression is, \[\log\left| x \right|\].
Let consider, \[y = \log\left| x \right|\]
Now differentiate the above equation with respect to \[x\].
For \[x > 0\]:
\[\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {\log\left| x \right|} \right)\]
\[ \Rightarrow \]\[\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {logx} \right)\] [since \[\log\left| x \right| = \log x\]]
\[ \Rightarrow \]\[\dfrac{{dy}}{{dx}} = \dfrac{1}{x}\]
For \[x < 0\]:
\[\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {\log\left| x \right|} \right)\]
\[ \Rightarrow \]\[\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {\log\left( { - x} \right)} \right)\] [since \[\log\left| x \right| = \log\left( { - x} \right)\]]
\[ \Rightarrow \]\[\dfrac{{dy}}{{dx}} = \dfrac{1}{{ - x}}\left( { - 1} \right)\]
\[ \Rightarrow \]\[\dfrac{{dy}}{{dx}} = \dfrac{1}{x}\]
So, derivative of \[log\left| x \right| = \dfrac{1}{x}\] , where \[x \ne 0\].
Hence the correct option is option C.
Note: Students are often get confused with the value of \[\dfrac{d}{{dx}}\left( {\log\left( { - x} \right)} \right)\] whether or \[\dfrac{{ - 1}}{x}\]. But the correct value is \[\dfrac{d}{{dx}}\left( {\log\left( { - x} \right)} \right) = \dfrac{1}{x}\]. Because to calculate the derivative of \[\log\left( { - x} \right)\], we have to apply the chain rule. Because of that negative sign get cancelled.
Recently Updated Pages
Geometry of Complex Numbers Explained

JEE General Topics in Chemistry Important Concepts and Tips

JEE Extractive Metallurgy Important Concepts and Tips for Exam Preparation

JEE Amino Acids and Peptides Important Concepts and Tips for Exam Preparation

JEE Atomic Structure and Chemical Bonding important Concepts and Tips

Electricity and Magnetism Explained: Key Concepts & Applications

Trending doubts
JEE Main 2026: Session 2 Registration Open, City Intimation Slip, Exam Dates, Syllabus & Eligibility

JEE Main 2026 Application Login: Direct Link, Registration, Form Fill, and Steps

JEE Main Marking Scheme 2026- Paper-Wise Marks Distribution and Negative Marking Details

Understanding the Angle of Deviation in a Prism

Hybridisation in Chemistry – Concept, Types & Applications

How to Convert a Galvanometer into an Ammeter or Voltmeter

Other Pages
JEE Advanced Marks vs Ranks 2025: Understanding Category-wise Qualifying Marks and Previous Year Cut-offs

Understanding the Electric Field of a Uniformly Charged Ring

JEE Advanced Weightage 2025 Chapter-Wise for Physics, Maths and Chemistry

Derivation of Equation of Trajectory Explained for Students

Understanding Electromagnetic Waves and Their Importance

Understanding How a Current Loop Acts as a Magnetic Dipole

