Navigation

The Derivative & Its Rules · Topic 10 of 23

Derivatives of Exponential and Logarithmic Functions

Four rules carry the topic: ddxex=ex\frac{d}{dx}e^{x}=e^{x}, ddxax=axln⁡a\frac{d}{dx}a^{x}=a^{x}\ln a, ddxln⁡x=1x\frac{d}{dx}\ln x=\frac{1}{x} and ddxlog⁡ax=1xln⁡a\frac{d}{dx}\log_a x=\frac{1}{x\ln a}, each with a chain-rule copy in uu. When the base and the exponent both contain xx, or a product has too many factors, take logarithms first.

5 min readCore — on every final8 formulas6 quick checks
01

Key ideas

5 things to remember
  1. 1

    Exponentials are proportional to themselves

    For any constant a>0a>0, ddxax=axln⁡a\frac{d}{dx}a^{x}=a^{x}\ln a: the derivative is the function times a fixed number. That number is the slope at x=0x=0, and ee is the base where it equals 11.

  2. 2

    Every rule has a chain-rule copy

    eu→euu′e^{u}\to e^{u}u', au→auln⁡a u′a^{u}\to a^{u}\ln a\,u', ln⁡u→u′u\ln u\to\frac{u'}{u}, log⁡au→u′uln⁡a\log_a u\to\frac{u'}{u\ln a}. Name uu and write u′u' before you touch the outer rule.

  3. 3

    Absolute value widens the log rule

    ddxln⁡∣u∣=u′u\frac{d}{dx}\ln|u|=\frac{u'}{u} holds wherever u≠0u\ne0, negative uu included, while ln⁡u\ln u itself needs u>0u>0. Domains are marked separately, so state them.

  4. 4

    Logarithms turn products into sums

    Take ln⁡∣y∣\ln|y|, split with the log laws, differentiate to get y′y\frac{y'}{y}, then multiply back by yy. Use it for three or more factors, ugly roots, or an xx in the exponent.

  5. 5

    Neither shortcut reaches xxx^{x}

    The power rule assumes a constant exponent and the axa^{x} rule a constant base; xxx^{x} has neither. Rewrite uv=evln⁡uu^{v}=e^{v\ln u} (needs u>0u>0), which gives xx(ln⁡x+1)x^{x}(\ln x+1).

-2-11234-2-112xyy = x + 1y = x − 1(0, 1)(1, 0)eˣln xy = x
Both slope-11 facts in one picture: ddxex=ex\frac{d}{dx}e^{x}=e^{x} gives slope e0=1e^{0}=1 at (0,1)(0,1), and ddxln⁡x=1x\frac{d}{dx}\ln x=\frac1x gives slope 11=1\frac11=1 at (1,0)(1,0). The curves are mirror images in y=xy=x because they are inverses, so their tangents are too.
0.51.01.52.01234xyslope 0→ 1 as x → 0⁺minimum at x = 1/exˣ
y=xxy=x^{x} falls then rises, so it has a genuine minimum — and y′=xx(ln⁡x+1)y'=x^{x}(\ln x+1) locates it in one line: xx>0x^{x}>0 always, so y′=0y'=0 exactly when ln⁡x=−1\ln x=-1, giving x=1ex=\frac1e and y=e−1/e≈0.692y=e^{-1/e}\approx0.692.
02

Formulas

What to have memorised
  • Natural exponential (chain form)

    ddxeu=eu u′\frac{d}{dx}e^{u}=e^{u}\,u'

    e3xe^{3x} gives 3e3x3e^{3x} — the exponential factor never disappears.

  • General exponential

    ddxau=auln⁡a  u′\frac{d}{dx}a^{u}=a^{u}\ln a\;u'

    Constant a>0a>0. At a=ea=e the ln⁡e=1\ln e=1 and it collapses to euu′e^{u}u'.

  • Natural logarithm

    ddxln⁡u=u′u\frac{d}{dx}\ln u=\frac{u'}{u}

    Valid where u(x)>0u(x)>0. Derivative of the inside over the inside.

  • Logarithm of an absolute value

    ddxln⁡∣u∣=u′u\frac{d}{dx}\ln|u|=\frac{u'}{u}

    Same formula, valid wherever u(x)≠0u(x)\ne0 — the version that reaches negative uu.

  • Other bases

    ddxlog⁡au=u′uln⁡a\frac{d}{dx}\log_a u=\frac{u'}{u\ln a}

    Needs a>0a>0, a≠1a\ne1; change of base leaves ln⁡a\ln a downstairs.

  • Variable base and variable exponent

    ddxuv=uv(v′ln⁡u+v u′u)\frac{d}{dx}u^{v}=u^{v}\left(v'\ln u+\frac{v\,u'}{u}\right)

    Needs u(x)>0u(x)>0: an exponential-rule term plus a power-rule term.

  • The standard case xxx^{x}

    ddxxx=xx(ln⁡x+1)\frac{d}{dx}x^{x}=x^{x}\left(\ln x+1\right)

    For x>0x>0. Either term on its own is the classic half-marks answer.

  • The limit that defines ee

    lim⁡h→0ah−1h=ln⁡a,lim⁡h→0eh−1h=1\lim_{h\to0}\frac{a^{h}-1}{h}=\ln a,\qquad\lim_{h\to0}\frac{e^{h}-1}{h}=1

    It is the slope of axa^{x} at x=0x=0; ee is the base making it exactly 11.

03

Logarithmic differentiation

The steps, in order
  1. 1

    Check y≠0y\ne0 near the point of interest, then write ln⁡∣y∣=ln⁡∣f(x)∣\ln|y|=\ln|f(x)|. The bars let factors be negative.

  2. 2

    Split the right side with the log laws: products become sums, quotients differences, powers coefficients. There is no law for ln⁡(A+B)\ln(A+B).

  3. 3

    Differentiate both sides with respect to xx; the chain rule turns the left side into y′y\frac{y'}{y}.

  4. 4

    Multiply through by yy and substitute the original expression back in. This last step is not optional.

  5. 5

    For a variable base with a variable exponent it is the same work as rewriting uv=evln⁡uu^{v}=e^{v\ln u}, which needs u>0u>0.

04

Watch out

The mistakes that cost marks
  • ✗ Wrong

    ddxe3x=e3x\frac{d}{dx}e^{3x}=e^{3x}

    ✓ Right

    ddxe3x=3e3x\frac{d}{dx}e^{3x}=3e^{3x}

    Why: The chain rule owes you the inner derivative u′=3u'=3.

  • ✗ Wrong

    ddx2x=x 2 x−1\frac{d}{dx}2^{x}=x\,2^{\,x-1}

    ✓ Right

    ddx2x=2xln⁡2\frac{d}{dx}2^{x}=2^{x}\ln 2

    Why: The power rule needs a variable base and constant exponent; this is the reverse.

  • ✗ Wrong

    ddxex2=2xe2x\frac{d}{dx}e^{x^{2}}=2xe^{2x}

    ✓ Right

    ddxex2=2xex2\frac{d}{dx}e^{x^{2}}=2xe^{x^{2}}

    Why: ex2e^{x^{2}} and (ex)2=e2x\left(e^{x}\right)^{2}=e^{2x} are different functions.

  • ✗ Wrong

    ddxlog⁡2x=1x\frac{d}{dx}\log_{2}x=\frac1x

    ✓ Right

    ddxlog⁡2x=1xln⁡2\frac{d}{dx}\log_{2}x=\frac{1}{x\ln 2}

    Why: Change of base leaves ln⁡2\ln 2 in the denominator for good.

  • ✗ Wrong

    ddx(ln⁡x)2=1x2\frac{d}{dx}(\ln x)^{2}=\frac{1}{x^{2}}

    ✓ Right

    ddx(ln⁡x)2=2ln⁡xx\frac{d}{dx}(\ln x)^{2}=\frac{2\ln x}{x}

    Why: Outer function is the squaring, inner function is the logarithm.

  • ✗ Wrong

    Stopping at y′y=3x+12x+1\frac{y'}{y}=\frac{3}{x}+\frac{1}{2x+1}

    ✓ Right

    Multiply by yy and write yy out in xx — the answer is y′y', not y′y\frac{y'}{y}.

    Why: Logarithmic differentiation is only finished after you substitute back.

05

Quick check

Commit to an answer before you reveal one
  1. Q1easy

    Differentiate each function and state its largest domain.

    (a) y=e−2xy=e^{-2x} (b) y=ln⁡(3x+4)y=\ln(3x+4) (c) y=log⁡5xy=\log_{5}x

    Hint

    Write down uu and u′u' before you reach for the outer rule.

    Show answer

    Answer

    (a) −2e−2x-2e^{-2x}, all real xx. (b) 33x+4\dfrac{3}{3x+4} on (−43,∞)\left(-\frac43,\infty\right). (c) 1xln⁡5\dfrac{1}{x\ln 5} on (0,∞)(0,\infty).

    Steps

    (a) u=−2xu=-2x, u′=−2u'=-2, so y′=euu′=−2e−2xy'=e^{u}u'=-2e^{-2x}. An exponential is defined for every real xx.

    (b) u=3x+4u=3x+4, u′=3u'=3, so y′=u′u=33x+4y'=\dfrac{u'}{u}=\dfrac{3}{3x+4}. The logarithm needs 3x+4>03x+4>0, i.e. x>−43x>-\frac43.

    (c) Change of base: log⁡5x=ln⁡xln⁡5\log_{5}x=\dfrac{\ln x}{\ln 5}, and 1ln⁡5\dfrac{1}{\ln 5} is a constant, so y′=1xln⁡5y'=\dfrac{1}{x\ln 5} on x>0x>0. The ln⁡5\ln 5 does not cancel.

  2. Q2easy

    Let f(x)=5ex−3ln⁡x+2xf(x)=5e^{x}-3\ln x+2^{x}. State the domain of ff, find f′(x)f'(x), and give f′(1)f'(1) exactly and to four decimal places.

    Show answer

    Answer

    Domain (0,∞)(0,\infty); f′(x)=5ex−3x+2xln⁡2f'(x)=5e^{x}-\dfrac{3}{x}+2^{x}\ln 2; f′(1)=5e−3+2ln⁡2≈11.9777f'(1)=5e-3+2\ln 2\approx 11.9777.

    Steps

    Domain: exe^{x} and 2x2^{x} are defined for every real xx, but ln⁡x\ln x needs x>0x>0, so the domain is (0,∞)(0,\infty).

    Differentiate term by term with ddxex=ex\frac{d}{dx}e^{x}=e^{x}, ddxln⁡x=1x\frac{d}{dx}\ln x=\frac1x and ddxax=axln⁡a\frac{d}{dx}a^{x}=a^{x}\ln a:

    f′(x)=5ex−3x+2xln⁡2f'(x)=5e^{x}-\frac{3}{x}+2^{x}\ln 2

    At x=1x=1: f′(1)=5e−3+2ln⁡2≈13.5914−3+1.3863=11.9777f'(1)=5e-3+2\ln 2\approx 13.5914-3+1.3863=11.9777. The ln⁡2\ln 2 belongs to 2x2^{x} alone — it never attaches to exe^{x}.

  3. Q3medium

    Let y=exln⁡xy=e^{x}\ln x for x>0x>0. Find an equation of the tangent line to the curve at x=1x=1, and evaluate y′′(1)y''(1).

    Hint

    ln⁡1=0\ln 1=0 kills exactly one term each time you substitute.

    Show answer

    Answer

    Tangent line y=e(x−1)y=e(x-1); y′′(1)=ey''(1)=e.

    Steps

    Product rule: y′=exln⁡x+ex⋅1x=ex(ln⁡x+1x)y'=e^{x}\ln x+e^{x}\cdot\frac1x=e^{x}\left(\ln x+\frac1x\right).

    At x=1x=1: y(1)=e⋅0=0y(1)=e\cdot 0=0 and y′(1)=e(0+1)=ey'(1)=e(0+1)=e, so through (1,0)(1,0) with slope ee,

    y=e(x−1)y=e(x-1)

    Product rule again: y′′=ex(ln⁡x+1x)+ex(1x−1x2)=ex(ln⁡x+2x−1x2)y''=e^{x}\left(\ln x+\frac1x\right)+e^{x}\left(\frac1x-\frac{1}{x^{2}}\right)=e^{x}\left(\ln x+\frac2x-\frac{1}{x^{2}}\right), so y′′(1)=e(0+2−1)=ey''(1)=e(0+2-1)=e.

  4. Q4medium

    Let y=ln⁡∣x2−4∣y=\ln\left|x^{2}-4\right|. Find y′y', state exactly where your formula is valid, and evaluate y′(1)y'(1) and y′(3)y'(3).

    Show answer

    Answer

    y′=2xx2−4y'=\dfrac{2x}{x^{2}-4} for x≠±2x\ne\pm2; y′(1)=−23y'(1)=-\dfrac23 and y′(3)=65y'(3)=\dfrac65.

    Steps

    Apply ddxln⁡∣u∣=u′u\frac{d}{dx}\ln|u|=\frac{u'}{u} with u=x2−4u=x^{2}-4 and u′=2xu'=2x:

    y′=2xx2−4y'=\frac{2x}{x^{2}-4}

    Valid wherever u≠0u\ne0, so on (−∞,−2)∪(−2,2)∪(2,∞)(-\infty,-2)\cup(-2,2)\cup(2,\infty). The bars are what buy you the middle interval, where x2−4<0x^{2}-4<0 and ln⁡(x2−4)\ln(x^{2}-4) would not exist.

    y′(1)=21−4=−23y'(1)=\dfrac{2}{1-4}=-\dfrac23 and y′(3)=69−4=65y'(3)=\dfrac{6}{9-4}=\dfrac65.

  5. Q5medium

    Use logarithmic differentiation to find y′y' for y=(2x+1)5(x−3)4(x2+4)3y=\frac{(2x+1)^{5}(x-3)^{4}}{\left(x^{2}+4\right)^{3}} and then evaluate y′(0)y'(0) exactly.

    Hint

    Near x=0x=0 the factor x−3x-3 is negative, so take the logarithm of ∣y∣|y|.

    Show answer

    Answer

    y′=(2x+1)5(x−3)4(x2+4)3(102x+1+4x−3−6xx2+4)y'=\dfrac{(2x+1)^{5}(x-3)^{4}}{\left(x^{2}+4\right)^{3}}\left(\dfrac{10}{2x+1}+\dfrac{4}{x-3}-\dfrac{6x}{x^{2}+4}\right), and y′(0)=35132y'(0)=\dfrac{351}{32}.

    Steps

    ln⁡∣y∣=5ln⁡∣2x+1∣+4ln⁡∣x−3∣−3ln⁡(x2+4)\ln|y|=5\ln|2x+1|+4\ln|x-3|-3\ln\left(x^{2}+4\right); the last factor needs no bars since x2+4≥4x^{2}+4\ge4.

    Differentiate, using u′u\frac{u'}{u} on every term:

    y′y=102x+1+4x−3−6xx2+4\frac{y'}{y}=\frac{10}{2x+1}+\frac{4}{x-3}-\frac{6x}{x^{2}+4}

    Multiply by yy and substitute the original expression back.

    At x=0x=0: y(0)=(1)(81)64=8164y(0)=\frac{(1)(81)}{64}=\frac{81}{64} and the bracket is 10−43=26310-\frac43=\frac{26}{3}, so y′(0)=8164⋅263=35132y'(0)=\frac{81}{64}\cdot\frac{26}{3}=\frac{351}{32}.

  6. Q6hard

    Let y=xxy=x^{x} for x>0x>0.

    (a) Explain why neither x⋅x x−1x\cdot x^{\,x-1} nor xxln⁡xx^{x}\ln x is y′y'. (b) Find y′y'. (c) Find the exact minimum point of xxx^{x} on (0,∞)(0,\infty) and justify that it is a minimum.

    Hint

    Check the hypotheses of the two rules you know, then take logarithms of both sides.

    Show answer

    Answer

    (b) y′=xx(ln⁡x+1)y'=x^{x}(\ln x+1). (c) Minimum at x=1ex=\frac1e, value e−1/e≈0.6922e^{-1/e}\approx0.6922.

    Steps

    (a) The power rule is proved for a constant exponent and the axa^{x} rule for a constant base. In xxx^{x} both move, so neither theorem applies; the correct answer is in fact their sum.

    (b) ln⁡y=xln⁡x\ln y=x\ln x, so y′y=ln⁡x+1\frac{y'}{y}=\ln x+1 and

    y′=xx(ln⁡x+1)y'=x^{x}(\ln x+1)

    (c) xx>0x^{x}>0, so y′=0y'=0 only when ln⁡x=−1\ln x=-1, i.e. x=1ex=\frac1e. Since y′<0y'<0 on (0,1e)\left(0,\frac1e\right) and y′>0y'>0 after it, that critical point is the absolute minimum, with value (1e)1/e=e−1/e≈0.6922\left(\frac1e\right)^{1/e}=e^{-1/e}\approx0.6922.

06

On the exam

How this topic is marked
  • Almost every mark here is a chain-rule mark: name uu, write u′u', then apply the rule. Graders look for u′u' appearing, so show it.

  • Domains are examined with the derivative: ln⁡u\ln u needs u>0u>0, ln⁡∣u∣\ln|u| only u≠0u\ne0, and axa^{x} is fine for every real xx.

  • Finish a logarithmic-differentiation question with y′y' written in terms of xx; a line ending at y′y\frac{y'}{y} loses the last marks.

Keep going