PYQ Vault

HSC Maths · Differentiation

Logarithmic Differentiation

Taking the logarithm of both sides before differentiating, used for long products and quotients and for a variable raised to a variable power, such as x to the power x.

Why this matters

31 questions, four of them from board papers: the derivative of x to the power x (2016) and of (log x) to the power x (2024), an MCQ on the derivative of the logarithm of a to the base x (2026), and the logarithm of a quotient simplified by the log laws (2026). The textbook rows are Exercise 1.3 Q.1, Q.2 and some parts of Q.4 and Q.5, the solved examples of section 1.3.1 and one MCQ of Miscellaneous Exercise 1.

Concept 1 of 4: Products and quotients: take logs first

A long product or quotient of powers needs the product and quotient rules many times over. Take logs instead: the product becomes a sum, the powers come down as numbers, and each term differentiates in one short step.

Definition

  • Step 1: write y=y = the expression and take log⁡\log of both sides.
  • Step 2: use the log laws to write the right side as a sum of simple terms.
  • Step 3: differentiate with respect to xx; the left side gives 1ydydx\dfrac{1}{y}\dfrac{dy}{dx}.
  • Step 4: multiply by yy and write yy as the original expression.

Logarithmic differentiation

log⁡y=log⁡f(x)⇒1ydydx=ddx[log⁡f(x)]⇒dydx=y ddx[log⁡f(x)]\log y = \log f(x) \Rightarrow \frac{1}{y}\frac{dy}{dx} = \frac{d}{dx}[\log f(x)] \Rightarrow \frac{dy}{dx} = y\,\frac{d}{dx}[\log f(x)]

Worked example

Differentiate y=x5x2+9(5x−7)6y = \dfrac{x^5\sqrt{x^2 + 9}}{(5x - 7)^6} with respect to xx.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · Ex 1.3 Q.1 (i)Moderate

Example 1 · Differentiation · Logarithmic Differentiation

Differentiate the following w. r. t. x
(x+1)2(x+2)3 (x+3)4\frac{(x+1)^2}{(x+2)^3\,(x+3)^4}

Forgetting to multiply by y

After differentiating, the left side is 1ydydx\dfrac{1}{y}\dfrac{dy}{dx}. The final line must multiply the bracket by yy and write yy as the original expression.

Wrong sign for factors in the denominator

Every factor in the denominator enters log⁡y\log y with a minus sign, and so does its term in the derivative.

Concept 2 of 4: A variable raised to a variable power

In x to the power x neither the power rule (which needs a fixed power) nor the exponential rule (which needs a fixed base) applies, because both the base and the power change. Taking logs brings the power down as a factor, and the product rule finishes the job.

Definition

  • For y=uvy = u^{v}, where uu and vv are functions of xx: log⁡y=vlog⁡u\log y = v\log u.
  • Differentiate: 1ydydx=v⋅1ududx+log⁡u⋅dvdx\dfrac{1}{y}\dfrac{dy}{dx} = v \cdot \dfrac{1}{u}\dfrac{du}{dx} + \log u \cdot \dfrac{dv}{dx}.
  • So dydx=uv[vududx+log⁡u dvdx]\dfrac{dy}{dx} = u^{v}\left[\dfrac{v}{u}\dfrac{du}{dx} + \log u\,\dfrac{dv}{dx}\right].
  • For a sum such as y=A+By = A + B, where AA and BB are such powers, find dAdx\dfrac{dA}{dx} and dBdx\dfrac{dB}{dx} separately and add. Never take the log of a sum.

Derivative of u to the power v

ddx(uv)=uv[vududx+log⁡u dvdx]\frac{d}{dx}\left(u^{v}\right) = u^{v}\left[\frac{v}{u}\frac{du}{dx} + \log u\,\frac{dv}{dx}\right]

Worked example

Find dydx\dfrac{dy}{dx} if y=xsin⁡xy = x^{\sin x}.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2024 · Q. 9Moderate

Example 2 · Differentiation · Logarithmic Differentiation

Find dydx\frac{dy}{dx}, if y=(logx)xy = (logx)^{x}.

Using the power rule or the exponential rule

x⋅xx−1x \cdot x^{x - 1} treats the power as a constant, and xxlog⁡xx^x\log x treats the base as a constant. Both are wrong for xxx^x; its derivative is xx(1+log⁡x)x^x(1 + \log x).

Taking the log of a sum

log⁡(A+B)\log(A + B) is not log⁡A+log⁡B\log A + \log B. For a sum of two such powers, differentiate each term on its own by logs, then add.

Concept 3 of 4: Logarithms to another base and the log laws

Two board questions of 2026 were about logarithms themselves: a logarithm whose base is x, and a logarithm of a fraction that simplifies. Change the base to e, or use the laws, before you differentiate; the derivative then takes one or two lines.

Definition

  • Change of base: log⁡ba=log⁡alog⁡b\log_b a = \dfrac{\log a}{\log b}. So log⁡xa=log⁡alog⁡x\log_x a = \dfrac{\log a}{\log x}, where log⁡a\log a is a constant.
  • ddx(1log⁡x)=−1x(log⁡x)2\dfrac{d}{dx}\left(\dfrac{1}{\log x}\right) = -\dfrac{1}{x(\log x)^2}.
  • Rationalise a fraction inside a log when it has a root: (x2+a2−x)(x2+a2+x)=a2\left(\sqrt{x^2 + a^2} - x\right)\left(\sqrt{x^2 + a^2} + x\right) = a^2.
  • ddxlog⁡(x+x2+a2)=1x2+a2\dfrac{d}{dx}\log\left(x + \sqrt{x^2 + a^2}\right) = \dfrac{1}{\sqrt{x^2 + a^2}}.

Change of base

log⁡xa=log⁡alog⁡x⇒ddxlog⁡xa=−log⁡ax(log⁡x)2\log_x a = \frac{\log a}{\log x} \Rightarrow \frac{d}{dx}\log_x a = -\frac{\log a}{x(\log x)^2}

Worked example

Differentiate y=log⁡x5+log⁡5xy = \log_x 5 + \log_5 x with respect to xx.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · Q. 21Hard

Example 3 · Differentiation · Logarithmic Differentiation

If y=log⁡[x+x2+a2x2+a2−x]y = \log\left[\frac{x + \sqrt{x^{2} + a^{2}}}{\sqrt{x^{2} + a^{2}} - x}\right], find dydx\frac{dy}{dx}.

Treating log a as a variable

In log⁡xa\log_x a only the base changes. log⁡a\log a is a constant and stays in the numerator as a factor.

Writing a quotient of logs as a log of a quotient

log⁡alog⁡x\dfrac{\log a}{\log x} is not log⁡a−log⁡x\log a - \log x. The log law turns a log of a quotient into a difference, never the other way round for a quotient of logs.

Concept 4 of 4: Relations with powers of x and y: take logs

In relations like x⁷y⁵ = (x + y)¹² or x to the power y equal to y to the power x, y sits inside powers. Take logs of both sides to bring the powers down, then differentiate term by term, remembering that y is a function of x.

Definition

  • Take log⁡\log of both sides, then use the log laws.
  • Differentiate term by term; a term in yy gives a factor dydx\dfrac{dy}{dx}, for example ddxlog⁡y=1ydydx\dfrac{d}{dx}\log y = \dfrac{1}{y}\dfrac{dy}{dx}.
  • Collect the dydx\dfrac{dy}{dx} terms on one side and simplify. For xmyn=(x+y)m+nx^m y^n = (x + y)^{m + n} a common factor cancels and leaves dydx=yx\dfrac{dy}{dx} = \dfrac{y}{x}.
  • When the relation can be solved for yy after taking logs, do so: xy=ex−yx^y = e^{x - y} gives ylog⁡x=x−yy\log x = x - y, so y=x1+log⁡xy = \dfrac{x}{1 + \log x}.

Logs of a product of powers

log⁡(xmyn)=mlog⁡x+nlog⁡y\log\left(x^m y^n\right) = m\log x + n\log y

Worked example

If xy=e2(x−y)x^y = e^{2(x - y)}, find dydx\dfrac{dy}{dx}.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · Ex 1.3 Q.4 (i)Moderate

Example 4 · Differentiation · Logarithmic Differentiation

Show that dydx=yx\frac{dy}{dx} = \frac{y}{x} in the following, where aa and pp are constants.
x7y5=(x+y)12x^7 y^5 = (x+y)^{12}

Leaving dy/dx off a y term

log⁡y\log y differentiates to 1ydydx\dfrac{1}{y}\dfrac{dy}{dx}, not 1y\dfrac{1}{y}. Every term that contains yy carries the factor dydx\dfrac{dy}{dx}.

Cancelling a factor without saying so

In xmyn=(x+y)m+nx^m y^n = (x + y)^{m + n} the last step divides by a factor such as nx−mynx - my. Write that it is non-zero when you cancel it.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

  • Products and quotients: take logs first

    Logarithmic differentiation

    log⁡y=log⁡f(x)⇒1ydydx=ddx[log⁡f(x)]⇒dydx=y ddx[log⁡f(x)]\log y = \log f(x) \Rightarrow \frac{1}{y}\frac{dy}{dx} = \frac{d}{dx}[\log f(x)] \Rightarrow \frac{dy}{dx} = y\,\frac{d}{dx}[\log f(x)]
  • A variable raised to a variable power

    Derivative of u to the power v

    ddx(uv)=uv[vududx+log⁡u dvdx]\frac{d}{dx}\left(u^{v}\right) = u^{v}\left[\frac{v}{u}\frac{du}{dx} + \log u\,\frac{dv}{dx}\right]
  • Logarithms to another base and the log laws

    Change of base

    log⁡xa=log⁡alog⁡x⇒ddxlog⁡xa=−log⁡ax(log⁡x)2\log_x a = \frac{\log a}{\log x} \Rightarrow \frac{d}{dx}\log_x a = -\frac{\log a}{x(\log x)^2}
  • Relations with powers of x and y: take logs

    Logs of a product of powers

    log⁡(xmyn)=mlog⁡x+nlog⁡y\log\left(x^m y^n\right) = m\log x + n\log y

Watch out for (8)

Test yourself on Differentiation

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.