← 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

ddx log⁡ ⁣(x+x2−a2)=1x2−a2.\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 ddxlog⁡u=1u⋅dudx\frac{d}{dx}\log u = \frac{1}{u}\cdot \frac{du}{dx},

ddx log⁡ ⁣(x+x2−a2)=1x+x2−a2⋅ddx ⁣(x+x2−a2).\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 ddxx2−a2=12x2−a2⋅2x=xx2−a2\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+x2−a2)=1+xx2−a2=x2−a2+xx2−a2.\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+x2−a2x + \sqrt{x^2 - a^2} in the denominator cancels with the matching numerator:

1x+x2−a2⋅x+x2−a2x2−a2=1x2−a2.\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

ddx log⁡ ⁣(x+1+x−1x+1−x−1)=1x2−1.\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+x−1\sqrt{x+1} + \sqrt{x-1}:

(x+1+x−1)2(x+1)2−(x−1)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)−(x−1)=2(x+1) - (x-1) = 2. The numerator expands to

(x+1)+(x−1)+2(x+1)(x−1)=2x+2x2−1.(x+1) + (x-1) + 2\sqrt{(x+1)(x-1)} = 2x + 2\sqrt{x^2 - 1}.

So the fraction becomes

2x+2x2−12=x+x2−1.\frac{2x + 2\sqrt{x^2 - 1}}{2} = x + \sqrt{x^2 - 1}.

Now differentiate. The problem reduces to

ddx log⁡ ⁣(x+x2−1),\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+x2−1⋅x+x2−1x2−1=1x2−1.= \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=e3log⁡x+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=em ene^{m+n} = e^m\, e^n and mlog⁡x=log⁡xmm\log x = \log x^m,

y=elog⁡x3 e2x.y = e^{\log x^3}\, e^{2x}.

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

Product rule.

dydx=x3⋅e2x⋅2+e2x⋅3x2=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=9log⁡3xy = 9^{\log_3 x}, prove that dydx=2x\dfrac{dy}{dx} = 2x.

Write 9=329 = 3^2, so

y=32log⁡3x=3log⁡3x2.y = 3^{2\log_3 x} = 3^{\log_3 x^2}.

Using the law alog⁡am=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+e−xex−e−xy = \dfrac{e^x + e^{-x}}{e^x - e^{-x}}, prove that dydx=1−y2\dfrac{dy}{dx} = 1 - y^2.

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

dydx=(ex−e−x)(ex−e−x)−(ex+e−x)(ex+e−x)(ex−e−x)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

(ex−e−x)2(ex−e−x)2−(ex+e−x)2(ex−e−x)2=1−(ex+e−xex−e−x)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=1−y2.\frac{dy}{dx} = 1 - y^2.

Key takeaways

  • To differentiate log⁡ ⁣(x+x2−a2)\log\!\left(x + \sqrt{x^2 - a^2}\right), apply the chain rule; the awkward factor cancels and leaves 1x2−a2\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 (elog⁡m=me^{\log m} = m and alog⁡am=ma^{\log_a m} = m) reduce many exponential expressions to plain powers of xx.
  • The quotient rule on ex+e−xex−e−x\frac{e^x + e^{-x}}{e^x - e^{-x}} produces a result you can read back in terms of yy, namely 1−y21 - y^2.