Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Integrals like

xe6xd ⁣x\int x e^{-6 x} \d{x}

are not solvable by substitution, but they look like they are related closely enough that you may be able to! What to do here? Recall the product rule for two functions u and v, then integrate:

(uv)=uv+vuuv=ud ⁣v+vd ⁣u\begin{align} (uv)' &= uv' + v u' \\ uv &= \int u \d{v} + \int v \d{u} \end{align}

Rearranging gives the familiar form:

Let’s try this for the integral above with

u=xd ⁣v=e6xd ⁣xd ⁣u=d ⁣xv=e6x6\begin{align} u &= x & \d{v} &= e^{-6x} \d{x} \\ \d{u} &= \d{x} & v &= -\frac{e^{-6x}}{6} \end{align}

so

xe6xd ⁣x=xe6x616e6xd ⁣x=xe6x6+16e6xd ⁣x=xe6x6e6x36+c\begin{align} \int x e^{-6x} \d{x} &= x\frac{-e^{-6x}}{6} - \int\frac{-1}{6} e^{-6x} \d{x} \\ &= -\frac{xe^{-6x}}{6} + \frac{1}{6} \int e^{-6x} \d{x} \\ &= -\frac{xe^{-6x}}{6} - \frac{e^{-6x}}{36} + c \end{align}

Choosing parts

The heart of the technique is making a suitable choice for u and d ⁣v\d{v}. The acronym L.I.A.T.E. can help make this choice:

Example 1

Evaluate

(3x+5)cos(x4)d ⁣x\int(3x+5)\cos\left(\frac{x}{4}\right) \d{x}

Let

u=3x+5d ⁣v=cos(x4)d ⁣xd ⁣u=3d ⁣xv=4sin(x4)\begin{align} u &= 3x+5 & \d{v} &= \cos\left(\frac{x}{4}\right) \d{x} \\ \d{u} &= 3 \d{x} & v &= 4\sin\left(\frac{x}{4}\right) \end{align}

so:

(3x+5)cos(x4)d ⁣x=(3x+5)[4sin(x4)]4sin(x4)3d ⁣x=(12x+20)sin(x4)12sin(x4)d ⁣x=(12x+20)sin(x4)+48cos(x4)+c\begin{align} \int(3x+5)\cos\left(\frac{x}{4}\right) \d{x} &= (3x+5)\left[4\sin\left(\frac{x}{4}\right)\right] - \int 4 \sin \left(\frac{x}{4}\right) 3 \d{x} \\ &= (12x+20) \sin\left(\frac{x}{4}\right) - 12\int\sin\left(\frac{x}{4}\right) \d{x} \\ &= (12x+20) \sin\left(\frac{x}{4}\right) + 48\cos\left(\frac{x}{4}\right) + c \end{align}

Example 2

Evaluate

lnxd ⁣x\int \ln x \d{x}

Let

u=lnxd ⁣v=d ⁣xd ⁣u=1xd ⁣xv=x\begin{align} u &= \ln x & \d{v} &= \d{x} \\ \d{u} &= \frac{1}{x} \d{x} & v &= x \end{align}

so:

lnxd ⁣x=xlnx1xxd ⁣x=xlnxd ⁣x=xlnxx+c\begin{align} \int \ln x \d{x} &= x \ln x - \int\frac{1}{x} x \d{x} \\ &= x \ln x - \int \d{x} \\ &= x \ln x - x + c \\ \end{align}

Example 3

Evaluate

x5x3+1d ⁣x\int x^5 \sqrt{x^3+1} \d{x}

Let

u=x3d ⁣v=x2x3+1d ⁣xd ⁣u=3x2d ⁣xv=29(x3+1)3/2\begin{align} u &= x^3 & \d{v} &= x^2\sqrt{x^3+1} \d{x} \\ \d{u} &= 3x^2 \d{x} & v &= \frac{2}{9}(x^3+1)^{3/2} \end{align}

so:

(x5)((x3+1))dx=x329(x3+1)3/2[29(x3+1)3/2]3x2dx=29x3(x3+1)3/22925(x3+1)5/2+c=29x3(x3+1)3/2445(x3+1)5/2+c\begin{align} \int(x^5)(\sqrt(x^3+1))dx &= x^3\frac{2}{9}(x^3+1)^{3/2} - \int\left[\frac{2}{9}(x^3+1)^{3/2}\right]3x^2dx \\ &= \frac{2}{9}x^3(x^3+1)^{3/2} - \frac{2}{9}\cdot\frac{2}{5}(x^3+1)^{5/2} + c \\ &= \frac{2}{9}x^3(x^3+1)^{3/2} - \frac{4}{45}(x^3+1)^{5/2} + c \end{align}

Tabular method

To integrate

x4ex/2d ⁣x\int x^4 e^{x/2} \d{x}

by parts, let

u=x4d ⁣v=ex/2d ⁣u=4x3d ⁣xv=2ex/2\begin{align} u &= x^4 & \d{v} &= e^{x/2} \\ \d{u} &= 4x^3 \d{x} & v &= 2e^{x/2} \end{align}

which allows:

x4ex/2d ⁣x=2x4ex/28x3ex/2d ⁣x\int x^4e^{x/2} \d{x} = 2 x^4 e^{x/2} - \int 8 x^3 e^{x/2} \d{x}

We will need to integrate by parts again, and again, and again... but there is a shortcut! Make a staggered table. Differentiate u repeatedly until you get a 0 in the last row. Then, integrate d ⁣v\d{v} repeatedly until you reach the last nonzero row for u. Multiply across rows using opposite signs.

signuud ⁣v\d{v}
ex/2e^{x/2}
++x4x^42ex/22e^{x/2}
-4x34x^34ex/24e^{x/2}
++12x212x^28ex/28e^{x/2}
-24x24x16ex/216e^{x/2}
++2432ex/232e^{x/2}
0

The result is:

x4ex/2d ⁣x=x4(2ex/2)4x3(4ex/2)+12x2(8ex/2)24x(16ex/2)+24(32ex/2)=(2x416x3+96x2384x+768)ex/2\begin{align} \int x^4 e^{x/2} \d{x} &= x^4 (2e^{x/2}) - 4x^3 (4e^{x/2}) \\ &+ 12x^2 (8e^{x/2}) - 24x (16e^{x/2}) + 24 (32e^{x/2}) \\ &= (2x^4 - 16x^3 + 96x^2 - 384x + 768) e^{x/2} \end{align}

Skill builder problems

Evaluate the following

Solution to Exercise 1

Select the following parts:

u=lnxd ⁣v=(x+2)d ⁣xd ⁣u=1xd ⁣xv=x22+2x\begin{align} u &= \ln x & \d{v} &= (x+2)\d{x} \\ \d{u} &= \frac{1}{x}\d{x} & v &= \frac{x^2}{2} + 2x \end{align}

so

(x+2)lnxd ⁣x=(x22+2x)lnx(x22+2x)1xd ⁣x=(x22+2x)lnx(x2+2)d ⁣x=(x22+2x)lnxx242x+c\begin{align} \int (x+2)\ln x \d{x} &= \left( \frac{x^2}{2} + 2x \right)\ln x - \int \left( \frac{x^2}{2} + 2x \right) \frac{1}{x} \d{x} \\ &= \left( \frac{x^2}{2} + 2x \right)\ln x - \int \left( \frac{x}{2} + 2 \right) \d{x} \\ &= \left( \frac{x^2}{2} + 2x \right)\ln x - \frac{x^2}{4} - 2x + c \end{align}
Solution to Exercise 2

Since x5x^5 is to the fifth order, integration by parts must be used 5 times. Use the tabular method for this.

signuud ⁣v\d{v}
sinx\sin x
++x5x^5cosx-\cos x
-5x45x^4sinx-\sin x
++20x320x^3cosx\cos x
-60x260x^2sinx\sin x
++120x120xcosx-\cos x
-120sinx-\sin x
0

so

x5sinxd ⁣x=x5cosx+5x4sinx+20x3cosx60x2sinx120xcosx+120sinx+c\int x^5\sin x \d{x} = -x^5 \cos x + 5x^4 \sin x + 20x^3 \cos x - 60x^2 \sin x - 120x \cos x + 120 \sin x + c

To make the solution look cleaner, you can factor out cosx\cos x and  sinx\ sin x.

x5sinxd ⁣x=(x5+20x3120x)cosx+(5x460x2+120)sinx+c\int x^5\sin x \d{x} = (-x^5 + 20x^3 - 120x) \cos x + (5x^4 - 60x^2 + 120) \sin x + c
Solution to Exercise 3

Select the following parts:

u=cosxd ⁣v=exd ⁣xd ⁣u=sinxd ⁣xv=ex\begin{align} u &= \cos x & \d{v} &= e^x\d{x} \\ \d{u} &= -\sin x\d{x} & v &= e^x \end{align}

so

excosxd ⁣x=excosx+exsinxd ⁣x\int e^x \cos x \d{x} = e^x \cos x + \int e^x \sin x \d{x}

To evaluate this integral, select new parts:

u=sinx,d ⁣v=exd ⁣xd ⁣u=cosxd ⁣xv=ex\begin{align} u &= \sin x, & \d{v} &= e^x\d{x} \\ \d{u} &= \cos x\d{x} & v &= e^x \end{align}

so

excosxd ⁣x=excosx+[exsinxexcosxd ⁣x]\int e^x \cos x \d{x} = e^x \cos x+ \left[e^x \sin x - \int e^x \cos x \d{x}\right]

The same integral appears on both sides! Add them together and solve:

2excosxd ⁣x=excosx+exsinxexcosxd ⁣x=ex2(cosx+sinx)+c\begin{align} 2 \int e^x \cos x \d{x} &= e^x \cos x + e^x \sin x \\ \int e^x \cos x \d{x} &= \frac{e^x}{2}(\cos x + \sin x) + c \end{align}