🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Logarithmic Differentiation

CBSE Class 12 MathsContinuity & DifferentiabilityđŸŸĸ Free Lesson

When a function multiplies, divides and raises itself to a power all at once, the algebra of logarithms flattens the expression into a sum before any derivative is taken. The technique is mechanical, but it rests on two preconditions that questions quietly test: the expression handed to the logarithm must stay positive, and the differentiation step divides by , which is legitimate only where is not zero.

Why Taking the Logarithm Is Legitimate

Two justifications sit underneath the method. First, is strictly increasing, so it preserves equality: whatever relation holds between the two sides of still holds after both sides are logged, and differentiating the transformed equation carries information back to the original one. Second, the chain rule gives the derivative of with respect to as , and that single identity is what converts products into sums. Apply it to : the logarithm turns the right side into , three terms whose derivatives come straight off the standard table. Differentiating the original form would require the quotient rule around a product, which is both longer and more exposed to sign errors. The logarithm does not change the function, only the shape of the equation being differentiated, so the final answer must be multiplied back by to return to the original variable.

General Method

Given :

  1. Take of both sides:
  2. Simplify using log properties
  3. Differentiate implicitly
  4. Solve for
  5. Substitute back

Logarithms Against the Standard Rules

The choice of method should take a second in the exam, and it is decided by two questions: how many factors are multiplied, and does any exponent mention the variable.

Situation in the questionFastest routeWhyCue you look for
single power power ruleone line, no logarithm neededexponent is a constant
single exponential exponential rulethe derivative is by definitionbase is a constant
product of three or more factorslogarithmic differentiationproduct becomes a sum of logarithmsseveral factors multiplied
quotient of two modest factorsquotient ruleshorter than expanding two logarithmsone numerator, one denominator
power with variable exponentlogarithmic differentiationno standard rule covers itexponent mentions
mixed expression with roots and powerslogarithmic differentiationevery root becomes a factor of one half inside a product

The dividing line is whether the exponent is a constant. A constant exponent makes the power rule sufficient and logs are wasted motion; a variable exponent forces either logarithmic differentiation or the equivalent rewrite through the exponential function, and nothing else works. Count the factors, check the exponent, and the route is decided.

Example: Differentiate

The Same Answer Through the Exponential Rewrite

A second legitimate route exists, and comparing it with the logarithmic one explains why both are taught. Rewrite the function as , which is valid because , and apply the chain rule: the derivative of the exponent is by the product rule, so the whole derivative is , which collapses back to . The result is identical and the work is three lines, but it depends on remembering the exponential identity and it hides the origin of the extra term. The logarithmic route shows that term explicitly: differentiating gives , so the term arrives as part of the exponent's own derivative. CBSE accepts either presentation, and the logarithmic one stays safer when the expression is a quotient of several factors, because the exponential rewrite still has to expand that quotient's logarithm first.

Example: Differentiate

Example: Differentiate Product

Differentiate .

Checking the Derivative in Python

A computer algebra system differentiates the same expressions outright, which makes it a fast marker for a hand derivation, and a finite difference then checks the symbolic answer against pure arithmetic.

python
from sympy import symbols, diff, sin

x = symbols('x', positive=True)

print(diff(x**x, x))
print(diff(x**sin(x), x))
print(diff(x**2 * sin(x) / (1 + x)**3, x))

The first line prints x**x*(log(x) + 1) and the second x**sin(x)*(sin(x)/x + cos(x)*log(x)), matching the worked results term for term; the third returns the quotient answer with written as .

The second script needs no symbolic algebra at all: it samples the slope of numerically and prints it beside the closed form.

python
import math

def f(t):
    return t ** t

def exact(t):
    return f(t) * (math.log(t) + 1)

h = 1e-6
for t in (0.5, 1.0, 2.0, 3.5):
    numeric = (f(t + h) - f(t - h)) / (2 * h)
    print(f"x = {t:<4} numerical {numeric:+.8f}   exact {exact(t):+.8f}")

Both columns agree to seven decimal places at each sample. The exercise also exposes a useful fact: the derivative stays positive at even though is negative there, because the bracket only turns negative below , which is exactly where stops falling and starts rising.

Important Results

Domain, Signs and Where the Logarithm Fails

Three failures are worth rehearsing before an exam. The logarithm of a negative number is outside this calculus, so an expression such as must be simplified arithmetically first; the method only ever runs where the base is positive. Dividing by assumes , so where a curve touches the axis the derivation does not cover that point even when the final formula happens to extend there by continuity. And the simplified answer can hide a restriction: for the base requires to be positive, so the formula is claimed on intervals such as and nowhere else. Writing one line of domain beside the answer costs nothing and protects the final mark. The same care governs the logarithm laws themselves — was applied only after confirming that both factors were positive on the interval in question.

Example: Differentiate

How CBSE Frames These Questions

The classic item prints a target expression and asks you to prove that the derivative equals it, and the marking scheme looks for four lines in order: the logarithm of both sides, the expansion into sums, the differentiated equation, and the final multiplication by . A second standard form asks for the value of the derivative at a point, so a numerical substitution follows the algebra and a general answer left unsubstituted loses that mark. Questions also disguise the technique — a rule such as is logarithmic differentiation wearing an exponent costume, and a product with a square root inside a cube is a product of half-powers waiting to be logged. The recurring slips are stopping before multiplying back by , differentiating as and dropping the cosine factor, and reaching for the power rule when the exponent mentions . A quick self-check is to substitute the original expression back into the derivative so that no survives in the final line.

Common Mistakes

Stopping once the logarithmic form has been differentiated

Fix: The differentiation gives dy over y, so the last line must multiply the whole right-hand side by y; for y = x to the x that restores x to the x times natural log x plus one.

Applying the logarithm laws across factors that can be negative

Fix: Check the domain first and state the interval with the answer; for (sin x) to the x the formula is claimed only where sin x is positive, such as between zero and pi.

Using the power rule on a function whose exponent contains the variable

Fix: A constant exponent allows the power rule, while an exponent mentioning x requires logarithmic differentiation or the rewrite as e to the g of x times ln f of x.

Key Takeaways

  • Logarithmic differentiation turns products into sums, quotients into differences and powers into products, then divides by y, so the final answer must be multiplied back by y
  • The method needs a positive base and a non-zero y, which is why the domain interval belongs beside every finished answer
  • Functions of the form f of x raised to g of x need logarithms or the equivalent rewrite through the exponential, while constant exponents do not
  • The result can be verified with a computer algebra system or a finite difference, and the derivative of x to the x changes sign exactly at x = 1 over e
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-10-15

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Need Expert CBSE Class 12 Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement