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

← All study notes

How to Differentiate x to the Power x Without Getting Stuck

Understand exponential and logarithmic functions and differentiate e^x and log x, use logarithmic differentiation for powers like x^x and long products, find dy/dx for curves in parametric form, and compute second order derivatives to verify relations.

Which functions need special differentiation techniques?

The power rule handles x5x^5 and the exponential rule handles 5x5^x — but what about xxx^x, where the base and the exponent both change? Curves given through a parameter, and questions about how a rate itself changes, need further tools.

This part covers exponential and logarithmic functions, logarithmic differentiation, parametric derivatives, and second order derivatives.

What are exponential and logarithmic functions, and how do you differentiate e^x and log x?

The exponential function exe^x and the natural logarithm log⁡x\log x are inverses of each other, with derivatives ddxex=ex\dfrac{d}{dx}e^x = e^x and ddxlog⁡x=1x\dfrac{d}{dx}\log x = \dfrac{1}{x} for x>0x > 0.

Exponential function
y=bxy = b^x with b>1b > 1:

- Domain R\mathbb{R}; range the positive real numbers
- Always increasing, passing through (0,1)(0, 1)
- The base e≈2.718e \approx 2.718 gives the natural exponential exe^x

Logarithmic function y=log⁡bxy = \log_b x:

- Domain the positive real numbers; range R\mathbb{R}
- log⁡bx=y\log_b x = y exactly when by=xb^y = x
- Laws: log⁡(pq)=log⁡p+log⁡q\log(pq) = \log p + \log q, log⁡pq=log⁡p−log⁡q\log\dfrac{p}{q} = \log p - \log q, log⁡pn=nlog⁡p\log p^n = n\log p

Worked example 1. ddxe3x=3e3x\dfrac{d}{dx}e^{3x} = 3e^{3x}, by the chain rule.

Worked example 2. For y=log⁡(x2+1)y = \log(x^2 + 1):

dydx=1x2+1⋅2x=2xx2+1,dydx∣x=1=22=1\frac{dy}{dx} = \frac{1}{x^2 + 1} \cdot 2x = \frac{2x}{x^2 + 1}, \qquad \left.\frac{dy}{dx}\right|_{x = 1} = \frac{2}{2} = 1

An everyday example. Money growing with continuously compounded interest follows erte^{rt}, and its rate of growth at any moment is proportional to the amount already there.

The substance. exe^x equals its own derivative, which is why it appears whenever a quantity grows at a rate proportional to its size.

How do you use logarithmic differentiation for functions like x^x and products of many factors?

Take the natural logarithm of both sides to turn powers into products and products into sums, differentiate implicitly, and then multiply back by yy.

When to use it:


- Functions of the form [f(x)]g(x)[f(x)]^{g(x)}, where base and exponent both vary
- Long products or quotients of several factors

Worked example 1 — y=xxy = x^x for x>0x > 0.

log⁡y=xlog⁡x⇒1ydydx=log⁡x+x⋅1x=1+log⁡x\log y = x\log x \Rightarrow \frac{1}{y}\frac{dy}{dx} = \log x + x \cdot \frac{1}{x} = 1 + \log x

dydx=xx(1+log⁡x),dydx∣x=1=1(1+0)=1\frac{dy}{dx} = x^x(1 + \log x), \qquad \left.\frac{dy}{dx}\right|_{x = 1} = 1(1 + 0) = 1

Worked example 2 — a quotient of products. For y=(x+1)(x+2)x+3y = \dfrac{(x + 1)(x + 2)}{x + 3}:

log⁡y=log⁡(x+1)+log⁡(x+2)−log⁡(x+3)\log y = \log(x + 1) + \log(x + 2) - \log(x + 3)

dydx=y[1x+1+1x+2−1x+3]\frac{dy}{dx} = y\left[\frac{1}{x + 1} + \frac{1}{x + 2} - \frac{1}{x + 3}\right]

At x=0x = 0, y=23y = \dfrac{2}{3}, so dydx=23(1+12−13)=23⋅76=79\dfrac{dy}{dx} = \dfrac{2}{3}\left(1 + \dfrac{1}{2} - \dfrac{1}{3}\right) = \dfrac{2}{3} \cdot \dfrac{7}{6} = \dfrac{7}{9}.

An everyday example. Tracking how a box's volume changes when its length, width and height all change together is easier after turning the product into a sum of logarithms.

The substance. Neither the power rule nor the exponential rule works on xxx^x — one assumes a fixed exponent, the other a fixed base.

How do you find dy/dx when a curve is given in parametric form?

When x=f(t)x = f(t) and y=g(t)y = g(t), differentiate each with respect to tt and divide: dydx=dy/dtdx/dt\dfrac{dy}{dx} = \dfrac{dy/dt}{dx/dt}, provided dxdt≠0\dfrac{dx}{dt} \ne 0.

Worked example 1 — a circle.
x=acos⁡tx = a\cos t, y=asin⁡ty = a\sin t:

dxdt=−asin⁡t,dydt=acos⁡t,dydx=−cos⁡tsin⁡t=−cot⁡t\frac{dx}{dt} = -a\sin t, \qquad \frac{dy}{dt} = a\cos t, \qquad \frac{dy}{dx} = -\frac{\cos t}{\sin t} = -\cot t

At t=π4t = \dfrac{\pi}{4}, the slope is −1-1.

Worked example 2 — a parabola. x=at2x = at^2, y=2aty = 2at:

dydx=2a2at=1t\frac{dy}{dx} = \frac{2a}{2at} = \frac{1}{t}

With a=1a = 1 and t=2t = 2, the point is (4,4)(4, 4) and the slope there is 12\dfrac{1}{2}.

An everyday example. A cricket ball's horizontal and vertical positions both depend on time, so the direction of its path at any instant is dy/dtdx/dt\dfrac{dy/dt}{dx/dt}.

The substance. There is no need to eliminate tt — the parametric formula gives the slope directly, even when eliminating tt would be messy.

How do you compute second order derivatives and use them to verify a differential relation?

The second order derivative d2ydx2\dfrac{d^2y}{dx^2} is the derivative of dydx\dfrac{dy}{dx}, and to verify a relation you find y′y' and y′′y'' and substitute them into the given equation.

Notation.
d2ydx2\dfrac{d^2y}{dx^2}, y′′y'', y2y_2 and f′′(x)f''(x) all mean the same thing.

Worked example 1. For y=x3+2x2y = x^3 + 2x^2:

y′=3x2+4x,y′′=6x+4,y′′(1)=10y' = 3x^2 + 4x, \qquad y'' = 6x + 4, \qquad y''(1) = 10

Worked example 2 — verify a relation. Show that y=3cos⁡x+4sin⁡xy = 3\cos x + 4\sin x satisfies y′′+y=0y'' + y = 0.

y′=−3sin⁡x+4cos⁡x,y′′=−3cos⁡x−4sin⁡x=−yy' = -3\sin x + 4\cos x, \qquad y'' = -3\cos x - 4\sin x = -y

Hence y′′+y=0y'' + y = 0.

An everyday example. A speedometer shows the first derivative of distance; how quickly that reading climbs when you accelerate is the second derivative.

The substance. d2ydx2\dfrac{d^2y}{dx^2} is not (dydx)2\left(\dfrac{dy}{dx}\right)^2 — differentiating twice is different from squaring the first derivative.
Exam tip

What earns full marks on logarithmic, parametric and second derivatives?

In logarithmic differentiation, write the line log⁡y=…\log y = \ldots explicitly and remember to multiply by yy at the end.

-
Basic derivatives
: ddxex=ex\dfrac{d}{dx}e^x = e^x; ddxlog⁡x=1x\dfrac{d}{dx}\log x = \dfrac{1}{x}
- Log laws: products to sums, quotients to differences, powers to multiples
- xxx^x: derivative xx(1+log⁡x)x^x(1 + \log x)
- Parametric: dydx=dy/dtdx/dt\dfrac{dy}{dx} = \dfrac{dy/dt}{dx/dt}
- Second derivative: differentiate dydx\dfrac{dy}{dx} again with respect to xx

The trap. For a parametric curve, writing d2ydx2\dfrac{d^2y}{dx^2} as d2y/dt2d2x/dt2\dfrac{d^2y/dt^2}{d^2x/dt^2}. Instead, differentiate dydx\dfrac{dy}{dx} with respect to tt and divide by dxdt\dfrac{dx}{dt}.
Did you know

Why does the number e appear in growing bank balances?

Suppose ₹1 could earn 100 per cent interest over a period. Compounded once, it becomes ₹2. Compounded twice, each half adds 50 per cent: (1+12)2=2.25\left(1 + \frac{1}{2}\right)^2 = 2.25.

Compound more and more often and the amount creeps up — twelve times gives (1+112)12≈2.613\left(1 + \frac{1}{12}\right)^{12} \approx 2.613 — but it never passes a limit of about ₹2.718. That limit is the number ee.

This is why continuous growth is written with ee, and why exe^x, which equals its own derivative, describes quantities that grow in proportion to their size.
Exam relevance

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

These techniques complete Continuity and Differentiability for JEE Main, and they are working tools for the calculus that follows.

What gets asked. Derivatives of functions like xsin⁡xx^{\sin x} or (sin⁡x)x(\sin x)^x, long products simplified with logarithms, slopes of parametric curves, second derivatives in parametric form, and verifying relations like y′′+y=0y'' + y = 0. These skills return in Application of Derivatives and Differential Equations, and JEE Advanced combines them in multi-step questions.

Question types. Multiple-choice and numerical-value questions on derivative values at a point.

The trap that costs marks. Dividing second derivatives in parametric form instead of differentiating dydx\dfrac{dy}{dx} with respect to tt.
Key takeaways

What must you be able to do from this part?

- Exponential and logarithm: inverse functions; ddxex=ex\dfrac{d}{dx}e^x = e^x and ddxlog⁡x=1x\dfrac{d}{dx}\log x = \dfrac{1}{x}
- Logarithmic differentiation: take logs, differentiate, multiply by yy; ddxxx=xx(1+log⁡x)\dfrac{d}{dx}x^x = x^x(1 + \log x)
- Parametric: dydx=dy/dtdx/dt\dfrac{dy}{dx} = \dfrac{dy/dt}{dx/dt}; for x=at2x = at^2, y=2aty = 2at, the slope is 1t\dfrac{1}{t}
- Second order: differentiate twice; y=3cos⁡x+4sin⁡xy = 3\cos x + 4\sin x satisfies y′′+y=0y'' + y = 0

Differentiate y=xsin⁡xy = x^{\sin x} for x>0x > 0 using logarithms, and find its slope at x=π2x = \dfrac{\pi}{2}.

Ready to put this into practice?

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

Create your own quiz on Continuity and Differentiability — Part 2Create a free account
← Back to all articles