Change Variables in an Integral

Because I can never friggin’ remember. Here’s an example:

K = \int_1^2 x dx = 3/2

OK.

z = e^x
x = ln z
dx = dz / z
K = \int_e^{e^2} (ln z) (dz / z)

Which indeed numerically evaluates to the right thing.

That is, given an integral in terms of x, and wishing to change to f(x):

  1. Let g = (f inverse): such that x = g(z).
  2. Replace integrand using g and dg/dz.
  3. Replace limits a, b with f(a), f(b). Dimensionally, it must be so.

Questions or comments? For better or worse this website isn’t interactive, so send me an email or, uh, Toot me.

To get notified of new posts, try subscribing to my lightweight newsletter or my RSS/Atom feed. No thirsty influencering — you get alerts about what I’m writing; I get warm fuzzies from knowing that someone’s reading!

See a list of all how-to guides.

On GitHub you can propose a revision to this guide or view its revision history.