Lesson 3 of 8 · 18 min

Differentiating e to the power of a function

Use the rule ddxef(x)=f′(x)ef(x)\frac{d}{dx}e^{f(x)} = f'(x)e^{f(x)} to differentiate ekxe^{kx}, eax+be^{ax + b}, e to a polynomial, and sums and multiples of these, simplifying with index laws first where it helps.

What you will be able to do

  • Differentiate ekxe^{kx} and eax+be^{ax + b} in one step.
  • Use ddx(ef(x))=f′(x) ef(x)\frac{d}{dx}\left(e^{f(x)}\right) = f'(x)\,e^{f(x)} for any differentiable index f(x)f(x).
  • Rewrite expressions with index laws before differentiating them.

The graph of y=e2xy = e^{2x} is the graph of y=exy = e^x squashed horizontally by a factor of 2. Squashing a curve sideways makes it twice as steep at the same height. So you would expect the gradient of e2xe^{2x} to be twice its height, 2e2x2e^{2x}. Test that guess.

Interactive

The gradient of e²ˣ

At x=0x = 0 the height is 1 and the gradient is 2. Drag the point: the gradient is always twice the height.

The chain rule from Unit 2 explains it. Write y=euy = e^u with u=2xu = 2x. Then dydu=eu\frac{dy}{du} = e^u and dudx=2\frac{du}{dx} = 2, so

dydx=dydu×dudx=eu×2=2e2x.\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx} = e^u \times 2 = 2e^{2x}.

The same argument works for any index.

Key idea

The derivative of e to a function

ddx(ef(x))=f′(x) ef(x)\frac{d}{dx}\left(e^{f(x)}\right) = f'(x)\,e^{f(x)}

Copy ef(x)e^{f(x)} exactly as it is, then multiply by the derivative of the index. In particular,

ddx(ekx)=kekxandddx(eax+b)=aeax+b.\frac{d}{dx}\left(e^{kx}\right) = ke^{kx} \qquad \text{and} \qquad \frac{d}{dx}\left(e^{ax + b}\right) = ae^{ax + b}.

Differentiate y=e5xy = e^{5x}.

fracdydx =
Reads asYour answer shows here as maths.

Constant multiples and sums behave as they always have: differentiate term by term and keep the constants. For example,

ddx(3e−2x+x2)=3×(−2)e−2x+2x=−6e−2x+2x.\frac{d}{dx}\left(3e^{-2x} + x^2\right) = 3 \times (-2)e^{-2x} + 2x = -6e^{-2x} + 2x.

Worked example

Differentiate three exponential functions

  • Simple familiar
  • Technology free

Differentiate with respect to xx:

(a) y=4e−3xy = 4e^{-3x} \qquad (b) y=ex2−2xy = e^{x^2 - 2x} \qquad (c) y=3e2x−e−x+x2y = 3e^{2x} - e^{-x} + x^2

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Copy ef(x)e^{f(x)} unchanged.

  2. Multiply by the derivative of the index, f′(x)f'(x).

  3. Keep constant multiples, and differentiate sums term by term.

Watch out for

  • Losing the negative: ddx(−e−x)=+e−x\frac{d}{dx}\left(-e^{-x}\right) = +e^{-x}, two negatives make a positive.

  • Changing the index: the derivative of ex2−2xe^{x^2 - 2x} still contains ex2−2xe^{x^2 - 2x}.

Determine f′(x)f'(x) for f(x)=ex2+1f(x) = e^{x^2 + 1}.

f'(x) =
Reads asYour answer shows here as maths.

Sometimes an expression is not written as a sum of exponentials, but the index laws can make it one. Three moves cover most cases:

  • divide each term: e3x+4ex=e2x+4e−x\frac{e^{3x} + 4}{e^x} = e^{2x} + 4e^{-x};
  • expand: (ex+1)2=e2x+2ex+1\left(e^x + 1\right)^2 = e^{2x} + 2e^x + 1;
  • rewrite roots and constants: ex=ex2\sqrt{e^x} = e^{\frac{x}{2}} and ex+2=e2×exe^{x + 2} = e^2 \times e^x, where e2e^2 is just a constant.

Worked example

Expand, then differentiate (ex+e−x)2\left(e^x + e^{-x}\right)^2

  • Complex familiar
  • Technology free

Let f(x)=(ex+e−x)2f(x) = \left(e^x + e^{-x}\right)^2.

(a) Show that f(x)=e2x+2+e−2xf(x) = e^{2x} + 2 + e^{-2x}.

(b) Hence find f′(x)f'(x), and show that the graph of y=f(x)y = f(x) has a horizontal tangent at x=0x = 0.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Rewrite the function as a sum of exponentials with index laws.

  2. Differentiate each term.

  3. Substitute to find the gradient.

Watch out for

  • Writing (ex+e−x)2=e2x+e−2x\left(e^x + e^{-x}\right)^2 = e^{2x} + e^{-2x}: the middle term 2exe−x=22e^x e^{-x} = 2 is missing.

  • Writing (ex)2=ex2\left(e^x\right)^2 = e^{x^2}: a power of a power multiplies the indices, giving e2xe^{2x}.

Differentiate y=e4x+1e2xy = \frac{e^{4x} + 1}{e^{2x}}.

fracdydx =
Reads asYour answer shows here as maths.

Common mistake

Three ways to get it wrong

For y=e3xy = e^{3x}:

  • dydx=e3x\frac{dy}{dx} = e^{3x} forgets the derivative of the index;
  • dydx=3e2x\frac{dy}{dx} = 3e^{2x} lowers the index as if it were the power rule;
  • dydx=3xe3x−1\frac{dy}{dx} = 3xe^{3x - 1} applies the power rule to a variable index.

The only correct answer is 3e3x3e^{3x}.

Why not just use the power rule?

The power rule ddx(xn)=nxn−1\frac{d}{dx}\left(x^n\right) = nx^{n - 1} is for a variable base and a constant index. In exe^x the base is a constant and the index is the variable, which is a completely different function. Compare x2x^2 (a parabola) with 2x2^x (an exponential): one grows like a square, the other doubles every step. Their derivatives have to be different too.

Exam tip

Simplest form

QCAA questions often ask for a derivative "in simplest form". Collect like terms and, when every term shares a factor, take it out: 6e3x−3ex6e^{3x} - 3e^x is tidier as 3ex(2e2x−1)3e^x\left(2e^{2x} - 1\right). A factored form is also what you need to solve f′(x)=0f'(x) = 0 later.

Summary

  • ddx(ef(x))=f′(x) ef(x)\frac{d}{dx}\left(e^{f(x)}\right) = f'(x)\,e^{f(x)}: copy the exponential, multiply by the derivative of the index.

  • ddx(ekx)=kekx\frac{d}{dx}\left(e^{kx}\right) = ke^{kx} and ddx(eax+b)=aeax+b\frac{d}{dx}\left(e^{ax+b}\right) = ae^{ax+b}.

  • The rule is the chain rule with y=euy = e^u and u=f(x)u = f(x).

  • Differentiate sums term by term and keep constant multiples.

  • Use index laws to split quotients, expand squares and rewrite roots before differentiating.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 3 of 80% read

Save your progress with a free account