← Back to all lessons
Class 12Calculus11:25Published 21 May 2025

Derivatives of Logarithmic and Exponential Functions

Work through five proof-style derivative problems involving logarithmic and exponential functions, using the chain rule, the quotient rule, and the laws of logarithms.

This class 12 lesson tackles a set of 'prove that' and 'show that' differentiation problems built around logarithms and exponentials. It demonstrates how to differentiate logarithms of square-root expressions, how rationalising with a conjugate simplifies a messy log before differentiating, and how the laws of logarithms let you rewrite exponential expressions into clean powers of x. Each worked example ends by matching the required right-hand side.

What you'll learn

  • How to differentiate the logarithm of an expression involving a square root using the chain rule
  • How multiplying by the conjugate simplifies a complicated logarithm before you differentiate it
  • How the laws of logarithms turn exponential expressions into simple powers of x
  • How to use the quotient rule and recognise the result in terms of the original function

Lesson chapters

0:00Differentiating a log of a square-root expression
2:16Simplifying a log with the conjugate, then differentiating
6:06Rewriting an exponential with the laws of logarithms
7:20Simplifying nine to a power with a base-three log
8:28Differentiating a quotient of exponentials

Lesson notes

This lesson works through five proof-style problems on the derivatives of logarithmic and exponential functions. Each one asks us to differentiate a given expression and show that it equals a required result, leaning on the chain rule, the quotient rule, and the laws of logarithms.

Logarithm of a square-root expression

We prove that

ddxlog ⁣(x+x2a2)=1x2a2.\frac{d}{dx}\,\log\!\left(x + \sqrt{x^2 - a^2}\right) = \frac{1}{\sqrt{x^2 - a^2}}.

This is a function of a function, so we apply the chain rule. Since ddxlogu=1ududx\frac{d}{dx}\log u = \frac{1}{u}\cdot \frac{du}{dx},

ddxlog ⁣(x+x2a2)=1x+x2a2ddx ⁣(x+x2a2).\frac{d}{dx}\,\log\!\left(x + \sqrt{x^2 - a^2}\right) = \frac{1}{x + \sqrt{x^2 - a^2}}\cdot \frac{d}{dx}\!\left(x + \sqrt{x^2 - a^2}\right).

The inner derivative. Here ddxx2a2=12x2a22x=xx2a2\frac{d}{dx}\sqrt{x^2 - a^2} = \frac{1}{2\sqrt{x^2 - a^2}}\cdot 2x = \frac{x}{\sqrt{x^2 - a^2}}, so

ddx ⁣(x+x2a2)=1+xx2a2=x2a2+xx2a2.\frac{d}{dx}\!\left(x + \sqrt{x^2 - a^2}\right) = 1 + \frac{x}{\sqrt{x^2 - a^2}} = \frac{\sqrt{x^2 - a^2} + x}{\sqrt{x^2 - a^2}}.

Putting it together. The factor x+x2a2x + \sqrt{x^2 - a^2} in the denominator cancels with the matching numerator:

1x+x2a2x+x2a2x2a2=1x2a2.\frac{1}{x + \sqrt{x^2 - a^2}}\cdot \frac{x + \sqrt{x^2 - a^2}}{\sqrt{x^2 - a^2}} = \frac{1}{\sqrt{x^2 - a^2}}.

A log simplified with the conjugate

We prove that

ddxlog ⁣(x+1+x1x+1x1)=1x21.\frac{d}{dx}\,\log\!\left(\frac{\sqrt{x+1} + \sqrt{x-1}}{\sqrt{x+1} - \sqrt{x-1}}\right) = \frac{1}{\sqrt{x^2 - 1}}.

Rationalise first. Multiply the numerator and denominator inside the log by the conjugate of the denominator, x+1+x1\sqrt{x+1} + \sqrt{x-1}:

(x+1+x1)2(x+1)2(x1)2.\frac{\left(\sqrt{x+1} + \sqrt{x-1}\right)^2}{\left(\sqrt{x+1}\right)^2 - \left(\sqrt{x-1}\right)^2}.

The denominator is (x+1)(x1)=2(x+1) - (x-1) = 2. The numerator expands to

(x+1)+(x1)+2(x+1)(x1)=2x+2x21.(x+1) + (x-1) + 2\sqrt{(x+1)(x-1)} = 2x + 2\sqrt{x^2 - 1}.

So the fraction becomes

2x+2x212=x+x21.\frac{2x + 2\sqrt{x^2 - 1}}{2} = x + \sqrt{x^2 - 1}.

Now differentiate. The problem reduces to

ddxlog ⁣(x+x21),\frac{d}{dx}\,\log\!\left(x + \sqrt{x^2 - 1}\right),

which is the same chain-rule pattern as before with a=1a = 1:

=1x+x21x+x21x21=1x21.= \frac{1}{x + \sqrt{x^2 - 1}}\cdot \frac{x + \sqrt{x^2 - 1}}{\sqrt{x^2 - 1}} = \frac{1}{\sqrt{x^2 - 1}}.

An exponential rewritten with the laws of logarithms

If y=e3logx+2xy = e^{3\log x + 2x}, prove that dydx=x2e2x(2x+3)\dfrac{dy}{dx} = x^2 e^{2x}(2x + 3).

Simplify first. Using em+n=emene^{m+n} = e^m\, e^n and mlogx=logxmm\log x = \log x^m,

y=elogx3e2x.y = e^{\log x^3}\, e^{2x}.

Since elogm=me^{\log m} = m, this gives y=x3e2xy = x^3 e^{2x}.

Product rule.

dydx=x3e2x2+e2x3x2=x2e2x(2x+3).\frac{dy}{dx} = x^3\cdot e^{2x}\cdot 2 + e^{2x}\cdot 3x^2 = x^2 e^{2x}(2x + 3).

Nine to a base-three log

If y=9log3xy = 9^{\log_3 x}, prove that dydx=2x\dfrac{dy}{dx} = 2x.

Write 9=329 = 3^2, so

y=32log3x=3log3x2.y = 3^{2\log_3 x} = 3^{\log_3 x^2}.

Using the law alogam=ma^{\log_a m} = m, this collapses to y=x2y = x^2. Differentiating,

dydx=2x.\frac{dy}{dx} = 2x.

A quotient of exponentials

If y=ex+exexexy = \dfrac{e^x + e^{-x}}{e^x - e^{-x}}, prove that dydx=1y2\dfrac{dy}{dx} = 1 - y^2.

Quotient rule. With numerator ex+exe^x + e^{-x} and denominator exexe^x - e^{-x},

dydx=(exex)(exex)(ex+ex)(ex+ex)(exex)2.\frac{dy}{dx} = \frac{\left(e^x - e^{-x}\right)\left(e^x - e^{-x}\right) - \left(e^x + e^{-x}\right)\left(e^x + e^{-x}\right)}{\left(e^x - e^{-x}\right)^2}.

Split the fraction. This is

(exex)2(exex)2(ex+ex)2(exex)2=1(ex+exexex)2.\frac{\left(e^x - e^{-x}\right)^2}{\left(e^x - e^{-x}\right)^2} - \frac{\left(e^x + e^{-x}\right)^2}{\left(e^x - e^{-x}\right)^2} = 1 - \left(\frac{e^x + e^{-x}}{e^x - e^{-x}}\right)^2.

The second term is exactly y2y^2, so

dydx=1y2.\frac{dy}{dx} = 1 - y^2.

Key takeaways

  • To differentiate log ⁣(x+x2a2)\log\!\left(x + \sqrt{x^2 - a^2}\right), apply the chain rule; the awkward factor cancels and leaves 1x2a2\frac{1}{\sqrt{x^2 - a^2}}.
  • Rationalising a fraction with its conjugate can turn a complicated logarithm into a simple one before you differentiate.
  • The laws of logarithms (elogm=me^{\log m} = m and alogam=ma^{\log_a m} = m) reduce many exponential expressions to plain powers of xx.
  • The quotient rule on ex+exexex\frac{e^x + e^{-x}}{e^x - e^{-x}} produces a result you can read back in terms of yy, namely 1y21 - y^2.