How do you integrate by parts?

To integrate the product of two functions - say f(x) = xsinx, the product of g(x) = x and h(x) = sin(x) - the we use integration by parts. 

Since integration is the inverse of differentiation, we'll appeal to the Product Rule for differentiation to find a rule for integration. The Product Rule says that (fg)' = f'g + g'f. Rearranging giives:

f'g = (fg)' - g'f.

Integrating we have:

Integral(f'g) = Integral((fg)') - Integral(g'f), or:

Integral(f'g) = fg - Integral(g'f).

This is integration by parts. We designate one of the functions to be f' and one to be g. You can see on the far right we have another integral! For the method to be of use, we need to make the new integral simpler (or at least no more complicated) than the one we began with. So, we want g'f to be simpler then f'g: in other words, when we assign functions f' and g we want g to be the one that gets simpler when differentiated. Let's try an example: let's try and integrate xsinx dx. First, we will choose g to equal x, since x becomes 1 under differentiation, but sinx goes to cosx.

I = Integral(xsinx) = xIntegral(sinx) - Integral(x'Integral(sinx))

I = -xcosx - Integral(-cosx)

I = sinx - xcosx +C

So as long as we choose f' and g with some forethought, it's easy enough to integrate products of functions. Note: Ususally we denote the rule with f' = dv and g = du, so 

Integral u dv  = uv - Integral v du.

This is just a fancy way of stating what we've already established.

Patrick K. A Level Maths tutor, Mentoring Maths tutor, GCSE Maths tutor

1 year ago

Answered by Patrick, an A Level Maths tutor with MyTutor

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


Ross G. GCSE Maths tutor, A Level Maths tutor, GCSE Further Mathemati...
£26 /hr

Ross G.

Degree: Mathematics (Masters) - Durham University

Subjects offered:Maths, Physics+ 2 more

Further Mathematics

“I study maths, the subject I love, at Durham University. I hope I can help you to learn the content and, maybe, you can learn to love maths too!”

£24 /hr

Eilidh F.

Degree: Natural Sciences (Bachelors) - York University

Subjects offered:Maths, Further Mathematics + 2 more

Further Mathematics

“About me: My name is Eilidh (pronounced Aylee) and I am a student at the University of York. I study Natural Sciences specialising in Neuroscience, and have always loved both Science and Maths. I also reallyenjoy teaching, meeting new...”

£20 /hr

Tom B.

Degree: Mechanical Engineering (Masters) - Southampton University

Subjects offered:Maths, Further Mathematics

Further Mathematics

“Hi, I'm Tom - a first year student at the University of Southampton studying Mechanical Engineering :)”

About the author

Patrick K.

Currently unavailable: for new students

Degree: Mathematics (Masters) - Edinburgh University

Subjects offered:Maths


“I am a student of mathematics at the University of Edinburgh. I'm passionate about my subject and want to help you discovera love for maths too!In my sessions we'll use extensive examples to explore the benefits and drawbacks of diff...”

You may also like...

Other A Level Maths questions

Question 3 on the OCR MEI C1 June 2015 paper. Evaluate the following. (i) 200^0 (ii) (9/25)^(-1/2)

The quadratic equation x^2 + 4kx+2(k+1) = 0 has equal roots, find the possible values of k.

differentiate y = (4-x)^2

If (m+8)(x^2)+m=7-8x has two real roots show that (m+9)(m-8)<0 where m is an arbitrary constant

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