4D

Integrating exponential functions

Standard integrals of e^x and e^(ax+b), definite integrals, finding a function from its derivative, the reverse chain rule with f'(x)e^f(x), and finding an integral from a given derivative.

Every differentiation rule from 4B, read backwards, is an integration rule. Since $e^x$ is its own derivative, it is also its own primitive, and that makes exponential integrals some of the easiest in the course.

Standard forms

Since $\dfrac{d}{dx}e^{ax + b} = ae^{ax + b}$, dividing by $a$ undoes the factor that the chain rule brings out.

Integrals of exponentials
$$\int e^x\,dx = e^x + C \qquad\qquad \int e^{ax + b}\,dx = \frac1a e^{ax + b} + C$$
Example 1●

Find (a) $\displaystyle\int e^{3x}\,dx$ (b) $\displaystyle\int 6e^{-2x}\,dx$ (c) $\displaystyle\int (e^x + 1)^2\,dx$.

(a) $\tfrac13 e^{3x} + C$
a = 3, so divide by 3.
(b) $-3e^{-2x} + C$
a = −2. Dividing 6 by −2 gives −3.
(c) $\displaystyle\int (e^{2x} + 2e^x + 1)\,dx = \tfrac12 e^{2x} + 2e^x + x + C$
Expand first: (eˣ)² = e²ˣ by the index laws.

Definite integrals

Example 2●●

Evaluate (a) $\displaystyle\int_0^1 e^x\,dx$ (b) $\displaystyle\int_0^{\ln 2} e^{2x}\,dx$.

(a) $\Big[e^x\Big]_0^1 = e - 1 \approx 1.72$
Remember e⁰ = 1, not 0.
(b) $\Big[\tfrac12 e^{2x}\Big]_0^{\ln 2} = \tfrac12(4 - 1) = \tfrac32$
e^(2 ln 2) = (e^(ln 2))² = 2² = 4.

Using an initial condition

Example 3●●

$f'(x) = e^{2x} + 1$ and $f(0) = 3$. Find $f(x)$.

$f(x) = \tfrac12 e^{2x} + x + C$
$\tfrac12 + 0 + C = 3$, so $C = \tfrac52$, and $f(x) = \tfrac12 e^{2x} + x + \tfrac52$.
Substitute x = 0. Again e⁰ = 1.

The reverse chain rule

Since $\dfrac{d}{dx}e^{f(x)} = f'(x)e^{f(x)}$, reading backwards gives:

Reverse chain rule for exponentials
$$\int f'(x)\,e^{f(x)}\,dx = e^{f(x)} + C$$
Example 4●●

Find (a) $\displaystyle\int 2xe^{x^2}\,dx$ (b) $\displaystyle\int xe^{-x^2}\,dx$.

(a) $e^{x^2} + C$
2x is the derivative of the power x².
(b) $-\tfrac12 \displaystyle\int (-2x)e^{-x^2}\,dx = -\tfrac12 e^{-x^2} + C$
The derivative of −x² is −2x. Balance with −½ outside.

Integrals from a given derivative

Some integrals, like $\displaystyle\int xe^x\,dx$, fit none of the standard forms. Exam questions then give a derivative first, as a hint.

Example 5●●●

Differentiate $xe^x$. Hence evaluate $\displaystyle\int_0^1 xe^x\,dx$.

$\dfrac{d}{dx}(xe^x) = e^x + xe^x$
Product rule with u = x and v = eˣ.
So $\displaystyle\int (e^x + xe^x)\,dx = xe^x + C$.
Reverse it: integrating a derivative gives back the function.
$\displaystyle\int xe^x\,dx = xe^x - \int e^x\,dx = xe^x - e^x + C$
The eˣ part can be integrated on its own, so move it to the other side.
$\displaystyle\int_0^1 xe^x\,dx = \Big[xe^x - e^x\Big]_0^1 = (e - e) - (0 - 1) = 1$
Apply the limits. At x = 1 the two terms cancel; at x = 0 we get 0 − 1.

Your turn

Evaluate $\displaystyle\int_0^1 xe^{x^2}\,dx$, giving the exact answer.

Show the working

Balance with $\tfrac12$: $\tfrac12\displaystyle\int_0^1 2xe^{x^2}\,dx = \tfrac12\Big[e^{x^2}\Big]_0^1 = \tfrac12(e - 1)$.

Flashcards
$displaystyleint e^{ax + b},dx$
$\dfrac1a e^{ax + b} + C$
$displaystyleint f'(x)e^{f(x)},dx$
$e^{f(x)} + C$
Practice
  1. $\displaystyle\int e^{3x}\,dx =$

  2. Evaluate $\displaystyle\int_0^1 e^x\,dx$, to two decimal places.

  3. $\displaystyle\int e^{-x}\,dx =$

  4. Evaluate $\displaystyle\int_0^{\ln 2} e^{2x}\,dx$.

  5. $f'(x) = e^{2x} + 1$ and $f(0) = 3$. In $f(x) = \tfrac12 e^{2x} + x + C$, find $C$.

  6. $\displaystyle\int 2xe^{x^2}\,dx =$

  7. Evaluate $\displaystyle\int_0^2 xe^{x^2}\,dx$, to two decimal places.

  8. Given $\dfrac{d}{dx}(xe^x) = xe^x + e^x$, evaluate $\displaystyle\int_0^2 xe^x\,dx$, to two decimal places.

  9. Exam style: evaluate $\displaystyle\int_0^2 (e^x + e^{-x})\,dx$, to two decimal places.

  10. Exam style: $\displaystyle\int_0^k e^{2x}\,dx = 4$. Find $k$, to two decimal places.

Formula sheet