Logarithmic Derivative Calculator
This Logarithmic Derivative Calculator differentiates natural and common logarithms, and shows the working line by line. The derivative of the natural logarithm is one over x, and a logarithm to another base picks up a division by the logarithm of that base. A constant multiple in front is carried through unchanged. Following the same pattern every time keeps the base factor from being dropped.
Step-by-step method
- Set up the problem.
- Write the derivative rule for the natural logarithm.
- Move the constant multiple in front of the derivative.
- Apply the derivative rule.
Formula: Derivative of ln(x)
The derivative of the natural logarithm of x is 1 over x.
Useful Tips to Remember
The derivative of \(\ln x\) is \(\frac{1}{x}\), and by the chain rule the derivative of \(\ln(g(x))\) is \(\frac{g'(x)}{g(x)}\). Use the log laws to simplify before differentiating, such as turning \(\ln(x^3)\) into \(3\ln x\). For other bases, \(\frac{d}{dx}\log_a x = \frac{1}{x\ln a}\). The logarithm is only defined for positive inputs.
Required knowledge
- How a number in front of a function stays in front when differentiating, covered in the Constant Multiple Rule Calculator.
Where Are Logarithmic Derivatives Used?
The derivative of \(\ln x\) is \(\frac{1}{x}\), which shows that logarithmic growth keeps rising but more and more slowly. Logarithms describe scales such as decibels for sound, the Richter scale for earthquakes and pH for acidity, so their derivatives show how sensitive these scales are to change. In economics, the derivative of a logarithm gives a percentage rate of change, which is how growth rates and elasticity are measured. It also appears in information theory and in the training of many machine learning models.
- Measuring percentage growth rates in economics
- Working with decibel, Richter and pH scales
- Finding the elasticity of demand
- Training models with logarithmic loss functions
- Differentiating formulas that contain \(\ln x\)
Logarithmic Derivative Practice Problems
Example 1 differentiates \(\ln x\), and Example 2 differentiates \(3\ln x\) with a constant in front. Try each one yourself before checking. For two more free worked examples, check out the Logarithmic Derivative Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the derivative rule for the natural logarithm.
- Move the constant multiple in front of the derivative.
- Apply the derivative rule.
Formula
Formula: Derivative of ln(x)
The derivative of the natural logarithm of x is 1 over x.
Step 1
Step 1 - Identify the logarithmic function and any constant multiple.
In this problem: The function is \(\ln\left(x\right)\).
Step 2
Step 2 - Write the derivative rule for the natural logarithm.
In this problem: The derivative of the natural logarithm is one over x.
Step 3
Step 3 - Apply the derivative rule.
In this problem: Put \(\ln\left(x\right)\) into the rule from Step 2.
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the derivative rule for the natural logarithm.
- Move the constant multiple in front of the derivative.
- Apply the derivative rule.
Formula
Formula: Derivative of ln(x)
The derivative of the natural logarithm of x is 1 over x.
Step 1
Step 1 - Identify the logarithmic function and any constant multiple.
In this problem: The function is \(\ln\left(x\right)\). The constant multiple \(3\) stays in front.
Step 2
Step 2 - Write the derivative rule for the natural logarithm.
In this problem: The derivative of the natural logarithm is one over x.
Step 3
Step 3 - Move the constant multiple in front of the derivative.
In this problem: The number \(3\) in front is a constant multiple, so it moves in front of the derivative and only \(\ln\left(x\right)\) is differentiated.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(3 \ln\left(x\right)\). The constant coefficient is \(3\), and the variable part is \(\ln\left(x\right)\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(3\) outside the derivative and leave \(\ln\left(x\right)\) inside the derivative.
Final Answer
Step 4
Step 4 - Apply the derivative rule.
In this problem: Replace \(\frac{d}{d x} \ln\left(x\right)\) with \(\frac{1}{x}\) from Step 2.
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Logarithmic Derivative Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Logarithmic Derivative Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.
Login and upgrade to Plus to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.