Logarithmic Differentiation: Derivatives of x^x, u^v and Long Products (Class 12)
Updated 15 October 2026 · Fact-checked
Logarithmic differentiation means taking log on both sides before differentiating. For y = f(x)^g(x), write log y = g(x) log f(x), differentiate to get (1/y) dy/dx, then multiply by y. It is also the quickest way to differentiate long products and quotients. For a sum like x^x + (sin x)^x, differentiate each term separately.
When base and exponent both vary, take log first: the power becomes a product, then differentiate and multiply back by y.
Illustration drawn for QuestionBuddy.
Understand Logarithmic Differentiation
The power rule needs a constant exponent, and the rule needs a constant base. When both the base and the exponent vary, as in , or , neither rule applies. Taking logarithms turns the power into a product, which we can differentiate.
**The method for ** (with ):
1. Take natural log: .
2. Differentiate both sides with respect to ; the left side gives by the chain rule, and the right side needs the product rule: .
3. Multiply by and substitute back:
.
For : , so and .
Long products and quotients. For something like , the quotient rule would be painful. Logs split it into a sum: , and each piece differentiates in one line.
Sums of such functions. does not split a sum: . For , find and separately (each by logarithmic differentiation if needed) and add. Setting up and clearly is worth a mark in the board exam.
Implicit equations with powers. Equations like or become, after taking logs, or , which you then differentiate implicitly.
Before you start, remember the derivatives you will use: , , , and the chain rule. The logarithm here is the natural log (base ). This topic is NCERT Section 5.5 (with exponential and log derivatives in 5.4); it appears in most board papers, often combined with implicit or second-order derivatives.
Logarithmic Differentiation: formulas to remember
- Variable base and exponent
- Take log, differentiate, multiply by y.
- x to the power x
- A standard result worth remembering.
- Log of a product or quotient
- Turns long products into sums.
- Log of a power
- Also for roots: .
- Basic derivatives
- Natural log throughout.
- Sum of two such functions
- Never take log of the whole sum.
How to solve Logarithmic Differentiation questions
Use this for any function with a variable exponent, any long product or quotient, and implicit equations with powers.
- 1If y is a sum of terms, write and handle each term separately.
- 2For each term of the form or each long product, take natural log of both sides and simplify with the log laws.
- 3Differentiate both sides with respect to : the left side becomes ; use the product and chain rules on the right.
- 4Multiply by the original function to get , writing the function out in full.
- 5Add the parts: .
- 6For implicit equations, take logs, differentiate implicitly, collect the terms and solve.
- 7If a value is asked, substitute at the end; keep exact forms such as .
Logarithmic Differentiation in real life
Each concept, met in an everyday situation. Read the situation, try the problem, then check the solution. The one-line hook is what to remember.
Derivative of a variable power
Suppose a bank's interest of 100% a year is credited in equal instalments, so Rs 1 grows to rupees in a year. Treat as a continuous variable.
Find by logarithmic differentiation and its value at . Does crediting more often help?
Try it first, then show the solutionSolution
- .
- .
- At : and .
- The derivative is positive, so crediting more often increases the amount (towards ).
Answer: ; , so yes.
Memory hook: A power with n in the base and the exponent: take log first.
Relative rate of change of a product and quotient
Imagine a start-up models its weekly sales (in hundreds) as , where is the advertising budget in lakh rupees.
Use logarithmic differentiation to find the relative rate and the rate when .
Try it first, then show the solutionSolution
- .
- .
- At : .
- , so .
Answer: at , and hundred units per lakh rupees.
Memory hook: Logs turn a messy quotient into a sum of simple fractions.
Tricks to remember Logarithmic Differentiation
Short memory aids. Say each one aloud once, then use it on a question the same day.
Variable up and down? Log it
If is in both the base and the exponent, take log first. If only in the base, use the power rule; if only in the exponent, use .
Use it when: Choosing the method at a glance.
Log a sum? Never
does not split. Break the sum into before logging.
Use it when: Questions like .
Multiply back by y
The left side after differentiating is , so the last step is always 'multiply by y and write y in full'.
Use it when: Not losing the final mark.
x^x(1 + log x)
Learn it as 'itself times one plus log': .
Use it when: MCQs and as a building block.
Logarithmic Differentiation: solved examples
Ordered from board level to HOTS. Try each one before you open the solution.
Example 1: Variable base and exponent · 2 marks · Very short answerBoard level
Differentiate , , with respect to .
Try it first, then show the solutionSolution
- . (½ mark)
- . (1 mark)
- . (½ mark)
Answer:
Example 2: A long product and quotient · 3 marks · Short answerBoard level
Find if , .
Try it first, then show the solutionSolution
- . (1 mark)
- . (1½ marks)
- . (½ mark)
Answer: with written in full.
Example 3: A sum of two variable powers · 3 marks · Short answerHarder board level
Differentiate , .
Try it first, then show the solutionSolution
- Let and , so . (½ mark)
- . (1 mark)
- . (1 mark)
- . (½ mark)
Answer:
Example 4: Implicit equation with powers · 3 marks · Short answerHarder board level
If , find and show that it equals at .
Try it first, then show the solutionSolution
- Take logs: . (½ mark)
- Differentiate: . (1 mark)
- , so . (1 mark)
- is on the curve (); there . (½ mark)
Answer: ; at it is .
Example 5: Two tough terms · 5 marks · Long answerHOTS / competency
Differentiate , .
Try it first, then show the solutionSolution
- Let , . (½ mark)
- . Differentiating: . (1½ marks)
- So . (½ mark)
- , so . (1½ marks)
- . (1 mark)
Answer:
Example 6: Case study: a fast-growing culture · 4 marks · Case-basedHOTS / competency
Suppose a lab models the size of a bacterial culture (in thousands) by , where is in hours.
(i) Find using logarithmic differentiation. (2 marks)
(ii) Find the growth rate at and . (1 mark)
(iii) Show that the relative growth rate increases with . (1 mark)
Try it first, then show the solutionSolution
- (i) , so and . (2 marks)
- (ii) thousand per hour; thousand per hour. (1 mark)
- (iii) Both and increase as increases, so their sum increases. (1 mark)
Answer: (i) (ii) about 2.39 and 15.89 thousand per hour (iii) both parts increase.
Where students lose marks in Logarithmic Differentiation
The slips examiners see most often, and what to write instead.
Mistake: Using the power rule on x^x
The exponent is not constant.
Wrong working
.
Right working
.
Do this: Check: is the exponent a function of x? Then take logs.
Usually costs: The whole question.
Mistake: Taking log of a sum
.
Wrong working
.
Right working
Differentiate and separately: .
Do this: Split sums first, then log each power term.
Usually costs: All marks.
Mistake: Forgetting to multiply by y
Differentiating gives , not .
Wrong working
.
Right working
.
Do this: End every log-differentiation with 'multiply by y and substitute'.
Usually costs: The final mark.
Mistake: Missing the product rule on the right side
is a product of two functions.
Wrong working
.
Right working
.
Do this: Write the product rule explicitly for the right side.
Usually costs: 1 to 2 marks.
Exam tips
- Logarithmic differentiation appeared in the 2023, 2024 and 2026 board papers (including a 5-mark question in 2026); show the line with clearly.
- For sums, define and at the start; examiners award a mark for .
- Write the final answer with the original function in full, not just , unless the question allows it.
- Use log laws to simplify before differentiating; it shortens the work and reduces errors.
- State any condition such as or needed for the logarithm to be defined.
Practice questions on Logarithmic Differentiation
Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.
Q1 · 1 mark · MCQBoard level
equals:
(a)
(b)
(c)
(d)Hint
Take log: .
Answer
(c) .
Q2 · 2 marks · Very short answerBoard level
Differentiate , .
Hint
.
Answer
, so .
Q3 · 2 marks · Very short answerBoard level
Differentiate , .
Hint
; use the quotient rule.
Answer
, so .
Q4 · 3 marks · Short answerHarder board level
Differentiate , .
Hint
The square root becomes a factor after taking logs.
Answer
, so with written in full.
Q5 · 1 mark · Assertion-reasonHarder board level
Assertion (A): .
Reason (R): holds when n is a constant.
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.Hint
Is the exponent in a constant?
Answer
(d). The power rule needs a constant exponent, so it cannot be applied to ; the correct derivative is . A is false, R is true.
Q6 · 3 marks · Short answerHarder board level
If , prove that .
Hint
Take logs: .
Answer
. Differentiating: , so , i.e. and .
Q7 · 3 marks · Short answerHOTS / competency
For , : (i) find ; (ii) find where ; (iii) find the value of there, correct to three decimal places.
Hint
gives .
Answer
(i) . (ii) , so when , i.e. . (iii) (this is the least value of ).
Test your recall
Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.
1.What is ?Show answer
.
2.What is the first step for ?Show answer
Take logs: .
3.Why can't you take log of directly?Show answer
Log does not split sums; differentiate the terms separately.
4.What does equal?Show answer
.
5.What is ?Show answer
.
6.Differentiate .Show answer
.
Logarithmic Differentiation: frequently asked questions
When should I use logarithmic differentiation?
When the variable appears in both the base and the exponent (like x^x or (sin x)^x), or when a function is a long product or quotient of powers. Taking logs turns powers into products and products into sums.
How do I differentiate x^x + (sin x)^x?
Split it: u = x^x and v = (sin x)^x. Differentiate each using logs, then add: dy/dx = du/dx + dv/dx. Never take the log of the whole sum.
Is log here the natural logarithm?
Yes. In Class 12 calculus, log x means the natural logarithm (base e), so its derivative is 1/x.
Which NCERT section covers logarithmic differentiation?
Section 5.5 (Logarithmic Differentiation) of Chapter 5, Continuity and Differentiability, in NCERT Mathematics Part I for Class 12.
What is the derivative of a^x?
a^x log a for a constant a > 0. Only when both base and exponent vary do you need logarithmic differentiation.