How to use u-substitution to evaluate integrals

An integral gets easier when we can give a complicated expression a shorter name. With u-substitution, we name an inside expression and look for its derivative elsewhere in the integral. Let’s work through what that looks like in four different examples.

Choose u and match its derivative

U-substitution reverses the chain rule. Choose an inside expression for u, differentiate it, and match du to the remaining factor. A constant multiplier can go outside the integral. After integrating in u, substitute the original expression back in.

Example 1: A power with an inside expression

∫x(x2+1)4dx

Choose u=x2+1. Then du=2xdx, so the factor xdx becomes 12du.

∫x(x2+1)4dx=12∫u4du=110u5+C=110(x2+1)5+C

Example 2: A denominator and its derivative

In ∫xx2+1dx, the denominator has derivative 2x, which matches the numerator up to a factor of two. The same substitution turns this into a logarithm.

u=x2+1du=2xdx∫xx2+1dx=12∫1udu=12ln|u|+C=12ln(x2+1)+C

Here x2+1 is positive for every real x, so we can drop the absolute value bars after substituting back.

Example 3: An exponent with a trig derivative

∫esinxcosxcos(2x)dx

Let u=sinxcosx. The product rule gives cos2x-sin2x, which is cos(2x). That is exactly the factor multiplying the exponential.

du=cos(2x)dx∫eudu=eu+C=esinxcosx+C

Example 4: Rewrite a trigonometric integrand

For ∫tanxcosxdx, rewrite tangent as sinxcosx. That gives a squared cosine below and a sine factor above.

∫tanxcosxdx=∫sinxcos2xdxu=cosxdu=-sinxdx-∫u-2du=u-1+C=1cosx+C

The last result applies on intervals where cosx≠0. Differentiate your answer to check the substitution. For example, differentiating 110(x2+1)5 brings down a factor of 5 and an inside derivative of 2x, giving back x(x2+1)4.