Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

When we know an integral

exd ⁣x=ex+c\int e^x \d{x} = e^x + c

we can evaluate related integrals like:

exd ⁣x=ex+c\int e^{-x} \d{x} = -e^{-x} + c

by making a substitution. Specifically, we define a new variable u, calculate its differential, and then replace both. For example, in this case, let u=xu = -x. Then, d ⁣u=d ⁣x\d{u} = -\d{x}. Equivalently, x=ux = -u and d ⁣x=d ⁣u\d{x} = -\d{u} so

exd ⁣x=eud ⁣u=eu+c=ex+c\int e^{-x} \d{x} = -\int e^u \d{u} = -e^u + c = -e^{-x} + c

Let’s do a more complicated example:

xex2d ⁣x\int x e^{x^2} \d{x}

Let u=x2u=x^2 so d ⁣u=2xd ⁣x\d{u} = 2x \d{x}. Then,

ex2xd ⁣x=eu12d ⁣u=12eu+c\begin{align} \int e^{x^2} x\d{x} = \int e^u \cdot \frac{1}{2}\d{u} = \frac{1}{2} e^u + c \end{align}

Plugging u back in gives the final answer:

xex2d ⁣x=12ex2+c\int xe^{x^2} \d{x} = \frac{1}{2}e^{x^2} + c