Differentiating $\ln x$
The derivative of $\ln x$ is $\frac{1}{x}$, the simplest reciprocal function. Like a thermostat that responds inversely to temperature, the logarithm's rate of change decreases as $x$ grows. Master this rule and you unlock composite log differentiation through the chain rule.
Practise this lesson
Three printable worksheets that build from foundations to mastery, or build your own from any module’s questions.
If $\dfrac{d}{dx}(e^x) = e^x$ and $\ln x$ undoes $e^x$, what shape do you expect $\dfrac{d}{dx}(\ln x)$ to have? Without using a formulaa line? A hyperbola? A curve that flattens?
There are only two core moves in this lesson. Lock $\frac{d}{dx}(\ln x) = \frac{1}{x}$ into memory, then extend it to composite functions using the chain rule: $\frac{d}{dx}(\ln g(x)) = \frac{g'(x)}{g(x)}$.
Every log derivative in this lesson uses one of two roads: the basic rule $\frac{1}{x}$ for $\ln x$ itself, or the chain rule form $\frac{g'(x)}{g(x)}$ when there's a function inside the log.
Key facts
- $\dfrac{d}{dx}(\ln x) = \dfrac{1}{x}$ for $x > 0$
- The chain rule form for $\ln(g(x))$
- Domain restriction: $\ln x$ requires $x > 0$
Concepts
- Why the derivative follows from implicit differentiation of $e^y = x$
- How log laws can simplify differentiation before applying rules
- The connection between $\ln x$ and $\ln|x|$ for $x \neq 0$
Skills
- Differentiate $\ln(kx)$, $\ln(ax + b)$, and composite logs
- Differentiate products and quotients involving $\ln x$
- Find stationary points of functions containing $\ln x$
Since $y = \ln x$ is the inverse of $y = e^x$, the derivative follows from implicit differentiation. Let $y = \ln x$, so $x = e^y$. Differentiating both sides with respect to $x$: $1 = e^y \cdot \dfrac{dy}{dx}$, which gives $\dfrac{dy}{dx} = \dfrac{1}{e^y} = \dfrac{1}{x}$.
Also: $\dfrac{d}{dx}(\ln|x|) = \dfrac{1}{x}$ for $x \neq 0$
For composite functions like $\ln(g(x))$, apply the chain rule: differentiate the outer function ($\frac{1}{\text{inside}}$) and multiply by the derivative of the inside. This gives $\dfrac{g'(x)}{g(x)}$, which is especially useful because log laws can convert messy products and quotients into sums and differences before you differentiate.
$\dfrac{d}{dx}(\ln x) = \dfrac{1}{x}$, derived from implicit differentiation of $e^y = x$; Chain rule: $\dfrac{d}{dx}(\ln g(x)) = \dfrac{g'(x)}{g(x)}$, numerator is always $g'(x)$
Pause, copy the rule $\dfrac{d}{dx}(\ln x) = \dfrac{1}{x}$ and its chain rule extension $\dfrac{d}{dx}(\ln g(x)) = \dfrac{g'(x)}{g(x)}$ into your book.
Did you get this? True or false: $\dfrac{d}{dx}(\ln x) = \dfrac{1}{\ln x}$.
Worked examples · 3 in a row, reveal as you go
Differentiate $y = \ln(3x)$.
Differentiate $y = \ln(x^2 + 1)$.
Differentiate $y = x\ln x$ and find its stationary point.
Quick check: Which is the correct derivative of $y = \ln(x^2 + 1)$?
Common errors, the 3 traps that cost marks
Fill the gap: The function $\ln x$ is only defined for $x$ . Its derivative is $\frac{d}{dx}(\ln x) =$ .
Match up: Connect each function on the left with its correct derivative on the right.
- $y = \ln(5x)$
- $y = \ln(x^2+1)$
- $y = x\ln x$
- $y = \ln(ax+b)$
- $\dfrac{a}{ax+b}$
- $\ln x + 1$
- $\dfrac{2x}{x^2+1}$
- $\dfrac{1}{x}$
Quick-fire practice · 5 problems
Differentiate $y = \ln(2x)$.
Differentiate $y = \ln(x^3)$.
Differentiate $y = x^2 \ln x$.
Differentiate $y = \dfrac{\ln x}{x}$.
Find the gradient of $y = \ln(x^2 + 4)$ at $x = 2$.
Teach to learn: In your own words, explain to a classmate why $\dfrac{d}{dx}(x^2 \ln x) = 2x \ln x + x$.
Earlier you were asked what shape $\dfrac{d}{dx}(\ln x)$ might have. The answer is $\dfrac{1}{x}$, a hyperbola that starts steep (fast change near $x = 0$) and flattens out as $x$ grows. For composite logs, the chain rule gives $\dfrac{g'(x)}{g(x)}$, which often simplifies otherwise messy differentiations.
Pick your answer, then rate your confidencethat tells the system what to drill next. Each retry pulls a fresh mix from the bank.
Q1. Differentiate $y = \ln(5x + 2)$. Show working. (2 marks)
Q2. Differentiate $y = (x + 1)\ln x$. Show full product rule working. (3 marks)
Q3. Find the stationary point of $y = \dfrac{\ln x}{x}$ and determine its nature. (4 marks)
Comprehensive answers (click to reveal)
Drill 1: $\frac{1}{x}$ · 2: $\frac{3}{x}$ · 3: $2x\ln x + x$ · 4: $\frac{1-\ln x}{x^2}$ · 5: $\frac{4}{8} = \frac{1}{2}$ (gradient at $x=2$ is $\frac{2(2)}{4+4}=\frac{4}{8}=\frac{1}{2}$)
Q1 (2 marks): Chain rule, $g(x)=5x+2$, $g'(x)=5$. $\frac{dy}{dx}=\frac{5}{5x+2}$ [2]
Q2 (3 marks): Product rule [0.5]. $\frac{dy}{dx} = 1\cdot\ln x + (x+1)\cdot\frac{1}{x}$ [1.5]. $= \ln x + 1 + \frac{1}{x}$ [1]
Q3 (4 marks): Quotient rule: $\frac{dy}{dx} = \frac{\frac{1}{x}\cdot x - \ln x\cdot 1}{x^2} = \frac{1-\ln x}{x^2}$ [1.5]. Set $=0$: $\ln x = 1 \Rightarrow x = e$ [1]. $y = \frac{1}{e}$, point $(e,\frac{1}{e})$ [0.5]. For $x < e$: $\frac{dy}{dx} > 0$; for $x > e$: $\frac{dy}{dx} < 0$. Local maximum. [1]
Five timed questions. Beat the boss to bank a tier, gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.
Climb platforms by answering log differentiation questions. Lighter alternative to the boss.
Mark lesson as complete
Tick when you've finished the practice and review.