Chapter 5 · Continuity and Differentiability

5.3 Exponential and Logarithmic Functions; Logarithmic Differentiation

$e^x$ is the one exponential function that is its own derivative, and its mirror image $\log x$ has derivative $\tfrac1x$. Taking logarithms turns products, quotients and powers like $x^x$ into sums that are easy to differentiate.

A bacterial culture doubles every hour; a loan grows by a fixed percentage every month; a dose of paracetamol is cleared from the blood at a rate proportional to the amount still there; a cup of tea cools faster when it is hotter. In each case the rate at which a quantity changes is proportional to the quantity itself. The functions that behave like this are the exponential functions $b^x$, and among them one base, the number $e\approx2.718$, is so natural that the rate of change of $e^x$ is exactly $e^x$. Its inverse, the natural logarithm, is just as important: it is the function whose derivative is $\tfrac1x$, and it turns multiplication into addition.

That last property gives a powerful technique. Faced with a function like $x^x$ — neither a power of $x$ (the exponent varies) nor an exponential (the base varies) — no rule from Class 11 applies. Taking the logarithm first brings the exponent down: $\log y=x\log x$, and implicit differentiation does the rest. The same trick turns a long product or quotient into a sum. This is logarithmic differentiation, a favourite of both the Board and JEE.

Exponential Functions and the Number $e$

📘 Definition 5.4 — Exponential function

For a fixed base $b\gt0$, $b\ne1$, the function $f(x)=b^x$ with domain $\mathbb R$ is the exponential function with base $b$. Its range is $(0,\infty)$: $b^x$ is always positive. Its graph passes through $(0,1)$; it is increasing if $b\gt1$ and decreasing if $0\lt b\lt1$. It obeys the index laws $b^{x+y}=b^xb^y$, $b^{x-y}=\dfrac{b^x}{b^y}$, $(b^x)^y=b^{xy}$.

Which base is “best”? Look at the slope of $b^x$ at $x=0$, $\lim\limits_{h\to0}\dfrac{b^h-1}{h}$. For $b=2$ it is about $0.693$; for $b=3$ about $1.099$. Somewhere between $2$ and $3$ there is exactly one base for which this slope is $1$. That base is the number $$e=2.718281828\ldots,$$ which is also the limit of $\left(1+\tfrac1n\right)^n$ as $n\to\infty$ — the amount that ₹1 becomes in one year at $100\%$ interest compounded more and more often. Like $\pi$, $e$ is irrational. We take its key property as known (it can be proved in higher courses): $$\lim_{h\to0}\dfrac{e^h-1}{h}=1.$$ Interactive 1 shows the slope at $(0,1)$ for different bases.

📐 Theorem 5.7 — The derivative of $e^x$

$e^x$ is differentiable at every real $x$, and $$\dfrac{d}{dx}e^x=e^x.$$

Proof. From first principles, using $e^{x+h}=e^xe^h$: $$\dfrac{e^{x+h}-e^x}{h}=e^x\cdot\dfrac{e^h-1}{h}\ \longrightarrow\ e^x\cdot1=e^x\quad\text{as }h\to0.\ \blacksquare$$ With the chain rule: $\dfrac{d}{dx}e^{u(x)}=e^{u(x)}\,u'(x)$.

✏️ Example 1 — Exponential derivatives
Differentiate: (a) $e^{3x}$   (b) $e^{\sin x}$   (c) $e^{-x^2}$   (d) $x^2e^x$   (e) $\dfrac{e^x}{1+e^x}$
(a) $e^{3x}\cdot3=3e^{3x}$.
(b) $e^{\sin x}\cdot\cos x=\cos x\,e^{\sin x}$.
(c) $e^{-x^2}\cdot(-2x)=-2x\,e^{-x^2}$ — the bell-shaped curve of statistics falls fastest where $-2xe^{-x^2}$ is most negative.
(d) Product rule: $2x\,e^x+x^2e^x=xe^x(x+2)$.
(e) Quotient rule: $\dfrac{e^x(1+e^x)-e^x\cdot e^x}{(1+e^x)^2}=\dfrac{e^x}{(1+e^x)^2}$.
Check (c) at $x=1$: $-2e^{-1}\approx-0.7358$; $\dfrac{e^{-1.0001^2}-e^{-0.9999^2}}{0.0002}\approx-0.7358$ ✓.

The Logarithmic Function and Its Derivative

📘 Definition 5.5 — Logarithmic function; the natural logarithm

For $b\gt0$, $b\ne1$, the logarithm to base $b$ is the inverse of $b^x$: for $x\gt0$, $$\log_bx=y\iff b^y=x.$$ Its domain is $(0,\infty)$ and its range is $\mathbb R$. The logarithm to base $e$ is the natural logarithm. Throughout this course $\log x$ means $\log_ex$ (calculators label it “ln”; the key marked “log” is base $10$).

Because $\log_bx$ undoes $b^x$, the graph of $y=\log_bx$ is the mirror image of $y=b^x$ in the line $y=x$, just as for the inverse trigonometric functions of Chapter 2. The laws of logarithms follow from the index laws: for $x,y\gt0$,

product$\log(xy)=\log x+\log y$
quotient$\log\dfrac xy=\log x-\log y$
power$\log x^n=n\log x$
change of base$\log_bx=\dfrac{\log x}{\log b}$, and $b^x=e^{x\log b}$
📐 Theorem 5.8 — Derivatives of $\log x$, $a^x$ and $\log_ax$

(i) $\dfrac{d}{dx}\log x=\dfrac1x$ for $x\gt0$; more generally $\dfrac{d}{dx}\log|x|=\dfrac1x$ for $x\ne0$.

(ii) For $a\gt0$: $\dfrac{d}{dx}a^x=a^x\log a$.   (iii) For $a\gt0$, $a\ne1$, $x\gt0$: $\dfrac{d}{dx}\log_ax=\dfrac{1}{x\log a}$.

Proof. (i) Let $y=\log x$, so $e^y=x$. Differentiating implicitly, $e^y\dfrac{dy}{dx}=1$, so $\dfrac{dy}{dx}=\dfrac{1}{e^y}=\dfrac1x$. For $x\lt0$, $\log|x|=\log(-x)$ and the chain rule gives $\dfrac{1}{-x}\cdot(-1)=\dfrac1x$. (ii) $a^x=e^{x\log a}$, so its derivative is $e^{x\log a}\cdot\log a=a^x\log a$. (iii) $\log_ax=\dfrac{\log x}{\log a}$ and $\log a$ is a constant. $\blacksquare$

Notice the mirror picture: at $P(a,e^a)$ the curve $y=e^x$ has slope $e^a$, and at the mirror point $Q(e^a,a)$ the curve $y=\log x$ has slope $\dfrac{1}{e^a}$. Reflecting in $y=x$ swaps rise and run, so slopes at mirror points are reciprocals.

Interactive 1 — Mirror Images: $b^x$ and $\log_b x$

The blue curve is $y=b^x$ and the green curve is its mirror image $y=\log_bx$ in the dashed line $y=x$. Slide $a$ (or press Play): $P(a,b^a)$ and its mirror point $Q(b^a,a)$ carry their tangent lines. Check that the two slopes always multiply to $1$ — and find the base for which the slope of $b^x$ at $(0,1)$ is exactly $1$.

$P(a,b^a)$—
slope of $b^x$ at $P$—
$Q(b^a,a)$—
slope of $\log_bx$ at $Q$—
product of slopes—
✏️ Example 2 — Logarithmic and exponential derivatives
Differentiate (on the domain where the function is defined): (a) $\log(\sin x)$, $0\lt x\lt\pi$   (b) $\log(x^2+1)$   (c) $\log(\log x)$, $x\gt1$   (d) $\log\dfrac{1+x}{1-x}$, $-1\lt x\lt1$   (e) $5^x$ and $\log_{10}x$
(a) Chain rule: $\dfrac{1}{\sin x}\cdot\cos x=\cot x$.
(b) $\dfrac{2x}{x^2+1}$. (In general $\dfrac{d}{dx}\log u=\dfrac{u'}{u}$ — “derivative over function”.)
(c) $\dfrac{1}{\log x}\cdot\dfrac1x=\dfrac{1}{x\log x}$. (We need $x\gt1$ so that $\log x\gt0$.)
(d) Split first with the quotient law: $\log(1+x)-\log(1-x)$. Then $\dfrac{1}{1+x}+\dfrac{1}{1-x}=\dfrac{2}{1-x^2}$.
(e) $\dfrac{d}{dx}5^x=5^x\log5$ and $\dfrac{d}{dx}\log_{10}x=\dfrac{1}{x\log10}\approx\dfrac{0.4343}{x}$.
✏️ Example 3 — How fast is a drug cleared?
After an injection, the concentration of a drug in a patient's blood is modelled by $C(t)=20e^{-0.25t}$ mg/L, $t$ hours after the dose. (a) Find $C'(t)$ and show that $C'(t)=-0.25\,C(t)$. (b) How fast is the concentration changing at $t=4$ h? (c) When is the concentration half its initial value?
(a) $C'(t)=20e^{-0.25t}\cdot(-0.25)=-5e^{-0.25t}=-0.25\,C(t)$: the drug is cleared at a rate proportional to the amount present ($25\%$ of the current level per hour, instantaneously).
(b) $C'(4)=-5e^{-1}\approx-1.84$ mg/L per hour. The negative sign means the concentration is falling.
(c) $20e^{-0.25t}=10\Rightarrow e^{-0.25t}=\tfrac12\Rightarrow-0.25t=\log\tfrac12=-\log2$, so $t=4\log2\approx2.77$ h (the drug's half-life).

Logarithmic Differentiation

If $y=f(x)^{g(x)}$ with $f(x)\gt0$, or $y$ is a long product or quotient, take logarithms before differentiating. The laws of logarithms bring exponents down and turn products into sums.

🧭 Problem-solving strategy — logarithmic differentiation
  1. Make sure the function is positive on the interval (or work with $\log|y|$, which has the same derivative $\tfrac{y'}{y}$).
  2. Take $\log$ of both sides and expand with the laws of logarithms: $\log y=g(x)\log f(x)$, or a sum and difference of logs.
  3. Differentiate implicitly: the left side gives $\dfrac1y\dfrac{dy}{dx}$.
  4. Multiply by $y$, and substitute the original expression for $y$ back in.
  5. If $y$ is a sum such as $u+v$, do not take the log of the sum: differentiate $u$ and $v$ separately (each by logarithms if needed) and add.
✏️ Example 4 — The function $x^x$
Find $\dfrac{d}{dx}x^x$ for $x\gt0$, and the point where the derivative is $0$.
Logs $y=x^x\gt0$, so $\log y=x\log x$.
Differentiate $\dfrac1y\dfrac{dy}{dx}=1\cdot\log x+x\cdot\dfrac1x=1+\log x$.
Answer $\dfrac{dy}{dx}=x^x(1+\log x)$. It is $0$ when $\log x=-1$, i.e. $x=\dfrac1e\approx0.368$, where $y=e^{-1/e}\approx0.692$.
Why not the power rule? $\dfrac{d}{dx}x^n=nx^{n-1}$ needs a constant exponent, and $\dfrac{d}{dx}a^x=a^x\log a$ a constant base. For $x^x$ both vary; the answer $x^x\log x+x\cdot x^{x-1}$ is, curiously, the sum of the two wrong rules.
✏️ Example 5 — A product and quotient
Find $\dfrac{dy}{dx}$ for $y=\dfrac{(x^2+1)^3\sqrt{2x-1}}{(x+3)^4}$, $x\gt\tfrac12$.
Logs Every factor is positive for $x\gt\tfrac12$, so $\log y=3\log(x^2+1)+\tfrac12\log(2x-1)-4\log(x+3)$.
Differentiate $\dfrac1y\dfrac{dy}{dx}=\dfrac{6x}{x^2+1}+\dfrac{1}{2x-1}-\dfrac{4}{x+3}$.
Answer $\dfrac{dy}{dx}=\dfrac{(x^2+1)^3\sqrt{2x-1}}{(x+3)^4}\left[\dfrac{6x}{x^2+1}+\dfrac{1}{2x-1}-\dfrac{4}{x+3}\right]$.
Check At $x=1$: $y=\tfrac{8}{256}=\tfrac1{32}$ and the bracket is $3+1-1=3$, so $y'(1)=\tfrac{3}{32}=0.09375$; a difference quotient gives $0.09375$ ✓.
✏️ Example 6 — A sum of two power-type terms
Find $\dfrac{dy}{dx}$ for $y=x^{\sin x}+(\sin x)^x$, $0\lt x\lt\pi$.
Split Let $u=x^{\sin x}$ and $v=(\sin x)^x$; then $\dfrac{dy}{dx}=\dfrac{du}{dx}+\dfrac{dv}{dx}$. (Taking $\log$ of the sum $u+v$ would get us nowhere.)
$u$ $\log u=\sin x\log x$, so $\dfrac{u'}{u}=\cos x\log x+\dfrac{\sin x}{x}$ and $u'=x^{\sin x}\left(\cos x\log x+\dfrac{\sin x}{x}\right)$.
$v$ $\sin x\gt0$ on $(0,\pi)$. $\log v=x\log\sin x$, so $\dfrac{v'}{v}=\log\sin x+x\cdot\dfrac{\cos x}{\sin x}$ and $v'=(\sin x)^x\left(\log\sin x+x\cot x\right)$.
Answer $\dfrac{dy}{dx}=x^{\sin x}\left(\cos x\log x+\dfrac{\sin x}{x}\right)+(\sin x)^x\left(\log\sin x+x\cot x\right)$.
✏️ Example 7 — Logarithms in an implicit equation
If $x^y=y^x$ (with $x,y\gt0$), find $\dfrac{dy}{dx}$.
Logs $y\log x=x\log y$.
Differentiate $\dfrac{dy}{dx}\log x+\dfrac yx=\log y+\dfrac xy\dfrac{dy}{dx}$.
Answer $\dfrac{dy}{dx}\left(\log x-\dfrac xy\right)=\log y-\dfrac yx$, so $$\dfrac{dy}{dx}=\dfrac{\log y-\frac yx}{\log x-\frac xy}=\dfrac{y(x\log y-y)}{x(y\log x-x)}.$$
Check $(2,4)$ lies on the curve ($2^4=4^2$). There the formula gives $\dfrac{4(2\log4-4)}{2(4\log2-2)}=\dfrac{4(4\log2-4)}{2(4\log2-2)}\approx-3.177$, which matches a numerical slope of the curve at $(2,4)$.
Interactive 2 — The Logarithmic Differentiation Lab

Pick a function whose base and exponent both vary. The point moves along the curve with its tangent line. The readouts follow the method step by step: $\log y$, then its derivative $\tfrac{y'}{y}$, then $y'=y\cdot\tfrac{y'}{y}$ — compared with a direct numerical slope. Watch where $\tfrac{y'}{y}$ changes sign: that is where the tangent is horizontal.

$x$, $y$—
$\log y$—
$\tfrac{y'}{y}$ from the formula—
$y'=y\cdot\tfrac{y'}{y}$—
numerical slope—
⚠️ Common mistakes when studying alone

1. Using the power rule on $x^x$. $\dfrac{d}{dx}x^x\ne x\cdot x^{x-1}$ and $\ne x^x\log x$. Variable base and variable exponent need logarithmic differentiation.

2. Taking the log of a sum. $\log(u+v)\ne\log u+\log v$. Split $y=u+v$ and differentiate each term separately (Example 6).

3. Forgetting to multiply back by $y$. Differentiating $\log y$ gives $\dfrac{y'}{y}$; the answer is $y'$, so multiply by $y$ — written in terms of $x$.

4. Logs of non-positive numbers. $\log x$ exists only for $x\gt0$. State the interval (e.g. $0\lt x\lt\pi$ for $\log\sin x$) or use $\log|y|$.

5. The wrong “log”. In this course $\log x=\log_ex$. If a problem means base $10$ it will say $\log_{10}x$, whose derivative carries the extra factor $\dfrac{1}{\log10}$.

6. Chain rule slips with $e$. $\dfrac{d}{dx}e^{x^2}=2xe^{x^2}$, not $x^2e^{x^2-1}$ — the exponent is not a power to bring down.

Exercises

I
Differentiate (on the interval where the function is defined).
  • 1 $e^{5x}$
  • 2 $e^{x^2+1}$
  • 3 $x^3e^x$
  • 4 $e^x\sin x$
  • 5 $e^{\sqrt x}$, $x\gt0$
  • 6 $\log(\cos x)$, $-\tfrac\pi2\lt x\lt\tfrac\pi2$
  • 7 $\log\!\left(x+\sqrt{x^2+1}\right)$
  • 8 $3^x$
  • 9 $\log_2(x^2+3)$
  • 10 $\dfrac{\log x}{x}$, $x\gt0$
1 $5e^{5x}$
2 $2x\,e^{x^2+1}$
3 $3x^2e^x+x^3e^x=x^2e^x(x+3)$
4 $e^x\sin x+e^x\cos x=e^x(\sin x+\cos x)$
5 $e^{\sqrt x}\cdot\dfrac{1}{2\sqrt x}=\dfrac{e^{\sqrt x}}{2\sqrt x}$
6 $\dfrac{-\sin x}{\cos x}=-\tan x$
7 $\dfrac{1}{x+\sqrt{x^2+1}}\left(1+\dfrac{x}{\sqrt{x^2+1}}\right)=\dfrac{1}{x+\sqrt{x^2+1}}\cdot\dfrac{\sqrt{x^2+1}+x}{\sqrt{x^2+1}}=\dfrac{1}{\sqrt{x^2+1}}$
8 $3^x\log3$
9 $\log_2(x^2+3)=\dfrac{\log(x^2+3)}{\log2}$, so the derivative is $\dfrac{2x}{(x^2+3)\log2}$.
10 $\dfrac{\frac1x\cdot x-\log x}{x^2}=\dfrac{1-\log x}{x^2}$
II
Slopes, rates and models.
  • 1 Find the slope of $y=e^x$ at $(1,e)$ and of $y=\log x$ at $(e,1)$. What do you notice, and why?
  • 2 Population. A town's population is modelled by $P(t)=5000e^{0.02t}$, $t$ in years. How fast is it growing at $t=10$?
  • 3 Radioactive decay. A sample's mass is $m(t)=80e^{-0.1t}$ g after $t$ years. Find $m'(5)$ and show that $m'(t)=-0.1\,m(t)$.
  • 4 Show that $y=Ae^{kx}$ satisfies $\dfrac{dy}{dx}=ky$ for any constants $A$ and $k$.
  • 5 Find the value of $x$ at which the derivative of $f(x)=xe^{-x}$ is zero.
  • 6 Show directly that $\dfrac{d}{dx}\log(-x)=\dfrac1x$ for $x\lt0$.
1 $e$ and $\dfrac1e$: reciprocals. The points are mirror images in $y=x$, and reflection swaps rise and run (Interactive 1).
2 $P'(t)=100e^{0.02t}$, so $P'(10)=100e^{0.2}\approx122$ people per year.
3 $m'(t)=-8e^{-0.1t}=-0.1\,(80e^{-0.1t})=-0.1\,m(t)$. $m'(5)=-8e^{-0.5}\approx-4.85$ g per year.
4 $\dfrac{dy}{dx}=Ae^{kx}\cdot k=k\,(Ae^{kx})=ky$.
5 $f'(x)=e^{-x}-xe^{-x}=e^{-x}(1-x)$; $e^{-x}\gt0$, so $f'(x)=0$ only at $x=1$.
6 Chain rule: $\dfrac{1}{-x}\cdot(-1)=\dfrac1x$.
III
Logarithmic differentiation. Find $\dfrac{dy}{dx}$ ($x\gt0$ unless stated).
  • 1 $y=x^{2x}$
  • 2 $y=x^{\sqrt x}$
  • 3 $y=(\log x)^x$, $x\gt1$
  • 4 $y=(x+1)^2(x+2)^3(x+3)^4$
  • 5 $y=\sqrt{\dfrac{x-1}{x+1}}$, $x\gt1$
  • 6 $y=x^x+2^x$
  • 7 $y=x^{\sin x}$
  • 8 $y=\left(1+\dfrac1x\right)^x$
  • 9 $e^y(x+1)=1$, $x\gt-1$; show also that $\dfrac{dy}{dx}=-e^y$
  • 10 $xy=e^{x-y}$
Check: is your derivative right? (numerical test)
—

Use x, numbers, + − * / ^ and brackets, e, pi, and sin cos tan sec cosec cot log (natural) exp sqrt asin acos atan abs with brackets, e.g. (sin(x))^x. A product may be written 2x or 2*x.

1 $\log y=2x\log x$, $\dfrac{y'}{y}=2\log x+2$: $y'=2x^{2x}(1+\log x)$.
2 $\log y=\sqrt x\log x$, $\dfrac{y'}{y}=\dfrac{\log x}{2\sqrt x}+\dfrac{\sqrt x}{x}=\dfrac{\log x+2}{2\sqrt x}$: $y'=x^{\sqrt x}\cdot\dfrac{2+\log x}{2\sqrt x}$.
3 $\log y=x\log(\log x)$, $\dfrac{y'}{y}=\log(\log x)+x\cdot\dfrac{1}{x\log x}$: $y'=(\log x)^x\left(\log\log x+\dfrac{1}{\log x}\right)$.
4 $y'=(x+1)^2(x+2)^3(x+3)^4\left[\dfrac{2}{x+1}+\dfrac{3}{x+2}+\dfrac{4}{x+3}\right]$ (valid wherever $y\ne0$, via $\log|y|$; the product rule gives the same expression everywhere).
5 $\log y=\tfrac12\log(x-1)-\tfrac12\log(x+1)$, $\dfrac{y'}{y}=\dfrac12\left(\dfrac{1}{x-1}-\dfrac{1}{x+1}\right)=\dfrac{1}{x^2-1}$: $y'=\dfrac{1}{x^2-1}\sqrt{\dfrac{x-1}{x+1}}$.
6 A sum: $x^x(1+\log x)+2^x\log2$.
7 $\log y=\sin x\log x$: $y'=x^{\sin x}\left(\cos x\log x+\dfrac{\sin x}{x}\right)$.
8 $\log y=x\log\!\left(1+\tfrac1x\right)=x\log(x+1)-x\log x$; $\dfrac{y'}{y}=\log(x+1)+\dfrac{x}{x+1}-\log x-1=\log\!\left(1+\dfrac1x\right)-\dfrac{1}{x+1}$. So $y'=\left(1+\dfrac1x\right)^x\left[\log\!\left(1+\dfrac1x\right)-\dfrac{1}{x+1}\right]$.
9 Taking logs: $y+\log(x+1)=0$, so $y=-\log(x+1)$ and $y'=-\dfrac{1}{x+1}$. From the equation, $e^y=\dfrac{1}{x+1}$, so $y'=-e^y$.
10 $\log x+\log y=x-y$ (with $x,y\gt0$). Then $\dfrac1x+\dfrac{y'}{y}=1-y'$, so $y'\left(\dfrac1y+1\right)=1-\dfrac1x$ and $y'=\dfrac{y(x-1)}{x(y+1)}$.
🎯 Exam corner Board · 1 markBoard · 2 marksBoard · 3 marksBoard · Case studyJEE MainJEE Advanced

How this is examined: almost every Board paper has a 2- or 3-mark logarithmic differentiation question ($x^{\sin x}$, $(\sin x)^{\cos x}$, a sum of two such terms, or $x^y=y^x$); case studies use exponential growth and decay. JEE combines logarithmic differentiation with implicit equations and evaluation at a point.

E1. Board · 1 mark For $x\gt0$, $\dfrac{d}{dx}\left(e^{\log x}\right)$ equals  (A) $1$  (B) $x$  (C) $e^x$  (D) $\dfrac1x$

Idea $e^{\log x}=x$ for $x\gt0$ (the functions undo each other), so the derivative is $1$. By the chain rule: $e^{\log x}\cdot\dfrac1x=x\cdot\dfrac1x=1$.
Answer (A). Trap (D) stops at the inside derivative and forgets the factor $e^{\log x}=x$.

E2. Board · 2 marks Find $\dfrac{dy}{dx}$ if $y=(\sin x)^{\cos x}$, $0\lt x\lt\pi$.

Logs $\sin x\gt0$ on $(0,\pi)$: $\log y=\cos x\log\sin x$. (½ mark)
Differentiate $\dfrac{1}{y}\dfrac{dy}{dx}=-\sin x\log\sin x+\cos x\cdot\dfrac{\cos x}{\sin x}$. (1 mark)
Answer $\dfrac{dy}{dx}=(\sin x)^{\cos x}\left(\cos x\cot x-\sin x\log\sin x\right)$. (½ mark)

E3. Board · 3 marks Differentiate $y=x^x+x^{1/x}$ with respect to $x$, $x\gt0$.

Split $u=x^x$, $v=x^{1/x}$, $y'=u'+v'$.
$u$ $\log u=x\log x\Rightarrow u'=x^x(1+\log x)$. (1 mark)
$v$ $\log v=\dfrac{\log x}{x}\Rightarrow\dfrac{v'}{v}=\dfrac{1-\log x}{x^2}\Rightarrow v'=x^{1/x}\cdot\dfrac{1-\log x}{x^2}$. (1½ marks)
Answer $\dfrac{dy}{dx}=x^x(1+\log x)+x^{1/x}\,\dfrac{1-\log x}{x^2}$. (½ mark) Check at $x=1$: $1\cdot1+1\cdot1=2$.

E4. Board · Case study When a tablet is swallowed, the drug concentration in the blood is modelled by $C(t)=10\left(e^{-0.2t}-e^{-t}\right)$ mg/L, $t$ hours later (absorption from the stomach competes with clearance). (i) Find $C(0)$ and $C'(t)$. [2 marks] (ii) How fast is the concentration rising at the moment the tablet is swallowed? [1 mark] (iii) The concentration peaks when $C'(t)=0$. Find this time. [1 mark]

(i) $C(0)=10(1-1)=0$. $C'(t)=10\left(-0.2e^{-0.2t}+e^{-t}\right)$.
(ii) $C'(0)=10(-0.2+1)=8$ mg/L per hour.
(iii) $e^{-t}=0.2e^{-0.2t}\Rightarrow e^{-0.8t}=0.2\Rightarrow-0.8t=\log0.2=-\log5\Rightarrow t=\tfrac54\log5\approx2.01$ hours.

E5. JEE Main If $x^y=e^{x-y}$ ($x\gt0$), then $\dfrac{dy}{dx}$ at $x=e$ is  (A) $\tfrac12$  (B) $\tfrac14$  (C) $1$  (D) $0$

Method Logs: $y\log x=x-y$, so $y(1+\log x)=x$ and $y=\dfrac{x}{1+\log x}$ — now explicit.
Differentiate $\dfrac{dy}{dx}=\dfrac{(1+\log x)-x\cdot\frac1x}{(1+\log x)^2}=\dfrac{\log x}{(1+\log x)^2}$. At $x=e$: $\dfrac{1}{4}$.
Answer (B). Trap (A) forgets to square the denominator. ⏱ Fast route: spotting that the equation can be solved for $y$ saves the implicit algebra.

E6. JEE Advanced (One or more options correct.) Let $f(x)=x^x$ for $x\gt0$. Then  (A) $f'(1)=1$  (B) $f'(x)\lt0$ for $0\lt x\lt\tfrac1e$  (C) $f'(e)=2e^e$  (D) the least value of $f$ on $(0,\infty)$ is $\tfrac1e$

Formula $f'(x)=x^x(1+\log x)$ (Example 4).
(A) True, (C) True $f'(1)=1\cdot(1+0)=1$; $f'(e)=e^e(1+1)=2e^e$.
(B) True For $0\lt x\lt\tfrac1e$, $\log x\lt-1$, so $1+\log x\lt0$ while $x^x\gt0$.
(D) False $f$ falls until $x=\tfrac1e$ and rises after, so its least value is $f\!\left(\tfrac1e\right)=\left(\tfrac1e\right)^{1/e}=e^{-1/e}\approx0.692$, not $\tfrac1e\approx0.368$ (that is where the minimum occurs, not its value).
Answer (A), (B), (C).
🔬 Research–Teaching NexusMini project · about 45 minutes

Research question. How close does daily compounding of interest come to “continuous” compounding $Pe^{rt}$ — and why does the number $e$ appear in banking at all?

Why it matters. Banks quote fixed-deposit and loan rates with different compounding periods (quarterly, monthly, daily), and the effective annual rate depends on that choice. Continuous compounding is the limiting case used in finance and economics, and its defining property — the balance grows at a rate proportional to itself, $A'(t)=rA(t)$ — is exactly the property $\tfrac{d}{dx}e^x=e^x$ of this section.

What to do.

  1. Look up a current fixed-deposit rate $r$ (for example on a bank's website or the RBI's published data) and choose $P=$ ₹$10\,000$, $t=5$ years.
  2. In a spreadsheet compute $A_n=P\left(1+\tfrac rn\right)^{nt}$ for $n=1,4,12,365$ and $8760$ (hourly), and $A_\infty=Pe^{rt}$.
  3. Plot $A_n$ against $\log n$ and describe how it approaches $A_\infty$. How many rupees separate daily and continuous compounding?
  4. Show that $A(t)=Pe^{rt}$ satisfies $A'(t)=rA(t)$, and use it to find how fast the continuous balance is growing (₹ per year) at $t=5$.

Tools: Spreadsheet (the functions EXP and LN); a published deposit rate.

Hand in: Your table, the plot, the growth rate at $t=5$, and a paragraph explaining to a younger student why “more frequent compounding” cannot make money grow without limit.

Going further. The “rule of 72” says money doubles in about $\tfrac{72}{100r}$ years. Using $e^{rt}=2$, derive the exact doubling time $\tfrac{\log2}{r}$ and explain where $72$ comes from.

Instructor note: with $r=7\%$, $P=$ ₹$10\,000$, $t=5$: $A_1\approx$ ₹$14\,025.52$, $A_{12}\approx$ ₹$14\,176.25$, $A_{365}\approx$ ₹$14\,190.20$, $A_\infty\approx$ ₹$14\,190.68$; daily and continuous differ by under ₹$0.50$. At $t=5$, $A'(5)=0.07\times14\,190.68\approx$ ₹$993$ per year. $\log2\approx0.693$, and $72$ is a convenient nearby number with many divisors.

🧪 Self-check quiz

0/5 correct

Q1. $\dfrac{d}{dx}e^{2x}=$

Q2. For $x\gt0$, $\dfrac{d}{dx}\log(x^2)=$

Q3. For a constant $a\gt0$, $\dfrac{d}{dx}a^x=$

Q4. For $x\gt0$, $\dfrac{d}{dx}x^x=$

Q5. In this course, $\log x$ means