They're doing a substitution (better: rewriting the integral). But you can also do this: you can calculate directly, but because the exponent is now you've to do a substitution, let then and so the integral becomes:

, you can calculate this integral directly, they do the same, because you can write: