04
CLASS 12 · MATHEMATICS · CHAPTER 5

Logarithmic
Differentiation

A powerful technique for differentiating complex products, quotients, and functions of the form u^v.

1

What is Logarithmic Differentiation?

Logarithmic differentiation is a technique where we take the natural log of both sides of y = f(x) before differentiating. It converts hard multiplications and powers into easy additions.

🔢

Power in variable

y = x^x or y = (sin x)^x

✖️

Long products

y = x² · sin x · eˣ · ln x

Complex fractions

y = (x²·sin x) / (eˣ·cos x)

⬆️

Function raised to function

y = (f(x))^(g(x))

2

The Method — Step by Step

1

Take ln of both sides

Write: ln y = ln [f(x)]

2

Simplify using log properties

Use: ln(ab) = ln a + ln b, ln(a/b) = ln a − ln b, ln(aⁿ) = n ln a

3

Differentiate both sides w.r.t. x

LHS becomes: (1/y) · dy/dx   (using chain rule)

4

Solve for dy/dx

Multiply both sides by y to get dy/dx = y · [...]

5

Substitute back y = f(x)

Replace y with the original expression to get the final answer.

Key — Differentiating ln y
d/dx [ln y] = (1/y) · dy/dx

⟹ dy/dx = y · d/dx [ln y]
3

Solved Examples

✏️ Example 1 — y = xˣ (Variable base AND power)
Find dy/dx for y = xˣ
1

Take ln: ln y = ln(xˣ) = x · ln x

2

Differentiate: (1/y)·dy/dx = d/dx[x·ln x]

3

= 1·ln x + x·(1/x) = ln x + 1

4

dy/dx = y·(ln x + 1) = xˣ (ln x + 1)

✏️ Example 2 — Product of Many Functions
Find dy/dx for y = x² · sin x · eˣ
1

Take ln: ln y = ln(x²) + ln(sin x) + ln(eˣ)

2

= 2 ln x + ln(sin x) + x

3

Differentiate: (1/y)·dy/dx = 2/x + cos x/sin x + 1

4

= 2/x + cot x + 1

5

dy/dx = y · (2/x + cot x + 1) = x²·sin x·eˣ · (2/x + cot x + 1)

✏️ Example 3 — Complex Fraction
Find dy/dx for y = √(x · sin x) / eˣ
1

Take ln: ln y = ½ln x + ½ln(sin x) − x

2

Differentiate: (1/y)·dy/dx = 1/(2x) + cos x/(2 sin x) − 1

3

= 1/(2x) + cot x/2 − 1

4

dy/dx = y · (1/(2x) + cot x/2 − 1)

✏️ Example 4 — (sin x)^(cos x)
Find dy/dx for y = (sin x)^(cos x)
1

Take ln: ln y = cos x · ln(sin x)

2

Differentiate using Product Rule on RHS:

3

(1/y)·dy/dx = −sin x·ln(sin x) + cos x·(cos x/sin x)

4

= −sin x·ln(sin x) + cos²x/sin x

5

dy/dx = (sin x)^(cos x) · [cos²x/sin x − sin x·ln(sin x)]

4

Key Takeaway

⭐ Remember

Logarithmic differentiation is the only practical method for functions like y = f(x)^g(x) where both base and power contain x.

The trick: d/dx[ln y] = (1/y)·dy/dx — always leads you to dy/dx.

💡 In exams, after applying log differentiation — always substitute y back in terms of x for the final answer. Don't leave dy/dx in terms of y.