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=axlna\frac{d}{dx}a^{x}=a^{x}\ln a, ddxlnx=1x\frac{d}{dx}\ln x=\frac{1}{x} and ddxlogax=1xlna\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=axlna\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

    eueuue^{u}\to e^{u}u', auaulnaua^{u}\to a^{u}\ln a\,u', lnuuu\ln u\to\frac{u'}{u}, logauuulna\log_a u\to\frac{u'}{u\ln a}. Name uu and write uu' before you touch the outer rule.

  3. 3

    Absolute value widens the log rule

    ddxlnu=uu\frac{d}{dx}\ln|u|=\frac{u'}{u} holds wherever u0u\ne0, negative uu included, while lnu\ln u itself needs u>0u>0. Domains are marked separately, so state them.

  4. 4

    Logarithms turn products into sums

    Take lny\ln|y|, split with the log laws, differentiate to get yy\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=evlnuu^{v}=e^{v\ln u} (needs u>0u>0), which gives xx(lnx+1)x^{x}(\ln x+1).

-2-11234-2-112xyy = x + 1y = x − 1(0, 1)(1, 0)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 ddxlnx=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/e
y=xxy=x^{x} falls then rises, so it has a genuine minimum — and y=xx(lnx+1)y'=x^{x}(\ln x+1) locates it in one line: xx>0x^{x}>0 always, so y=0y'=0 exactly when lnx=1\ln x=-1, giving x=1ex=\frac1e and y=e1/e0.692y=e^{-1/e}\approx0.692.
02

Formulas

What to have memorised
  • Natural exponential (chain form)

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

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

  • General exponential

    ddxau=aulna  u\frac{d}{dx}a^{u}=a^{u}\ln a\;u'

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

  • Natural logarithm

    ddxlnu=uu\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

    ddxlnu=uu\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

    ddxlogau=uulna\frac{d}{dx}\log_a u=\frac{u'}{u\ln a}

    Needs a>0a>0, a1a\ne1; change of base leaves lna\ln a downstairs.

  • Variable base and variable exponent

    ddxuv=uv(vlnu+vuu)\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(lnx+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

    limh0ah1h=lna,limh0eh1h=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 y0y\ne0 near the point of interest, then write lny=lnf(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 yy\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=evlnuu^{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=x2x1\frac{d}{dx}2^{x}=x\,2^{\,x-1}

    ✓ Right

    ddx2x=2xln2\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

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

    ✓ Right

    ddxlog2x=1xln2\frac{d}{dx}\log_{2}x=\frac{1}{x\ln 2}

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

  • ✗ Wrong

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

    ✓ Right

    ddx(lnx)2=2lnxx\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 yy=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 yy', not yy\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=e2xy=e^{-2x} (b) y=ln(3x+4)y=\ln(3x+4) (c) y=log5xy=\log_{5}x

    Hint

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

    Show answer

    Answer

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

    Steps

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

    (b) u=3x+4u=3x+4, u=3u'=3, so y=uu=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: log5x=lnxln5\log_{5}x=\dfrac{\ln x}{\ln 5}, and 1ln5\dfrac{1}{\ln 5} is a constant, so y=1xln5y'=\dfrac{1}{x\ln 5} on x>0x>0. The ln5\ln 5 does not cancel.

  2. Q2easy

    Let f(x)=5ex3lnx+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)=5ex3x+2xln2f'(x)=5e^{x}-\dfrac{3}{x}+2^{x}\ln 2; f(1)=5e3+2ln211.9777f'(1)=5e-3+2\ln 2\approx 11.9777.

    Steps

    Domain: exe^{x} and 2x2^{x} are defined for every real xx, but lnx\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}, ddxlnx=1x\frac{d}{dx}\ln x=\frac1x and ddxax=axlna\frac{d}{dx}a^{x}=a^{x}\ln a:

    f(x)=5ex3x+2xln2f'(x)=5e^{x}-\frac{3}{x}+2^{x}\ln 2

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

  3. Q3medium

    Let y=exlnxy=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

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

    Show answer

    Answer

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

    Steps

    Product rule: y=exlnx+ex1x=ex(lnx+1x)y'=e^{x}\ln x+e^{x}\cdot\frac1x=e^{x}\left(\ln x+\frac1x\right).

    At x=1x=1: y(1)=e0=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(x1)y=e(x-1)

    Product rule again: y=ex(lnx+1x)+ex(1x1x2)=ex(lnx+2x1x2)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+21)=ey''(1)=e(0+2-1)=e.

  4. Q4medium

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

    Show answer

    Answer

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

    Steps

    Apply ddxlnu=uu\frac{d}{dx}\ln|u|=\frac{u'}{u} with u=x24u=x^{2}-4 and u=2xu'=2x:

    y=2xx24y'=\frac{2x}{x^{2}-4}

    Valid wherever u0u\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 x24<0x^{2}-4<0 and ln(x24)\ln(x^{2}-4) would not exist.

    y(1)=214=23y'(1)=\dfrac{2}{1-4}=-\dfrac23 and y(3)=694=65y'(3)=\dfrac{6}{9-4}=\dfrac65.

  5. Q5medium

    Use logarithmic differentiation to find yy' for y=(2x+1)5(x3)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 x3x-3 is negative, so take the logarithm of y|y|.

    Show answer

    Answer

    y=(2x+1)5(x3)4(x2+4)3(102x+1+4x36xx2+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

    lny=5ln2x+1+4lnx33ln(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+44x^{2}+4\ge4.

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

    yy=102x+1+4x36xx2+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 1043=26310-\frac43=\frac{26}{3}, so y(0)=8164263=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 xxx1x\cdot x^{\,x-1} nor xxlnxx^{x}\ln x is yy'. (b) Find yy'. (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(lnx+1)y'=x^{x}(\ln x+1). (c) Minimum at x=1ex=\frac1e, value e1/e0.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) lny=xlnx\ln y=x\ln x, so yy=lnx+1\frac{y'}{y}=\ln x+1 and

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

    (c) xx>0x^{x}>0, so y=0y'=0 only when lnx=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=e1/e0.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 uu', then apply the rule. Graders look for uu' appearing, so show it.

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

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

Keep going