A-level Mathematics

8.5 Integration by substitution and by parts — Learn

Prerequisites: the chain rule and the product rule from Section 7.7; standard integrals and the power rule for integration from Section 8.1.

By the end of this section you can: use one substitution to turn an integral into a standard form; change the limits of a definite integral when you substitute; integrate a product by parts; and choose between the two methods.

1. Substitution reverses the chain rule

The chain rule differentiates a function of a function. Substitution runs it backwards. If u=g(x)u = g(x), then

du=g′(x)dx,du = g'(x)dx,

and the integral becomes

∫f(g(x))g′(x)dx=∫f(u)du.\int f\big(g(x)\big)g'(x)dx = \int f(u)du.

Choose uu to be the inside function whose derivative also appears in the integral. Then replace every part of the integral, including dxdx, and finish with a standard integral.

Example 1. Find ∫2x(x2+1)3dx\displaystyle\int 2x(x^2 + 1)^3dx.

Let u=x2+1u = x^2 + 1. Then du=2xdxdu = 2xdx, so 2xdx=du2xdx = du. The integral becomes

∫u3du=u44+C.\int u^3du = \frac{u^4}{4} + C.

Substitute back:

∫2x(x2+1)3dx=(x2+1)44+C.\int 2x(x^2 + 1)^3dx = \frac{(x^2 + 1)^4}{4} + C.

Example 2. Find ∫3x2ex3dx\displaystyle\int 3x^2e^{x^3}dx.

Let u=x3u = x^3, so du=3x2dxdu = 3x^2dx. Then

∫3x2ex3dx=∫eudu=eu+C=ex3+C.\int 3x^2e^{x^3}dx = \int e^udu = e^u + C = e^{x^3} + C.

Example 3. Find ∫2xx2+1dx\displaystyle\int \frac{2x}{x^2 + 1}dx.

Let u=x2+1u = x^2 + 1, so du=2xdxdu = 2xdx. Then

∫2xx2+1dx=∫1udu=ln⁡u+C=ln⁡(x2+1)+C.\int \frac{2x}{x^2 + 1}dx = \int \frac{1}{u}du = \ln u + C = \ln(x^2 + 1) + C.

Definite integrals: change the limits

For a definite integral, change the limits to values of uu as you substitute. Then you never need to return to xx.

Example 4. Evaluate ∫012x(x2+1)3dx\displaystyle\int_0^1 2x(x^2 + 1)^3dx.

Let u=x2+1u = x^2 + 1, so du=2xdxdu = 2xdx. Change the limits:

Then

∫012x(x2+1)3dx=∫12u3du=[u44]12=164−14=154.\int_0^1 2x(x^2 + 1)^3dx = \int_1^2 u^3du = \left[\frac{u^4}{4}\right]_1^2 = \frac{16}{4} - \frac{1}{4} = \frac{15}{4}.

2. Integration by parts reverses the product rule

The product rule differentiates a product. Integration by parts runs it backwards. For two functions uu and vv,

∫udvdxdx=uv−∫vdudxdx.\int u\frac{dv}{dx}dx = uv - \int v\frac{du}{dx}dx.

In the shorter form, with dv=v′(x)dxdv = v'(x)dx and du=u′(x)dxdu = u'(x)dx,

∫udv=uv−∫vdu.\int udv = uv - \int vdu.

Choose uu to be the part that becomes simpler when differentiated. A useful order to try is logarithm, inverse trigonometric, algebraic, trigonometric, exponential. The first type on that list is usually the best choice for uu.

Example 5. Find ∫xe2xdx\displaystyle\int xe^{2x}dx.

Take u=xu = x and dvdx=e2x\dfrac{dv}{dx} = e^{2x}. Then dudx=1\dfrac{du}{dx} = 1 and v=12e2xv = \dfrac{1}{2}e^{2x}. So

∫xe2xdx=x×12e2x−∫12e2x×1dx=12xe2x−14e2x+C.\int xe^{2x}dx = x \times \frac{1}{2}e^{2x} - \int \frac{1}{2}e^{2x} \times 1dx = \frac{1}{2}xe^{2x} - \frac{1}{4}e^{2x} + C.

Taking out the common factor e2xe^{2x} gives

∫xe2xdx=e2x(2x−1)4+C.\int xe^{2x}dx = \frac{e^{2x}(2x - 1)}{4} + C.

Example 6. Find ∫xsin⁡xdx\displaystyle\int x\sin xdx.

Take u=xu = x and dvdx=sin⁡x\dfrac{dv}{dx} = \sin x. Then dudx=1\dfrac{du}{dx} = 1 and v=−cos⁡xv = -\cos x. So

∫xsin⁡xdx=−xcos⁡x−∫(−cos⁡x)dx=−xcos⁡x+sin⁡x+C.\int x\sin xdx = -x\cos x - \int (-\cos x)dx = -x\cos x + \sin x + C.

Example 7. Find ∫ln⁡xdx\displaystyle\int \ln xdx.

Write the integrand as ln⁡x×1\ln x \times 1. Take u=ln⁡xu = \ln x and dvdx=1\dfrac{dv}{dx} = 1. Then dudx=1x\dfrac{du}{dx} = \dfrac{1}{x} and v=xv = x. So

∫ln⁡xdx=xln⁡x−∫x×1xdx=xln⁡x−∫1dx=xln⁡x−x+C.\int \ln xdx = x\ln x - \int x \times \frac{1}{x}dx = x\ln x - \int 1dx = x\ln x - x + C.

Example 8. Find ∫x2exdx\displaystyle\int x^2e^xdx.

Take u=x2u = x^2 and dvdx=ex\dfrac{dv}{dx} = e^x. Then dudx=2x\dfrac{du}{dx} = 2x and v=exv = e^x, so

∫x2exdx=x2ex−2∫xexdx.\int x^2e^xdx = x^2e^x - 2\int xe^xdx.

The new integral needs parts again, with u=xu = x and v=exv = e^x:

∫xexdx=xex−∫exdx=xex−ex.\int xe^xdx = xe^x - \int e^xdx = xe^x - e^x.

Substitute this back:

∫x2exdx=x2ex−2(xex−ex)+C=ex(x2−2x+2)+C.\int x^2e^xdx = x^2e^x - 2\left(xe^x - e^x\right) + C = e^x\left(x^2 - 2x + 2\right) + C.

Example 9. Evaluate ∫01xexdx\displaystyle\int_0^1 xe^xdx.

By parts with u=xu = x and v=exv = e^x,

∫xexdx=xex−ex+C.\int xe^xdx = xe^x - e^x + C.

To evaluate the definite integral, put the limits on the whole antiderivative:

∫01xexdx=[xex−ex]01=(e−e)−(0−1)=1.\int_0^1 xe^xdx = \Big[xe^x - e^x\Big]_0^1 = (e - e) - (0 - 1) = 1.

Watch out. Four mistakes are common.

Not replacing dxdx. When you substitute u=g(x)u = g(x), you must replace dxdx as well. If any xx or dxdx remains, the substitution is unfinished. Write du=g′(x)dxdu = g'(x)dx and use it.

Forgetting to change the limits. For a definite integral, convert the xx-limits to uu-limits before integrating. Leaving the old limits in place gives the wrong value.

Choosing the wrong part for uu in by parts. If the new integral is harder than the first, swap the choice. Putting the polynomial as uu makes it simpler; putting the exponential as uu does not.

Dropping the minus sign in by parts. The formula is uv−∫vduuv - \int vdu, with a minus. Re-check: differentiate your answer and compare it with the original integrand.

You should now be able to

Settings

Colour scheme

Applies to every book you read here.

Reading theme

Applies to every book you read here.