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


£20 /hr

Matthew S.

Degree: Economics (Bachelors) - Exeter University

Subjects offered: Maths, History+ 2 more

Extended Project Qualification

“Who am I? I am a 3rd Year Economics Student at the University of Exeter. Economics has always been at the top of my interests meaning that I have real passion for all things economics and math based which I will aim to instill into my...”

£20 /hr

Kyna F.

Degree: Materials Engineering (Masters) - Exeter University

Subjects offered: Maths, Science+ 3 more

-Personal Statements-

“About me Hello, my name is Kyna and I'm a second year Materials Engineering student studying at theUniveristy of Exeter. I have always had a love for all things science and maths, and would love to help any students in need of extra s...”

£20 /hr

Jake B.

Degree: Mathematics (Masters) - Durham University

Subjects offered: Maths, Chemistry


“About Me: Hi, my name is Jake, and I am a second year Mathematics Student at Durham University. I have tutored maths for 3 years now, at both GCSE and A level, and I absolutely love it! I My Sessions: During the sessions I will cove...”

MyTutor guarantee

About the author

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

What is 'completing the square' and how can I use it to find the minimum point of a quadratic curve?

how do integrate an equation with a surd or a fraction?

Find the factors of x^3−7x−6

How do I use the chain rule for differentiation?

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