Free Mathematics Class 12 ICSE notes · practise this chapter with an AI quiz

← All study notes

How Logarithms Tame a Function Like x to the Power x

Use logarithmic differentiation for functions with variable powers and long products, find second-order derivatives of explicit and parametric functions, and choose the right differentiation technique for any function.

Why do some functions need a special differentiation trick?

The power rule handles x5x^5 and the exponential rule handles 5x5^x, but neither handles xxx^x, where both the base and the power vary. Taking logarithms first turns such powers into products. Differentiating twice then shows how a rate itself is changing.

This lesson covers logarithmic differentiation, second-order derivatives, and choosing the right technique.

How do you use logarithmic differentiation when y is f(x) raised to the power g(x)?

For y=[f(x)]g(x)y = [f(x)]^{g(x)}, take natural logarithms to get log⁡y=g(x)log⁡f(x)\log y = g(x)\log f(x), differentiate both sides with respect to x, and multiply by y, giving dydx=y[g′(x)log⁡f(x)+g(x)f′(x)f(x)]\dfrac{dy}{dx} = y\left[g'(x)\log f(x) + \dfrac{g(x)f'(x)}{f(x)}\right].

Worked example.
Differentiate y=xxy = x^x for x>0x > 0.

log⁡y=xlog⁡x⇒1ydydx=log⁡x+1⇒dydx=xx(1+log⁡x)\log y = x\log x \Rightarrow \frac{1}{y}\frac{dy}{dx} = \log x + 1 \Rightarrow \frac{dy}{dx} = x^x(1 + \log x)

At x=2x = 2, dydx=4(1+0.693)≈6.77\dfrac{dy}{dx} = 4(1 + 0.693) \approx 6.77.

Worked example 2. For y=(sin⁡x)cos⁡xy = (\sin x)^{\cos x}:

dydx=(sin⁡x)cos⁡x[−sin⁡xlog⁡sin⁡x+cos⁡2xsin⁡x]\frac{dy}{dx} = (\sin x)^{\cos x}\left[-\sin x\log\sin x + \frac{\cos^2 x}{\sin x}\right]

Long products and quotients. For y=(x+1)2x−1(x+4)3y = \dfrac{(x + 1)^2\sqrt{x - 1}}{(x + 4)^3}, log⁡y=2log⁡(x+1)+12log⁡(x−1)−3log⁡(x+4)\log y = 2\log(x + 1) + \dfrac{1}{2}\log(x - 1) - 3\log(x + 4), so dydx=y[2x+1+12(x−1)−3x+4]\dfrac{dy}{dx} = y\left[\dfrac{2}{x + 1} + \dfrac{1}{2(x - 1)} - \dfrac{3}{x + 4}\right].

An everyday example. Estimating how fast the number of possible codes grows when a lock uses n positions, each with n symbols, means differentiating nnn^n — exactly this method.

The substance. For xxx^x, neither the power rule nor the exponential rule alone is right — they give xxx^x and xxlog⁡xx^x\log x, and the true derivative is their sum.

How do you find the second-order derivative of a function?

The second-order derivative d2ydx2\dfrac{d^2y}{dx^2} is the derivative of dydx\dfrac{dy}{dx}, found by differentiating the first derivative again, and it measures how fast the slope itself is changing.

Worked example (explicit).
For y=x3−6x2+4y = x^3 - 6x^2 + 4:

dydx=3x2−12x,d2ydx2=6x−12\frac{dy}{dx} = 3x^2 - 12x, \qquad \frac{d^2y}{dx^2} = 6x - 12

At x=3x = 3, d2ydx2=6\dfrac{d^2y}{dx^2} = 6.

Worked example (proving a relation). If y=e2x+e−3xy = e^{2x} + e^{-3x}, then y′=2e2x−3e−3xy' = 2e^{2x} - 3e^{-3x} and y′′=4e2x+9e−3xy'' = 4e^{2x} + 9e^{-3x}. Hence y′′+y′−6y=(4+2−6)e2x+(9−3−6)e−3x=0y'' + y' - 6y = (4 + 2 - 6)e^{2x} + (9 - 3 - 6)e^{-3x} = 0.

Worked example (parametric). For x=at2x = at^2, y=2aty = 2at, dydx=1t\dfrac{dy}{dx} = \dfrac{1}{t}, so

d2ydx2=ddt(1t)÷dxdt=−1t2×12at=−12at3\frac{d^2y}{dx^2} = \frac{d}{dt}\left(\frac{1}{t}\right) \div \frac{dx}{dt} = -\frac{1}{t^2} \times \frac{1}{2at} = -\frac{1}{2at^3}

An everyday example. A car's position, velocity and acceleration are a function, its first derivative and its second derivative.

The substance. d2ydx2\dfrac{d^2y}{dx^2} is not (dydx)2\left(\dfrac{dy}{dx}\right)^2 — and for parametric curves it is not d2y/dt2d2x/dt2\dfrac{d^2y/dt^2}{d^2x/dt^2} either.

How do you choose the right differentiation technique for a given function?

Choose by the structure of the function: the chain rule for one function inside another, logarithmic differentiation for variable powers or long products, implicit differentiation when y is tangled with x, and parametric differentiation when x and y are both given in terms of a third variable.

A quick guide:

- Composite, such as 1+sin⁡x\sqrt{1 + \sin x} — chain rule
- Variable power or long product, such as (1+x)tan⁡x(1 + x)^{\tan x} — logarithmic differentiation
- Implicit, such as x2y+y3=10x^2y + y^3 = 10 — implicit differentiation
- Parametric, such as x=t2x = t^2, y=t3y = t^3 — parametric differentiation
- Sums of variable powers, such as xx+(sin⁡x)xx^x + (\sin x)^x — differentiate each term separately

Worked example. Find dydx\dfrac{dy}{dx} for y=xsin⁡x+sin⁡−1xy = x^{\sin x} + \sin^{-1}\sqrt{x}.

- u=xsin⁡xu = x^{\sin x} gives dudx=xsin⁡x(cos⁡xlog⁡x+sin⁡xx)\dfrac{du}{dx} = x^{\sin x}\left(\cos x\log x + \dfrac{\sin x}{x}\right)
- v=sin⁡−1xv = \sin^{-1}\sqrt{x} gives dvdx=11−x×12x\dfrac{dv}{dx} = \dfrac{1}{\sqrt{1 - x}} \times \dfrac{1}{2\sqrt{x}}
- dydx=dudx+dvdx\dfrac{dy}{dx} = \dfrac{du}{dx} + \dfrac{dv}{dx}

Worked example 2. For x=t2x = t^2 and y=t3y = t^3, dydx=3t22t=3t2\dfrac{dy}{dx} = \dfrac{3t^2}{2t} = \dfrac{3t}{2}, which is 3 at t=2t = 2.

An everyday example. A mechanic choosing a spanner, a screwdriver or pliers by looking at the fitting makes the same kind of decision as choosing a method from the form of a function.

The substance. Never take the logarithm of a sum in one step — log⁡(u+v)\log(u + v) does not split, so xx+(sin⁡x)xx^x + (\sin x)^x must be handled term by term.
Exam tip

What earns full marks on logarithmic differentiation and second derivatives?

Write the line 'log⁡y=…\log y = \ldots' explicitly and multiply back by y at the end — an answer left as 1ydydx\dfrac{1}{y}\dfrac{dy}{dx} loses marks.

- y=fgy = f^g: dydx=y[g′log⁡f+gf′f]\dfrac{dy}{dx} = y\left[g'\log f + \dfrac{gf'}{f}\right]
- Second derivative: differentiate dydx\dfrac{dy}{dx} again
- Parametric second derivative: ddt(dydx)÷dxdt\dfrac{d}{dt}\left(\dfrac{dy}{dx}\right) \div \dfrac{dx}{dt}
- Sums of variable powers: differentiate each term separately

The trap. Writing the logarithm of xx+x2x^x + x^2 as xlog⁡x+2log⁡xx\log x + 2\log x. The logarithm of a sum does not split.
Did you know

Where does x to the power x reach its lowest value?

For positive x, the function xxx^x starts close to 1 when x is tiny, dips, and then climbs steeply. Its lowest point comes where the derivative xx(1+log⁡x)x^x(1 + \log x) is zero.

Since xxx^x is never zero, the minimum is where log⁡x=−1\log x = -1, at x=1e≈0.368x = \dfrac{1}{e} \approx 0.368. The minimum value is about 0.692.

So logarithmic differentiation leads straight to the number e — and to the next chapter's search for maxima and minima.
Exam relevance

How are logarithmic differentiation and second derivatives tested in JEE Main?

Continuity and Differentiability is a recurring JEE Main chapter, and second derivatives lead straight into maxima and minima and differential equations.

What gets asked. Derivatives of variable powers such as xxx^x at a point, second derivatives of parametric curves, and relations to be proved, such as y′′+y′−6y=0y'' + y' - 6y = 0.

Question types. Mostly numerical-value and multiple-choice questions.

The trap that costs marks. Dividing d2ydt2\dfrac{d^2y}{dt^2} by d2xdt2\dfrac{d^2x}{dt^2} for a parametric second derivative.
Key takeaways

What must you be able to do from this lesson?

- Logarithmic differentiation: take logs of y=fgy = f^g, differentiate, and multiply by y
- Second-order derivatives: differentiate the first derivative; for parametric curves, divide ddt(dydx)\dfrac{d}{dt}\left(\dfrac{dy}{dx}\right) by dxdt\dfrac{dx}{dt}
- Choosing a method: chain rule, logarithmic, implicit or parametric, according to the form of the function

What is dydx\dfrac{dy}{dx} for y=xlog⁡xy = x^{\log x} at x=ex = e?

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Logarithmic Differentiation and Higher-Order DerivativesCreate a free account
← Back to all articles