Grade 12 IB Math is live, AA and AI · see the IB course

Grade 12 · MCV4U · Calculus & Vectors

MCV4U: Derivatives of e^x and a^x

exe^x is the one function that is its own derivative: at every point, the slope of y=exy = e^x equals its height. Every other exponential function differentiates to itself times a constant.

How It Works

The two rules.

ddxex=ex,ddxax=axln⁡a\frac{d}{dx}e^x = e^x, \qquad \frac{d}{dx}a^x = a^x \ln a

The second follows from the first. Since a=eln⁡aa = e^{\ln a}, you can write ax=exln⁡aa^x = e^{x\ln a}, and the chain rule brings down the constant ln⁡a\ln a. For a=ea = e, ln⁡e=1\ln e = 1, and the two rules agree.

With the chain rule. When the exponent is anything other than plain xx, multiply by the derivative of the exponent:

ddxeg(x)=eg(x)g′(x),ddxag(x)=ag(x)ln⁡a⋅g′(x)\frac{d}{dx}e^{g(x)} = e^{g(x)}g'(x), \qquad \frac{d}{dx}a^{g(x)} = a^{g(x)}\ln a \cdot g'(x)

So ddxe3x=3e3x\frac{d}{dx}e^{3x} = 3e^{3x} and ddxex2=2xex2\frac{d}{dx}e^{x^2} = 2xe^{x^2}. The exponent stays exactly as it was.

The common mistake is using the power rule on an exponential. The power rule is for a variable base and a constant exponent, like x5x^5. Here the base is constant and the exponent varies, so ddx2x\frac{d}{dx}2^x is 2xln⁡22^x \ln 2, not x⋅2x−1x \cdot 2^{x - 1}.

Solving f′(x)=0f'(x) = 0. An exponential is never zero, so when a derivative factors as eg(x)e^{g(x)} times something, only the other factor can be zero. Factor out the exponential and solve what is left. This is how you find the turning points of a function like x2e−xx^2e^{-x}.

Growth models. For P(t)=P0⋅btkP(t) = P_0 \cdot b^{\frac{t}{k}}, the rate of change is P′(t)=P0⋅btk⋅ln⁡bkP'(t) = P_0 \cdot b^{\frac{t}{k}} \cdot \frac{\ln b}{k}. The rate is proportional to the amount present, which is what exponential growth means.

Leave ln⁡\ln values exact unless the question asks for a decimal.

5 Worked Examples

Easy first, test level last. Try each one on paper, then open the solution.

  1. Easy

    Differentiate y=4e3x+x2y = 4e^{3x} + x^2.
    Show solution
    1. Chain rule on the exponential: ddx4e3x=4e3x⋅3=12e3x\frac{d}{dx}4e^{3x} = 4e^{3x} \cdot 3 = 12e^{3x}.
    2. y′=12e3x+2xy' = 12e^{3x} + 2x.

    Answer: y′=12e3x+2xy' = 12e^{3x} + 2x

  2. Easy

    Differentiate y=32xy = 3^{2x}.
    Show solution
    1. Base 33, exponent 2x2x with derivative 22.
    2. y′=32x⋅ln⁡3⋅2y' = 3^{2x} \cdot \ln 3 \cdot 2.

    Answer: y′=2ln⁡3⋅32xy' = 2\ln 3 \cdot 3^{2x}

  3. Medium

    Differentiate y=x2e−xy = x^2e^{-x} and find where the tangent line is horizontal.
    Show solution
    1. Product rule: y′=2xe−x+x2⋅(−e−x)y' = 2xe^{-x} + x^2 \cdot (-e^{-x}).
    2. Factor: y′=xe−x(2−x)y' = xe^{-x}(2 - x).
    3. e−x>0e^{-x} > 0, so y′=0y' = 0 only when x=0x = 0 or x=2x = 2.
    4. y(0)=0y(0) = 0 and y(2)=4e−2y(2) = 4e^{-2}.

    Answer: y′=xe−x(2−x)y' = xe^{-x}(2 - x); horizontal tangents at (0,0)(0, 0) and (2,4e−2)(2, 4e^{-2}).

  4. Medium

    Find the equation of the tangent line to y=e2x−4y = e^{2x - 4} at x=2x = 2.
    Show solution
    1. Point: y(2)=e0=1y(2) = e^0 = 1.
    2. y′=2e2x−4y' = 2e^{2x - 4}, so the slope is 2e0=22e^0 = 2.
    3. y−1=2(x−2)y - 1 = 2(x - 2), so y=2x−3y = 2x - 3.

    Answer: y=2x−3y = 2x - 3

  5. Test level

    A bacteria culture grows as P(t)=500⋅2t3P(t) = 500 \cdot 2^{\frac{t}{3}}, where tt is in hours. Find the growth rate at t=6t = 6, and when the growth rate reaches 10001000 bacteria per hour.
    Show solution
    1. P′(t)=500⋅2t3⋅ln⁡2⋅13P'(t) = 500 \cdot 2^{\frac{t}{3}} \cdot \ln 2 \cdot \frac{1}{3}.
    2. P′(6)=500⋅4⋅ln⁡23=2000ln⁡23≈462P'(6) = 500 \cdot 4 \cdot \frac{\ln 2}{3} = \frac{2000\ln 2}{3} \approx 462 bacteria per hour.
    3. Set P′(t)=1000P'(t) = 1000: 2t3=6ln⁡22^{\frac{t}{3}} = \frac{6}{\ln 2}.
    4. Take logarithms: t3ln⁡2=ln⁡(6ln⁡2)\frac{t}{3}\ln 2 = \ln\left(\frac{6}{\ln 2}\right), so t=3ln⁡(6ln⁡2)ln⁡2≈9.34t = \frac{3\ln\left(\frac{6}{\ln 2}\right)}{\ln 2} \approx 9.34.

    Answer: About 462462 bacteria per hour at t=6t = 6; the rate reaches 10001000 per hour at t≈9.34t \approx 9.34 hours.

Learn It on Martian Lab

Martian Lab teaches this in the Derivatives of Logarithmic & Exponential Functions lesson of its MCV4U Derivatives of Trig, Exp and Log unit. Watch it, then take the Derivatives of Trig, Exp and Log practice tests to see if it stuck.

Watch the Derivatives of Logarithmic & Exponential Functions lesson free

Start Practicing

No credit card required to start.

Get started