Let's use the substitution u=ex. There are a few reasons to think this is a good choice. It's an “inside function," in that if we let f(x)=ex, then f(ex)=eex, which is a piece of our integrand. Also its derivative, ex, is multiplied by the rest of the integrand, since e2x=ex⋅ex .
Let u=ex, du=exdx. When x=0, u=1, and when x=1, u=e.
∫01e2xeexdxThis is more familiar. We use integration by parts with dv=eu du, v=eu. Conveniently, the “u" we brought in with the substitution is what we want to use for the “u" in integration by parts, so we don’t have to change the names of our variables.=∫01exeexexdx=∫1eueu du=[ueu]1e−∫1eeu du=e⋅ee−e−ee+e=ee(e−1)