PYQ Vault

CBSE Class 12 Maths · Continuity and Differentiability

Logarithmic Differentiation

Taking logarithms before differentiating, for a function with the variable in both the base and the index, for sums of such functions, for implicit relations between such powers, and for long products and quotients.

Why this matters

46 questions, eighteen of them from board papers from 2023 to 2026. The board asks derivatives of variable powers such as x^(2x) and x^(1/x) (2023) and (tan x)^x (2024); sums such as (sin x)^x · x^(sin x) + a^x and (cos x)^x + cos⁻¹√x (2024), x^(tan x) + √(x² + 1)/2 (2025) and x^(cot x) plus a quotient (2026); implicit relations such as (cos x)^y = (cos y)^x and x^y + y^x = a^b (2024), x^y = y^x and y^x + x^y + x^x = a^b (2025) and (sin x)^y = y^(cos x) (2026); and the proof that x^30 y^20 = (x + y)^50 gives dy/dx = y/x (2024). The textbook adds Examples 27 to 30, Exercise 5.5, Miscellaneous Example 41 and five Miscellaneous Exercise questions.

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

In xxx^x the variable is in the base and in the index, so neither the power rule nor the rule for axa^x applies. Taking logs brings the index down as a multiplier, and then the product rule finishes the job.

Definition

  • For y=[u(x)]v(x)y = [u(x)]^{v(x)}, take logs: log⁡y=v(x)log⁡[u(x)]\log y = v(x)\log[u(x)].
  • Differentiate: 1ydydx=v(x)u′(x)u(x)+v′(x)log⁡[u(x)]\dfrac{1}{y}\dfrac{dy}{dx} = v(x)\dfrac{u'(x)}{u(x)} + v'(x)\log[u(x)].
  • Multiply by y and write y in full: dydx=[u(x)]v(x)[v(x)u′(x)u(x)+v′(x)log⁡u(x)]\dfrac{dy}{dx} = [u(x)]^{v(x)}\left[\dfrac{v(x)u'(x)}{u(x)} + v'(x)\log u(x)\right].
  • The book's condition: f(x)f(x) and u(x)u(x) must be positive, since their logarithms are taken.
  • NCERT Example 29 does this for xsin⁡xx^{\sin x}.

Logarithmic differentiation of u to the power v

dydx=y[v(x)u′(x)u(x)+v′(x)log⁡u(x)]\frac{dy}{dx} = y\left[v(x)\frac{u'(x)}{u(x)} + v'(x)\log u(x)\right]

Worked example

Differentiate y=xcos⁡xy = x^{\cos x}, x>0x > 0.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/1/1 · 27 (b)Moderate

Example 1 · Continuity and Differentiability · Logarithmic Differentiation

If y=(tan⁡x)xy = (\tan x)^x, then find dydx\frac{dy}{dx}.

Not multiplying back by y

After differentiating log⁡y\log y, the left side is 1ydydx\dfrac{1}{y}\dfrac{dy}{dx}. Multiply the whole bracket by y and write y in full; stopping at the bracket loses the last mark.

The power rule on a variable index

ddxx2x\dfrac{d}{dx}x^{2x} is not 2x⋅x2x−12x \cdot x^{2x - 1}. Taking logs gives 2x2x(1+log⁡x)2x^{2x}(1 + \log x).

Concept 2 of 4: Sums of variable powers: one term at a time

You cannot take the log of a sum term by term. So split y into its terms, call each variable power u or v, differentiate each separately, and add.

Definition

  • Write y=u+vy = u + v (or u−vu - v). Then dydx=dudx±dvdx\dfrac{dy}{dx} = \dfrac{du}{dx} \pm \dfrac{dv}{dx}.
  • Use logarithmic differentiation only on a term with a variable base and a variable index; differentiate the other terms in the usual way.
  • A constant term such as aaa^a or aba^b has derivative 0.
  • Write the final answer as the sum of the two pieces, each in full.

Split the sum

y=u+v⇒dydx=dudx+dvdxy = u + v \Rightarrow \frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx}

Worked example

Differentiate y=x3x+3x2y = x^{3x} + 3^{x^2}, x>0x > 0.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/4/3 · Q26Hard

Example 2 · Continuity and Differentiability · Logarithmic Differentiation

Find dydx\dfrac{dy}{dx}, if y=(cos⁡x)x+cos⁡−1xy = (\cos x)^{x} + \cos^{-1}\sqrt{x} is given.

Taking the log of a sum

log⁡(xx+x2)\log(x^x + x^2) does not split into log⁡xx+log⁡x2\log x^x + \log x^2. Take logs only inside each separate term.

A constant that looks like a variable

aba^b with constants a and b is a number, so its derivative is 0, not ablog⁡aa^b\log a.

Concept 3 of 4: Implicit relations between variable powers

In xy=yxx^y = y^x the variables are in the indices on both sides. Take logs of both sides to bring them down, then differentiate implicitly, with the product rule on each side.

Definition

  • Take logs: xy=yxx^y = y^x becomes ylog⁡x=xlog⁡yy\log x = x\log y.
  • Differentiate each side by the product rule, with a factor dydx\dfrac{dy}{dx} on every term that comes from y.
  • Collect the dydx\dfrac{dy}{dx} terms and divide.
  • A sum of variable powers equal to a constant, as in xy+yx=abx^y + y^x = a^b: put each power equal to u, v and use dudx+dvdx=0\dfrac{du}{dx} + \dfrac{dv}{dx} = 0 (NCERT Example 30).
  • Sometimes taking logs lets you solve for y: 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}.

Log of a variable power

log⁡(xy)=ylog⁡x\log\left(x^{y}\right) = y\log x

Worked example

Find dydx\dfrac{dy}{dx} if xy⋅yx=1x^y \cdot y^x = 1.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/6/1 · 22 (b)Moderate

Example 3 · Continuity and Differentiability · Logarithmic Differentiation

If (x)y=(y)x(x)^y = (y)^x, then find dydx\dfrac{dy}{dx}.

The product rule on both sides

ddx(xlog⁡y)=log⁡y+xydydx\dfrac{d}{dx}(x\log y) = \log y + \dfrac{x}{y}\dfrac{dy}{dx}. Missing either term changes the answer.

Concept 4 of 4: Long products and quotients by logarithms

A product of many brackets, or a root of a quotient, is slow by the product and quotient rules. Its logarithm is a plain sum, which differentiates term by term.

Definition

  • Take logs: a product becomes a sum, a quotient a difference, and a square root a factor 12\dfrac{1}{2} (NCERT Example 27).
  • Differentiate each log, then multiply the bracket by y and write y in full.
  • The same idea works on an implicit relation that is a product of powers: take logs first, then differentiate implicitly.

Log of a product

log⁡(uvw)=log⁡u+log⁡v+log⁡w\log(uvw) = \log u + \log v + \log w

Worked example

Differentiate y=x−1x+2y = \sqrt{\dfrac{x - 1}{x + 2}}, x>1x > 1.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/2/2 · 30 (a)Hard

Example 4 · Continuity and Differentiability · Logarithmic Differentiation

If x30y20=(x+y)50x^{30} y^{20} = (x + y)^{50}, prove that dydx=yx\dfrac{dy}{dx} = \dfrac{y}{x}.

A root becomes a half

log⁡u=12log⁡u\log\sqrt{u} = \dfrac{1}{2}\log u. Forgetting the 12\dfrac{1}{2} doubles the answer.

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)

Watch out for (6)

Test yourself on Continuity and Differentiability

20 past CBSE Class 12 questions from this chapter, timed at 30 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.