How do you integrate by parts?

This is one of the trickiest methods of calculus on the course, but it's important to know, and is very doable if you set up the problem right and remember the steps. 

Integration by parts works when you have to integrate a function of the type f=u(dv/dx). All you have to remember is that, and the formula(dv/dx) dx = uv - ∫ (du/dx) dx

Ok, let's try an example. 

Say you're asked to integrate xsin(x). 

I find it makes it easiest to write out all the things I need for the formula before I plug them in. 

We'll choose x to be u, because differentiating x makes it more simple, while differentiating sin(x) doesn't really help that much. You always choose u to be the part that comes out simplest when differentiated.

So:                                                            u = x

Then, by differentiating,                du/d= 1

and also:                                               dv/dx = sin(x)

Then, integrating to find v,             v = -cos(x). 

Now, all we have to do is plug that back into the formula from earlier:

             ∫ xsin(x) dx = -xcos(x) - ∫ -cos(x) (1) dx.

Which is way easier! Integrating cos(x) gives sin(x) + c (always remember c!), so we end up with

             ∫ xsin(x) dx = -xcos(x) + sin(x) + c.

And that's your answer!

Isaac E. GCSE Physics tutor, A Level Physics tutor, GCSE Maths tutor,...

10 months ago

Answered by Isaac, who has applied to tutor A Level Maths with MyTutor

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


£20 /hr

James T.

Degree: General Engineering (Other) - Durham University

Subjects offered:Maths, Physics


“I am a friendly and enthusiastic engineering student at Durham University, with a great passion for maths and physics.”

£20 /hr

Seb G.

Degree: Mathematics (Masters) - Bath University

Subjects offered:Maths


“Me: I'm a second year maths student at the University of Bath. I fell in love with maths after a rocky start with the subject, so believe that I can help people regardless of whether they like maths or not.  I've been tutoring maths l...”

MyTutor guarantee

£24 /hr

Ruby W.

Degree: Engineering Mathematics (Bachelors) - Bristol University

Subjects offered:Maths, Physics+ 3 more

Further Mathematics

“About Me: Hi, my name is Ruby and I am an engineering student at the University of Bristol. I love everything maths and science (especially maths), and teaching has been a passion of mine for many years. As a tutor, I am patient, tho...”

About the author

£20 /hr

Isaac E.

Degree: Physics (Masters) - Durham University

Subjects offered:Maths, Physics


“Top tutor from the renowned Russell university group, ready to help you improve your grades.”

MyTutor guarantee

You may also like...

Other A Level Maths questions

How do you integrate tan^2(x)?

Differentiate 4x^2 + 2ln3x + e^x

Differentiate y = (6x-13)^3 with respect to x

Find the general solution, in degrees, of the equation 2 sin(3x+45°)= 1

View A Level Maths tutors

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