Question
Question: How do you find the derivative of \(f(x) = \ln \left( {\left| x \right|} \right)\)?...
How do you find the derivative of f(x)=ln(∣x∣)?
Solution
This problem deals with differentiation and logarithms. Given a logarithmic function, where the logarithmic function is a variable with the presence of modulus. Hence this problem should be solved in a different way, rather than just differentiating the function directly.
Here basic differentiation formulas and chain rule in differentiation are used such as:
⇒dxd(logx)=x1
Complete step-by-step answer:
In mathematics, differential calculus is a subfield of calculus that studies the rates at which quantities change. It is one of the two traditional divisions of calculus, the other being integral calculus- the study of the area beneath a curve.
Given an equation which is a function of x, which is given by:
⇒f(x)=ln(∣x∣)
First the function is split into two different intervals, because of the presence of the modulus.
So the function is split into a piecewise function, as shown below:
\Rightarrow f(x) = \left\\{ {\begin{array}{*{20}{c}}
{\begin{array}{*{20}{c}}
{\ln \left( x \right)}&{\begin{array}{*{20}{c}}
;&{x > 0}
\end{array}}
\end{array}} \\\
{\begin{array}{*{20}{c}}
{\ln \left( { - x} \right)}&{\begin{array}{*{20}{c}}
;&{x < 0}
\end{array}}
\end{array}}
\end{array}} \right.
Now finding the derivative for each subdivided interval as shown:
For x>0, the derivative of f(x) is given by:
Here for x>0, f(x)=ln(x), so the differentiation is given by:
⇒dxd(ln(x))=x1
For x<0, the derivative of f(x) is given by:
Here for x<0, f(x)=ln(−x), so the differentiation is given by:
⇒dxd(ln(−x))=−x1⋅dxd(−x)
Here chain rule is implemented as the function of x is included with a negative sign.
⇒dxd(ln(−x))=−x1(−1)
Here the negative sign gets cancelled in the numerator as well as the denominator.
∴dxd(ln(−x))=x1
So for both the intervals x>0 and x<0, the derivative of the function is the same which is x1.
The derivative of dxd(ln∣x∣)=x1
Note:
Please note that here while solving the problem here we used the chain rule of differentiation which is given by:
⇒dxd(f1(x).f2(x))=f1(x).dxd(f2(x))+f2(x).dxd(f1(x))
Differential calculus is a method which deals with the rate of change of one quantity with respect to another.