Skip to main content

Derivatives of logarithmic functions: WACE Year 12 Mathematics Methods Unit 4

Syllabus dot point

“Establish and use the derivative of the natural logarithm function, including the chain rule for the logarithm of a function of x”

8 min read

Quick answer

The natural logarithm has derivative ddxln⁡x=1x\dfrac{d}{dx}\ln x=\dfrac{1}{x} for x>0x>0, and with the chain rule ddxln⁡(f(x))=f′(x)f(x)\dfrac{d}{dx}\ln(f(x))=\dfrac{f'(x)}{f(x)}. Using log laws to expand before differentiating often makes the work much shorter.

Jump to a section
  1. What this dot point is asking
  2. The derivative of ln⁡x\ln x
  3. The chain rule with logarithms
  4. Simplify first with log laws
  5. Logarithms inside products and quotients
  6. Tangents and rates with logarithms
  7. A logarithm inside a chain rule
  8. Base-aa logarithms
  9. Exam-style questions

Syllabus placement. In the SCSA Mathematics Methods ATAR Year 12 syllabus, the logarithmic function (including its derivative) is Unit 4 (Topic 4.1), not Unit 3. Derivatives of exponential functions are Unit 3. This page sits in our Unit 3 folder for historical reasons.

What this dot point is asking

SCSA Unit 3 treats the natural logarithm ln⁡x\ln x as the inverse of exe^{x}, and this dot point asks you to differentiate it and any composite logarithm. The result is examined in both examination sections and underpins later integration of 1x\dfrac{1}{x}.

The derivative of ln⁡x\ln x

Because ln⁡x\ln x is the inverse of exe^{x}, write y=ln⁡xy=\ln x so that x=eyx=e^{y}. Differentiating x=eyx=e^{y} with respect to xx gives

1=eydydx  ⇒  dydx=1ey=1x.1=e^{y}\frac{dy}{dx}\;\Rightarrow\;\frac{dy}{dx}=\frac{1}{e^{y}}=\frac{1}{x}.

So the gradient of ln⁡x\ln x at any point is the reciprocal of the xx-coordinate.

Derivatives of logarithmic functions

ddxln⁡x=1x(x>0),ddxln⁡(f(x))=f′(x)f(x)\frac{d}{dx}\ln x=\frac{1}{x}\quad (x>0), \qquad \frac{d}{dx}\ln(f(x))=\frac{f'(x)}{f(x)}

ddxlog⁡ax=1xln⁡a\frac{d}{dx}\log_{a}x=\frac{1}{x\ln a}

The chain rule with logarithms

For a logarithm of a function, the chain rule divides the derivative of the inside by the inside itself. If y=ln⁡(f(x))y=\ln(f(x)) with outer ln⁡u\ln u and inner u=f(x)u=f(x), then dydx=1u⋅u′=f′(x)f(x)\dfrac{dy}{dx}=\dfrac{1}{u}\cdot u'=\dfrac{f'(x)}{f(x)}.

Differentiating a logarithm of a polynomial

Differentiate y=ln⁡(x2+4x)y = \ln(x^{2}+4x)

Identify the inside function f(x)=x2+4xf(x)=x^{2}+4x.

Differentiate the inside.

f′(x)=2x+4.f'(x) = 2x+4.

Apply ddxln⁡(f(x))=f′(x)f(x)\dfrac{d}{dx}\ln(f(x))=\dfrac{f'(x)}{f(x)}.

dydx=2x+4x2+4x.\frac{dy}{dx} = \frac{2x+4}{x^{2}+4x}.

Markers reward the correct inside derivative on top and the unchanged inside expression on the bottom.

Simplify first with log laws

Logarithm laws let you turn products, quotients and powers into sums, differences and multiples before differentiating, which avoids the quotient rule entirely.

Expanding before differentiating

We differentiate y=ln⁡ ⁣(x3x+1)y=\ln\!\left(\dfrac{x^{3}}{\sqrt{x+1}}\right) by first expanding with logarithm laws, which avoids applying both the chain rule and the quotient rule to a composite expression.

Step 1: Expand using logarithm laws

Apply ln⁡ab=ln⁡a−ln⁡b\ln\dfrac{a}{b}=\ln a-\ln b and ln⁡(ak)=kln⁡a\ln(a^{k})=k\ln a to rewrite the function as a sum of simpler logarithms.

y=ln⁡(x3)−ln⁡ ⁣(x+1)=3ln⁡x−12ln⁡(x+1).y = \ln(x^{3}) - \ln\!\left(\sqrt{x+1}\right) = 3\ln x - \tfrac{1}{2}\ln(x+1).

Expanding transforms a single complicated logarithm into two terms that are each straightforward to differentiate, saving significant work.

Step 2: Differentiate term by term

Apply ddxln⁡x=1x\dfrac{d}{dx}\ln x=\dfrac{1}{x} and the chain rule to each term separately.

dydx=3x−12⋅1x+1=3x−12(x+1).\frac{dy}{dx} = \frac{3}{x} - \frac{1}{2}\cdot\frac{1}{x+1} = \frac{3}{x}-\frac{1}{2(x+1)}.

Final answer: dydx=3x−12(x+1)\dfrac{dy}{dx}=\dfrac{3}{x}-\dfrac{1}{2(x+1)}. This is far quicker than applying the chain and quotient rules to the original expression.

Logarithms inside products and quotients

A logarithm often appears as a factor in a product, where the product rule combines with ddxln⁡x=1x\dfrac{d}{dx}\ln x=\dfrac{1}{x}. The result ddx(xln⁡x)=ln⁡x+1\dfrac{d}{dx}(x\ln x)=\ln x+1 is worth recognising: it shows that the antiderivative of ln⁡x\ln x is xln⁡x−xx\ln x-x, a result used later in integration. When a logarithm sits in the numerator or denominator of a quotient, expanding with log laws first usually avoids the quotient rule entirely, as in the worked expansion above.

Tangents and rates with logarithms

Because ddxln⁡x=1x\dfrac{d}{dx}\ln x=\dfrac{1}{x} is large near x=0+x=0^{+} and small for large xx, the logarithm curve is steep at first then flattens. This is why ln⁡x\ln x models diminishing-returns growth. To find a tangent, evaluate 1x\dfrac{1}{x} at the point for the gradient, then use y−y1=m(x−x1)y-y_{1}=m(x-x_{1}). For example, the tangent to y=ln⁡xy=\ln x at x=1x=1 has gradient 11=1\dfrac{1}{1}=1 and passes through (1,0)(1,0), giving y=x−1y=x-1.

A logarithm inside a chain rule

When a logarithm is composed with another function, layer the rules. For y=(ln⁡x)3y=\bigl(\ln x\bigr)^{3}, treat it as an outer power with inner ln⁡x\ln x:

dydx=3(ln⁡x)2⋅1x=3(ln⁡x)2x.\frac{dy}{dx}=3\bigl(\ln x\bigr)^{2}\cdot\frac{1}{x}=\frac{3(\ln x)^{2}}{x}.

The factor 1x\dfrac{1}{x} comes from differentiating the inner ln⁡x\ln x. Contrast this with ln⁡(x3)\ln(x^{3}), which log laws simplify to 3ln⁡x3\ln x with derivative 3x\dfrac{3}{x}. Reading whether the power is inside or outside the logarithm changes the method entirely.

Base-aa logarithms

For a logarithm to base aa, use the change of base log⁡ax=ln⁡xln⁡a\log_{a}x=\dfrac{\ln x}{\ln a}, so ddxlog⁡ax=1xln⁡a\dfrac{d}{dx}\log_{a}x=\dfrac{1}{x\ln a}. The constant ln⁡a\ln a is just a multiplier. SCSA Methods calculus almost always uses the natural logarithm.

Common errors
Writing the reciprocal of f(x)f(x) alone
ddxln⁡(f(x))\dfrac{d}{dx}\ln(f(x)) is f′(x)f(x)\dfrac{f'(x)}{f(x)}, not 1f(x)\dfrac{1}{f(x)}. You must multiply by f′(x)f'(x).
Splitting ln⁡(a+b)\ln(a+b)
There is no law turning ln⁡(a+b)\ln(a+b) into ln⁡a+ln⁡b\ln a+\ln b; only products, quotients and powers expand.
Confusing ln⁡\ln with log⁡10\log_{10}
ddxln⁡x=1x\dfrac{d}{dx}\ln x=\dfrac{1}{x}, but ddxlog⁡10x=1xln⁡10\dfrac{d}{dx}\log_{10}x=\dfrac{1}{x\ln 10}.

Exam-style questions

Questions in the style of SCSA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

WACE 2021-style5 marks
Calculator-free. Differentiate with respect to xx: (a) y=ln⁡(3x2+1)y=\ln(3x^{2}+1); (b) y=xln⁡xy=x\ln x; (c) y=ln⁡ ⁣(2xx+1)y=\ln\!\left(\dfrac{2x}{x+1}\right).
Show worked answer →

Calculator-free logarithmic differentiation across three structures.

(a) Chain rule f′(x)f(x)\dfrac{f'(x)}{f(x)} with f(x)=3x2+1f(x)=3x^{2}+1: dydx=6x3x2+1\dfrac{dy}{dx}=\dfrac{6x}{3x^{2}+1}.

(b) Product rule with u=xu=x, v=ln⁡xv=\ln x: u′=1u'=1, v′=1xv'=\dfrac{1}{x}, so dydx=ln⁡x+x⋅1x=ln⁡x+1\dfrac{dy}{dx}=\ln x + x\cdot\dfrac{1}{x}=\ln x + 1.

(c) Expand first: y=ln⁡(2x)−ln⁡(x+1)=ln⁡2+ln⁡x−ln⁡(x+1)y=\ln(2x)-\ln(x+1)=\ln 2+\ln x-\ln(x+1). Then dydx=1x−1x+1\dfrac{dy}{dx}=\dfrac{1}{x}-\dfrac{1}{x+1}.

Markers reward the chain rule in (a), the product rule simplifying to ln⁡x+1\ln x+1 in (b), and expanding with log laws in (c) rather than using the quotient rule.

WACE 2023-style4 marks
Calculator-assumed. The curve y=ln⁡xy=\ln x has a tangent at the point where x=2x=2. Find the equation of this tangent, giving the gradient and intercepts to two decimal places where appropriate.
Show worked answer →

A tangent-line application of the logarithm derivative.

Gradient. dydx=1x\dfrac{dy}{dx}=\dfrac{1}{x}, so at x=2x=2 the gradient is 12=0.5\dfrac{1}{2}=0.5.

Point. At x=2x=2, y=ln⁡2≈0.69y=\ln 2\approx 0.69.

Tangent. y−ln⁡2=12(x−2)y-\ln 2=\dfrac{1}{2}(x-2), that is y=0.5x−1+ln⁡2≈0.5x−0.31y=0.5x-1+\ln 2\approx 0.5x-0.31.

Markers reward the derivative 1x\dfrac{1}{x} evaluated at x=2x=2, the point (2,ln⁡2)(2,\ln 2), and a correctly assembled tangent equation.

Practise this

Sources & how we know this

ExamExplained