How do you integrate by parts?

When you are faced with an integral which is a product, such as x.cos(x), you may be able to integrate it by parts. The statement of the integration by parts is that:

∫u(dv/dx)dx = uv-∫v(du/dx)dx

So if you have a function of the form u(dv/dx) (such as x.cos(x)​) it can be presented in the above form. In this case u = x and dv/dx = cos(x). 

When doing an intergration by parts it is useful to draw a grid first and work out what v and du/dx are (since we already know u and dv/dx) like so:

u = x

dv/dx = cos(x)

v = sin(x) (this is what you get when you integrate cos(x) as ∫(dv/dx)dx = v)

du/dx = 1 (what you get from differentiating u)

And so now that we have everything we need we can plug things into the equation:

∫x.cos(x)dx = uv-∫v(du/dx)dx = x.sin(x) - ∫1.sin(x)dx

and then to finish we integrate the last bit:

 ∫x.cos(x)dx = x.sin(x)+cos(x)+c (since this is an indefinite integral we must add a constant of integration c).

Timothy W. GCSE Maths tutor, A Level Maths tutor

1 year ago

Answered by Timothy, an A Level Maths tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


Margarita S. GCSE Maths tutor, A Level Maths tutor, GCSE Further Math...
View profile
£20 /hr

Margarita S.

Degree: Mathematics (Masters) - Bristol University

Subjects offered: Maths, Russian+ 1 more

Further Mathematics

“I am a passionate, energetic and motivating mathematics tutor. I have a strong belief that mathematics can and should be made fun, engaging and accessible for everyone! Thus, I tailor my approach to suit the student`s individual needs....”

Anahita G. 13 plus  Maths tutor, A Level Maths tutor, GCSE Maths tuto...
View profile
£20 /hr

Anahita G.

Degree: Maths and Economics (Bachelors) - York University

Subjects offered: Maths, Science+ 3 more

.TSA. Oxford.

“I am a maths and economics student at the University of York. I have always loved logical and analytical subjects, for example Maths and the Sciences. I also particularly enjoy economics as there are countless ways to analyse and conc...”

Shaun F. GCSE Maths tutor, A Level Maths tutor
View profile
£20 /hr

Shaun F.

Degree: Mathematics with International Study (Masters) - Exeter University

Subjects offered: Maths


“Hi, I'm Shaun! I'm currently studying for a masters in Mathematics at the University of Exeter..”

MyTutor guarantee

About the author

Timothy W. GCSE Maths tutor, A Level Maths tutor
View profile

Timothy W.

Currently unavailable: until 01/10/2016

Degree: Mathematics (Bachelors) - Cardiff University

Subjects offered: Maths


“I am a mathematics student at Cardiff University and a friendly individual who is very patient. I have been teaching classical guitar for a year to a range of ages from 8 to 15 and so have experience as a teacher.”

You may also like...

Posts by Timothy

How do you differentiate parametric equations?

How do you factorise a quadratic equation?

How do you integrate by parts?

Other A Level Maths questions

Solve the inequality x < 4 - |2x + 1|.

Find dy/dx for y=5x^3-2x^2+7x-15

Express 3 cos θ + 4 sin θ in the form R cos(θ – α), where R and α are constants, R > 0 and 0 < α < 90°.

What is a derivative?

View A Level Maths tutors


We use cookies to improve our service. By continuing to use this website, we'll assume that you're OK with this. Dismiss