Be careful that you know the difference between integration by substitution and integration by parts.
Integration by parts is an extremely important and useful integration technique. Most integrals you come across won't be in a simple form. The idea is to 'reduce' or alter the original integral by breaking it up into pieces that can then be evaluated using the techniques you know so far. You will find that even a small change in an integral will often make a big change in the technique used and the final solution.
If you want a full lecture on this topic, we recommend this video.
video by Prof Leonard 

Where Integration by Parts Comes From 

Integration by parts refers to the use of the equation \(\int{ u~dv } = uv  \int{ v~du }\).
It is important to read the next section to understand where this comes from.
The integration by parts equation comes from the product rule for derivatives. We will show an informal proof here.
Let u and v be functions of t.
Using the product and chain rules, we take the derivative of \(u \cdot v\). 

\(\displaystyle{ \frac{d}{dt}[ u \cdot v] = u \frac{dv}{dt} + v \frac{du}{dt} }\) 
Now we isolate the \(\displaystyle{ u \frac{dv}{dt} }\) term. 
\(\displaystyle{ u \frac{dv}{dt} = \frac{d}{dt}[ u \cdot v]  v \frac{du}{dt} }\) 
Next, we integrate both sides with respect to \(t\) 
\(\displaystyle{ \int{ u \frac{dv}{dt} ~dt } = }\) \(\displaystyle{ \int{ \frac{d}{dt}[ u \cdot v] ~dt }  \int{ v \frac{du}{dt} ~dt } }\) 
Using the idea of differentials, we end up with 
\(\displaystyle{ \int{ u ~dv } = u \cdot v  \int{ v ~du } }\) 
Here is a video showing the same derivation as above.
video by PatrickJMT 

Using Integration By Parts 

The key to using integration by parts is learning what to choose for u and dv from the given integral. This is something you will develop a feel for as you get experience working these problems. However, there are some guidelines you can use as you are learning.
General Guidelines
1. Choose the dv term to make integration easy to get v since integration is usually more difficult than taking the derivative.
2. If you have a natural log term, always choose it to be equal to u. Remember, \((\ln x)'=1/x\) but \(\int{\ln(x)~dx} \neq 1/x \). [ one of the practice problems solves the integral \(\int{\ln(x)~dx}\) demonstrating what happens when you don't do this ]
3. If you have a polynomial, set it equal to u since taking the derivative to get du will reduce the power by one. (The reduction formula video below shows why this works.)
LIATE Rule  

L  logarithmic functions like \(\ln(x)\) 
I  inverse trig functions like \(\arcsin(x)\) 
A  algebraic functions like polynomials 
T  trigonometric functions like \(\sin(x)\) 
E  exponential functions like \(e^{3x}\) 
source: wikipedia 
Specific Guidelines
There is a rule of thumb called the LIATE rule that suggests which function to choose for u. By going down the list, try choosing the first function you come across as u. This rule does not work ALL the time but it is a good place to start as you are learning integration by parts.
Other Situations That You Will See
 You will come across an integral where you may need to use integration by parts multiple times. This is especially true when you have a polynomial. (The reduction formula video below demonstrates this.)
 Another case you will run into is that, after using integration by parts once or more, you may end up with the same integral you started out with. It looks like you don't accomplish anything or it loops back on itself. However, there is a way to solve these types of integrals. (One of the practice problems solves the integral \(\int{e^{2x}\sin(x)~dx}\) showing this.)
Reduction Formulas 

Here are three videos showing how to derive reduction formulas. Although you may never use the results of these videos directly, they are very good videos to watch to help you understand integration by parts.
In the first video, he derives the reduction formula for \( \int{ x^n e^x ~dx} \) and, in the process, demonstrates two of the main points discussed above, (1) choosing u as the polynomial reduces the power in the next step, and (2) doing integration by parts multiple times is sometimes necessary.
video by Dr Chris Tisdell 

In this video, she derives the reduction formula for \( \int{ (\ln x)^n ~dx} \).
video by Krista King Math 

In this video, he derives the reduction formula for \( \int{ \sec^n(x) ~dx} \).
Although the notation gets a bit messy, this is a good video demonstrating the use of integration by parts. If you get lost, just try to get the main points he is making.
video by PatrickJMT 

Okay, time for you to try some practice problems.
Instructions   Unless otherwise instructed, use integration by parts to evaluate these integrals, giving your answers in exact form.
Basic Problems 

Problem Statement 

\(\displaystyle{ \int{x\sin(x)~dx} }\)
Final Answer 

Problem Statement 

\(\displaystyle{ \int{x\sin(x)~dx} }\)
Solution 

The general form of integration by parts is \( \int{u~dv} = uv  \int{v~du} \). The key is to choose \( u \) and \( dv \).
\( u = x \)  \( dv = \sin(x)~dx\)  
\(du = dx\)  \( v = \cos(x) \) 
We chose \( u = x \) since, after taking the derivative, the power is reduced by one to zero, which causes the \(x\) to disappear. Now we have
\( \int{x \sin(x)~dx} \) 
\( x \cos(x)  \int{\cos(x)~dx} \) 
\( x \cos(x) + \sin(x) + C \) 
\( \sin(x)  x \cos(x) + C \) 
video by Krista King Math 

Final Answer 

\(\displaystyle{ \int{x\sin(x)~dx} = \sin(x)x\cos(x)+C }\) 
close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{x\sec^2(x)~dx} }\)
Final Answer 

Problem Statement 

\(\displaystyle{ \int{x\sec^2(x)~dx} }\)
Solution 

The general form of integration by parts is \( \int{u~dv} = uv  \int{v~du} \).
\( u = x \)  \(dv=\sec^2(x)dx\)  
\(du = dx\)  \( v = \tan(x) \) 
\(\displaystyle{\int{x \sec^2(x)~dx} }\) 
\(\displaystyle{ x \tan(x)  \int{\tan(x)~dx} }\) 
\(\displaystyle{ x \tan(x)  \int{\frac{\sin(x)}{\cos(x)}dx}}\) 
Now we use substitution by letting \( u = \cos(x) ~~~ \to ~~~ du = \sin(x)~dx \) 
\(\displaystyle{ \int{\frac{\sin(x)}{\cos(x)}dx} }\) 
\(\displaystyle{ \int{\frac{1}{u}du} }\) 
\(\displaystyle{ \ln\abs{u}+C = \ln\abs{\cos(x)} + C }\) 
Final Answer 

\( \int{x \sec^2(x)~dx} = x\tan(x)+\ln\abs{\cos(x)}+C \) 
close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{xe^{x}~dx} }\)
Solution 

video by PatrickJMT 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ x~5^x~dx } }\)
Solution 

video by PatrickJMT 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{\ln(x)~dx} }\)
Final Answer 

Problem Statement 

\(\displaystyle{ \int{\ln(x)~dx} }\)
Solution 

Here are 3 video solutions to this problem from 3 different instructors.
video by The Lazy Engineer 

video by PatrickJMT 

video by The Organic Chemistry Tutor 

Final Answer 

\(\displaystyle{ \int{\ln x~dx} = x\ln xx+C }\) 
close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int_{1}^{2}{ \frac{\ln(x)}{x^2}~dx } }\)
Solution 

The first video solves the indefinite integral. The second one solves the given definite integral.
video by The Organic Chemistry Tutor 

video by PatrickJMT 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ x^3\ln(x)~dx } }\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ x\cos(3x)~dx } }\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ xe^{2x}dx } }\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ \arctan(x)~dx } }\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ xe^x~dx } }\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{x^7\ln(x)~dx } }\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem. 

Intermediate Problems 

Problem Statement 

\(\displaystyle{ \int{x^2\sin(x)~dx } }\)
Final Answer 

Problem Statement 

\(\displaystyle{ \int{x^2\sin(x)~dx } }\)
Solution 

This solution will require the use of integration by parts twice (due to the \(x^2\) term). The general form is \( \int{u~dv} = uv  \int{v~du} \). The key is to choose \( u \) and \( dv \).
\( u = x^2 \)  \( dv = \sin(x)~dx \)  
\(du = 2x~dx\)  \( v = \cos(x) \) 
We chose \(u=x^2 \) since after taking the derivative, the power is reduced by one. Now we have
\(\displaystyle{ \int{x^2 \sin(x)~dx} }\) 
\(\displaystyle{ x^2 \cos(x)  \int{\cos(x) (2x~dx)} }\) 
\(\displaystyle{ x^2 \cos(x) + 2 \int{ x~\cos(x)~dx } }\) 
Now we need to use integration by parts again.
\( u = x \)  \( dv = \cos(x)~dx \)  
\(du = dx\)  \( v = \sin(x) \) 
Now we have
\( x^2 \cos(x) + 2 \int{x~\cos(x)~dx} \) 
\( x^2 \cos(x) + 2 \left[x \sin(x)  \int{\sin(x)~dx}\right] \) 
\( x^2 \cos(x) + 2x \sin(x)  2 (\cos(x)) + C \) 
\( x^2 \cos(x) + 2x \sin(x) + 2\cos(x) + C \) 
\( (2x^2)\cos(x) + 2x \sin(x) + C \) 
Final Answer 

\(\displaystyle{ \int{x^2\sin(x)~dx} = (2x^2)\cos(x)+2x\sin(x)+C }\) 
close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{\int{x^2\sin^2(x)~dx}}\)
Final Answer 

Problem Statement 

\(\displaystyle{\int{x^2\sin^2(x)~dx}}\)
Solution 

This solution will require the use of integration by parts twice (due to the \(x^2\) term). But first let's reduce the \(\sin^2(x)\) using the identity \( \sin^2(x) = (1\cos(2x))/2 \). Now we have
\(\displaystyle{ \int{x^2~\sin^2(x)~dx} }\) 
\(\displaystyle{ \int{x^2 \frac{1\cos(2x)}{2} dx} }\) 
\(\displaystyle{ \frac{1}{2}\int{x^2  x^2 \cos(2x) dx} }\) 
\(\displaystyle{ \frac{1}{2}\left[ \frac{x^3}{3}  \int{x^2\cos(2x)~dx} \right] }\) 
Okay, so let's do integration by parts.
The general form is \( \int{u~dv} = uv  \int{v~du} \). The key is to choose \( u \) and \( dv \).
\( u = x^2 \)  \( dv = \cos(2x)~dx \)  
\(du = 2x~dx \)  \( v = \sin(2x)/2\) 
We chose \( u = x^2 \) since after taking the derivative, the power is reduced by one. Now we have
\(\displaystyle{ \frac{1}{2}\left[ \frac{x^3}{3}  \int{x^2\cos(2x)~dx} \right] }\) 
\(\displaystyle{ \frac{1}{2}\left[ \frac{x^3}{3}  \frac{x^2}{2}\sin(2x) + \int{\frac{\sin(2x)}{2}(2x)dx } \right] }\) 
\(\displaystyle{ \frac{1}{2}\left[\frac{x^3}{3}  \frac{x^2}{2}\sin(2x) + \int{x~\sin(2x)~dx} \right] }\) 
Now we need to use integration by parts again.
\( u = x \)  \( dv = \sin(2x)~dx \)  
\(du = dx\)  \( v = \cos(2x)/2 \) 
Now we have
\(\displaystyle{ \frac{1}{2}\left[ \frac{x^3}{3}  \frac{x^2}{2}\sin(2x) + \int{x~\sin(2x)~dx} \right] }\) 
\(\displaystyle{ \frac{1}{2}\left[ \frac{x^3}{3}  \frac{x^2}{2}\sin(2x) + \frac{x}{2}\cos(2x)  \int{\frac{\cos(2x)}{2} dx} \right] }\) 
\(\displaystyle{ \frac{1}{2}\left[ \frac{x^3}{3}  \frac{x^2}{2}\sin(2x)  \frac{x}{2}\cos(2x) + \frac{1}{2}\int{\cos(2x)~dx} \right] }\) 
\(\displaystyle{ \frac{1}{2}\left[ \frac{x^3}{3}  \frac{x^2}{2}\sin(2x)  \frac{x}{2}\cos(2x) + \frac{1}{2}\frac{\sin(2x)}{2} \right] + C }\) 
\(\displaystyle{ \frac{1}{2}\left[ \frac{x^3}{3}  \frac{x^2}{2}\sin(2x)  \frac{x}{2}\cos(2x) + \frac{\sin(2x)}{4} \right] + C }\) 
\(\displaystyle{ \frac{1}{24} \left[ 4x^3  6x^2 \sin(2x)  6x ~\cos(2x) + 3\sin(2x) \right] + C }\) 
\(\displaystyle{ \frac{1}{24}\left[ 4x^3 + 3(12x^2)\sin(2x)  6x~\cos(2x) \right] + C }\) 
Final Answer 

\(\displaystyle{ \int{x^2~\sin^2(x)~dx}= }\) \(\displaystyle{ \frac{1}{24}\left[4x^3+3(12x^2)\sin(2x)6x~\cos(2x)\right]+C }\) 
close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ e^x \sin x ~dx } }\)
Solution 

video by The Organic Chemistry Tutor 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ (\ln x)^2dx } }\)
Solution 

This problem is solved by two different instructors in these 2 videos.
video by PatrickJMT 

video by The Organic Chemistry Tutor 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ e^{2x}\sin(x)~dx } }\)
Solution 

video by PatrickJMT 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ x^2e^xdx } }\)
Solution 

This is a great video to learn the relationship between integration by parts and the tabular method. Keep in mind, though, that some instructors may not allow the use of this technique since it is a way to get around understanding how to do integration by parts. As usual, check with your instructor to see what they require.
video by Krista King Math 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ e^{7x}\cos(2x)~dx } }\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{x^3e^x dx } }\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ e^{2\theta}\sin(3\theta)~d\theta } }\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int_{ \sqrt{\pi/2}}^{\sqrt{\pi}}{\theta^3 \cos(\theta^2) ~d\theta } }\)
Solution 

Her notation is incorrect here (and you may lose points if you work it like she did). Be careful not to do what she does. She leaves her limits of integration in terms of \(\theta\) when her equations are in terms of x. She should have either dropped her limits of integration while she was using x's or she should have converted her limits in terms of x.
So her first integral entirely in terms of \(x\) should have been
\(\displaystyle{ \frac{1}{2}\int_{\pi/2}^{\pi}{x \cos(x)~dx} }\)
Notice that the limits are as follows
\( x = \theta^2 \)  

lower limit  \( \theta = \sqrt{\pi/2} \to x = \pi/2 \) 
upper limit  \( \theta = \sqrt{\pi} \to x = \pi \) 
This may seem like a minor issue but it can lead to major problems down the road and you could lose points in class.
video by Krista King Math 

close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ \ln(3r+8)~dr } }\)
Final Answer 

Problem Statement 

\(\displaystyle{ \int{ \ln(3r+8)~dr } }\)
Solution 

video by MIP4U 

Final Answer 

\( r \ln(3r+8)  r + (8/3)\ln(3r+8) + C \) 
close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ \frac{xe^{2x}}{(1+2x)^2} ~dx } }\)
Final Answer 

Problem Statement 

\(\displaystyle{ \int{ \frac{xe^{2x}}{(1+2x)^2} ~dx } }\)
Solution 

video by blackpenredpen 

Final Answer 

\(\displaystyle{ \frac{e^{2x}}{4(1+2x)} + C }\) 
close solution

Log in to rate this practice problem. 

Problem Statement 

\(\displaystyle{ \int{ \sin(\ln x) ~dx } }\)
Solution 

video by The Organic Chemistry Tutor 

close solution

Log in to rate this practice problem. 

Advanced Problems 

Problem Statement 

\(\displaystyle{ \int{ (4t^28t+5)~e^{t^23t} dt } }\)
Hint 

This problem is tricky!
To start, set u to the exponent. Then find \(du/dt\). Divide the result into the polynomial.
Problem Statement 

\(\displaystyle{ \int{ (4t^28t+5)~e^{t^23t} dt } }\)
Final Answer 

Problem Statement 

\(\displaystyle{ \int{ (4t^28t+5)~e^{t^23t} dt } }\)
Hint 

This problem is tricky!
To start, set u to the exponent. Then find \(du/dt\). Divide the result into the polynomial.
Solution 

Let \(u=t^23t ~~~ \to ~~~ du/dt=2t3\) and divide into \(4t^28t+5\) to get \(4t^28t+5=(2t1)(2t3)+2\).
So our integral looks like
\(\displaystyle{\int{ (4t^28t+5)e^{t^23t} dt } }\) 
\(\displaystyle{\int{ (2t1)(2t3)e^{t^23t} dt } + \int{ 2e^{t^23t} dt }}\) 
Now we will use integration by parts on the first integral.
\( u = 2t1 \)  \( dv = (2t3)e^{t^23t} dt \)  
\(du = 2~dt \)  \( v = e^{t^23t} \) 
\(\displaystyle{ \int{ (4t^28t+5)e^{t^23t} dt } }\) 
\(\displaystyle{ \int{ (2t1)(2t3)e^{t^23t} dt } + \int{ 2e^{t^23t} dt } }\) 
\(\displaystyle{ (2t1)e^{t^23t}  \int{2e^{t^23t} dt} + \int{ 2e^{t^23t} dt } + C }\) 
\(\displaystyle{ (2t1)e^{t^23t} + C }\) 
Final Answer 

\(\displaystyle{\int{(4t^28t+5)e^{t^23t}dt}=(2t1)e^{t^23t}+C}\) 
close solution

Log in to rate this practice problem. 

You CAN Ace Calculus
related topics on other pages 

external links you may find helpful 
To bookmark this page and practice problems, log in to your account or set up a free account.
Single Variable Calculus 

MultiVariable Calculus 

Do you have a practice problem number but do not know on which page it is found? If so, enter the number below and click 'page' to go to the page on which it is found or click 'practice' to be taken to the practice problem.
 
free ideas to save on bags & supplies 

Help Keep 17Calculus Free 

The 17Calculus and 17Precalculus iOS and Android apps are no longer available for download. If you are still using a previously downloaded app, your app will be available until the end of 2020, after which the information may no longer be available. However, do not despair. All the information (and more) is now available on 17calculus.com for free. 