Differentiation of the natural logarithm function
In Year 12 Mathematical Methods (Queensland, QCAA), the natural logarithm is differentiated with two rules: \(\dfrac{d}{dx}\ln x=\dfrac{1}{x}\) and the chain form \(\dfrac{d}{dx}\ln\big(f(x)\big)=\dfrac{f'(x)}{f(x)}\). Where the logarithm is of a product, quotient or power, simplify with the log laws first, then combine with the product, quotient and chain rules.
The natural logarithm \(y=\ln x=\log_e x\) is the inverse of \(y=e^x\). Its derivative is remarkably simple: \(\dfrac{d}{dx}\ln x=\dfrac{1}{x}\). Geometrically, the gradient of the curve \(y=\ln x\) at any point is the reciprocal of that point's \(x\)-coordinate, so the curve rises steeply near \(x=0\) and flattens as \(x\) grows.
For a composite logarithm \(\ln\big(f(x)\big)\), the chain form gives \(\dfrac{d}{dx}\ln\big(f(x)\big)=\dfrac{f'(x)}{f(x)}\): differentiate the inside and divide by the inside. The factor \(f'(x)\) in the numerator is essential — omitting it is the classic error.
Before differentiating, it usually pays to simplify with the logarithm laws: \(\ln(ax)=\ln a+\ln x\), \(\ln(x^{n})=n\ln x\), \(\ln\dfrac{a}{b}=\ln a-\ln b\) and \(\ln\sqrt{u}=\tfrac12\ln u\). A logarithm of a messy product or quotient then breaks into simple terms, each easy to differentiate. Logarithms are also combined with the product, quotient and chain rules.
The basic rule for the natural logarithm:
The chain form for a composite logarithm (divide the derivative of the inside by the inside):
The logarithm laws used to simplify before differentiating:
How to differentiate a natural logarithm
- Simplify with the log laws. Rewrite a product, quotient, power or root as a sum or difference of simple logarithms: \(\ln(ax)=\ln a+\ln x\), \(\ln(x^n)=n\ln x\), \(\ln\dfrac{a}{b}=\ln a-\ln b\), \(\ln\sqrt{u}=\tfrac12\ln u\).
- Apply the rule. Use \(\dfrac{d}{dx}\ln x=\dfrac{1}{x}\); for a composite that cannot be simplified away, use the chain form \(\dfrac{f'(x)}{f(x)}\) — differentiate the inside, divide by the inside.
- Use the product / quotient / chain rule where needed. For \(x\ln x\) use the product rule; for \(\dfrac{\ln x}{x}\) the quotient rule; for \((\ln x)^2\) or \(\sqrt{\ln x}\) the chain rule.
- Simplify. Combine fractions over a common denominator and leave the derivative in simplest (often factorised) form.
(a) Apply the basic rule. (b) Use the chain form with \(f(x)=2x+3\), \(f'(x)=2\).
| (a) \(\dfrac{dy}{dx}\) | \(=\) | \(\dfrac{1}{x}\) |
| (b) \(\dfrac{dy}{dx}\) | \(=\) | \(\dfrac{2}{2x+3}\) |
Split with the quotient law, then differentiate each term.
| \(y\) | \(=\) | \(\ln(x-1)-\ln(x+1)\) |
| \(\dfrac{dy}{dx}\) | \(=\) | \(\dfrac{1}{x-1}-\dfrac{1}{x+1}\) |
| \(=\) | \(\dfrac{2}{x^{2}-1}\) |
Product rule on the factors \(x\) and \(\ln x\).
| \(\dfrac{dy}{dx}\) | \(=\) | \((1)\ln x + x\cdot\dfrac{1}{x}\) |
| \(=\) | \(\ln x + 1\) |
The gradient function is \(\dfrac{dy}{dx}=\dfrac{1}{x}\); substitute \(x=2\).
| \(\dfrac{dy}{dx}\) | \(=\) | \(\dfrac{1}{x}\) |
| at \(x=2\) | \(=\) | \(\dfrac{1}{2}\) |
Common pitfalls
Frequently asked questions
What is the derivative of ln x?
\(\dfrac{d}{dx}\ln x=\dfrac{1}{x}\). The gradient of \(y=\ln x\) at any point is the reciprocal of its \(x\)-coordinate.
How do you differentiate ln of a function?
Use the chain form \(\dfrac{d}{dx}\ln\big(f(x)\big)=\dfrac{f'(x)}{f(x)}\): differentiate the inside, divide by the inside. E.g. \(\dfrac{d}{dx}\ln(2x+3)=\dfrac{2}{2x+3}\).
Why simplify with the log laws before differentiating?
Splitting a product, quotient or power into simple logarithms turns a hard derivative into an easy one. \(\ln\dfrac{x-1}{x+1}=\ln(x-1)-\ln(x+1)\) differentiates to \(\dfrac{2}{x^{2}-1}\).
What is the most common mistake?
Forgetting the numerator \(f'(x)\). The derivative of \(\ln(f(x))\) is \(\dfrac{f'(x)}{f(x)}\), not \(\dfrac{1}{f(x)}\).
How do you differentiate x ln x?
Product rule: \(\dfrac{d}{dx}\,x\ln x=(1)\ln x+x\cdot\dfrac{1}{x}=\ln x+1\).
What is the derivative of ln(5x)?
\(\dfrac{1}{x}\). Since \(\ln(5x)=\ln 5+\ln x\) and \(\ln 5\) is constant, the derivative is \(\dfrac{1}{x}\); the chain form gives \(\dfrac{5}{5x}=\dfrac{1}{x}\) too.